diff --git a/.env.development b/.env.development index f7a1145d0..fa857bf28 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api #家中开发连级的后端服务 # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api diff --git a/src/assets/scss/modules/shequzhili/event-info.scss b/src/assets/scss/modules/shequzhili/event-info.scss index 08dbf0f14..eddc90d5e 100644 --- a/src/assets/scss/modules/shequzhili/event-info.scss +++ b/src/assets/scss/modules/shequzhili/event-info.scss @@ -21,7 +21,33 @@ .cell-width-1{ width: 250px } - + .avatar-uploader { + margin: 0 0 0 20px; + + /deep/ .el-upload--picture-card{ + width: 100px; + height: 100px; + } + /deep/ .el-upload{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .el-upload-list--picture-card .el-upload-list__item{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .el-upload-list--picture-card .el-upload-list__item-thumbnail{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .avatar{ + width: 100px; + height: 100px; + } + } } @@ -30,6 +56,10 @@ .g-page { display: flex; + width:100%; + .g-total{ + width:100%; + } .g-left { box-sizing: border-box; width: 65%; @@ -143,8 +173,8 @@ cursor:pointer } .info-title-2 { - width: 100px; - flex: 0 0 1; + + flex: 0 0 100px; font-size: 14px; } diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 1935079fd..d22ccc17f 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -112,13 +112,14 @@ - 选择图片 @@ -161,7 +162,7 @@ -
+
@@ -343,7 +344,9 @@ export default { selGridId: '', selPersonIndex: '', selPerson: {}, - demandUserList: [] + demandUserList: [], + + hideUploadBtn: false }; }, components: {}, @@ -481,7 +484,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "addorupdate" } const { data, code, msg } = await requestPost(url, params) @@ -587,6 +591,10 @@ export default { this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1) }, + // 最多上传3张图,超过时隐藏上传按钮 + handleEditChange (file, fileList) { + this.hideUploadBtn = fileList.length >= 3; + }, exceedPic () { this.$message.warning("最多上传3张预览图片") @@ -739,11 +747,14 @@ export default { > - - - - diff --git a/src/views/modules/shequzhili/event/cpts/event-detail.vue b/src/views/modules/shequzhili/event/cpts/event-detail.vue index 36a6b318f..74df7aa31 100644 --- a/src/views/modules/shequzhili/event/cpts/event-detail.vue +++ b/src/views/modules/shequzhili/event/cpts/event-detail.vue @@ -75,6 +75,10 @@
+ 满意度评价 关闭 @@ -87,6 +91,41 @@ @close="handleClose" @afterEdit="handleClose" />
--> + + +
+
+ +
不满意
+
+
+ +
满意
+
+
+ +
非常满意
+
+
+
+ 关闭 + 确定 +
+
@@ -99,7 +138,7 @@ import dateFormat from "dai-js/tools/dateFormat"; function iniData () { return { - + user: {}, projectPageType: 'info', info: {}, @@ -122,6 +161,18 @@ function iniData () { demandUserName: "", demandUserMobile: "", }, + + //满意度评价 + showSatisfy: false, + selBad: false, + selGood: false, + selPerfect: false, + badurl: require('@/assets/img/satisfy-images/face1.png'), + badurl_light: require('@/assets/img/satisfy-images/face1_light.png'), + goodurl: require('@/assets/img/satisfy-images/face2.png'), + goodurl_light: require('@/assets/img/satisfy-images/face2_light.png'), + perfecturl: require('@/assets/img/satisfy-images/face3.png'), + perfecturl_light: require('@/assets/img/satisfy-images/face3_light.png'), }; } @@ -138,6 +189,7 @@ export default { }, eventDetailData: { + type: Object, default () { return {} @@ -158,7 +210,7 @@ export default { }, mounted () { - + this.user = this.$store.state.user if (this.eventId) { this.info = JSON.parse(JSON.stringify(this.eventDetailData)); } @@ -172,17 +224,14 @@ export default { }, handleClose () { - this.showType = '' }, - handleCloseEvent () { - + handleCloseEvent () { this.$emit("handleClose"); }, async getApiData () { - }, handleToProject () { @@ -199,6 +248,62 @@ export default { this.$emit("handleToDemand") }, + //满意度评价 + handleSatisfy () { + + this.showSatisfy = true + }, + + clickSatisfy (type) { + if (type === 'bad') { + this.selGood = false + this.selPerfect = false + this.selBad = true + } else if (type === 'good') { + this.selGood = true + this.selPerfect = false + this.selBad = false + } else if (type === 'perfect') { + this.selGood = false + this.selPerfect = true + this.selBad = false + } + }, + + async handleComfirmSatisfy () { + let satisfyLevel = '' + if (!this.selBad && !this.selGood && !this.selPerfect) { + this.$message.info("请选择评价级别"); + } else { + if (this.selBad) { + satisfyLevel = 'bad' + } else if (this.selGood) { + satisfyLevel = 'good' + } else if (this.selPerfect) { + satisfyLevel = 'perfect' + } + } + const url = "/gov/project/icEvent/comment" + + let params = { + icEventId: this.eventId, + satisfaction: satisfyLevel + } + + const { data, code, msg } = await requestPost(url, params) + + if (code === 0) { + this.$message.success("评价成功"); + this.info.satisfactionName = '111' + this.showSatisfy = false + + + } else { + this.$message.error(msg) + } + }, + + }, }; diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index 38e9ce64b..e1d2075cd 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -31,7 +31,7 @@
-
+
-
+

事件处理进展

-
+
-
暂无处理进展
@@ -357,7 +356,6 @@ export default { this.$refs.ref_add.getEventInfo() if (this.$refs.ref_add.okflag) { - this.eventInfoData = this.$refs.ref_add.formData } else { return false @@ -370,18 +368,21 @@ export default { 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 + if (this.formData.operationType === '0') { this.project = {} this.demand = {} this.replayInfo = this.$refs.ref_processinfo_add.replayInfo console.log('replayInfo', this.replayInfo) + //回复属性赋值 this.eventInfoData.content = this.replayInfo.content this.eventInfoData.status = this.replayInfo.status - this.eventInfoData.categoryList = [] - this.eventInfoData.categoryList.push(this.replayInfo.categoryId) + if (this.replayInfo.categoryId) { + this.eventInfoData.categoryList = [] + this.eventInfoData.categoryList.push(this.replayInfo.categoryId) + } } else if (this.formData.operationType === '1') { @@ -390,17 +391,22 @@ export default { this.project = this.$refs.ref_processinfo_add.project //项目的属性同事件一样 this.project.gridId = this.eventInfoData.gridId + + if (this.project.categoryList && this.project.categoryList.length > 0) { + this.eventInfoData.categoryList = [] + this.eventInfoData.categoryList.push(this.project.categoryList[0].id) + } + console.log('projectInfo', this.project) } else if (this.formData.operationType === '2') { this.replayInfo = {} this.project = {} this.demand = this.$refs.ref_processinfo_add.demand + //需求的属性同事件一样 - this.demand.gridId = this.eventInfoData.gridId - this.demand.reportUserName = this.eventInfoData.name//上报人姓名同需求上报人姓名 - this.demand.reportUserMobile = this.eventInfoData.mobile//上报人手机号同需求上报人手机号 - this.demand.reportTime = this.eventInfoData.happenTime//上报时间 + this.eventInfoData.categoryList = [] + this.eventInfoData.categoryList.push(this.demand.categoryId) console.log('demond', this.demand) } 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 b9b0ed972..8458cdc4e 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue @@ -363,6 +363,10 @@ export default { this.formData.reportUserName = this.eventDetailCopy.name this.formData.reportTime = this.eventDetailCopy.happenTime this.formData.gridId = this.eventDetailCopy.gridId + this.formData.demandUserId = this.eventDetailCopy.reportUserId + this.formData.demandUserName = this.eventDetailCopy.name + this.formData.demandUserMobile = this.eventDetailCopy.mobile + if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { this.selCategoryArray = [] this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) @@ -525,10 +529,9 @@ export default { this.$refs["ref_form"].validate((valid, messageObj) => { if (!valid) { app.util.validateRule(messageObj); - + // this.formData.categoryId = this.selCateObj.id } else { - this.okflag = true } }); 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 715019ec1..8096461ed 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue @@ -371,7 +371,6 @@ export default { this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) this.selCategoryArray.push(this.eventDetailCopy.categoryId) - this.selCateObj = { name: this.eventDetailCopy.categoryName, id: this.eventDetailCopy.categoryId diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index c35141f1a..cee63d86d 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -252,11 +252,11 @@ size="small" class="div-table-button--edit">处理 - 评价 + class="div-table-button--edit">评价 -->
- - -
-
- -
不满意
-
-
- -
满意
-
-
- -
非常满意
-
-
-
- 关闭 - 确定 -
-
-
@@ -419,17 +383,7 @@ export default { eventDetailData: {}, - //满意度评价 - showSatisfy: false, - selBad: false, - selGood: false, - selPerfect: false, - badurl: require('@/assets/img/satisfy-images/face1.png'), - badurl_light: require('@/assets/img/satisfy-images/face1_light.png'), - goodurl: require('@/assets/img/satisfy-images/face2.png'), - goodurl_light: require('@/assets/img/satisfy-images/face2_light.png'), - perfecturl: require('@/assets/img/satisfy-images/face3.png'), - perfecturl_light: require('@/assets/img/satisfy-images/face3_light.png'), + }; }, @@ -470,7 +424,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "query" } const { data, code, msg } = await requestPost(url, params) @@ -485,7 +440,7 @@ export default { }, async handleExport () { - const url = "/epmetuser/icBirthRecord/export"; + const url = "/gov/project/icEvent/export"; const { pageSize, pageNo, formData } = this; axios({ url: window.SITE_CONFIG["apiURL"] + url, @@ -563,72 +518,20 @@ export default { } }, - //满意度评价 - handleSatisfy (row) { - this.eventId = row.icEventId - this.showSatisfy = true - }, - clickSatisfy (type) { - if (type === 'bad') { - this.selGood = false - this.selPerfect = false - this.selBad = true - } else if (type === 'good') { - this.selGood = true - this.selPerfect = false - this.selBad = false - } else if (type === 'perfect') { - this.selGood = false - this.selPerfect = true - this.selBad = false - } - }, - - async handleComfirmSatisfy () { - let satisfyLevel = '' - if (!this.selBad && !this.selGood && !this.selPerfect) { - this.$message.info("请选择评价级别"); - } else { - if (this.selBad) { - satisfyLevel = 'bad' - } else if (this.selGood) { - satisfyLevel = 'good' - } else if (this.selPerfect) { - satisfyLevel = 'perfect' - } - } - const url = "/gov/project/icEvent/comment" - - let params = { - icEventId: this.eventId, - satisfaction: satisfyLevel - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.$message.success("评价成功"); - this.showSatisfy = false - this.getTableData() - - } else { - this.$message.error(msg) - } - }, - handleClose () { this.pageType = "list"; - this.eventId = "" + this.getTableData() }, handleOk () { this.pageType = "list"; - this.eventId = "" + this.pageNo = 1 this.getTableData() + }, handleEditSuccess () { diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue index 8bcc953cb..123ab3c39 100644 --- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue +++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue @@ -1,7 +1,6 @@