|
@@ -43,6 +43,14 @@
|
|
|
<el-button :type="scope.type" :size="scope.size" icon="el-icon-delete"
|
|
|
@click.stop="rowDel(scope.row, scope.index)">删除
|
|
|
</el-button>
|
|
|
+ <el-button v-if="scope.row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
|
|
|
+ @click.stop="statusfun(scope.row.id,0)">
|
|
|
+ 启用
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
|
|
|
+ @click.stop="statusfun(scope.row.id,1)">
|
|
|
+ 停用
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<template slot="code" slot-scope="scope">
|
|
|
<avue-text-ellipsis :text="scope.row.code" :height="30" use-tooltip placement="top">
|
|
@@ -171,7 +179,8 @@ export default {
|
|
|
page: {
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
- total: 0
|
|
|
+ total: 0,
|
|
|
+ ageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
|
|
|
},
|
|
|
selectionList: [],
|
|
|
option: {
|
|
@@ -189,6 +198,7 @@ export default {
|
|
|
viewBtn: true,
|
|
|
selection: true,
|
|
|
dialogClickModal: false,
|
|
|
+ menuWidth:260,
|
|
|
column: [
|
|
|
// {
|
|
|
// label: "业务类型 Id",
|
|
@@ -408,6 +418,26 @@ export default {
|
|
|
this.bbusinesstypeListfun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 禁用启用按钮
|
|
|
+ statusfun(id,status){
|
|
|
+ this.$confirm("确定将选择数据更改状态?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(()=>{
|
|
|
+ losbfeestemplateDetail(id).then(res=>{
|
|
|
+ let obj = res.data.data;
|
|
|
+ obj.status = status
|
|
|
+ losbfeestemplateSubmit(obj).then(()=>{
|
|
|
+ this.onLoad(this.page);
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ });
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 导出
|
|
|
handleExport() {
|
|
|
var condition = ''
|