From 31c9c1d214f17a9e6a060565ada7937741c4bca5 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 04 三月 2025 14:21:46 +0800
Subject: [PATCH] 搬迁管理体系文件的控制
---
src/views/standard/model/index.vue | 115 ++++++++-------------------------------------------------
1 files changed, 16 insertions(+), 99 deletions(-)
diff --git a/src/views/standard/model/index.vue b/src/views/standard/model/index.vue
index 2cfb231..b310c5a 100644
--- a/src/views/standard/model/index.vue
+++ b/src/views/standard/model/index.vue
@@ -4,77 +4,29 @@
<div class="search_thing">
<div class="search_label">妯℃澘鍚嶇О锛�</div>
<div class="search_input">
- <el-input
- v-model="queryParams.name"
- clearable
- placeholder="璇疯緭鍏�"
- size="small"
- @keyup.enter.native="refreshTable()"
- ></el-input>
+ <el-input v-model="queryParams.name" clearable placeholder="璇疯緭鍏�" size="small"
+ @keyup.enter.native="refreshTable()"></el-input>
</div>
</div>
<div class="search_thing" style="padding-left: 30px">
<el-button size="small" @click="refresh()">閲� 缃�</el-button>
- <el-button size="small" type="primary" @click="refreshTable()"
- >鏌� 璇�</el-button
- >
+ <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
</div>
<div class="btn">
- <el-button
- v-if="checkPermi(['standard:model:add'])"
- size="small"
- type="primary"
- @click="openAdd"
- >鏂板</el-button
- >
- <!-- <el-button
- v-if="checkPermi(['standard:model:copy'])"
- size="small"
- @click="copyTemplate"
- >澶嶅埗妯$増</el-button
- > -->
+ <el-button v-if="checkPermi(['standard:model:add'])" size="small" type="primary" @click="openAdd">鏂板</el-button>
</div>
</div>
- <lims-table
- :tableData="tableData"
- :column="column"
- :page="page"
- :tableLoading="tableLoading"
- :height="'calc(100vh - 240px)'"
- style="padding: 20px; padding-top: 0"
- @pagination="pagination"
- ></lims-table>
- <el-dialog
- :before-close="isClose"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- :visible.sync="isShow"
- title="妯℃澘缂栧埗"
- width="85%"
- >
+ <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
+ :height="'calc(100vh - 240px)'" style="padding: 20px; padding-top: 0" @pagination="pagination"></lims-table>
+ <el-dialog :before-close="isClose" :close-on-click-modal="false" :close-on-press-escape="false"
+ :visible.sync="isShow" title="妯℃澘缂栧埗" width="85%">
<div v-if="isShow" style="width: 100%; height: 82vh; overflow: auto">
- <Excel
- v-loading="loading"
- :data="row.thing"
- :execlTitle="row.name"
- ></Excel>
+ <Excel v-loading="loading" :data="row.thing" :execlTitle="row.name"></Excel>
</div>
</el-dialog>
- <el-dialog
- :before-close="closeCopyTem"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- :visible.sync="isShowCopyTem"
- :title="title"
- width="35%"
- >
- <el-form
- ref="copyForm"
- :model="copyForm"
- :rules="copyFormRules"
- label-position="right"
- label-width="80px"
- >
+ <el-dialog :before-close="closeCopyTem" :close-on-click-modal="false" :close-on-press-escape="false"
+ :visible.sync="isShowCopyTem" :title="title" width="35%">
+ <el-form ref="copyForm" :model="copyForm" :rules="copyFormRules" label-position="right" label-width="80px">
<el-form-item label="妯$増缂栧彿" prop="number">
<el-input v-model="copyForm.number" clearable size="small"></el-input>
</el-form-item>
@@ -87,12 +39,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="closeCopyTem">鍙� 娑�</el-button>
- <el-button
- :loading="submitCopyInfoLoading"
- type="primary"
- @click="submitCopyInfo"
- >纭� 瀹�</el-button
- >
+ <el-button :loading="submitCopyInfoLoading" type="primary" @click="submitCopyInfo">纭� 瀹�</el-button>
</span>
</el-dialog>
</div>
@@ -103,7 +50,6 @@
import Excel from "@/components/Excel/luckysheet.vue";
import {
selectStandardTemplatePageList,
- copyStandardTemplate,
addStandardTemplate,
upStandardTemplate,
delStandardTemplate,
@@ -177,16 +123,6 @@
return this.checkPermi(["standard:model:del"]);
},
},
- // {
- // name: "澶嶅埗妯℃澘",
- // type: "text",
- // clickFun: (row) => {
- // this.copyTemplate(row);
- // },
- // showHide: (row) => {
- // return this.checkPermi(["standard:model:copy"]);
- // },
- // },
{
name: "妯℃澘缂栧埗",
type: "text",
@@ -253,12 +189,6 @@
this.copyForm = {};
this.isShowCopyTem = true;
},
- // 澶嶅埗妯$増
- copyTemplate(row) {
- this.title = "澶嶅埗妯$増";
- this.isShowCopyTem = true;
- this.copyForm.id = row.id;
- },
// 鏂板/缂栬緫/澶嶅埗妯℃澘
submitCopyInfo() {
this.$refs["copyForm"].validate((valid) => {
@@ -301,20 +231,6 @@
this.submitCopyInfoLoading = false;
});
break;
- case "澶嶅埗妯$増":
- copyStandardTemplate(params)
- .then((res) => {
- if (res.code == 201) return;
- this.isShowCopyTem = false;
- this.submitCopyInfoLoading = false;
- this.$message.success("澶嶅埗鎴愬姛");
- this.refreshTable("page");
- })
- .catch((err) => {
- console.log("copyTemplate----", err);
- this.submitCopyInfoLoading = false;
- });
- break;
}
} else {
console.log("error submit!!");
@@ -340,7 +256,7 @@
this.refreshTable("page");
});
})
- .catch(() => {});
+ .catch(() => { });
},
templateWrite(row) {
getEditTemplatePreparation({ id: row.id }).then((res) => {
@@ -364,7 +280,7 @@
.then(() => {
this.closed();
})
- .catch(() => {});
+ .catch(() => { });
},
closed() {
this.loading = true;
@@ -456,6 +372,7 @@
.search_input {
width: calc(100% - 110px);
}
+
.btn {
position: absolute;
right: 14px;
--
Gitblit v1.9.3