|
|
@ -9,10 +9,10 @@ |
|
|
|
class="form"> |
|
|
|
|
|
|
|
<el-form-item label="通知渠道" |
|
|
|
prop="noticeWay" |
|
|
|
prop="channel" |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-checkbox-group v-model="formData.noticeWay"> |
|
|
|
<el-checkbox-group v-model="formData.channel"> |
|
|
|
<el-checkbox key="1" |
|
|
|
label="1">小程序通知</el-checkbox> |
|
|
|
<el-checkbox key="2" |
|
|
@ -22,17 +22,17 @@ |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="通知内容" |
|
|
|
prop="noticeContent" |
|
|
|
prop="content" |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-input class="item_width_1" |
|
|
|
type="textarea" |
|
|
|
maxlength="1000" |
|
|
|
show-word-limit |
|
|
|
:autosize="{ minRows: 4, maxRows: 10 }" |
|
|
|
:autosize="{ minRows: 10, maxRows: 15 }" |
|
|
|
clearable |
|
|
|
placeholder="请输入通知内容" |
|
|
|
v-model="formData.noticeContent"></el-input> |
|
|
|
v-model="formData.content"></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
@ -70,9 +70,11 @@ export default { |
|
|
|
btnDisable: false, |
|
|
|
|
|
|
|
formData: { |
|
|
|
|
|
|
|
noticeWay: [], |
|
|
|
noticeContent: '', |
|
|
|
origin: '1', |
|
|
|
channel: [], |
|
|
|
content: '', |
|
|
|
userList: [], |
|
|
|
orgName |
|
|
|
|
|
|
|
}, |
|
|
|
selectionAll: [] |
|
|
@ -94,27 +96,24 @@ export default { |
|
|
|
this.$refs['ref_form1'].resetFields(); |
|
|
|
this.selectionAll = selectionAll |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm () { |
|
|
|
this.btnDisable = true |
|
|
|
setTimeout(() => { |
|
|
|
this.btnDisable = false |
|
|
|
}, 5000) |
|
|
|
|
|
|
|
async handleComfirm () { |
|
|
|
|
|
|
|
await this.sendNotice() |
|
|
|
|
|
|
|
}, |
|
|
|
async sendNotice () { |
|
|
|
console.log(this.formData) |
|
|
|
return false |
|
|
|
|
|
|
|
this.btnDisable = true |
|
|
|
setTimeout(() => { |
|
|
|
this.btnDisable = false |
|
|
|
}, 5000) |
|
|
|
|
|
|
|
let url = '' |
|
|
|
|
|
|
|
url = '/gov/project/memoConcern/update' |
|
|
|
// url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/update" |
|
|
|
url = '/epmetuser/icNotice/batchnotice' |
|
|
|
// url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNotice/batchnotice" |
|
|
|
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, this.formData) |
|
|
@ -152,8 +151,8 @@ export default { |
|
|
|
idCard: '', |
|
|
|
phone: '', |
|
|
|
remark: '', |
|
|
|
noticeWay: [], |
|
|
|
noticeContent: '', |
|
|
|
channel: [], |
|
|
|
content: '', |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
@ -194,35 +193,12 @@ export default { |
|
|
|
...mapGetters(['clientHeight', 'iframeHeight']), |
|
|
|
dataRule () { |
|
|
|
return { |
|
|
|
name: [ |
|
|
|
{ required: true, message: '姓名不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
idCard: [ |
|
|
|
{ required: true, message: '身份证号不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
phone: [ |
|
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' }, |
|
|
|
], |
|
|
|
checkTime: [ |
|
|
|
{ required: true, message: '检测时间不能为空', trigger: 'blur' }, |
|
|
|
], |
|
|
|
|
|
|
|
address: [ |
|
|
|
{ required: false }, |
|
|
|
], |
|
|
|
result: [ |
|
|
|
{ required: true }, |
|
|
|
], |
|
|
|
address: [ |
|
|
|
{ required: false }, |
|
|
|
channel: [ |
|
|
|
{ required: true, message: '通知渠道不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
noticeWay: [ |
|
|
|
{ required: false }, |
|
|
|
], |
|
|
|
noticeContent: [ |
|
|
|
{ required: false }, |
|
|
|
], |
|
|
|
|
|
|
|
content: [ |
|
|
|
{ required: true, message: '通知内容不能为空', trigger: 'blur' } |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|