diff --git a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/classifyList.vue b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/classifyList.vue index 21f3aa3..ad4978b 100644 --- a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/classifyList.vue +++ b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/classifyList.vue @@ -195,11 +195,11 @@ export default { }, async getAgencylist () { - const url = '/gov/org/customeragency/orgtree' + const url = '/gov/org/customeragency/agencygridtree' // const url = 'http://yapi.elinkservice.cn/mock/102/gov/org/agency/agencylist' const params = { - customerId: this.customerId + // customerId: this.customerId } const { data, code, msg } = await requestPost(url, params) if (code === 0) { @@ -217,8 +217,8 @@ export default { }, async loadTable () { if (this.validate()) { - // const url = '/data/report/screenproject/selectprojectcategory' - const url = 'http://yapi.elinkservice.cn/mock/102/data/report/screenproject/selectprojectcategory' + const url = '/data/report/screen/project/selectprojectcategory' + // const url = 'http://yapi.elinkservice.cn/mock/102/data/report/screen/project/selectprojectcategory' if (this.staticType === 'end') { this.tableParams.startTime = '' @@ -309,7 +309,10 @@ export default { validate () { - + if (this.staticType === 'Interval' && (!this.tableParams.endTime || !this.tableParams.startTime)) { + this.$message.info("请选择起止日期") + return false + } if (this.staticType === 'end' && !this.tableParams.endTime) { this.$message.info("请选择结束日期") return false @@ -333,7 +336,7 @@ export default { console.log(title) - const url = "/data/report/screenproject/selectprojectcategory/export" + const url = "/data/report/screen/project/selectprojectcategory/export" console.log(this.tableParams) diff --git a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectDetail.vue b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectDetail.vue index c343859..e6f25be 100644 --- a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectDetail.vue +++ b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectDetail.vue @@ -1,92 +1,104 @@ @@ -103,6 +115,7 @@ export default { return { projectId: "",//项目id formData: {}, + showDetail: true, //查询条件标题宽度 labelWidth: '100px', @@ -121,15 +134,7 @@ export default { reportAddress: "",//上报位置 processList: [],// }, - fileList: [ - // { - // name: 'food.jpeg', - // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' - // }, { - // name: 'food2.jpeg', - // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' - // } - ], + previewPath: '' } }, @@ -138,6 +143,12 @@ export default { }, methods: { + setShowDetail () { + if (!this.showDetail) { + this.showDetail = true + } + + }, async initData (projectId) { this.startLoading() this.projectId = projectId @@ -162,7 +173,9 @@ export default { this.info = data[0] // info = copyKeyHave(info, data[0]); + this.info.processList.forEach(element => { + //关闭:close; 回应 response,结案closed_case,退回return,部门流转transfer,创建项目created if (element.operation === 'close') { element.operationShow = '关闭' @@ -177,13 +190,39 @@ export default { } else if (element.operation === 'created') { element.operationShow = '创建项目' } + element.attachments.forEach(attachItem => { + attachItem.name = attachItem.fileName + attachItem.url = attachItem.attachmentUrl + attachItem.type = attachItem.attachmentType + attachItem.format = attachItem.attachmentFormat + }); }); } }, + //下载 + handleFileDownload (file) { + + // if (file.format === 'jpg' || file.format === 'png' || file.format === 'gif') { + // this.showDetail = false + // this.previewPath = file.url + // } else { + var a = document.createElement('a'); + var event = new MouseEvent('click'); + a.download = file.name; + a.target = "_blank"//打开新的标签页 + + a.href = file.url; + a.dispatchEvent(event); + // } + + }, + closePic () { + this.showDetail = true + }, // 开启加载动画 startLoading () { loading = Loading.service({ @@ -369,5 +408,10 @@ export default { } } } +.btn_close { + display: flex; + justify-content: flex-end; + margin-bottom: 10px; +} diff --git a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectList.vue b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectList.vue index 7276145..1b4acb1 100644 --- a/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectList.vue +++ b/epmet-oper-web/src/views/modules/workPc/projectClassifyStatic/projectList.vue @@ -10,7 +10,10 @@
返回 + size="mini" + icon="el-icon-back" + type="warning" + plain>返回