去掉console

This commit is contained in:
shijingjing
2022-07-26 11:05:58 +08:00
parent 601640eea1
commit 048aa08ab1
4 changed files with 8 additions and 14 deletions

View File

@@ -169,7 +169,6 @@ export default {
},
onShow() {
document.title = '群发居民群'
// this.getList()
this.$dict.load(['mstStatus']).then(() => {
this.getList()
})

View File

@@ -66,6 +66,7 @@
:colConfigs="tabIndex==0? colConfigs0 : colConfigs1"
v-if="tableData.length">
<u-td slot="groupOwnerId" slot-scope="{row}">
<!-- <p>{{row.groupOwnerId}}</p> -->
<AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/>
</u-td>
</AiTable>
@@ -104,7 +105,7 @@ export default {
computed: {
colConfigs0() {
return [
{ slot: "groupOwnerId",label: "成员",prop: "groupOwnerId" },
{ slot: "groupOwnerId",label: "成员" },
{ label: "预计送达居民群", prop: "groupCount" }
];
},
@@ -112,7 +113,7 @@ export default {
return [
{ label: "居民群",prop: "groupName" },
{ label: "群人数", prop: "memberCount"},
{ slot: "groupOwnerId",label: "群主",prop: "groupOwnerId" }
{ slot: "groupOwnerId",label: "群主" }
];
},
},

View File

@@ -4,7 +4,7 @@
<div class="userCards" v-for="e in userList" :key="e.userId">
<div class="imges">
<div class="imgselect" :class="{ 'checked': e.isChecked }" @click.stop="itemCheck(e)" />
<img src="./images/tx@2x.png" alt="" class="avatras"/> {{e.userId}}
<img src="./images/tx@2x.png" alt="" class="avatras"/>
</div>
<div class="rights fill">
<div class="applicationNames">
@@ -53,34 +53,28 @@ export default {
}).then(res => {
if (res?.data) {
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
// 数组去重
this.userList = []
userArr.forEach(item=> {
if(!this.userList.find(o=> o.userId === item.userId)) {
this.userList.push(item)
}
})
}
})
},
itemCheck(row) {
this.userList.forEach(e => e.isChecked = false)
const index= this.userList.findIndex(o => {
const index = this.userList.findIndex(o => {
return row.userId===o.userId
})
this.userList[index].isChecked=true
this.userList[index].isChecked = true
this.selected = this.userList[index]
console.log( this.selected)
// this.$forceUpdate()
},
submit() {
if(!this.selected.userId) {
return this.$u.toast('请选择创建人')
}
uni.$emit("pagePicker:custom",[ this.selected])
uni.$emit("pagePicker:custom", [this.selected])
uni.setStorageSync('userSelect', this.selected)
uni.navigateBack()
},

View File

@@ -579,7 +579,7 @@ export default {
xData.push(a.data)
console.log( xData)
})
console.log(xData, yData, '111222');
// console.log(xData, yData, '111222');
this.getColumnarEcharts(xData, yData)
})
}