去掉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() { onShow() {
document.title = '群发居民群' document.title = '群发居民群'
// this.getList()
this.$dict.load(['mstStatus']).then(() => { this.$dict.load(['mstStatus']).then(() => {
this.getList() this.getList()
}) })

View File

@@ -66,6 +66,7 @@
:colConfigs="tabIndex==0? colConfigs0 : colConfigs1" :colConfigs="tabIndex==0? colConfigs0 : colConfigs1"
v-if="tableData.length"> v-if="tableData.length">
<u-td slot="groupOwnerId" slot-scope="{row}"> <u-td slot="groupOwnerId" slot-scope="{row}">
<!-- <p>{{row.groupOwnerId}}</p> -->
<AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/> <AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/>
</u-td> </u-td>
</AiTable> </AiTable>
@@ -104,7 +105,7 @@ export default {
computed: { computed: {
colConfigs0() { colConfigs0() {
return [ return [
{ slot: "groupOwnerId",label: "成员",prop: "groupOwnerId" }, { slot: "groupOwnerId",label: "成员" },
{ label: "预计送达居民群", prop: "groupCount" } { label: "预计送达居民群", prop: "groupCount" }
]; ];
}, },
@@ -112,7 +113,7 @@ export default {
return [ return [
{ label: "居民群",prop: "groupName" }, { label: "居民群",prop: "groupName" },
{ label: "群人数", prop: "memberCount"}, { 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="userCards" v-for="e in userList" :key="e.userId">
<div class="imges"> <div class="imges">
<div class="imgselect" :class="{ 'checked': e.isChecked }" @click.stop="itemCheck(e)" /> <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>
<div class="rights fill"> <div class="rights fill">
<div class="applicationNames"> <div class="applicationNames">
@@ -53,34 +53,28 @@ export default {
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)})) let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
// 数组去重
this.userList = [] this.userList = []
userArr.forEach(item=> { userArr.forEach(item=> {
if(!this.userList.find(o=> o.userId === item.userId)) { if(!this.userList.find(o=> o.userId === item.userId)) {
this.userList.push(item) this.userList.push(item)
} }
}) })
} }
}) })
}, },
itemCheck(row) { itemCheck(row) {
this.userList.forEach(e => e.isChecked = false) this.userList.forEach(e => e.isChecked = false)
const index = this.userList.findIndex(o => {
const index= this.userList.findIndex(o => {
return row.userId===o.userId return row.userId===o.userId
}) })
this.userList[index].isChecked=true this.userList[index].isChecked = true
this.selected = this.userList[index] this.selected = this.userList[index]
console.log( this.selected)
// this.$forceUpdate()
}, },
submit() { submit() {
if(!this.selected.userId) { if(!this.selected.userId) {
return this.$u.toast('请选择创建人') return this.$u.toast('请选择创建人')
} }
uni.$emit("pagePicker:custom",[ this.selected]) uni.$emit("pagePicker:custom", [this.selected])
uni.setStorageSync('userSelect', this.selected) uni.setStorageSync('userSelect', this.selected)
uni.navigateBack() uni.navigateBack()
}, },

View File

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