diff --git a/src/assets/img/shuju/measure/zhuhu_orange.png b/src/assets/img/shuju/measure/zhuhu_orange.png new file mode 100644 index 00000000..0656dcc3 Binary files /dev/null and b/src/assets/img/shuju/measure/zhuhu_orange.png differ diff --git a/src/assets/img/shuju/measure/zhuhu_red.png b/src/assets/img/shuju/measure/zhuhu_red.png new file mode 100644 index 00000000..9fa8c1bd Binary files /dev/null and b/src/assets/img/shuju/measure/zhuhu_red.png differ diff --git a/src/assets/img/shuju/measure/zhuhu_yellow.png b/src/assets/img/shuju/measure/zhuhu_yellow.png new file mode 100644 index 00000000..00bc496e Binary files /dev/null and b/src/assets/img/shuju/measure/zhuhu_yellow.png differ diff --git a/src/assets/scss/modules/shequzhili/event-info.scss b/src/assets/scss/modules/shequzhili/event-info.scss index 2b5ebb5f..08dbf0f1 100644 --- a/src/assets/scss/modules/shequzhili/event-info.scss +++ b/src/assets/scss/modules/shequzhili/event-info.scss @@ -336,7 +336,7 @@ display: flex; .detail-field { - width: 80px; + width: 100px; text-align: justify; text-align-last: justify; } diff --git a/src/views/modules/communityService/sqzzz/cpts/edit.vue b/src/views/modules/communityService/sqzzz/cpts/edit.vue index b75f9346..df7741c2 100644 --- a/src/views/modules/communityService/sqzzz/cpts/edit.vue +++ b/src/views/modules/communityService/sqzzz/cpts/edit.vue @@ -492,6 +492,7 @@ export default { organizationName: "", serviceItem: "", organizationPersonCount: "", + categoryCode: "", principalName: "", principalPhone: "", organizationCreatedTime: "", diff --git a/src/views/modules/shequzhili/event/cpts/event-info copy.vue b/src/views/modules/shequzhili/event/cpts/event-info copy.vue deleted file mode 100644 index 165a825a..00000000 --- a/src/views/modules/shequzhili/event/cpts/event-info copy.vue +++ /dev/null @@ -1,489 +0,0 @@ - - - - - diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index 9668fe32..38e9ce64 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -205,7 +205,7 @@ import { Loading } from "element-ui"; // 引入Loading服务 import foldText from "@/views/components/foldText"; import projectInfoOrigin from "../../xiangmu/cpts/project-info"; import demandInfoOrigin from "@/views/modules/communityService/measure/info"; -import eventInfo from "./event-info1"; + import dateFormat from "dai-js/tools/dateFormat"; @@ -260,7 +260,7 @@ export default { components: { foldText, - eventInfo, + eventAdd, eventDetail, processForm, @@ -354,25 +354,23 @@ export default { }, async handelAdd () { - if (this.pageTypeCopy === 'add') { - this.$refs.ref_add.getEventInfo() - if (this.$refs.ref_add.okflag) { - this.eventInfoData = this.$refs.ref_add.formData - } else { - return false - } + this.$refs.ref_add.getEventInfo() + if (this.$refs.ref_add.okflag) { - console.log('eventInfo', this.eventInfoData) + this.eventInfoData = this.$refs.ref_add.formData + } else { + return false } + console.log('eventInfo', this.eventInfoData) + this.$refs.ref_processinfo_add.getProcessInfo() if (this.$refs.ref_processinfo_add.okflag) { this.formData.operationType = this.$refs.ref_processinfo_add.operationType this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType - - this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList + // this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList if (this.formData.operationType === '0') { this.project = {} @@ -382,6 +380,9 @@ export default { //回复属性赋值 this.eventInfoData.content = this.replayInfo.content this.eventInfoData.status = this.replayInfo.status + this.eventInfoData.categoryList = [] + this.eventInfoData.categoryList.push(this.replayInfo.categoryId) + } else if (this.formData.operationType === '1') { this.replayInfo = {} @@ -403,8 +404,6 @@ export default { console.log('demond', this.demand) } - } else { - return false } this.formData = { @@ -475,6 +474,8 @@ export default { console.log('demond', this.demand) let url = '/gov/project/icEvent/icEventToDemand' await this.submitDispose(url, this.demand) + } else { + this.$message.info("请选择一种处理方式"); } } else { diff --git a/src/views/modules/shequzhili/event/cpts/event-info1.vue b/src/views/modules/shequzhili/event/cpts/event-info1.vue deleted file mode 100644 index 72c04623..00000000 --- a/src/views/modules/shequzhili/event/cpts/event-info1.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - diff --git a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue index 23176b40..b9b0ed97 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue @@ -5,7 +5,19 @@ :model="formData" :rules="dataRule" label-width="100px"> - + + + - @@ -40,7 +52,7 @@ - 0) { + if (childs[i].subCategory) { + if (childs[i].subCategory.length) { + this.filterTree(childs[i].subCategory) + } else { + delete childs[i].subCategory + } + } + } + return arr + }, + async getDemandOptions () { const url = "/heart/icresidemanddict/demandoption" let params = {} @@ -404,6 +486,7 @@ export default { this.formData.categoryCode = val[1]; } }, + handleServiceChange (type, val) { if (val === "social_org") { if (type === "add") this.getServiceuserList(val, "add_demand"); diff --git a/src/views/modules/shequzhili/event/cpts/process-form-project.vue b/src/views/modules/shequzhili/event/cpts/process-form-project.vue index 3e8a6632..715019ec 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue @@ -5,6 +5,18 @@ :model="formData" :rules="dataRule" label-width="100px"> + + + 0) { + if (childs[i].subCategory) { + if (childs[i].subCategory.length) { + this.filterTree(childs[i].subCategory) + } else { + delete childs[i].subCategory + } + } + } + return arr + }, async loadGrid () { const url = "/gov/org/customergrid/gridoption" @@ -396,7 +486,7 @@ export default { const url = "/gov/issue/issueprojecttagdict/list"; const { data, code, msg } = await requestPost(url, { - // categoryList: this.projectCate, + }); if (code === 0) { @@ -409,7 +499,6 @@ export default { } }, - handleTagChange (val) { console.log(val); }, diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue index 67810030..4f3ce9c1 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue @@ -6,6 +6,18 @@ :model="formData" :rules="dataRule" class="form"> + + + 0) { + if (childs[i].subCategory) { + if (childs[i].subCategory.length) { + this.filterTree(childs[i].subCategory) + } else { + delete childs[i].subCategory + } + } + } + return arr + }, async getReplayInfo () { this.okflag = false this.$refs["ref_form1"].validate((valid, messageObj) => { @@ -98,11 +179,20 @@ export default { app.util.validateRule(messageObj); } else { + if (this.status) { + + if (!this.selCateObj || !this.selCateObj.id) { + this.$message.info("请填写事件分类"); + return false + } this.formData.status = 'closed_case' } else { this.formData.status = 'processing' } + this.formData.categoryId = this.selCateObj.id + this.formData.categoryList = [] + this.formData.categoryList.push(this.selCateObj) this.okflag = true } diff --git a/src/views/modules/shequzhili/event/cpts/process-form.vue b/src/views/modules/shequzhili/event/cpts/process-form.vue index 6ab88929..05efadcc 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form.vue @@ -6,26 +6,14 @@ :inline="false" :rules="dataRule" class="form"> - - - + 回复 立项 - 转需求 + 转服务 @@ -33,12 +21,14 @@
+ :eventDetailData="eventDetailData" + :eventId="eventId">
+ :eventDetailData="eventDetailData" + :eventId="eventId">
@@ -70,24 +60,20 @@ export default { data () { return { - casOptions: [], iscascaderShow: 0, - selCategoryArray: [ - - ], + selCategoryArray: [], selCateObj: {}, optionProps: { multiple: false, value: 'id', label: 'name', children: 'subCategory', - }, - operationType: '0', + operationType: '', + - categoryList: [], replayInfo: {}, demand: {}, project: {}, @@ -105,9 +91,7 @@ export default { computed: { dataRule () { return { - categoryList: [ - { required: true, message: "分类不能为空", trigger: "blur" }, - ], + operationType: [ { required: true, message: "处理方式不能为空", trigger: "blur" }, ], @@ -149,117 +133,39 @@ export default { async mounted () { const { user } = this.$store.state this.agencyId = user.agencyId - await this.getCategoryList() + if (this.eventId) { this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); - if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { - this.selCategoryArray = [] - this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) - this.selCategoryArray.push(this.eventDetailCopy.categoryId) - - this.selCateObj = { - name: this.eventDetailCopy.categoryName, - id: this.eventDetailCopy.categoryId - } - } - } - + } }, methods: { - - - async getCategoryList () { - const url = "/gov/issue/issueprojectcategorydict/list" - - let params = {} - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - - let treeDataNew = this.filterTree(data) - - //组织级联数据 - ++this.iscascaderShow - this.casOptions = [] - - - this.casOptions = treeDataNew - - } else { - this.$message.error(msg) - } - - }, - - handleChangeCate () { - console.log(this.$refs["myCascader"].getCheckedNodes()[0].data) - this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data - - }, - - //重构树,去除网格 - filterTree (arr) { - let childs = arr - for (let i = childs.length; i--; i > 0) { - if (childs[i].subCategory) { - if (childs[i].subCategory.length) { - this.filterTree(childs[i].subCategory) - } else { - delete childs[i].subCategory - } - } - } - return arr - }, - async getProcessInfo () { - this.okflag = false - if (this.selCategoryArray.length === 0) { - this.$message({ - type: "error", - message: "请选择分类", - }); - - this.okflag = false - return false - } - this.categoryList = [] - - this.categoryList.push(this.selCategoryArray[1]) + // this.categoryList = [] + // this.categoryList.push(this.selCategoryArray[1]) if (this.operationType === '0') { this.$refs.ref_process_form_replay.getReplayInfo() if (this.$refs.ref_process_form_replay.okflag) { - this.replayInfo = this.$refs.ref_process_form_replay.formData - this.replayInfo.categoryId = this.categoryList[0] - this.replayInfo.categoryList = this.categoryList - this.okflag = true } else { return false } - } else if (this.operationType === '1') { this.$refs.ref_process_form_project.getProjectInfo() if (this.$refs.ref_process_form_project.okflag) { this.project = this.$refs.ref_process_form_project.formData - this.project.categoryList = [] - this.project.categoryList.push(this.selCateObj) - - //赋值分类信息 this.okflag = true diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index ef7066da..c35141f1 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -436,8 +436,8 @@ export default { computed: { maxTableHeight () { return this.$store.state.inIframe - ? this.clientHeight - 400 + this.iframeHeigh - : this.clientHeight - 400; + ? this.clientHeight - 410 + this.iframeHeigh + : this.clientHeight - 410; }, ...mapGetters(["clientHeight", "iframeHeight"]), }, diff --git a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue index c5c4634c..3b26bcec 100644 --- a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue +++ b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue @@ -193,7 +193,25 @@ export default {