From d8d591ead3e434d46e9c142853668e3e8c16e864 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 14:54:55 +0800 Subject: [PATCH] 人员样式遮挡修改 --- src/views/CNAS/personnel/personnelInfo/tabs/personnel-list.vue | 2 src/views/business/inspectionTask/index.vue | 78 ++++++++++++-------------------------- 2 files changed, 26 insertions(+), 54 deletions(-) diff --git a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-list.vue b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-list.vue index 9f955ca..5cb970c 100644 --- a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-list.vue +++ b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-list.vue @@ -55,7 +55,7 @@ </div> <div v-if="selectUserDia" class="body" style="height: 60vh;"> <lims-table :tableData="tableData1" :column="column1" :isSelection="true" :handleSelectionChange="selectMethod" - :height="'calc(100vh - 290px)'" :tableLoading="tableLoading1"></lims-table> + height="560" :tableLoading="tableLoading1"></lims-table> </div> <span slot="footer" class="dialog-footer"> <el-button @click="selectUserDia = false">鍙� 娑�</el-button> diff --git a/src/views/business/inspectionTask/index.vue b/src/views/business/inspectionTask/index.vue index 515c16e..260ae7b 100644 --- a/src/views/business/inspectionTask/index.vue +++ b/src/views/business/inspectionTask/index.vue @@ -394,11 +394,23 @@ prop: "type", dataType: "tag", formatData: (params) => { - return this.urgencyLevel.find((m) => m.value == params).label; + if (params == 0) { + return '鏅��' + } else if (params == 1) { + return '浼樺厛' + } else { + return '绱ф��' + } }, formatType: (params) => { - return this.urgencyLevel.find((m) => m.value == params).type; - }, + if (params == 0) { + return 'success' + } else if (params == 1) { + return 'warning' + } else { + return 'danger' + } + } }, { label: "妫�楠岀被鍨�", @@ -612,6 +624,7 @@ }, mounted() { this.getAuthorizedPerson(); + this.queryParams.userId = this.userId; this.currentTime = getYearAndMonthAndDays(); this.getDicts("urgency_level").then((response) => { this.urgencyLevel = this.dictToValue(response.data); @@ -620,9 +633,17 @@ this.inspectionTaskState = this.dictToValue(response.data); }); this.refreshTable(); - this.queryParams.userId = this.userId; }, activated() { + this.getAuthorizedPerson(); + this.queryParams.userId = this.userId; + this.currentTime = getYearAndMonthAndDays(); + this.getDicts("urgency_level").then((response) => { + this.urgencyLevel = this.dictToValue(response.data); + }); + this.getDicts("inspection_task_state").then((response) => { + this.inspectionTaskState = this.dictToValue(response.data); + }); this.refreshTable(); }, methods: { @@ -697,16 +718,6 @@ this.queryParams.typeSource = this.tabIndex; this.getList(); }, - // claimFun(row) { - // if (row) { - // this.sampleUserForm = { - // entrustCode: row.entrustCode, - // insSampleId: row.id, - // sonLaboratory: row.sonLaboratory, - // } - // this.claimVisible = true - // } - // }, // 鏌ョ湅浜т笟閾句俊鎭� openInfoDialog(row) { this.showInfoDialog = true; @@ -738,43 +749,11 @@ } return ""; }, - onReset() { - this.searchForm = { - sampleName: null, - state: null, - }; - this.queryParams.insState = null; - this.queryParams.sampleName = null; - this.refreshTable(); - }, - onSubmit() { - this.queryParams.insState = this.searchForm.state; - this.queryParams.sampleName = this.searchForm.sampleName; - this.$nextTick(() => { - this.refreshTable(); - }); - }, handleTab(m, i) { this.tabIndex = i; this.queryParams.sonLaboratory = ""; this.refreshTable(); }, - // getLaboratoryDicts() { - // this.$axios.post(this.$api.enums.selectEnumByCategory, { - // category: "瀛愬疄楠屽" - // }).then(res => { - // this.tabList = res.data.map(ele => { - // return { - // label: ele.label, - // value: ele.value - // } - // }) - // if(this.tabList.length>0){ - // this.componentData.entity.sonLaboratory = this.tabList[0].value - // } - // this.refreshTable() - // }) - // }, selectAllByOne(row) { this.isCopper = row.isCopper; this.customsInspection = row; @@ -815,9 +794,6 @@ break; } - }, - playOrder(num) { - this.activeFace = num; }, goback() { this.state = 0; @@ -927,10 +903,6 @@ console.error(error); this.loading = false; }); - }, - handleReview(row) { - this.state = 2; - this.orderId = row.id; }, getAuthorizedPerson() { selectUserCondition({ type: 1 }).then((res) => { -- Gitblit v1.9.3