黔西南-积分
This commit is contained in:
@@ -44,14 +44,8 @@
|
||||
</ai-info-item>
|
||||
</ai-wrapper>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px" v-else>
|
||||
<el-form-item label="选择人员" prop="ids">
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||
url="/app/wxcp/wxuser/list" headerTitle="人员列表"
|
||||
:isMultiple="true" dialogTitle="选择" @selectPerson="selectPerson" class="aipersonselect">
|
||||
<template name="option" v-slot:option="{ item }">
|
||||
<span class="iconfont iconProlife">{{ item.name }}</span>
|
||||
</template>
|
||||
</ai-person-select>
|
||||
<el-form-item label="选择人员">
|
||||
<ai-user-selecter v-model="chooseUserList" :instance="instance" :isMultiple="true" :props="{label: 'name', id: 'sysUserId'}"></ai-user-selecter>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
@@ -143,9 +137,11 @@ export default {
|
||||
},
|
||||
set(row) {
|
||||
this.chooseUserList = []
|
||||
this.isSetEdit = false
|
||||
this.instance.post(`/app/appscorerule/queryDetailById?id=${row.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
if(res.data.massSendingConfigs && res.data.massSendingConfigs.length) {
|
||||
|
||||
this.chooseUserList = res.data.massSendingConfigs
|
||||
}
|
||||
}
|
||||
@@ -153,21 +149,14 @@ export default {
|
||||
this.dialog = true
|
||||
this.setInfo = {...row}
|
||||
},
|
||||
selectPerson(val) {
|
||||
console.log(val)
|
||||
if (val) {
|
||||
this.personList = val
|
||||
} else {
|
||||
this.personList = this.chooseUserList
|
||||
}
|
||||
},
|
||||
|
||||
setConfirm() {
|
||||
if(!this.personList.length) {
|
||||
if(!this.chooseUserList.length) {
|
||||
return this.$message.error("请选择成员!")
|
||||
}
|
||||
var params = {
|
||||
id: this.setInfo.id,
|
||||
massSendingConfigs: this.personList,
|
||||
massSendingConfigs: this.chooseUserList,
|
||||
}
|
||||
this.instance.post(`/app/appscorerule/editMassSendingConfig`, params).then((res) => {
|
||||
if (res.code == 0) {
|
||||
|
||||
@@ -41,14 +41,15 @@
|
||||
@closed="form={},chooseUserList=[]">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="选择人员" prop="ids">
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||
<!-- <ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||
url="/app/wxcp/wxuser/list" headerTitle="人员列表"
|
||||
:isMultiple="true" dialogTitle="选择" @selectPerson="selectPerson" class="aipersonselect">
|
||||
<template name="option" v-slot:option="{ item }">
|
||||
<span class="iconfont iconProlife">{{ item.name }}</span>
|
||||
<ai-id mode="show" :show-eyes="false" :value="item.idNumber"/>
|
||||
</template>
|
||||
</ai-person-select>
|
||||
</ai-person-select> -->
|
||||
<ai-user-selecter v-model="chooseUserList" :instance="instance" :isMultiple="true" :props="{label: 'name', id: 'sysUserId'}"></ai-user-selecter>
|
||||
</el-form-item>
|
||||
<el-form-item label="调整说明" prop="eventDesc">
|
||||
<el-input v-model.trim="form.eventDesc" placeholder="请输入..." type="textarea" :rows="4" show-word-limit
|
||||
@@ -248,6 +249,7 @@ export default {
|
||||
},
|
||||
|
||||
onConfirm() {
|
||||
this.form.ids = this.chooseUserList.map(e => e.sysUserId)
|
||||
if(this.flag) return
|
||||
|
||||
if(this.form.file?.length) {
|
||||
|
||||
Reference in New Issue
Block a user