|
|
@@ -120,11 +120,11 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="签约日期" prop="signingDate" />
|
|
|
- <el-table-column header-align="center" label="操作" width="180">
|
|
|
+ <el-table-column header-align="center" label="操作" width="220">
|
|
|
<template scope="scope">
|
|
|
-<!-- <el-button :disabled="scope.row.contractStatusStr !== '认购待签约'" size="mini" type="text" @click="handleEdit(scope.row)">签约</el-button>-->
|
|
|
- <el-button size="mini" type="text" @click="handleEdit(scope.row)">签约</el-button>
|
|
|
- <el-button size="mini" type="text" @click="handleView(scope.row)">查看</el-button>
|
|
|
+ <el-button :disabled="scope.row.contractStatusStr !== '认购待签约'" size="mini" type="text" @click="handleSign(scope.row)">签约</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handleView(scope.row)">查看</el-button>
|
|
|
<!-- <el-button size="mini" type="danger" @click="handleDel(scope.row)">删除</el-button>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -254,9 +254,21 @@ export default {
|
|
|
},
|
|
|
/* 编辑*/
|
|
|
handleEdit: function(val) {
|
|
|
+ this.dialogVisible = true
|
|
|
+ this.dialogTitle = '编辑'
|
|
|
+ val.isView = false
|
|
|
+ val.buttonType = 'edit'
|
|
|
+ // 新vue时调用的方法
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.contractAdd.initData(val)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /* 签约*/
|
|
|
+ handleSign: function(val) {
|
|
|
this.dialogVisible = true
|
|
|
this.dialogTitle = '签约'
|
|
|
val.isView = false
|
|
|
+ val.buttonType = 'sign'
|
|
|
// 新vue时调用的方法
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.contractAdd.initData(val)
|