From a34b0e257c65f3cd95f7c9c88d8db151d928c418 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Tue, 31 Oct 2023 13:16:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B4=E5=BA=A6=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=9F=A5=E7=9C=8B=EF=BC=8C?=
=?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=93=8D=E4=BD=9C=E6=A0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ea/electronicContracts/index.vue | 68 +++++++++++-----------
1 file changed, 33 insertions(+), 35 deletions(-)
diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue
index 238e223f..76f6921e 100644
--- a/src/views/ea/electronicContracts/index.vue
+++ b/src/views/ea/electronicContracts/index.vue
@@ -116,7 +116,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ parseTime(scope.row.signDate) }}
-
-
{{ parseTime(scope.row.effectiveDate) }}
-
{{ parseTime(scope.row.expiryDate) }}
-
@@ -346,12 +328,9 @@
>
-
+
-
+
@@ -367,8 +346,18 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
+ fixed="right"
+ width="180px"
>
+ 查看
+
-
-
-
-
-
-
@@ -638,9 +620,7 @@
@@ -701,6 +683,7 @@ export default {
imgs: null,
// 遮罩层
loading: true,
+ optType: undefined,
// 导出遮罩层
exportLoading: false,
// 显示搜索条件
@@ -866,6 +849,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
+ this.optType = "add";
this.title = "添加合同档案";
},
/* 预览按钮*/
@@ -874,9 +858,23 @@ export default {
this.previewtitle = "附件预览";
},
+ /** 查看按钮操作 */
+ handleView(row) {
+ this.reset();
+ this.optType = "view";
+ const id = row.id;
+ getElectronicContracts(id).then((response) => {
+ this.form = response.data;
+ this.form.signDate = this.form.effectiveDate;
+ this.form.expiryDate;
+ this.open = true;
+ this.title = "查看合同档案";
+ });
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
+ this.optType = "edit";
const id = row.id;
getElectronicContracts(id).then((response) => {
this.form = response.data;