| | |
| | | <template> |
| | | <basic-container class="workreply"> |
| | | <basic-container |
| | | :class="[ |
| | | 'workreply', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '', |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | |
| | | excelBtn: false, |
| | | menuWidth: 320, |
| | | dialogClickModal: false, |
| | | column:[{ |
| | | label: "汇报时间", |
| | | prop: "reportTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | searchRange: true, |
| | | searchSpan: 6, |
| | | hide: false, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // viewDisplay: false, |
| | | search: false, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入时间", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | // { |
| | | // label: "汇报类别", |
| | | // prop: "category", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | | // }, |
| | | // dataType: "number", |
| | | // // searchSpan: 4, |
| | | // // search: true, |
| | | // hide: true, |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // viewDisplay: false, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择汇报类别", |
| | | // trigger: "blur" |
| | | // }] |
| | | // }, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "汇报时间", |
| | | prop: "reportTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | searchRange: true, |
| | | searchSpan: 6, |
| | | hide: false, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // viewDisplay: false, |
| | | search: false, |
| | | rules: [ |
| | | { |
| | | label: "汇报类型", |
| | | prop: "type", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | searchSpan: 4, |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择汇报类型", |
| | | trigger: "blur" |
| | | }] |
| | | required: true, |
| | | message: "请输入时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "汇报类别", |
| | | // prop: "category", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | | // }, |
| | | // dataType: "number", |
| | | // // searchSpan: 4, |
| | | // // search: true, |
| | | // hide: true, |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // viewDisplay: false, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择汇报类别", |
| | | // trigger: "blur" |
| | | // }] |
| | | // }, |
| | | { |
| | | label: "汇报类型", |
| | | prop: "type", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | | }, |
| | | dataType: "number", |
| | | searchSpan: 4, |
| | | width: 85, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | label: "接收人", |
| | | prop: "receivedIds", |
| | | // span: 12, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/dept/lazy-tree-users?type=3", |
| | | hide: true, |
| | | leafOnly: true, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | }, |
| | | multiple: true, |
| | | // dataType: "number", |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择接收人", |
| | | trigger: "blur" |
| | | }] |
| | | required: true, |
| | | message: "请选择汇报类型", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "接收人", |
| | | prop: "receivedIds", |
| | | // span: 12, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/dept/lazy-tree-users?type=3", |
| | | hide: true, |
| | | leafOnly: true, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | }, |
| | | multiple: true, |
| | | // dataType: "number", |
| | | rules: [ |
| | | { |
| | | label: "汇报人身份证号", |
| | | prop: "idCardNo", |
| | | hide: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | required: true, |
| | | message: "请选择接收人", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "汇报人身份证号", |
| | | prop: "idCardNo", |
| | | hide: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "汇报内容", |
| | | prop: "content", |
| | | type: "textarea", |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | label: "汇报内容", |
| | | prop: "content", |
| | | type: "textarea", |
| | | span: 24, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入汇报内容", |
| | | trigger: "blur" |
| | | }] |
| | | required: true, |
| | | message: "请输入汇报内容", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | { |
| | | label: "接收人", |
| | | prop: "replyRealName", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "接收人单位", |
| | | prop: "replyDeptName", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "回复内容", |
| | | prop: "replyContent", |
| | | type: "textarea", |
| | | span: 24, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | rules: [ |
| | | { |
| | | label: "接收人", |
| | | prop: "replyRealName", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | required: true, |
| | | message: "请输入回复内容", |
| | | trigger: "blur", |
| | | }, |
| | | { |
| | | label: "接收人单位", |
| | | prop: "replyDeptName", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "回复内容", |
| | | prop: "replyContent", |
| | | type: "textarea", |
| | | span: 24, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入回复内容", |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | ], |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | data: [], |
| | | }; |
| | |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | }, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | row.receivedIds = row.receivedIds.join(","); |
| | |
| | | const data = res.data.data; |
| | | that.page.total = data.total; |
| | | that.data = data.records; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | that.loading = false; |
| | | that.selectionClear(); |
| | | }); |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | <style></style> |