| | |
| | | </a-checkbox> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <b style="margin-bottom: 6px">平级接收人选择:</b> |
| | | <div style="display:flex;justify-content: space-between;align-items: center;"> |
| | | <b>平级接收人选择:</b> |
| | | <a-checkbox :checked="checkSlAll" @change="checkSlChange" :disabled="disable"> |
| | | 全选 |
| | | </a-checkbox> |
| | | </div> |
| | | <a-form-model-item> |
| | | <a-select mode="multiple" placeholder="选择平级接收单位" v-model="form.recipient" @change="handle" :disabled="disable"> |
| | | <a-select-option v-for="item in filteredOptions" :key="item.id" :value="item.id"> |
| | |
| | | }, |
| | | sendLeaders: [], |
| | | checkAll: false, |
| | | checkSlAll: false, |
| | | withLeaders: false, |
| | | areaUsers: [], |
| | | replaceFields: { |
| | |
| | | t.form.receiver = t.traverseTree(t.areaUsers) |
| | | }else{ |
| | | t.form.receiver = [] |
| | | } |
| | | }, |
| | | |
| | | //选择平级部门部分 |
| | | handle(selectedItems) { |
| | | const t = this |
| | | if(t.form.recipient.length == t.filteredOptions.length){ |
| | | t.checkSlAll = true |
| | | }else{ |
| | | t.checkSlAll = false |
| | | } |
| | | }, |
| | | |
| | | checkSlChange(e) { |
| | | const t = this |
| | | t.checkSlAll = !t.checkSlAll |
| | | if(t.checkSlAll == true){ |
| | | t.form.recipient = t.filteredOptions.map(i=>i.id) |
| | | }else{ |
| | | t.form.recipient = [] |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | onSelect() { |
| | | console.log(...arguments); |
| | | }, |
| | | //选择平级部门部分 |
| | | handle(selectedItems) { |
| | | this.selectedItems = selectedItems; |
| | | }, |
| | | handleRisk(selectedItems) { |
| | | // this.selectedItems = selectedItems; |
| | |
| | | </template>
|
| | | </a-table>
|
| | | </div>
|
| | | <msg-edit-mod ref="msgEdit" @refresh="getData"></msg-edit-mod>
|
| | | <msg-edit-mod ref="msgEdit" @refresh="getData()"></msg-edit-mod>
|
| | | <msg-detail-mod ref="msgDetail"></msg-detail-mod>
|
| | | <!-- 对话框 -->
|
| | | <!-- <a-modal title="回执" -->
|
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <div> |
| | | <div style="display:flex;justify-content: space-between;align-items: center;"> |
| | | <b>平级接收人选择:</b> |
| | | <a-checkbox :checked="checkSlAll" @change="checkSlChange"> |
| | | 全选 |
| | | </a-checkbox> |
| | | </div> |
| | | <a-form-model-item> |
| | | <a-select mode="multiple" placeholder="选择平级接收单位" v-model="form.recipient" @change="handle"> |
| | |
| | | horizontalRecipient: [] |
| | | }, |
| | | checkAll: false, |
| | | checkSlAll: false, |
| | | areaUsers: [], |
| | | replaceFields: { |
| | | children:'children', |
| | |
| | | } |
| | | }, |
| | | |
| | | //选择平级部门部分 |
| | | handle(selectedItems) { |
| | | const t = this |
| | | if(t.form.recipient.length == t.filteredOptions.length){ |
| | | t.checkSlAll = true |
| | | }else{ |
| | | t.checkSlAll = false |
| | | } |
| | | }, |
| | | |
| | | checkSlChange(e) { |
| | | const t = this |
| | | t.checkSlAll = !t.checkSlAll |
| | | if(t.checkSlAll == true){ |
| | | t.form.recipient = t.filteredOptions.map(i=>i.id) |
| | | }else{ |
| | | t.form.recipient = [] |
| | | } |
| | | }, |
| | | |
| | | confirmSend(){ |
| | | this.$refs.ruleForm.validate(valid => { |
| | | if (valid) { |
| | |
| | | this.$message.success('信息群发成功') |
| | | this.$refs.ruleForm.clearValidate() |
| | | this.$refs.ruleForm.resetFields() |
| | | this.form.recipient = [] |
| | | |
| | | }else{ |
| | | this.$message.error(res.data.msg) |
| | | this.$refs.ruleForm.clearValidate() |
| | |
| | | // this.selectedItems = selectedItems; |
| | | }, |
| | | handleLevel(selectedItems) { |
| | | // this.selectedItems = selectedItems; |
| | | }, |
| | | handle(selectedItems) { |
| | | // this.selectedItems = selectedItems; |
| | | }, |
| | | onChange(){ |
| | |
| | | :file-list="fileList"
|
| | | @change="fileChange"
|
| | | :headers="header"
|
| | | accept=".doc, .docx, .word, .pdf, .zip, .xlsx, .rar"
|
| | | accept=".doc, .docx, .word, .pdf, .zip, .xlsx, .rar, .jpg, .jpeg, .png"
|
| | | :data="{module: 'naturalDisasterPath'}"
|
| | | :remove="(file)=>{removeFile(file)}"
|
| | | >
|
| | |
| | | </a-checkbox>
|
| | | </a-col>
|
| | | <a-col :span="12">
|
| | | <b style="margin-bottom: 6px">平级接收人选择:</b>
|
| | | <div style="display:flex;justify-content: space-between;align-items: center;">
|
| | | <b>平级接收人选择:</b>
|
| | | <a-checkbox :checked="checkSlAll" @change="checkSlChange">
|
| | | 全选
|
| | | </a-checkbox>
|
| | | </div>
|
| | | <a-form-model-item prop="recipient">
|
| | | <a-select mode="multiple" placeholder="选择平级接收单位" v-model="form.recipient" @change="handle">
|
| | | <a-select-option v-for="item in filteredOptions" :key="item.id" :value="item.id">
|
| | |
| | | sendLeaders: [],
|
| | | leaders: [],
|
| | | checkAll: false,
|
| | | checkSlAll: false,
|
| | | withLeaders: false,
|
| | | areaUsers: [],
|
| | | replaceFields: {
|
| | |
| | | timeout: [{ required: true, message: '请输入超时时间', trigger: 'blur'}],
|
| | | receiver: [{ required: true, message: '请选择接收单位', trigger: 'change'}],
|
| | | reviewId: [{ required: true, message: '请选择审批人', trigger: 'change'}],
|
| | | recipient: [{ required: true, message: '请选择平级接收人', trigger: 'change'}]
|
| | | // recipient: [{ required: true, message: '请选择平级接收人', trigger: 'change'}]
|
| | | // acceptingUnitIds: [{ required: true, message: '请选择接收单位', trigger: 'change'}],
|
| | | // peerRecipientIds: [{ required: true, message: '请选择平级接收人', trigger: 'change'}]
|
| | | },
|
| | |
| | | t.form.receiver = t.traverseTree(t.areaUsers)
|
| | | }else{
|
| | | t.form.receiver = []
|
| | | }
|
| | | },
|
| | |
|
| | | //选择平级部门部分
|
| | | handle(selectedItems) {
|
| | | const t = this
|
| | | if(t.form.recipient.length == t.filteredOptions.length){
|
| | | t.checkSlAll = true
|
| | | }else{
|
| | | t.checkSlAll = false
|
| | | }
|
| | | },
|
| | |
|
| | | checkSlChange(e) {
|
| | | const t = this
|
| | | t.checkSlAll = !t.checkSlAll
|
| | | if(t.checkSlAll == true){
|
| | | t.form.recipient = t.filteredOptions.map(i=>i.id)
|
| | | }else{
|
| | | t.form.recipient = []
|
| | | }
|
| | | },
|
| | |
|
| | |
| | | onSelect() {
|
| | | console.log(...arguments);
|
| | | },
|
| | | //选择平级部门部分
|
| | | handle(selectedItems) {
|
| | | this.selectedItems = selectedItems;
|
| | | },
|
| | |
|
| | | handleRisk(selectedItems) {
|
| | | // this.selectedItems = selectedItems;
|
| | | },
|
| | |
| | | </div> |
| | | </template > |
| | | <template #responseSituation="text"> |
| | | <a-tag :color="text === 3 ? 'red' :text === 2? 'green':text === 1?'orange':'blue'"> |
| | | {{text == 1 ? '待叫应' : text == 2 ?'已叫应':text == 3 ?'超时未叫应' : ''}} |
| | | <a-tag :color="text === 3 ? 'green' :text === 2? 'blue':text === 1?'orange':'red'"> |
| | | {{text == 1 ? '均未叫应' : text == 2 ?'部分叫应':text == 3 ?'全部叫应' : ''}} |
| | | </a-tag> |
| | | </template> |
| | | <template #operation="text, record, index"> |