diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index e7898638..91fcc877 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -339,18 +339,18 @@ export default { .then((res) => { this.importLoading = false this.importBtnTitle = '导入人员数据' - let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) - console.log('filename', fileName) - let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) - var url = window.URL.createObjectURL(blob) - var aLink = document.createElement('a') - aLink.style.display = 'none' - aLink.href = url - aLink.setAttribute('download', fileName) - document.body.appendChild(aLink) - aLink.click() - document.body.removeChild(aLink) //下载完成移除元素 - window.URL.revokeObjectURL(url) //释放掉blob对象 + // let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) + // console.log('filename', fileName) + // let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) + // var url = window.URL.createObjectURL(blob) + // var aLink = document.createElement('a') + // aLink.style.display = 'none' + // aLink.href = url + // aLink.setAttribute('download', fileName) + // document.body.appendChild(aLink) + // aLink.click() + // document.body.removeChild(aLink) //下载完成移除元素 + // window.URL.revokeObjectURL(url) //释放掉blob对象 this.getTableData() }) .catch( err => { diff --git a/src/views/modules/visual/basicinfo/cpts/incident-info.vue b/src/views/modules/visual/basicinfo/cpts/incident-info.vue index 4d116c6f..f3a86089 100644 --- a/src/views/modules/visual/basicinfo/cpts/incident-info.vue +++ b/src/views/modules/visual/basicinfo/cpts/incident-info.vue @@ -36,7 +36,10 @@
提报给: - {{ info.eventPerson.join("、") || "--" }} +
+
{{ item }}
+
{{ item }}
+
diff --git a/src/views/modules/visual/measure/dialogInfo.vue b/src/views/modules/visual/measure/dialogInfo.vue index 7b46272c..2a50f80d 100644 --- a/src/views/modules/visual/measure/dialogInfo.vue +++ b/src/views/modules/visual/measure/dialogInfo.vue @@ -51,31 +51,34 @@
-
+
服务方: {{ info.serviceShowName }}
-
- 实际服务时间: - {{ info.serviceStartTime }} 至
- {{ info.serviceEndTime }}
-
-
- 完成情况: - {{ info.finishResult == "resolved" ? "已解决" : "未解决" }} -
- {{ info.finishDesc }}
-
-
- 评价: - - - -
+ +
@@ -194,17 +197,18 @@ export default { if (code === 0) { // console.log('data-org----dict', data) this.info = data; - this.getAnalyse(); + this.getAnalyse(demandId); } else { this.$message.error(msg); } }, - async getAnalyse() { + async getAnalyse(demandId) { // const url = "/gov/org/customeragency/staffinagencylist"; this.loading = true; const url = "/heart/userdemand/demand-research-analysis"; let params = { firstCategoryCode: this.info.firstCategoryCode, + demandRecId: demandId, icResiUserId: this.info.icResiUserId, epmetUserIdList: [this.info.epmetUserId], queryOrigin: this.queryOrigin, diff --git a/src/views/modules/visual/measure/service.vue b/src/views/modules/visual/measure/service.vue index b0d9a180..e0caf574 100644 --- a/src/views/modules/visual/measure/service.vue +++ b/src/views/modules/visual/measure/service.vue @@ -116,7 +116,9 @@
- +
+ 导出 +
{ + console.log('resllll', res) + let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) + console.log('filename', fileName) + let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) + var url = window.URL.createObjectURL(blob) + var aLink = document.createElement('a') + aLink.style.display = 'none' + aLink.href = url + aLink.setAttribute('download', fileName) + document.body.appendChild(aLink) + aLink.click() + document.body.removeChild(aLink) //下载完成移除元素 + window.URL.revokeObjectURL(url) //释放掉blob对象 + }) + .catch((err) => { + console.log('获取导出情失败', err) + return this.$message.error('网络错误') + }) + }, getTreeData(data){ if (!Array.isArray(data)) return [] let arr = data.map(item => { @@ -468,8 +511,10 @@ export default { if (item.categoryName == params.name) code = item.categoryCode }) if (code) { + this.categoryCode = code const _arr = this.selectAgency[this.selectAgency.length - 1].split('-') const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' + this.pageNo = 1 this.getServiceList(_arr[0], orgType, code) } }, @@ -492,11 +537,15 @@ export default { pageSizeChangeHandleNew(val) { this.pageNo = 1; this.pageSize = val; - this.handleCascader(this.selectAgency) + const _arr = this.selectAgency[this.selectAgency.length - 1].split('-') + const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' + this.getServiceList(_arr[0], orgType, this.categoryCode) }, pageCurrentChangeHandleNew(val) { this.pageNo = val; - this.handleCascader(this.selectAgency) + const _arr = this.selectAgency[this.selectAgency.length - 1].split('-') + const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' + this.getServiceList(_arr[0], orgType, this.categoryCode) }, }, }; @@ -508,6 +557,9 @@ export default { scoped >