From 4bd9ecdb092c88d050e58d5a150b62e5e90b65b0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 三月 2025 16:10:14 +0800
Subject: [PATCH] 删除无用代码
---
src/views/CNAS/process/sampleDisposal/index.vue | 67 ++++++---------------------------
1 files changed, 12 insertions(+), 55 deletions(-)
diff --git a/src/views/CNAS/process/sampleDisposal/index.vue b/src/views/CNAS/process/sampleDisposal/index.vue
index f56ae44..b3df7ab 100644
--- a/src/views/CNAS/process/sampleDisposal/index.vue
+++ b/src/views/CNAS/process/sampleDisposal/index.vue
@@ -1,10 +1,11 @@
<template>
- <div class="sample-disposal">
+ <div class="capacity-scope">
<el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="queryParams.totaldealId = ''">
<el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1">
<el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;">鏂板</el-button>
<div class="table" style="height: calc(100% - 200px)" v-if="activeName == '濉啓'">
<lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading"
+ key="tableData"
:height="'calc(100vh - 290px)'" :page="page" @pagination="pagination"></lims-table>
</div>
</el-tab-pane>
@@ -25,6 +26,7 @@
</div>
<div class="table">
<lims-table :tableData="tableData0" :column="column0" :tableLoading="tableLoading"
+ key="tableData0"
:height="'calc(100vh - 300px)'" :page="page0" @pagination="pagination0"></lims-table>
</div>
</el-tab-pane>
@@ -116,11 +118,11 @@
pageProcessTotaldeal,
} from "@/api/cnas/process/sampleDisposal";
export default {
+ name: 'SampleDisposal',
components: {
limsTable,
filePreview,
},
- name: "SampleDisposal",
data() {
return {
activeName: '濉啓',
@@ -249,51 +251,11 @@
};
},
mounted() {
- // this.entityCopy = this.HaveJson(this.componentData.entity);
this.getCustomPageList()
this.getList()
this.getList0()
},
methods: {
- getPower() {
- let power = JSON.parse(sessionStorage.getItem('power'))
- let add = false
- let out = false
- let submitProcessTotaldeal = false
- let checkProcessTotaldeal = false
- let ratifyProcessTotaldeal = false
- for (var i = 0; i < power.length; i++) {
- if (power[i].menuMethod == 'addProcessDeal') {
- add = true
- }
- // if (power[i].menuMethod == 'exportProcessEvaluate') {
- // out = true
- // }
- if (power[i].menuMethod == 'submitProcessTotaldeal') {
- submitProcessTotaldeal = true
- }
- if (power[i].menuMethod == 'checkProcessTotaldeal') {
- checkProcessTotaldeal = true
- }
- if (power[i].menuMethod == 'ratifyProcessTotaldeal') {
- ratifyProcessTotaldeal = true
- }
- }
- if (!ratifyProcessTotaldeal) {
- this.componentData.do.splice(4, 1)
- }
- if (!checkProcessTotaldeal) {
- this.componentData.do.splice(3, 1)
- }
- if (!submitProcessTotaldeal) {
- this.componentData.do.splice(2, 1)
- }
- if (!add) {
- this.componentData0.do.splice(1, 1)
- this.componentData0.do.splice(0, 1)
- }
- this.addPower = add
- },
// 鑾峰彇閫佹牱鍗曚綅鍒楄〃
getCustomPageList() {
selectCustomPageList({
@@ -381,7 +343,6 @@
...this.addInfo
}).then(res => {
this.addLoading = false
- if (res.code === 201) return
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -398,7 +359,6 @@
...this.addInfo
}).then(res => {
this.addLoading = false
- if (res.code === 201) return
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -419,7 +379,6 @@
submitProcessTotaldeal({
id: row.id
}).then(res => {
- if (res.code === 201) return
this.$message({
type: 'success',
message: '鎻愪氦鎴愬姛!'
@@ -430,13 +389,10 @@
},
// 鏌ョ湅
handleLook(row) {
- // console.log(row)
- // this.title0 = '鏌ョ湅'
- // this.commonFun(row)
this.activeName = '濉啓'
this.queryParams.totaldealId = row.id
this.$nextTick(() => {
- this.page.current = 0;
+ this.page.current = 1;
this.getList();
})
},
@@ -478,7 +434,6 @@
}).then(res => {
this.checkLoading = false
this.noCheckLoading = false
- if (res.code === 201) return
this.$message({
type: 'success',
message: '鎿嶄綔鎴愬姛!'
@@ -493,7 +448,6 @@
}).then(res => {
this.checkLoading = false
this.noCheckLoading = false
- if (res.code === 201) return
this.$message({
type: 'success',
message: '鎿嶄綔鎴愬姛!'
@@ -505,9 +459,12 @@
},
// 瀵煎嚭璇︽儏
handleDown0(row) {
+ if (!row.url) {
+ this.$message.warning('鏆傛棤鏂囦欢')
+ return
+ }
// 鍚庣涓嬭浇
- let url = this.javaApi + '/word/' + row.url
- this.$download.saveAs(url, row.month + ' 鏍峰搧澶勭悊鐢宠琛�');
+ this.$download.saveAs(row.url, row.month + ' 鏍峰搧澶勭悊鐢宠琛�');
},
handleDelete(row) {
this.$confirm("鏄惁鍒犻櫎璇ユ潯鏁版嵁?", "鎻愮ず", {
@@ -517,9 +474,9 @@
})
.then(() => {
delProcessDeal({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
- this.refresh();
+ this.page.current = 0;
+ this.getList();
});
})
.catch(() => { });
--
Gitblit v1.9.3