宣发
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<div class="list_content">
|
||||
<div class="list_card">
|
||||
<div class="tab">
|
||||
<u-subsection :list="subsection" :current="subIndex"></u-subsection>
|
||||
<u-subsection :list="subsection" :current="subIndex" @change="changeSub"></u-subsection>
|
||||
</div>
|
||||
<AiTable
|
||||
:data="tableData"
|
||||
@@ -172,6 +172,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
changeSub(index) {
|
||||
this.subIndex = index;
|
||||
this.getStatistics()
|
||||
},
|
||||
|
||||
getStatistics() {
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/detailStatistics`, null, {
|
||||
|
||||
@@ -9,11 +9,16 @@
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>创建人</span>
|
||||
<span>{{ data.createUserId }}</span>
|
||||
<span>
|
||||
<AiOpenData type="userName" :openId="data.createUserId"></AiOpenData>
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>所在部门</span>
|
||||
<span>{{ data.createUserDept }}</span>
|
||||
<span>
|
||||
<span v-if="data.createUserDept">/<AiOpenData type="userName" :openId="data.createUserDept" style="display: inline-block"></AiOpenData></span>
|
||||
<span v-if="data.createUserSecondDept">/<AiOpenData type="userName" :openId="data.createUserSecondDept" style="display: inline-block"></AiOpenData></span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>群发时间</span>
|
||||
@@ -111,6 +116,7 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
document.title = "群发审批"
|
||||
this.getDetail()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -52,21 +52,21 @@ export default {
|
||||
params: {}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.userList = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.id)}))
|
||||
console.log(this.userList, '123456');
|
||||
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.id)}))
|
||||
// 数组去重
|
||||
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)
|
||||
row.isChecked = !row.isChecked
|
||||
if (row.isChecked) {
|
||||
this.selected[0] = row
|
||||
}
|
||||
console.log(this.selected, '胡很顾及到凤凰国际');
|
||||
// else {
|
||||
// let index = this.selected.findIndex(e => e.id == row.id)
|
||||
// this.selected.splice(index, 1)
|
||||
// }
|
||||
this.selected[0] = this.userList.filter(e => e.isChecked == true)
|
||||
this.$forceUpdate()
|
||||
},
|
||||
submit() {
|
||||
|
||||
Reference in New Issue
Block a user