13818 批量推送和单独推送 文字修改 监管部门不合适

dev-2024年1月8日
liujun 2024-01-25 20:03:38 +08:00
parent e105f75dc0
commit efd87d7ac5
1 changed files with 30 additions and 15 deletions

View File

@ -4,13 +4,13 @@
:visible.sync="visible"
:append-to-body="appendToBody"
:before-close="beforeClose"
title="推送"
title="推送??"
width="1000px"
destroy-on-close>
<el-form label-position="right" label-width="150px">
<el-form ref="form" :model="form" :rules="rules" label-width="200px" label-position="right" type="flex">
<el-row>
<el-col :span="12">
<el-form-item prop="TERRITORIALITY" label="单位 ">
<el-form-item prop="APPOINT_CORP_ID" label="单位 ">
<el-select v-model="corp_id" placeholder="请选择单位 " style="width: 90%" @change="getInfo">
<el-option
v-for="item in jituanDanweiTreeData"
@ -21,7 +21,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="TERRITORIALITY" label="指定监管部门:">
<el-form-item prop="APPOINT_DEPARTMENT_ID" label="指定部门:">
<Treeselect
:options="departmentTree"
:normalizer="normalizer"
@ -38,7 +38,7 @@
<el-row>
<el-col :span="12">
<el-form-item prop="TERRITORIALITY" label="指定监管部门审批人:">
<el-form-item prop="APPOINT_USER_ID" label="指定审批人:">
<el-select v-model="form.user" style="width: 300px" placeholder="请选择" @change="chooseUser">
<el-option v-for="item in peopleList" :key="item.USER_ID" :value="JSON.stringify(item)" :label="item.NAME"/>
</el-select>
@ -98,6 +98,17 @@ export default {
user: '',
tm: new Date().getTime(),
list: []
},
rules: {
APPOINT_DEPARTMENT_ID: [
{ required: true, message: '请选择指定监管部门', trigger: 'change' }
],
APPOINT_USER_ID: [
{ required: true, message: '请选择指定监管部门审批人', trigger: 'change' }
],
APPOINT_CORP_ID: [
{ required: true, message: '请选择企业', trigger: 'change' }
]
}
}
},
@ -139,10 +150,12 @@ export default {
this.visible = false
},
sendMessage() {
this.$refs.form.validate((valid) => {
if (!valid) {
this.$message.error('请填写完整信息')
} else {
this.form.list = this.heirloom
console.log(this.form)
requestFN(
'/trainingbatch/sendMessage', this.form
requestFN('/trainingbatch/sendMessage', this.form
).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)
@ -152,6 +165,8 @@ export default {
this.$emit('refresh', '')
}
})
}
})
},
getDepartmentTree() {
requestFN(