|
|
@ -48,9 +48,10 @@ |
|
|
|
<div class=""> |
|
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60px" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column fixed label="操作" align="center" width="150"> |
|
|
|
<el-table-column fixed label="操作" align="center" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="small" :disabled="scope.row.offlineDate !==''" @click="handleUpdate(scope.row)">编辑</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="scope.row.offlineDate !==''" @click="handleCancellation(scope.row)">作废</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleLooK(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -176,6 +177,14 @@ export default { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
}, |
|
|
|
handleCancellation(row) { |
|
|
|
req.cancal({ sid: row.sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
this.loadList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleLooK(row) { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divinfo'].showInfo(row) |
|
|
|