forked from xxhjsb/hbt-prevention-ui
fixed:修复删除穿惨问题
parent
6cd30de6e2
commit
2425733ec9
|
@ -34,7 +34,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" v-if="isBase || isFile" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
<el-button type="text" v-if="isBase || isFile" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
||||||
<el-button type="text" v-if="isBase && !(isClap && scope.row.status)" :disabled="isPlan && ((scope.row.planType===2 && scope.row.state) || (scope.row.planType===1 && scope.row.status)) || (isManager && scope.row.status)" @click="showUpdateModel(scope.row)">修改</el-button>
|
<el-button type="text" v-if="isBase && !(isClap && scope.row.status)" :disabled="isPlan && ((scope.row.planType===2 && scope.row.state) || (scope.row.planType===1 && scope.row.status)) || (isManager && scope.row.status)" @click="showUpdateModel(scope.row)">修改</el-button>
|
||||||
<el-button type="text" v-if="isBase" :disabled="(isPlan && ((scope.row.planType===2 && (scope.row.state || scope.row.status)) || (scope.row.planType===1 && scope.row.status))) || (isManager && scope.row.status)" @click="deleteData([scope.row])">删除</el-button>
|
<el-button type="text" v-if="isBase" :disabled="(isPlan && ((scope.row.planType===2 && (scope.row.state || scope.row.status)) || (scope.row.planType===1 && scope.row.status))) || (isManager && scope.row.status)" @click="deleteData([scope.row.id])">删除</el-button>
|
||||||
<el-button type="text" v-if="isPlan && !scope.row.status" :disabled="scope.row.planType===2 && scope.row.state===0 " @click="openSendModel(scope.row)">下发</el-button>
|
<el-button type="text" v-if="isPlan && !scope.row.status" :disabled="scope.row.planType===2 && scope.row.state===0 " @click="openSendModel(scope.row)">下发</el-button>
|
||||||
<el-button type="text" v-if="isPlan && scope.row.planType===2 && !scope.row.state" @click="changeState(scope.row)">启用</el-button>
|
<el-button type="text" v-if="isPlan && scope.row.planType===2 && !scope.row.state" @click="changeState(scope.row)">启用</el-button>
|
||||||
<el-button type="text" v-if="isPlan && scope.row.planType===2 && scope.row.state" @click="changeState(scope.row)">停用</el-button>
|
<el-button type="text" v-if="isPlan && scope.row.planType===2 && scope.row.state" @click="changeState(scope.row)">停用</el-button>
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
// 显示治理列表按钮
|
// 显示治理列表按钮
|
||||||
public isManager = true;
|
public isManager = true;
|
||||||
|
|
||||||
public tableActionWidth="370";
|
public tableActionWidth="150";
|
||||||
|
|
||||||
public isReadonly = false;
|
public isReadonly = false;
|
||||||
public account = JSON.parse(localStorage.getItem("account") as string);
|
public account = JSON.parse(localStorage.getItem("account") as string);
|
||||||
|
@ -142,8 +142,13 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
created(){
|
created(){
|
||||||
|
|
||||||
}
|
}
|
||||||
public tabTableChange(){
|
public tabTableChange(type){
|
||||||
this.params.pageNum=1;
|
this.params.pageNum=1;
|
||||||
|
if(type===4){
|
||||||
|
this.tableActionWidth="250"
|
||||||
|
}else{
|
||||||
|
this.tableActionWidth="150"
|
||||||
|
}
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
<el-button type="text" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
||||||
<el-button type="text" @click="showUpdateModel(scope.row)">修改</el-button>
|
<el-button type="text" @click="showUpdateModel(scope.row)">修改</el-button>
|
||||||
<el-button type="text" @click="deleteData([scope.row])">删除</el-button>
|
<el-button type="text" @click="deleteData([scope.row.id])">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
<el-table-column label="操作" fixed="right" width="100" v-if="!isReadonly">
|
<el-table-column label="操作" fixed="right" width="100" v-if="!isReadonly">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="showSubUpdateModel(scope.row)">修改</el-button>
|
<el-button type="text" @click="showSubUpdateModel(scope.row)">修改</el-button>
|
||||||
<el-button type="text" @click="doSubDelete(scope.row.index - 1)">删除</el-button>
|
<el-button type="text" @click="doSubDelete(scope.row.index)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
Loading…
Reference in New Issue