From 64907dec707406507876b8976f1afa16f576d642 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 13 Oct 2023 18:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 + src/utils/permission.js | 1 - src/views/awardManagement/listofAwards.vue | 41 +- src/views/caseFiling/archiveList.vue | 1 - src/views/caseManagement/caseList.vue | 448 ++++++++++++++++----- vue.config.js | 4 +- 6 files changed, 368 insertions(+), 130 deletions(-) diff --git a/src/main.js b/src/main.js index 8f36180..fae9808 100644 --- a/src/main.js +++ b/src/main.js @@ -41,6 +41,8 @@ import VueMeta from 'vue-meta' import DictData from '@/components/DictData' //画布组件 import vueEsign from 'vue-esign' +import {checkPermi} from '@/utils/permission' + // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey @@ -51,6 +53,7 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +Vue.prototype.checkPermi = checkPermi // 全局组件挂载 Vue.component('DictTag', DictTag) diff --git a/src/utils/permission.js b/src/utils/permission.js index 1730e33..603426a 100644 --- a/src/utils/permission.js +++ b/src/utils/permission.js @@ -24,7 +24,6 @@ export function checkPermi(value) { return false } } - /** * 角色权限校验 * @param {Array} value 校验值 diff --git a/src/views/awardManagement/listofAwards.vue b/src/views/awardManagement/listofAwards.vue index e43f304..7d271e4 100644 --- a/src/views/awardManagement/listofAwards.vue +++ b/src/views/awardManagement/listofAwards.vue @@ -43,36 +43,21 @@ diff --git a/src/views/caseFiling/archiveList.vue b/src/views/caseFiling/archiveList.vue index e35206c..71a0a5c 100644 --- a/src/views/caseFiling/archiveList.vue +++ b/src/views/caseFiling/archiveList.vue @@ -94,7 +94,6 @@ type="text" icon="el-icon-reading" @click="showDetail(scope.row)" - v-hasPermi="['caseFiles:list:detail']" >归档详情 diff --git a/src/views/caseManagement/caseList.vue b/src/views/caseManagement/caseList.vue index 4ca484d..daf86cd 100644 --- a/src/views/caseManagement/caseList.vue +++ b/src/views/caseManagement/caseList.vue @@ -1,8 +1,19 @@ - - - - + + + + - + - + @@ -167,7 +415,7 @@ import adjudicaterecordDialog from "./components/adjudicaterecordDialog.vue"; import trialincourtDialog from "./components/trialincourtDialog.vue"; import payDialog from "./components/payDialog.vue"; import filingreviewDialog from "./components/filingreviewDialog.vue"; -import caselogDialog from './components/caselogDialog.vue'; +import caselogDialog from "./components/caselogDialog.vue"; import { caseApplicationDetail } from "@/api/pay/pay"; import { @@ -177,7 +425,10 @@ import { selectCaseApply, } from "@/api/caseAccess/caseEntry"; import { listDept } from "@/api/system/dept"; -import { document, caseLogRecordList } from "@/api/caseManagement/caseManagement"; +import { + document, + caseLogRecordList, +} from "@/api/caseManagement/caseManagement"; export default { name: "caseList", @@ -192,7 +443,7 @@ export default { trialincourtDialog, payDialog, filingreviewDialog, - caselogDialog + caselogDialog, }, data() { return { @@ -211,7 +462,7 @@ export default { // hearDate: "", caseStatus: null, applicantName: "", - nameId: '', + nameId: "", pageNum: 1, pageSize: 10, }, @@ -242,12 +493,12 @@ export default { showcaseLog: false, //案件日志弹框显示 flagLoading: true, //案件日志弹框loading caselogDataArr: [], - options:[]//机构数据 + options: [], //机构数据 }; }, created() { this.getcaseApply(this.queryParams); - this.getInstitution() + this.getInstitution(); }, methods: { cancel() { @@ -257,18 +508,18 @@ export default { this.openbatch = false; }, // 机构发生变化 - changeDept(data){ - this.queryParams.nameId = data[0] + changeDept(data) { + this.queryParams.nameId = data[0]; }, // 获取机构数据 - getInstitution(){ - listDept().then(res=>{ - res.data.forEach(item=>{ + getInstitution() { + listDept().then((res) => { + res.data.forEach((item) => { item.value = item.deptId; - item.label = item.deptName - }) + item.label = item.deptName; + }); this.options = this.handleTree(res.data, "deptId"); - }) + }); }, /** 查询列表 */ getcaseApply(val) { @@ -297,9 +548,9 @@ export default { resetQuery() { this.resetForm("queryForm"); (this.queryParams.caseStatusList = [0, 1, 2, 5, 6, 7, 8, 9, 10]), - this.queryParams.applicantName = '', - this.queryParams.nameId = '', - this.getcaseApply(this.queryParams); + (this.queryParams.applicantName = ""), + (this.queryParams.nameId = ""), + this.getcaseApply(this.queryParams); }, // 案件录入 filingApplication() { @@ -352,18 +603,18 @@ export default { // 案件日志 caselogRow(row) { this.showcaseLog = true; - this.caseLogRecordListFn(row) + this.caseLogRecordListFn(row); }, // 查询案件日志信息 caseLogRecordListFn(val) { this.flagLoading = true; let params = { - caseAppliId: val.id - } + caseAppliId: val.id, + }; caseLogRecordList(params).then((res) => { - this.caselogDataArr = res.rows + this.caselogDataArr = res.rows; this.flagLoading = false; - }) + }); }, // 关闭案件日志 cancelcaseLog() { @@ -388,7 +639,7 @@ export default { this.getcaseApply(this.queryParams); this.$modal.msgSuccess("立案申请成功"); }) - .catch(() => { }); + .catch(() => {}); }, // 立案审查 filingreviewRow(row) { @@ -489,7 +740,7 @@ export default { this.$modal.msgSuccess("裁决书生成成功"); } }) - .catch(() => { }); + .catch(() => {}); }, // 归档 fileRow(row) { @@ -506,7 +757,7 @@ export default { respondentName: res.data.respondentName, feePayable: res.data.feePayable, hearDate: res.data.hearDate, - arbitratorName: res.data.arbitratorName + arbitratorName: res.data.arbitratorName, }; this.initpaymentArr = []; this.initpaymentArr1 = []; @@ -517,7 +768,7 @@ export default { this.initpaymentArr1.push(item); } }); - this.caseAttachList = res.data.caseAttachList + this.caseAttachList = res.data.caseAttachList; }); }, // 删除 @@ -532,12 +783,13 @@ export default { this.getcaseApply(this.queryParams); this.$modal.msgSuccess("删除成功"); }) - .catch(() => { }); + .catch(() => {}); }, }, }; diff --git a/vue.config.js b/vue.config.js index 80c963d..eddf117 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,8 +11,8 @@ const name = process.env.VUE_APP_TITLE || '智慧仲裁管理系统' // 网页 const port = process.env.port || process.env.npm_config_port || 80 // 端口 -// const API = 'http://121.40.189.20:9001' //测试 -const API = 'http://192.168.3.18:9001' //B +const API = 'http://121.40.189.20:9001' //测试 +// const API = 'http://192.168.3.18:9001' //B // const API = 'http://192.168.3.77:8080' //Q // vue.config.js 配置说明 -- 2.54.0