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