diff --git a/project/sass/apps/AppReportAiWill/components/Detail.vue b/project/sass/apps/AppReportAiWill/components/Detail.vue index 31c9898c..65d9d1ba 100644 --- a/project/sass/apps/AppReportAiWill/components/Detail.vue +++ b/project/sass/apps/AppReportAiWill/components/Detail.vue @@ -1,14 +1,7 @@ - - - - 指派事件 - 处理事件 - - - + @@ -56,97 +49,6 @@ - - - - - - - - - 已办结 - 已拒绝 - - - - - - - - - - - - - - - - - 选择 - - - - - - - - - - - - - - - - - - - - - {{ data.isUser ? `${data.name}-${data.phone}` : data.girdName }} - - - - - - @@ -161,37 +63,8 @@ data() { return { - forwardForm: { - content: '', - girdId: '', - girdName: '', - girdMemberId: '', - girdMemberName: '', - name: '' - }, isLoading: true, - name: '', - detail: {}, - isShowUser: false, - eventList: [], - isShowAdd: false, - userList: [], - processList: [], - dictList: [], - defaultProps: { - children: 'girdList', - label: 'girdName' - }, - isShowForward: false, - tree: [], - gridInfo: {}, - form: { - files: [], - groupId: '', - groupName: '', - content: [], - eventStatus: '2' - } + detail: {} } }, @@ -199,15 +72,7 @@ ...mapState(['user']) }, - watch: { - name (val) { - this.$refs.tree.filter(val) - } - }, - created() { - this.getDict() - this.getGirdList() this.dict.load('clapEventStatus').then(() => { this.getDetail() }) @@ -221,7 +86,6 @@ if (res?.data) { this.detail = res.data this.processList = res.data.processList - this.form.groupId = res.data.groupId this.$nextTick(() => { this.initMap() @@ -233,128 +97,6 @@ }) }, - getGirdList () { - this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => { - if (res.code == 0) { - this.tree = this.formatList(res.data) - } - }) - }, - - onClose () { - this.form.files = [] - this.form.groupId = '' - this.form.groupName = '' - this.form.content = '' - this.form.eventStatus = '' - this.forwardForm.content = '' - this.forwardForm.girdId = '' - this.forwardForm.girdName = '' - this.forwardForm.girdMemberId = '' - this.forwardForm.girdMemberName = '' - this.forwardForm.name = '' - }, - - formatList (list) { - var arr = [] - for (let item of list) { - if (item.girdMemberList && item.girdMemberList.length) { - let userList = JSON.parse(JSON.stringify(item.girdMemberList)).map(v => { - return { - ...v, - isUser: true, - girdName: item.girdName, - girdId: item.id - } - }) - - item.girdList = [ - ...userList - ] - delete item.girdMemberList - } - - if (item.girdList && item.girdList.length) { - this.formatList(item.girdList) - } - - arr.push(item) - } - - return arr - }, - - filterNode (value, data) { - if (!value) return true - - return (data.girdName && data.girdName.indexOf(value) !== -1) || (data.name && data.name.indexOf(value) !== -1) || (data.name && data.phone.indexOf(value) !== -1) - }, - - onTreeChange (e) { - this.gridInfo = e - }, - - onForwardConfirm () { - this.$refs.forwardForm.validate(v => { - if (v) { - this.instance.post('/app/appclapeventinfo/transferByManager', { - ...this.forwardForm, - id: this.params.id - }).then(res => { - if (res?.code == 0) { - this.isShowForward = false - this.getDetail() - this.$message.success('转交成功!') - } - }) - } - }) - }, - - onConfirm () { - if (this.gridInfo.userId || this.gridInfo.isLastLevel === '1') { - if (this.gridInfo.userId) { - this.forwardForm.girdId = this.gridInfo.girdId - this.forwardForm.girdName = this.gridInfo.girdName - this.forwardForm.girdMemberId = this.gridInfo.id - this.forwardForm.girdMemberName = this.gridInfo.name - } else { - this.forwardForm.girdId = this.gridInfo.id - } - - this.forwardForm.girdName = this.gridInfo.girdName - this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}` - - this.isShowUser = false - } else { - return this.$message.error('请选择网格员或者最后层网格') - } - }, - - getDict () { - this.instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => { - if (res.code == 0) { - this.dictList = res.data.records.map(v => { - return { - dictValue: v.id, - dictName: v.groupName - } - }) - } - }) - }, - - close () { - this.$confirm('确定关闭该事件?').then(() => { - this.instance.post(`/app/appmininotice/delete?ids=${this.params.id}`).then(res => { - if (res.code == 0) { - this.$message.success('删除成功!') - this.getList() - } - }) - }) - }, - cancel (isRefresh) { this.$emit('change', { type: 'list', @@ -388,24 +130,6 @@ }) map.add(marker) }) - }, - - handleEvent() { - this.$refs.form.validate(v => { - if (v) { - this.instance.post('/app/appclapeventinfo/finishByManager', { - ...this.form, - groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName, - id: this.params.id - }).then(res => { - if (res?.code == 0) { - this.isShowAdd = false - this.getDetail() - this.$message.success('处理成功!') - } - }) - } - }) } } } @@ -415,58 +139,6 @@ .reportAtWillDetail { height: 100%; - .grid-wrapper { - min-height: 360px; - } - - .title-btns { - display: flex; - align-items: center; - } - ::v-deep .el-tree { - background: transparent; - - .el-tree-node__expand-icon.is-leaf { - color: transparent !important; - } - - .el-tree-node__content > .el-tree-node__expand-icon { - padding: 4px; - } - - .el-tree-node__content { - height: 32px; - } - - .el-tree__empty-text { - color: #222; - font-size: 14px; - } - - .el-tree-node__children .el-tree-node__content { - height: 32px; - } - - .el-tree-node__content:hover { - background: #E8EFFF; - color: #222222; - border-radius: 2px; - } - - .is-current > .el-tree-node__content { - &:hover { - background: #2266FF; - color: #fff; - } - - background: #2266FF; - - span { - color: #fff; - } - } - } - .el-steps { ::v-deep .el-step__icon { font-size: 12px; @@ -509,12 +181,6 @@ } } - ::v-deep .report-dialog { - .el-select { - width: 100%; - } - } - ::v-deep .el-step__head.is-process { color: #555; border-color: #555; diff --git a/project/sass/apps/AppReportAiWill/components/List.vue b/project/sass/apps/AppReportAiWill/components/List.vue index bcccec9a..f0cf8888 100644 --- a/project/sass/apps/AppReportAiWill/components/List.vue +++ b/project/sass/apps/AppReportAiWill/components/List.vue @@ -13,6 +13,9 @@ :selectList="dict.getDict('clapEventStatus')" @change="search.current = 1, getList()"> + + 导出 + this.dict.getLabel('clapEventStatus', v) }, - { prop: 'processTime', label: '处理时长', align: 'center' }, { slot: 'options' } ] }