From 1a179c622d64dc8a7e88c997eb77b7c2c8dac3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Fri, 21 Oct 2022 16:54:51 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=86=9C=E4=B8=9A=E6=89=A7=E6=B3=95BUG?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 1 + src/router/index.js | 7 +- src/views/lawEnforcement/basis/basis.vue | 3 +- src/views/lawEnforcement/case/caseDetail.vue | 1 + .../lawEnforcement/caseAllocation/caseAdd.vue | 65 ++--- .../caseAllocation/caseDetail.vue | 23 +- .../caseAllocation/caseEdit.vue | 6 +- .../caseAllocation/caseEnforceList.vue | 89 ++++--- .../caseAllocation/caseListNew.vue | 6 +- .../lawEnforcement/caseQuery/caseQuery.vue | 9 +- .../caseQuery/caseQueryDocument.vue | 103 ++++---- .../supervise/enterpriseRelation.vue | 8 +- .../supervise/individualRelation.vue | 6 +- .../lawEnforcement/task/signInRecord.vue | 11 +- src/views/lawEnforcement/task/task.vue | 2 +- src/views/lawEnforcement/task/taskHandle.vue | 223 ++++++++++++++---- src/views/lawEnforcement/trace/feed.vue | 4 +- src/views/lawEnforcement/trace/fertilizer.vue | 4 +- src/views/lawEnforcement/trace/pesticides.vue | 5 +- src/views/lawEnforcement/trace/product.vue | 4 +- src/views/lawEnforcement/trace/seed.vue | 4 +- src/views/lawEnforcement/trace/veterinary.vue | 4 +- .../images/lawEnforcement/icon/icon_xckc.png | Bin 0 -> 525 bytes 23 files changed, 385 insertions(+), 203 deletions(-) create mode 100644 static/images/lawEnforcement/icon/icon_xckc.png diff --git a/src/permission.js b/src/permission.js index 03fd72cc..91ffbd4a 100644 --- a/src/permission.js +++ b/src/permission.js @@ -127,6 +127,7 @@ const whiteList = [ '/sunVillage_info/list_vote', //详情页 '/sunVillage_info/list_vote_detail', //详情页 '/sunVillage_info/list_vote_form', //详情页 + ] router.beforeEach((to, from, next) => { diff --git a/src/router/index.js b/src/router/index.js index f1123146..b51ccf90 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3825,7 +3825,6 @@ export const constantRoutes = [ meta: { title: '巡查登记', hidden: true, - keepAlive: true }, component: (resolve) => require(['@/views/lawEnforcement/caseAllocation/caseAdd'], resolve) }, @@ -3834,8 +3833,7 @@ export const constantRoutes = [ name: 'lawEnforcementCaseEdit', meta: { title: '登记修改', - hidden: true, - keepAlive: true + hidden: true }, component: (resolve) => require(['@/views/lawEnforcement/caseAllocation/caseEdit'], resolve) }, @@ -3844,8 +3842,7 @@ export const constantRoutes = [ name: 'lawEnforcementCaseListNew', meta: { title: '登记列表', - hidden: true, - keepAlive: true + hidden: true }, component: (resolve) => require(['@/views/lawEnforcement/caseAllocation/caseListNew'], resolve) }, diff --git a/src/views/lawEnforcement/basis/basis.vue b/src/views/lawEnforcement/basis/basis.vue index 1084daf5..9d9a82ee 100644 --- a/src/views/lawEnforcement/basis/basis.vue +++ b/src/views/lawEnforcement/basis/basis.vue @@ -89,6 +89,7 @@ }, methods: { getList(){ + console.log('aaaa') var _this = this; getNewsList(_this.queryParams).then(response => { response.rows.map(res=>{ @@ -124,7 +125,7 @@ this.loading = false; this.queryParams.title = this.searchInput; this.queryParams.pageNum = 1; - this.getList(); + // this.getList(); }, onClickLeftIndex(){ this.$router.push('/lawEnforcement/index_new') diff --git a/src/views/lawEnforcement/case/caseDetail.vue b/src/views/lawEnforcement/case/caseDetail.vue index 35c5efc0..d0b9bfe3 100644 --- a/src/views/lawEnforcement/case/caseDetail.vue +++ b/src/views/lawEnforcement/case/caseDetail.vue @@ -2136,6 +2136,7 @@ export default { /** 查询审批历史展示步骤条 */ getHistoryList(formData,type) { + console.log(formData) if (formData.instanceId != null && formData.instanceId != "") { var queryParams = { processInstanceId: formData.instanceId diff --git a/src/views/lawEnforcement/caseAllocation/caseAdd.vue b/src/views/lawEnforcement/caseAllocation/caseAdd.vue index 330ee7fb..88305f36 100644 --- a/src/views/lawEnforcement/caseAllocation/caseAdd.vue +++ b/src/views/lawEnforcement/caseAllocation/caseAdd.vue @@ -267,36 +267,36 @@ -
- - - -
- - 序号 - 执行人员 - 执法证号 - 带队人 - - - {{index+1}} - {{item.enforcerName}} - {{item.enforcerNum}} - -
- - -
-
-
- -
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

保存

保存并提交

@@ -533,7 +533,10 @@ // do anything you want if (Cookies.get('enforcer')){ JSON.parse(Cookies.get('enforcer')).map((res,index)=>{ - this.tEnforceCaseHandlerList.push(res) + let array1 = this.tEnforceCaseHandlerList.filter(function (e) { return e.enforcerName == res.enforcerName; }); + if ( array1.length < 1 ){ + this.tEnforceCaseHandlerList.push(res) + } }) } } diff --git a/src/views/lawEnforcement/caseAllocation/caseDetail.vue b/src/views/lawEnforcement/caseAllocation/caseDetail.vue index be91056f..15b05e97 100644 --- a/src/views/lawEnforcement/caseAllocation/caseDetail.vue +++ b/src/views/lawEnforcement/caseAllocation/caseDetail.vue @@ -1,7 +1,7 @@ - - + + +
-
- - - -
- - 序号 - 执行人员 - 执法证号 - + + + +
+ + 执行人员 + 执法证号 + 签到次数 + 带队人 + + + + {{item.enforcerName}} + {{item.enforcerNum}} + {{item.num}} + +
+ +
+
+
+
+
+
+
+ +
+ + + +
+ + + + + + + + + + - - {{index+1}} - {{item.enforcerName}} - {{item.enforcerNum}} - +
+ + + + + + + +
-
-
- - - -
- - - - - - +
+ + + + + + + + + + + + + +
- - - - - -
-
- - - - - - - - - - -
+
+ + + + + +
+ -
- - - - - -

审批流程

@@ -1124,7 +1443,23 @@ import { getExecuteByCaseId , getEndingByCaseId , progressList , - getOnrecordByCaseId + getOnrecordByCaseId, + getDeptName, + addSurvey, + updateSurvey, + addProgress, + updateCase, + addOnrecord, + commonUpload, + updatePutrecord, + updateSampling, + addSampling, + addPutrecord, + updateEvidence, + addEvidence, + caseHandlerList, + enforceLockinCount, + getCaseNum } from "@/api/lawEnforcement/index"; import law from "@/components/common/law_footer"; import request from "@/utils/request"; @@ -1135,6 +1470,10 @@ export default { }, data() { return { + activeNames: ['1'], + activeNames1: ['1'], + activeNames2: ['1'], + showBankType:false, showPayeeType:false, showPicker:false, @@ -1146,6 +1485,8 @@ export default { payeeType:'', value:'', type:'', + surveyResult:'', + conclusion:'', progressLength:0, zhenchaShow:true, @@ -1165,6 +1506,9 @@ export default { qualityStatusOptions:[], samplingSceneOptions:[], conclusionOptions:[], + surveyResultOptions:[], + surveyResultOptionsY:[], + surveyResultOptionsN:[], minDate: new Date(2020, 0, 1), maxDate: new Date(2025, 10, 1), currentDate: new Date(2021, 0, 17), @@ -1456,6 +1800,7 @@ export default { historyList: [], evidencHistoryList: [], treatHistoryList: [], + putRecordHistoryList: [], // 检测结果数据 detectResults: [], decisionEnforcers: [], @@ -1529,6 +1874,19 @@ export default { this.getDicts("aging_status").then(response => { this.agingStatusOptions = response.data; }); + this.getDicts("team_category").then(response => { + this.belongTeamOptions = response.data; + }); + this.getDicts("approve_type").then(response => { + response.data.map(res=>{ + if (res.dictValue == '1'||res.dictValue == '3'||res.dictValue == '4'){ + this.surveyResultOptionsY.push(res); + } + if (res.dictValue == '1'||res.dictValue == '2'){ + this.surveyResultOptionsN.push(res); + } + }) + }); // 关联方案下拉框 var schemeQueryParam = { applyStatus: "1" @@ -1538,9 +1896,6 @@ export default { this.schemeOptions = response.data; this.getInformation(); }); - - - // treeselect().then((response) => { // this.deptOptions = response.data; // }); @@ -1627,17 +1982,24 @@ export default { }, getInformation(){ getCase(this.$route.query.id).then(response => { - console.log(response) - response.data.caseSource = this.selectDictLabel(this.caseSourceOptions, response.data.caseSource); - response.data.schemeId = this.selectDictScheme(this.schemeOptions, response.data.schemeId); - response.data.typeLable = this.selectDictLabel(this.typeOptions, response.data.type); - response.data.sex = this.selectDictLabel(this.sexOptions, response.data.sex); - response.data.nation = this.selectDictLabel(this.nationOptions, response.data.nation); + response.data.schemeId = response.data.schemeId == '' ? '' : this.selectDictScheme(this.schemeOptions, response.data.schemeId); + response.data.typeLable = response.data.typeLable == '' ? '' : this.selectDictLabel(this.typeOptions, response.data.type); + response.data.nation = response.data.nation == '' ? '' : this.selectDictLabel(this.nationOptions, response.data.nation); + + response.data.caseSource = response.data.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, response.data.caseSource); + response.data.belongTeam = response.data.belongTeam == '' ? '' : this.selectDictLabel(this.belongTeamOptions, response.data.belongTeam); + response.data.type = response.data.type == '' ? '' : this.selectDictLabel(this.typeOptions, response.data.type); + response.data.sex = response.data.sex == '' ? '' : this.selectDictLabel(this.sexOptions, response.data.sex); + getDeptName(response.data.deptId).then(res => { + response.data.deptId = res.data.deptName + }); if (response.data.attachement){ var attachement = response.data.attachement.split( "," ); + response.data.attachementList = [] attachement.forEach(res=>{ - this.attachementOption.push({ - url:res + response.data.attachementList.push({ + url:'/api'+res, + isImage: true }); }) } @@ -1690,22 +2052,38 @@ export default { if (this.form.id != null && this.form.id != "") { this.surveyForm.caseId = this.form.id; getSurveyByCaseId(this.form.id).then(responseSurvey => { - console.log(responseSurvey) if (responseSurvey.data != undefined) { _this.surveyForm = responseSurvey.data; _this.instanceId = responseSurvey.data.instanceId; - _this.tEnforceCaseHandlerList = responseSurvey.data.tEnforceCaseHandlerList; + if (responseSurvey.data.tEnforceCaseHandlerList){ + _this.tEnforceCaseHandlerList = responseSurvey.data.tEnforceCaseHandlerList; + responseSurvey.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{ + responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false + let data = { + enforcerId : responseEnforce.enforcerId, + caseId:this.form.id, + relationType: "2" + } + enforceLockinCount(data).then(resEnforceLockin => { + _this.$set(_this.tEnforceCaseHandlerList[index],"num",resEnforceLockin.data) + }); + }); + } + }else{ + } if (responseSurvey.data.attachement){ var attachement = responseSurvey.data.attachement.split( "," ); attachement.forEach(response=>{ this.surveyOption.push({ - url:response + url:'/api'+response, + isImage: true }); + this.openPic2.push(response) }) } - _this.surveyForm.gender = this.selectDictLabel(this.sexOptions, _this.surveyForm.gender); - _this.surveyForm.surveyResult = this.selectDictLabel(this.surveyResultOptions, _this.surveyForm.surveyResult); + // _this.surveyForm.gender = this.selectDictLabel(this.sexOptions, _this.surveyForm.gender); + _this.surveyResult = this.selectDictLabel(this.surveyResultOptions, _this.surveyForm.surveyResult); _this.surveyForm.caseName = this.form.caseName; _this.surveyForm.schemeId = this.form.schemeId; // 查询审批历史记录 @@ -1722,37 +2100,94 @@ export default { getputRecordByCaseId(_this.form.id).then(responsePutRecord => { getSamplingByCaseId(_this.form.id).then(responseSampling => { if(responsePutRecord.data != undefined){ + if (responsePutRecord.data.attachement){ + var attachement = responsePutRecord.data.attachement.split( "," ); + attachement.forEach(response=>{ + this.samplingOption.push({ + url:'/api' + response, + isImage: true + }); + }) + // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + } _this.putRecordForm = responsePutRecord.data; - _this.tEnforcePutRecordHandlerList = responsePutRecord.data.tEnforceCaseHandlerList; - _this.tEnforceDetainHandlerList = responsePutRecord.data.tEnforceDetainHandlerList; + _this.tEnforceDetainHandlerList = responsePutRecord.data.tEnforceDetainHandlerList == null ? [] : responsePutRecord.data.tEnforceDetainHandlerList; + if (responsePutRecord.data.id == ''){ + + // 立案表单没有保存之前,办理人员默认获取上一节点勘察的办理人员列表 + const queryEnforcerParams = { + relationType: "2", + caseId: this.form.id + }; + caseHandlerList(queryEnforcerParams).then(responseHandlerList => { + responseHandlerList.data.relationType = "3"; + _this.tEnforcePutRecordHandlerList = responseHandlerList.data; + if (responseHandlerList.data){ + responseHandlerList.data.map((responseEnforce,index)=>{ + responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false + + let data = { + enforcerId : responseEnforce.enforcerId, + caseId:this.form.id, + relationType: "3" + } + enforceLockinCount(data).then(resEnforceLockin => { + _this.$set(_this.tEnforcePutRecordHandlerList[index],"num",resEnforceLockin.data) + }); + + }); + } + }); + }else{ + _this.tEnforcePutRecordHandlerList = responsePutRecord.data.tEnforceCaseHandlerList; + if (responsePutRecord.data.tEnforceCaseHandlerList){ + console.log(responsePutRecord.data.tEnforceCaseHandlerList) + responsePutRecord.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{ + responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false + let data = { + enforcerId : responseEnforce.enforcerId, + caseId:this.form.id, + relationType: "3" + } + enforceLockinCount(data).then(resEnforceLockin => { + _this.$set(_this.tEnforcePutRecordHandlerList[index],"num",resEnforceLockin.data) + }); + }); + } + console.log(_this.tEnforcePutRecordHandlerList) + } + + }else{ + _this.putRecordForm.attachement = []; + _this.putRecordForm.attachementList = []; } if(responseSampling.data != undefined) { _this.samplingForm = responseSampling.data; _this.tEnforceSamplingGoodsList = responseSampling.data.tEnforceSamplingGoodsList; for (var i = 0 ; i < responseSampling.data.tEnforceSamplingGoodsList.length ; i++){ - if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){ + responseSampling.data.tEnforceSamplingGoodsList[i].showTimeliness = false; + if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement != null){ responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = []; var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," ); Sampling.forEach(response=>{ responseSampling.data.tEnforceSamplingGoodsList[i].attachementList.push({ - url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response, + url:'/api' + response, + isImage: true }); + // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API }) + }else{ + responseSampling.data.tEnforceSamplingGoodsList[i].attachement = []; } } console.log(responseSampling.data.tEnforceSamplingGoodsList) } - if (responsePutRecord.data.attachement){ - var attachement = responsePutRecord.data.attachement.split( "," ); - attachement.forEach(response=>{ - this.samplingOption.push({ - url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response, - }); - }) - } + _this.putRecordForm.caseName = this.form.caseName; _this.putRecordForm.schemeId = this.form.schemeId; + // 查询审批历史记录 + _this.getHistoryList(_this.putRecordForm,'putRecord'); }); }); } @@ -1774,47 +2209,110 @@ export default { responseReport.data.goodsId = goodsId; responseReport.data.goodsName = goodsName; responseReport.data.attachementList = []; - + if (responseReport.data.attachement){ + var Evidence = responseReport.data.attachement.split( "," ); + console.log(Evidence) + Evidence.forEach(response=>{ + responseReport.data.attachementList.push({ + url:'/api' + response, + }); + }) + }else{ + responseReport.data.attachement = []; + responseReport.data.attachementList = []; + } _this.detectResults.push(responseReport.data); } else { var goodsObj = { "goodsId": goodsId, - "goodsName": goodsName + "goodsName": goodsName, + attachement:[] }; _this.detectResults.push(goodsObj); } }); + // if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){ + // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = []; + // var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," ); + // Sampling.forEach(response=>{ + // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList.push({ + // url: '/api' + response, + // }); + // // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + // }) + // }else{ + // responseSampling.data.tEnforceSamplingGoodsList[i].attachement = []; + // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = []; + // } } + + + if (responseEvidence.data != undefined) { responseEvidence.data.attachementList = []; + _this.tEnforceEvidenceHandlerList = responseEvidence.data.tEnforceCaseHandlerList; + if (responseEvidence.data.tEnforceCaseHandlerList){ + responseEvidence.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{ + responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false + let data = { + enforcerId : responseEnforce.enforcerId, + caseId:this.form.id, + relationType: "4" + } + enforceLockinCount(data).then(resEnforceLockin => { + _this.$set(_this.tEnforceEvidenceHandlerList[index],"num",resEnforceLockin.data) + }); + + }); + } responseEvidence.data.conclusion = this.selectDictLabel(this.conclusionOptions,responseEvidence.data.conclusion) _this.evidenceForm = responseEvidence.data; - _this.tEnforceEvidenceHandlerList = responseEvidence.data.tEnforceCaseHandlerList; - console.log(responseEvidence.data) + + if (responseEvidence.data.attachement){ var Evidence = responseEvidence.data.attachement.split( "," ); Evidence.forEach(response=>{ responseEvidence.data.attachementList.push({ - url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response, + url:'/api' + response, }); }) + // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + }else{ + responseEvidence.data.attachement = []; } - } - setTimeout(function () { - for (var i = 0 ; i < responseSampling.data.tEnforceSamplingGoodsList.length ; i++){ - console.log(_this.detectResults[0]) - if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){ - var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," ); - Sampling.forEach(response=>{ - _this.detectResults[i].attachementList.push({ - url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response, + }else{ + _this.evidenceForm.attachement = []; + + + // 取证表单没有保存之前,办理人员默认获取上一节点立案的办理人员列表 + const queryEnforcerParams = { + relationType: "3", + caseId: this.form.id + }; + caseHandlerList(queryEnforcerParams).then(responseHandlerList => { + responseHandlerList.data.relationType = "4"; + _this.tEnforceEvidenceHandlerList = responseHandlerList.data; + + if (responseHandlerList.data){ + responseHandlerList.data.map((responseEnforce,index)=>{ + responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false + let data = { + enforcerId : responseEnforce.enforcerId, + caseId:this.form.id, + relationType: "4" + } + enforceLockinCount(data).then(resEnforceLockin => { + _this.$set(_this.tEnforceEvidenceHandlerList[index],"num",resEnforceLockin.data) }); - }) + + }); } - } - },1000) + }); + + } + _this.evidenceForm.caseName = this.form.caseName; _this.evidenceForm.schemeId = this.form.schemeId; // 查询审批历史记录 @@ -2165,6 +2663,15 @@ export default { row.durationInMillis / 1000 ); }); + }else if (type == 'putRecord'){ + this.putRecordHistoryList = response.rows; + this.putRecordHistoryList.forEach((row) => { + row.startTime = this.format(row.startTime, "yyyy-MM-dd HH:mm:ss"); + row.endTime = this.format(row.endTime, "yyyy-MM-dd HH:mm:ss"); + row.durationInMillis = this.formatTotalDateSub( + row.durationInMillis / 1000 + ); + }); }else{ this.historyList = response.rows; this.historyList.forEach((row) => { @@ -2273,6 +2780,9 @@ export default { top: 36px; } } +/deep/ .van-collapse-item__content{ + padding: 0; +} .van-row{ display: flex; flex-wrap: wrap; @@ -2413,6 +2923,7 @@ export default { .peopleList{ padding: 0 3%; margin-top: 10PX; + text-align: center; .van-row{ margin-bottom: 10PX; .van-col{ @@ -2425,6 +2936,13 @@ export default { } } } + .icon_box{ + display: flex; + justify-content: space-around; + /deep/ .van-checkbox{ + justify-content: center; + } + } } .cf{ padding: 0 3%; diff --git a/src/views/lawEnforcement/caseAllocation/caseDistribution.vue b/src/views/lawEnforcement/caseAllocation/caseDistribution.vue index 174c908c..f4319abd 100644 --- a/src/views/lawEnforcement/caseAllocation/caseDistribution.vue +++ b/src/views/lawEnforcement/caseAllocation/caseDistribution.vue @@ -179,8 +179,6 @@ next('/url') //放行到指定的路由 */ next(vm => { - console.log(from.path) - console.log(to.path) if (from.path === '/lawEnforcement/caseAllocation'){ location.reload() } @@ -282,6 +280,7 @@ $route (to, from ) { // 监听路由变化, 实现类似 小程序的 onShow 事件 if (to.path === '/lawEnforcement/caseDistribution') { + console.log('aaaa') // do anything you want if (Cookies.get('enforcer')){ getSurveyByCaseId(this.$route.query.id).then((response) => { @@ -295,7 +294,10 @@ }) }else { JSON.parse(Cookies.get('enforcer')).map((res,index)=>{ + let array1 = this.tEnforceCaseHandlerList.filter(function (e) { return e.enforcerName == res.enforcerName; }); + if ( array1.length < 1 ){ this.tEnforceCaseHandlerList.push(res) + } }) } }); diff --git a/src/views/lawEnforcement/caseAllocation/caseListNew.vue b/src/views/lawEnforcement/caseAllocation/caseListNew.vue index 12995861..e5f60d28 100644 --- a/src/views/lawEnforcement/caseAllocation/caseListNew.vue +++ b/src/views/lawEnforcement/caseAllocation/caseListNew.vue @@ -153,8 +153,8 @@ this.loading = false; this.finished = false; this.queryApplyParams.pageNum = 1 ; - this.getList(); this.$notify({ type: 'success', message: '提交成功' }); + location.reload(); }).catch(() => {}); } }, diff --git a/src/views/lawEnforcement/supervise/enterprise.vue b/src/views/lawEnforcement/supervise/enterprise.vue index bd84d177..afe5f2fd 100644 --- a/src/views/lawEnforcement/supervise/enterprise.vue +++ b/src/views/lawEnforcement/supervise/enterprise.vue @@ -99,6 +99,9 @@ if (this.searchInput == ''){ location.reload() } + if (this.searchInput == this.queryParams.companyName){ + return; + } this.list = []; this.loading = false; this.finished = false; diff --git a/src/views/lawEnforcement/supervise/enterpriseDetail.vue b/src/views/lawEnforcement/supervise/enterpriseDetail.vue index 61126875..c7577c4f 100644 --- a/src/views/lawEnforcement/supervise/enterpriseDetail.vue +++ b/src/views/lawEnforcement/supervise/enterpriseDetail.vue @@ -18,7 +18,7 @@
-

关联案件

+

关联案件

diff --git a/src/views/lawEnforcement/task/taskDetail.vue b/src/views/lawEnforcement/task/taskDetail.vue index e22c6315..60daf9db 100644 --- a/src/views/lawEnforcement/task/taskDetail.vue +++ b/src/views/lawEnforcement/task/taskDetail.vue @@ -13,13 +13,13 @@ - + - +
@@ -102,7 +102,7 @@ diff --git a/src/views/lawEnforcement/trace/fertilizer.vue b/src/views/lawEnforcement/trace/fertilizer.vue index 71d18ebe..1a7769ac 100644 --- a/src/views/lawEnforcement/trace/fertilizer.vue +++ b/src/views/lawEnforcement/trace/fertilizer.vue @@ -15,7 +15,7 @@
-

立即查询

+

立即查询

{ response.rows.map(res=>{ this.list.push(res); @@ -102,12 +106,6 @@ } }); }, - goSubmit(){ - this.list = []; - this.queryParams.pageNum = 1 ; - this.finished = false; - this.loading = false; - } }, } diff --git a/src/views/lawEnforcement/trace/pesticides.vue b/src/views/lawEnforcement/trace/pesticides.vue index d39ef060..9ff27c7d 100644 --- a/src/views/lawEnforcement/trace/pesticides.vue +++ b/src/views/lawEnforcement/trace/pesticides.vue @@ -54,7 +54,7 @@ />
-

立即查询

+

立即查询

{ response.rows.map(res=>{ // res.businessType = res.businessType == '' ? '' : this.selectDictLabel(this.businessTypeOptions, res.businessType); @@ -167,13 +171,6 @@ this.queryParams.agent = data.value; this.showAgent = false; }, - goSubmit(){ - this.list = []; - this.queryParams.pageNum = 1 ; - this.finished = false; - this.loading = false; - // this.getList(); - } }, } diff --git a/src/views/lawEnforcement/trace/product.vue b/src/views/lawEnforcement/trace/product.vue index ed27007e..ca32e76d 100644 --- a/src/views/lawEnforcement/trace/product.vue +++ b/src/views/lawEnforcement/trace/product.vue @@ -15,7 +15,7 @@
-

立即查询

+

立即查询

{ response.rows.map(res=>{ res.productType = res.productType == '' ? '' : this.selectDictLabel(this.productTypeOptions, res.productType); diff --git a/src/views/lawEnforcement/trace/seed.vue b/src/views/lawEnforcement/trace/seed.vue index 296f209c..5ae96a9c 100644 --- a/src/views/lawEnforcement/trace/seed.vue +++ b/src/views/lawEnforcement/trace/seed.vue @@ -15,7 +15,7 @@
-

立即查询

+

立即查询

{ response.rows.map(res=>{ this.list.push(res); diff --git a/src/views/lawEnforcement/trace/veterinary.vue b/src/views/lawEnforcement/trace/veterinary.vue index 0394ef27..7a069831 100644 --- a/src/views/lawEnforcement/trace/veterinary.vue +++ b/src/views/lawEnforcement/trace/veterinary.vue @@ -15,7 +15,7 @@
-

立即查询

+

立即查询

{ response.rows.map(res=>{ this.list.push(res); @@ -96,12 +100,6 @@ } }); }, - goSubmit(){ - this.list = []; - this.queryParams.pageNum = 1 ; - this.finished = false; - this.loading = false; - } }, } diff --git a/static/images/lawEnforcement/icon/task_icon_031.png b/static/images/lawEnforcement/icon/task_icon_031.png new file mode 100644 index 0000000000000000000000000000000000000000..7c6b5ea7014b676d4e85b0badf137cdf556aeed7 GIT binary patch literal 2027 zcmV$z~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{-U^wum+81X9RGA%c8lmsU^@0t96ctr$<0N<GH+d z`a~(=ddDh+c4KS5U6;!~yM3AL72%jz5xzeWm^coNRV;9d=OaDLFnQOJq2)^od@oW! zi;MC^GjvK8v~+o&sdFJ=JWg%A_u5w!C|q}?s% z{9r*tx#d@*JxGsbN&w191{ZcKSTUN#(t#Bnzhq&A+k~W-OvEM)D5lI%>X`;&I@06$ ze3lX2OfwlG7)P5U#4vI?YN2TbeZ?aD^)MY=c`RI4GC*Q7{{xB}aknl;ALRf5002ov JPDHLkV1ihA%Dn&p literal 0 HcmV?d00001 diff --git a/static/images/lawEnforcement/icon/task_icon_032.png b/static/images/lawEnforcement/icon/task_icon_032.png new file mode 100644 index 0000000000000000000000000000000000000000..8c0dd5e826dc780cc130c231162919757a02e8f1 GIT binary patch literal 2134 zcmV-c2&wmpP)cqmsZPcKF;)YKnM_hO%v56)#c9*P7#kGYBAixVbK&b+ry9Y7g!x%ZK7=*AC z^W-Xv{s$cT9{90NQ@!@)OjMv~H*1S5t1)7i0m1_SxC4*y9cC~);ph^ttYkn&#b3pi$+&Opd`I5o5lQk9^ky$a_5Xfp-7BjxzwkY z$FBzrnSD-9IyZq)P-S-pdAnN5I(ZD8$FB~3$a&dbJL?=sVI`{pXzr^m*Dq19tlOVEM6kBHyWl-L##%Wg2473I*3xL{#ZfhbJBZ69#n z8q?ReoTXbApUg@VZpi(0?2JHyH@93HfiJqon(F>5c|O_gPGo$;I-^-x84NWANTavC z3cj(!Ca-2Vf3fq+z3bu^WF!mj3MO##4U-QJd^&jRc$aLU+SixB0xC8c)GtpIJ_*Pl zGXR&29XD>|Ke_1Z#%;3nSs@7$^6U}k&88Qm8JZINLcnP0#F!cfqS*vIo@X(rJ}Q0R z)v|R(+=kh*Oz=ZdOTGPfPg7mK^jQ*9xjY9}i$VDhe=Q4a))x0w8(qVDDj%J<<)<2f z;cjCll4YAoO!ZiOg@#Yv4Jek~Z>m-890#IBk7tkwM)=mpvlF_iHi@;71kT3wlH+b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*3|2O$~h zaa=0P2!28;8NxhItU~O$w}IS0IRF3v M07*qoM6N<$g2`PBw*UYD literal 0 HcmV?d00001 From d1c69531f06cb23b2b4649bdc06729db622d628e Mon Sep 17 00:00:00 2001 From: xyq <392009588@qq.com> Date: Thu, 27 Oct 2022 08:56:27 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/permission.js b/src/permission.js index 91ffbd4a..3f2f753c 100644 --- a/src/permission.js +++ b/src/permission.js @@ -106,6 +106,7 @@ const whiteList = [ //宅基地 '/zjdLogin', + '/onlineHome/workbench', //阳光村务--新 '/sunVillage_info/login', //登录 @@ -133,6 +134,7 @@ const whiteList = [ router.beforeEach((to, from, next) => { NProgress.start() if (getToken()) { + console.info(to) /* has token*/ if (to.path === '/login') { next({ path: '/' }) @@ -191,6 +193,7 @@ router.beforeEach((to, from, next) => { } } else { // 没有token + console.info(to); if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入 console.log(to.path)