13818 批量推送和单独推送 文字修改 监管部门不合适
parent
e105f75dc0
commit
efd87d7ac5
|
@ -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,10 +150,12 @@ export default {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
sendMessage() {
|
sendMessage() {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (!valid) {
|
||||||
|
this.$message.error('请填写完整信息')
|
||||||
|
} else {
|
||||||
this.form.list = this.heirloom
|
this.form.list = this.heirloom
|
||||||
console.log(this.form)
|
requestFN('/trainingbatch/sendMessage', this.form
|
||||||
requestFN(
|
|
||||||
'/trainingbatch/sendMessage', this.form
|
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
if (data.code !== '0') {
|
if (data.code !== '0') {
|
||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
|
@ -152,6 +165,8 @@ export default {
|
||||||
this.$emit('refresh', '')
|
this.$emit('refresh', '')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
getDepartmentTree() {
|
getDepartmentTree() {
|
||||||
requestFN(
|
requestFN(
|
||||||
|
|
Loading…
Reference in New Issue