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 bb35894..9c42089 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/caseFiling/components/caselogInfo.vue b/src/views/caseFiling/components/caselogInfo.vue index 4e8f010..ae942ac 100644 --- a/src/views/caseFiling/components/caselogInfo.vue +++ b/src/views/caseFiling/components/caselogInfo.vue @@ -1,21 +1,21 @@ @@ -28,20 +28,16 @@ export default { noData: false, }; }, - watch: { - caselogDataArr: { - handler(val) { - if (val && val.length > 0) { - this.noData = false; - this.activities = val; - this.activities.forEach((item) => { - item.content = item.content; - }); - } else { - this.noData = true; - } - }, - }, + created() { + if (this.caselogDataArr && this.caselogDataArr.length > 0) { + this.noData = false; + this.activities = this.caselogDataArr; + this.activities.forEach((item) => { + item.content = item.content; + }); + } else { + this.noData = true; + } }, methods: { cancel() { diff --git a/src/views/caseManagement/caseList.vue b/src/views/caseManagement/caseList.vue index fa6a5fd..9d8ec41 100644 --- a/src/views/caseManagement/caseList.vue +++ b/src/views/caseManagement/caseList.vue @@ -1,8 +1,19 @@ - - - - + + + + - + - + @@ -165,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 { @@ -175,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", @@ -190,7 +443,7 @@ export default { trialincourtDialog, payDialog, filingreviewDialog, - caselogDialog + caselogDialog, }, data() { return { @@ -206,9 +459,10 @@ export default { caseNum: undefined, // caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10, 16], caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10], - hearDate: "", + // hearDate: "", caseStatus: null, applicantName: "", + nameId: "", pageNum: 1, pageSize: 10, }, @@ -239,12 +493,12 @@ export default { showcaseLog: false, //案件日志弹框显示 flagLoading: true, //案件日志弹框loading caselogDataArr: [], - options: []//机构数据 + options: [], //机构数据 }; }, created() { this.getcaseApply(this.queryParams); - this.getInstitution() + this.getInstitution(); }, methods: { cancel() { @@ -255,17 +509,17 @@ export default { }, // 机构发生变化 changeDept(data) { - this.queryParams.nameId = data[0] + this.queryParams.nameId = data[0]; }, // 获取机构数据 getInstitution() { - listDept().then(res => { - res.data.forEach(item => { + 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) { @@ -286,6 +540,8 @@ 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); }, // 案件录入 @@ -339,18 +595,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() { @@ -375,7 +631,7 @@ export default { this.getcaseApply(this.queryParams); this.$modal.msgSuccess("立案申请成功"); }) - .catch(() => { }); + .catch(() => {}); }, // 立案审查 filingreviewRow(row) { @@ -476,7 +732,7 @@ export default { this.$modal.msgSuccess("裁决书生成成功"); } }) - .catch(() => { }); + .catch(() => {}); }, // 归档 fileRow(row) { @@ -493,7 +749,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 = []; @@ -504,7 +760,7 @@ export default { this.initpaymentArr1.push(item); } }); - this.caseAttachList = res.data.caseAttachList + this.caseAttachList = res.data.caseAttachList; }); }, // 删除 @@ -519,12 +775,13 @@ export default { this.getcaseApply(this.queryParams); this.$modal.msgSuccess("删除成功"); }) - .catch(() => { }); + .catch(() => {}); }, }, }; diff --git a/src/views/caseManagement/components/formateCourtDialog.vue b/src/views/caseManagement/components/formateCourtDialog.vue index 32f2cf9..dc112ca 100644 --- a/src/views/caseManagement/components/formateCourtDialog.vue +++ b/src/views/caseManagement/components/formateCourtDialog.vue @@ -21,20 +21,20 @@ >

+
-
仲裁员信息列表
+
当前案件仲裁员信息列表
- + +
-
我的代办事项
+
我的待办事项
-
32
+
@@ -15,7 +15,7 @@
-
32
+
@@ -24,7 +24,7 @@
-
32
+