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;