This commit is contained in:
shijingjing
2022-09-07 11:04:05 +08:00
parent 6cda8c0787
commit 99f5e9624c
6 changed files with 16 additions and 61 deletions

View File

@@ -247,6 +247,7 @@ export default {
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
taskId: this.id,
current: this.current,
size: 3000,
},
})
.then((res) => {

View File

@@ -39,7 +39,6 @@
<div class="name">{{ item.name }}</div>
<div class="size">{{ item.fileSizeStr }}</div>
</div>
<!-- <div class="reUpload" @click="handleReUpload(index)">重新上传</div> -->
<div class="remove" @click="remove" style="color: #f72c27">删除</div>
</div>
</div>
@@ -74,10 +73,6 @@
</div>
</div>
<!-- <AiConsole>调试工具</AiConsole> -->
<u-picker v-model="showTaskTime" :params="params" mode="time" @confirm="choiceTime"></u-picker>
<div class="mask" v-show="showPopup" @tap="showPopup = false">
@@ -159,7 +154,7 @@ export default {
files: [],
showTaskTime: false,
userList: [],
userListIds: [],
// userListIds: [],
showPopup: false,
showFodder: false,
showUpload: false,
@@ -300,11 +295,6 @@ export default {
})
},
// handleReUpload(i) {
// this.showUpload = true
// this.remove(i)
// },
remove(index) {
this.files.splice(index, 1)
},
@@ -388,7 +378,7 @@ export default {
selectedUserIds: this.userList?.map(e => e.id)
}).then((res)=>{
if(res?.userList) {
this.userListIds = res.userList.map(e => e.id)
this.userList = res.userList
}
}
).catch((err) => {

View File

@@ -236,6 +236,7 @@ export default {
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,
taskId: this.id,
current: this.current,
size: 3000,
},
})
.then((res) => {

View File

@@ -41,8 +41,6 @@
<u-calendar v-model="showCalendar" mode="range" @change="selectDate"></u-calendar>
<AiConsole></AiConsole>
<div class="btn">
<div class="submitBtn" @click="submit">确定</div>
</div>

View File

@@ -18,19 +18,6 @@
<img src="./images/right-icon.png" alt="" class="imgs"/>
</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"/>
</div>
<div class="subBtn" @click="submit">
@@ -80,19 +67,19 @@ export default {
this.treeList = this.allData.filter(e => !e.parentGirdId)
this.selectGridPath = [{girdName: "可选范围", id: ''}]
},
itemClick({id, girdName}) {
this.selectGridPath.push({girdName, id})
this.getGridsAndUsersByParent(id)
itemClick({id,girdName,isChecked}) {
this.selectGridPath.push({girdName,id})
this.getGridsAndUsersByParent(id,isChecked)
},
getGridsAndUsersByParent(id) {
this.treeList = this.allData.filter(e => e.parentGirdId == id)
this.userList = []
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)}))
getGridsAndUsersByParent(id,checkType) {
if(checkType) {
this.selected.push(this.treeList)
}
})
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) {
this.userList = []
@@ -106,16 +93,6 @@ export default {
},
girdClick(row) {
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) {
this.selected.push(row)
} else {
@@ -125,18 +102,6 @@ export default {
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() {
if (!this.selected.length) {
return this.$u.toast('请选择网格员')

View File

@@ -15,7 +15,7 @@
</div>
</div>
<AiConsole></AiConsole>
<AiConsole />
<div class="btn">
<div class="submitBtn" @click="submit">确定</div>