From ac43bb8ed96e1e0c045d86ce45d05f10b00a3150 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 9 May 2023 09:46:21 +0800 Subject: [PATCH 01/49] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=91=8A=E4=B8=8A=E4=BC=A0=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reportProcess/components/reportForm.vue | 2 +- src/views/reportProcess/examine.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue index 3e5d596..6b08142 100644 --- a/src/views/reportProcess/components/reportForm.vue +++ b/src/views/reportProcess/components/reportForm.vue @@ -110,7 +110,7 @@ - {{fileList[0].name}} + {{form.fileName}} diff --git a/src/views/reportProcess/examine.vue b/src/views/reportProcess/examine.vue index d2687ed..b0375fc 100644 --- a/src/views/reportProcess/examine.vue +++ b/src/views/reportProcess/examine.vue @@ -74,7 +74,6 @@ export default { }] }, processForm: { prcName : ''}, - visibleTree: false, formControl: true, disabled:false, @@ -109,7 +108,6 @@ export default { } this.getProcessDetail(params).then(res=>{ this.processForm = JSON.parse(this.processOld.dataJson) - this.$set(this.processForm,'prcName',this.prcName) this.disabled=false this.formControl= true if(this.$route.query.type=='yiban'){ From d76713dbac4c7a5b1e31b691e1c0885e67648d42 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 9 May 2023 11:12:14 +0800 Subject: [PATCH 02/49] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/report.js | 64 +++++++-- src/api/modules/reportProcess.js | 9 ++ src/views/Report/ReportDetail.vue | 135 ++++++++++++++---- src/views/Report/ReportList.vue | 2 +- .../reportProcess/components/reportForm.vue | 7 +- 5 files changed, 179 insertions(+), 38 deletions(-) create mode 100644 src/api/modules/reportProcess.js diff --git a/src/api/modules/report.js b/src/api/modules/report.js index caa2cad..76cce40 100644 --- a/src/api/modules/report.js +++ b/src/api/modules/report.js @@ -49,13 +49,13 @@ export default { params: id }) }, -labelUpdate(data){ - return request({ - url: 'api/tree-label/update', - method: 'POST', - data - }) -}, + labelUpdate(data){ + return request({ + url: 'api/tree-label/update', + method: 'POST', + data + }) + }, // 新增或编辑报告 reportAdd (data) { @@ -151,6 +151,52 @@ labelUpdate(data){ method: 'POST', params: data }) - } - // + }, + // 点赞 + goodLuck (data) { + return request({ + url: '/api/report/praise/'+data, + method: 'get', + }) + }, +// 取消点赞 + NogoodLuck (data) { + return request({ + url: '/api/report/delPraise/'+data, + method: 'get', + }) + }, + //删除评论 {id} + delJuggle (data) { + return request({ + url: '/api/report-comment/'+data, + method: 'delete', + }) + }, + // 添加评论 + addJuggle (data) { + return request({ + url: '/api/report-comment/add', + method: 'post', + data + }) + }, + // 获取评论 + getJuggle (data) { + return request({ + url: '/api/report-comment/page', + method: 'get', + params:data + }) + }, + //评分 + addScore(data) { + return request({ + url: '/api/report-rating/rating', + method: 'put', + params:data + }) + }, + + } diff --git a/src/api/modules/reportProcess.js b/src/api/modules/reportProcess.js new file mode 100644 index 0000000..f015f68 --- /dev/null +++ b/src/api/modules/reportProcess.js @@ -0,0 +1,9 @@ +import { instance as request } from '@/utils/request' +export default { + downFile (data) { + return request({ + url: '/api/sys/file/'+data, + method: 'GET', + }) + }, +} diff --git a/src/views/Report/ReportDetail.vue b/src/views/Report/ReportDetail.vue index fd4c33e..b1f0e0e 100644 --- a/src/views/Report/ReportDetail.vue +++ b/src/views/Report/ReportDetail.vue @@ -42,11 +42,11 @@
- 报告满意度: + 报告满意度:
- - + +
@@ -56,19 +56,23 @@ 评论
- + - 发表评论 + 发表评论 -
-
sss
+
+
+
+ {{item.userName.slice(0,1)}} +
+
-
ssss
+
{{ item.comment }}
-
time
- 删除 +
{{ item.createTime }}
+ 删除
@@ -89,13 +93,85 @@ export default { data () { return { isShow: false, - value1:'', + userRating:'', watermarkText: '', // 水印 content: '', - row: {} + row: {}, + comment:'', + reportId:'', + commonList:[], + q:{ + pageNo:1, + pageSize:5, + + }, + userId:this.$store.getters.userInfo.USID, + userName:this.$store.getters.userInfo.USNAME, } }, methods: { + //点赞 + pointZan(type){ + if(type== 'n'){ + this.$api.report.NogoodLuck(this.reportId).then(res=>{ + this.isShow=!this.isShow + this.$message.success("取消成功") + }).catch(()=>{ + this.$message.warning("操作失败") + }) + }else{ + this.$api.report.goodLuck(this.reportId).then(res=>{ + this.isShow=!this.isShow + this.$message.success("点赞成功") + }).catch(()=>{ + this.$message.warning("操作失败") + }) + } + }, + //评分 + saveScore(){ + this.$api.report.addScore({userRating:+this.userRating,reportId:this.reportId}).then(res=>{ + + }) + }, + addJuggle(){ + if(this.comment!=''){ + this.$api.report.addJuggle({ + comment:this.comment, + reportId:this.reportId, + userId: this.userId, + userName:this.userName + }).then(res=>{ + this.$message.success("评论成功") + this.comment='' + this.getComment() + }) + }else { + this.$message.warning("请填写评论") + } + }, + // 删除评论 + delJugg(id) { + this.$confirm('确认删除该条评论?', '删除', { + confirmButtonText: '确定', + cancelButtonText: '取消', + confirmButtonClass: 'common-button-primary', + + type: 'warning' + }).then(() => { + this.$api.report.delJuggle(id).then(res=>{ + this.$message.success("删除成功") + this.getComment() + }) + }) + }, + // 获取评论 + getComment(){ + this.$api.report.getJuggle({...this.q,reportId:this.reportId}).then(res=>{ + this.commonList=res.data.records + this.total=res.data.total + }) + }, getKeyContent(list) { if (list) { let keyContent = [] @@ -114,17 +190,17 @@ export default { } }, // 预览 - previewRow () { - if (!this.$route.query.row) { - this.$router.push({ path: '/report/list', query: { id: this.$route.query.id } }) - return - } - this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}` - this.row = JSON.parse(this.$route.query.row) - this.$api.report.reportGetReportHtmlId({ id: this.row.id }).then(({ data }) => { - this.content = data.content - }) - }, + // previewRow () { + // if (!this.$route.query.row) { + // this.$router.push({ path: '/report/list', query: { id: this.$route.query.id } }) + // return + // } + // this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}` + // this.row = JSON.parse(this.$route.query.row) + // this.$api.report.reportGetReportHtmlId({ id: this.row.id }).then(({ data }) => { + // this.content = data.content + // }) + // }, // 下载 downloadRow (row) { // this.$confirm('此操作将下载所选数据文件, 是否继续?', '提示', { @@ -137,12 +213,11 @@ export default { }) // }) }, - saveScore(){ - - } }, created () { - this.previewRow() + this.reportId=this.$route.query.reportId + // this.previewRow() + this.getComment() } } @@ -255,6 +330,12 @@ export default { text-align: center; border-right: 1px solid #e6f6fe; margin: 0 auto; + .nameCir{ + background-color: pink; + width: 50px; + height: 50px; + border-radius: 50%; + } } .juggle_right{ position: relative; diff --git a/src/views/Report/ReportList.vue b/src/views/Report/ReportList.vue index acdc500..becbab3 100644 --- a/src/views/Report/ReportList.vue +++ b/src/views/Report/ReportList.vue @@ -490,7 +490,7 @@ export default { }, // 跳转到详情 goReportDetail(row) { - this.$router.push({path: '/report/detail', query: {id: this.$route.query.id, row: JSON.stringify(row)}}) + this.$router.push({path: '/report/detail', query: {id: this.$route.query.id, reportId: row.id}}) } }, created() { diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue index 6b08142..247a5fc 100644 --- a/src/views/reportProcess/components/reportForm.vue +++ b/src/views/reportProcess/components/reportForm.vue @@ -111,7 +111,7 @@ {{form.fileName}} - + @@ -239,6 +239,11 @@ export default { } }, methods: { + downFile(id){ + this.$api.reportProcess.downFile(id).then(res=>{ + + }) + }, handleClick(){ this.orgTableVal=this.form.department this.orgTableValName=this.form.departmentName From 6c01b7f5870ad656c58fb8ec83e0b12f8dfd23f3 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 9 May 2023 15:31:50 +0800 Subject: [PATCH 03/49] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=8A=A5=E5=91=8A=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=BF=83=EF=BC=88?= =?UTF-8?q?=E6=B2=A1=E5=AE=8C=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 +- src/api/modules/report.js | 9 ++- src/api/modules/reportProcess.js | 2 +- src/components/OrgTable.vue | 4 +- src/utils/date.js | 11 +++ src/views/Report/ReportDetail.vue | 79 +++++++++++++------ src/views/Report/ReportList.vue | 1 - src/views/Report/ReportManager.vue | 45 +++++------ .../components/AuditOperation.vue | 2 +- .../reportProcess/components/reportForm.vue | 71 ++++++++++++++--- src/views/reportProcess/examine.vue | 3 +- src/views/reportProcess/launch.vue | 11 ++- src/views/userCenter/processCenter.vue | 17 +++- .../userCenter/processCenter/gencyProcess.vue | 2 + 14 files changed, 191 insertions(+), 72 deletions(-) diff --git a/src/App.vue b/src/App.vue index cc60772..d7d1a57 100644 --- a/src/App.vue +++ b/src/App.vue @@ -110,9 +110,9 @@ export default { z-index: 7777 !important; } - .el-cascader__tags .el-tag { - max-width: 40px !important; - } + //.el-cascader__tags .el-tag { + // max-width: 40px !important; + //} .el-cascader .el-input .el-input__inner { height: 24px !important; diff --git a/src/api/modules/report.js b/src/api/modules/report.js index 76cce40..3df681a 100644 --- a/src/api/modules/report.js +++ b/src/api/modules/report.js @@ -76,6 +76,13 @@ export default { } }) }, + // 获取报告详情 + getReportDetail (data){ + return request({ + url: `/api/report/detail/${data}`, + method: 'GET' + }) + }, // 获取报告预览 reportGetReportHtmlId (data) { return request({ @@ -197,6 +204,6 @@ export default { params:data }) }, - + // 获取 } diff --git a/src/api/modules/reportProcess.js b/src/api/modules/reportProcess.js index f015f68..14bfa7d 100644 --- a/src/api/modules/reportProcess.js +++ b/src/api/modules/reportProcess.js @@ -2,7 +2,7 @@ import { instance as request } from '@/utils/request' export default { downFile (data) { return request({ - url: '/api/sys/file/'+data, + url: '/api/sys/file/'+data+'/download', method: 'GET', }) }, diff --git a/src/components/OrgTable.vue b/src/components/OrgTable.vue index 0730ce0..92b63d1 100644 --- a/src/components/OrgTable.vue +++ b/src/components/OrgTable.vue @@ -93,7 +93,7 @@ @@ -595,7 +595,7 @@ export default { } else { const dataItem = this.checkedList[0] this.checkedName = dataItem.uname || dataItem.USNAME || dataItem.orgName - const id = dataItem.id || dataItem.USID || dataItem.usid + const id = dataItem.id || dataItem.USID || dataItem.usid || dataItem.orgCode this.$emit('input', id) this.$emit('on-checked', this.checkedName) this.$emit('on-dept', dataItem.pOrgId, dataItem.pOrgName) diff --git a/src/utils/date.js b/src/utils/date.js index 6d7bb58..7165094 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -33,3 +33,14 @@ export function formatDate (value, fmt) { return value.substr(0, fmt.length) } } +export function formatDate2 (value, fmt) { + let dateObject = new Date(value); + let year = dateObject.getFullYear(); + let month = dateObject.getMonth() + 1; + let day = dateObject.getDate(); + let hours = dateObject.getHours(); + let minutes = dateObject.getMinutes(); + let seconds = dateObject.getSeconds(); + + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; +} diff --git a/src/views/Report/ReportDetail.vue b/src/views/Report/ReportDetail.vue index b1f0e0e..293a190 100644 --- a/src/views/Report/ReportDetail.vue +++ b/src/views/Report/ReportDetail.vue @@ -2,6 +2,7 @@
+ {{ row.name || '-' }}
@@ -9,7 +10,7 @@ -
{{ row.createUserName }}
+
{{ row.uploaderName }}
@@ -29,7 +30,7 @@ -
{{ row.labelList || '-' }}
+
{{ row.labelList&&row.labelList.join(',') || '-' }}
@@ -67,16 +68,23 @@
{{item.userName.slice(0,1)}}
+
+ {{item.orgName+"【"+item.userName+"】"}} +
{{ item.comment }}
-
{{ item.createTime }}
- 删除 +
{{ item.createTime && formatDate2(item.createTime) }}
+ 删除
+
@@ -86,12 +94,15 @@ @@ -255,7 +285,7 @@ export default { font-size: 14px; font-weight: 400; color: #595959; - width: 64px; + width: 85px; border-right: 1px solid #BFBFBF; margin-right: 9px; } @@ -329,12 +359,17 @@ export default { width: 15%; text-align: center; border-right: 1px solid #e6f6fe; - margin: 0 auto; + .nameCir{ background-color: pink; - width: 50px; - height: 50px; + width: 60px; + height: 60px; border-radius: 50%; + text-align: center; + line-height: 60px; + color:#fff; + font-size: 18px; + margin: 20px calc(50% - 30px); } } .juggle_right{ diff --git a/src/views/Report/ReportList.vue b/src/views/Report/ReportList.vue index becbab3..8814492 100644 --- a/src/views/Report/ReportList.vue +++ b/src/views/Report/ReportList.vue @@ -121,7 +121,6 @@ default-expand-all :filter-node-method="filterNode" ref="tree" - check-strictly @check="getHalfCheckedNode" > diff --git a/src/views/Report/ReportManager.vue b/src/views/Report/ReportManager.vue index d8b6fa4..cdfb919 100644 --- a/src/views/Report/ReportManager.vue +++ b/src/views/Report/ReportManager.vue @@ -55,8 +55,6 @@ :filter-node-method="filterNode" ref="tree" @check="getHalfCheckedNode" - check-strictly - @check-change="setCheckedNodes" :key="treeKey" >