31013
This commit is contained in:
@@ -247,6 +247,7 @@ export default {
|
|||||||
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
|
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
|
||||||
taskId: this.id,
|
taskId: this.id,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
size: 3000,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
<div class="name">{{ item.name }}</div>
|
<div class="name">{{ item.name }}</div>
|
||||||
<div class="size">{{ item.fileSizeStr }}</div>
|
<div class="size">{{ item.fileSizeStr }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="reUpload" @click="handleReUpload(index)">重新上传</div> -->
|
|
||||||
<div class="remove" @click="remove" style="color: #f72c27">删除</div>
|
<div class="remove" @click="remove" style="color: #f72c27">删除</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,10 +73,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <AiConsole>调试工具</AiConsole> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<u-picker v-model="showTaskTime" :params="params" mode="time" @confirm="choiceTime"></u-picker>
|
<u-picker v-model="showTaskTime" :params="params" mode="time" @confirm="choiceTime"></u-picker>
|
||||||
|
|
||||||
<div class="mask" v-show="showPopup" @tap="showPopup = false">
|
<div class="mask" v-show="showPopup" @tap="showPopup = false">
|
||||||
@@ -159,7 +154,7 @@ export default {
|
|||||||
files: [],
|
files: [],
|
||||||
showTaskTime: false,
|
showTaskTime: false,
|
||||||
userList: [],
|
userList: [],
|
||||||
userListIds: [],
|
// userListIds: [],
|
||||||
showPopup: false,
|
showPopup: false,
|
||||||
showFodder: false,
|
showFodder: false,
|
||||||
showUpload: false,
|
showUpload: false,
|
||||||
@@ -300,11 +295,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// handleReUpload(i) {
|
|
||||||
// this.showUpload = true
|
|
||||||
// this.remove(i)
|
|
||||||
// },
|
|
||||||
|
|
||||||
remove(index) {
|
remove(index) {
|
||||||
this.files.splice(index, 1)
|
this.files.splice(index, 1)
|
||||||
},
|
},
|
||||||
@@ -388,7 +378,7 @@ export default {
|
|||||||
selectedUserIds: this.userList?.map(e => e.id)
|
selectedUserIds: this.userList?.map(e => e.id)
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
if(res?.userList) {
|
if(res?.userList) {
|
||||||
this.userListIds = res.userList.map(e => e.id)
|
this.userList = res.userList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).catch((err) => {
|
).catch((err) => {
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ export default {
|
|||||||
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
|
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
|
||||||
taskId: this.id,
|
taskId: this.id,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
size: 3000,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -41,8 +41,6 @@
|
|||||||
|
|
||||||
<u-calendar v-model="showCalendar" mode="range" @change="selectDate"></u-calendar>
|
<u-calendar v-model="showCalendar" mode="range" @change="selectDate"></u-calendar>
|
||||||
|
|
||||||
<AiConsole></AiConsole>
|
|
||||||
|
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<div class="submitBtn" @click="submit">确定</div>
|
<div class="submitBtn" @click="submit">确定</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,19 +18,6 @@
|
|||||||
<img src="./images/right-icon.png" alt="" class="imgs"/>
|
<img src="./images/right-icon.png" alt="" class="imgs"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="userCards" v-for="(e, index) in userList" :key="e.id">
|
|
||||||
<div class="imges">
|
|
||||||
<img src="./images/xzh.png" alt="" class="imgselect" v-if="e.isChecked" @click="userClick(e, index)"/>
|
|
||||||
<img src="./images/xz.png" alt="" class="imgselect" v-else @click="userClick(e, index)"/>
|
|
||||||
<img src="./images/tx@2x.png" alt="" class="avatras"/>
|
|
||||||
</div>
|
|
||||||
<div class="rights fill">
|
|
||||||
<div class="applicationNames">
|
|
||||||
<AiOpenData v-if="e.name" type="userName" :openid="e.name" style="display: block;"/>
|
|
||||||
</div>
|
|
||||||
<div class="idNumbers">{{ e.phone }}</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<AiEmpty description="暂无数据" v-if="!hasData"/>
|
<AiEmpty description="暂无数据" v-if="!hasData"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="subBtn" @click="submit">
|
<div class="subBtn" @click="submit">
|
||||||
@@ -80,19 +67,19 @@ export default {
|
|||||||
this.treeList = this.allData.filter(e => !e.parentGirdId)
|
this.treeList = this.allData.filter(e => !e.parentGirdId)
|
||||||
this.selectGridPath = [{girdName: "可选范围", id: ''}]
|
this.selectGridPath = [{girdName: "可选范围", id: ''}]
|
||||||
},
|
},
|
||||||
itemClick({id, girdName}) {
|
itemClick({id,girdName,isChecked}) {
|
||||||
this.selectGridPath.push({girdName, id})
|
this.selectGridPath.push({girdName,id})
|
||||||
this.getGridsAndUsersByParent(id)
|
this.getGridsAndUsersByParent(id,isChecked)
|
||||||
},
|
},
|
||||||
|
|
||||||
getGridsAndUsersByParent(id) {
|
getGridsAndUsersByParent(id,checkType) {
|
||||||
this.treeList = this.allData.filter(e => e.parentGirdId == id)
|
if(checkType) {
|
||||||
this.userList = []
|
this.selected.push(this.treeList)
|
||||||
this.$http.post(`/app/appgirdmemberinfo/listByGirdIdByThree?girdId=${id}`).then((res) => {
|
|
||||||
if (res?.data) {
|
|
||||||
this.userList = res.data.map(e => ({...e, isChecked: this.selected.find(i => i.id==e.id)}))
|
|
||||||
}
|
}
|
||||||
})
|
this.treeList = this.allData.filter(e => (e.parentGirdId == id)).map(v=>
|
||||||
|
({...v,isChecked: this.selected.find(i=> i.id==v.id)}))
|
||||||
|
|
||||||
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
girdNameClick(row, index) {
|
girdNameClick(row, index) {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
@@ -106,16 +93,6 @@ export default {
|
|||||||
},
|
},
|
||||||
girdClick(row) {
|
girdClick(row) {
|
||||||
row.isChecked = !!!row.isChecked
|
row.isChecked = !!!row.isChecked
|
||||||
// if (this.treeList[index].isChecked) {//取消
|
|
||||||
// this.treeList[index].isChecked = false
|
|
||||||
// this.selected = {}
|
|
||||||
// } else {
|
|
||||||
// this.treeList.map((item, i) => {
|
|
||||||
// item.isChecked = index == i
|
|
||||||
// })
|
|
||||||
// this.selected = {...row, kind: "grid"}
|
|
||||||
// }
|
|
||||||
|
|
||||||
if(row.isChecked) {
|
if(row.isChecked) {
|
||||||
this.selected.push(row)
|
this.selected.push(row)
|
||||||
} else {
|
} else {
|
||||||
@@ -125,18 +102,6 @@ export default {
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
|
|
||||||
// userClick(row) {
|
|
||||||
// row.isChecked = !!!row.isChecked
|
|
||||||
// if(row.isChecked){
|
|
||||||
// this.selected.push(row)
|
|
||||||
// }else{
|
|
||||||
// console.log(this.selected)
|
|
||||||
// let index=this.selected.findIndex(item=>row.id===item.id)
|
|
||||||
// index>=0&&this.selected.splice(index, 1)
|
|
||||||
// }
|
|
||||||
// uni.setStorageSync('userSelect', this.selected)
|
|
||||||
// },
|
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if (!this.selected.length) {
|
if (!this.selected.length) {
|
||||||
return this.$u.toast('请选择网格员')
|
return this.$u.toast('请选择网格员')
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AiConsole></AiConsole>
|
<AiConsole />
|
||||||
|
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<div class="submitBtn" @click="submit">确定</div>
|
<div class="submitBtn" @click="submit">确定</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user