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" :visible.sync="visible"
:append-to-body="appendToBody" :append-to-body="appendToBody"
:before-close="beforeClose" :before-close="beforeClose"
title="推送" title="推送??"
width="1000px" width="1000px"
destroy-on-close> 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-row>
<el-col :span="12"> <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-select v-model="corp_id" placeholder="请选择单位 " style="width: 90%" @change="getInfo">
<el-option <el-option
v-for="item in jituanDanweiTreeData" v-for="item in jituanDanweiTreeData"
@ -21,7 +21,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="TERRITORIALITY" label="指定监管部门:"> <el-form-item prop="APPOINT_DEPARTMENT_ID" label="指定部门:">
<Treeselect <Treeselect
:options="departmentTree" :options="departmentTree"
:normalizer="normalizer" :normalizer="normalizer"
@ -38,7 +38,7 @@
<el-row> <el-row>
<el-col :span="12"> <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-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-option v-for="item in peopleList" :key="item.USER_ID" :value="JSON.stringify(item)" :label="item.NAME"/>
</el-select> </el-select>
@ -98,6 +98,17 @@ export default {
user: '', user: '',
tm: new Date().getTime(), tm: new Date().getTime(),
list: [] 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,17 +150,21 @@ export default {
this.visible = false this.visible = false
}, },
sendMessage() { sendMessage() {
this.form.list = this.heirloom this.$refs.form.validate((valid) => {
console.log(this.form) if (!valid) {
requestFN( this.$message.error('请填写完整信息')
'/trainingbatch/sendMessage', this.form
).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)
} else { } else {
this.$message.success('推送成功') this.form.list = this.heirloom
this.visible = false requestFN('/trainingbatch/sendMessage', this.form
this.$emit('refresh', '') ).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)
} else {
this.$message.success('推送成功')
this.visible = false
this.$emit('refresh', '')
}
})
} }
}) })
}, },