|
@@ -35,6 +35,16 @@
|
|
|
label="慢病名称"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ :resizable = "false"
|
|
|
+ label="状态"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span :class="scope.row.state == 'N'?'':'delete'">
|
|
|
+ {{scope.row.state == 'N'?'启用中':'已删除'}}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
:resizable = "false"
|
|
|
prop="modifier"
|
|
@@ -45,9 +55,9 @@
|
|
|
prop="operate"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
|
|
|
+ <el-button :disabled="scope.row.state != 'N'" @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
|
|
|
<span style="margin:0 3px;">|</span>
|
|
|
- <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
|
|
|
+ <el-button type="text" size="small" :class="scope.row.state == 'N'?'delete':'review'" @click="showDelDialog(scope.row)">{{scope.row.state == 'N'?'删除':'恢复'}}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -165,9 +175,11 @@ export default {
|
|
|
},
|
|
|
showDelDialog(row){
|
|
|
const param = {
|
|
|
- diseaseId:row.diseaseId
|
|
|
+ diseaseId:row.diseaseId,
|
|
|
+ state:row.state === 'N'?'Y':'N',
|
|
|
}
|
|
|
- this.showConfirmDialog('是否删除该关联?',()=>{
|
|
|
+ let warntTxt = row.state === 'N' ? '是否删除该关联?': '是否恢复该关联?'
|
|
|
+ this.showConfirmDialog(warntTxt,()=>{
|
|
|
api.cancelIndexConfigAlls(param).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
this.getDataList();
|
|
@@ -185,7 +197,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
|
|
|
-<style lang="less">
|
|
|
+<style lang="less" scoped>
|
|
|
@import "../../less/admin.less";
|
|
|
.delete{
|
|
|
color: red;
|
|
@@ -193,6 +205,9 @@ export default {
|
|
|
.delete:hover {
|
|
|
color: red;
|
|
|
}
|
|
|
+ .review{
|
|
|
+ color: #22ccc8;
|
|
|
+ }
|
|
|
.pagination {
|
|
|
min-width: 1010px;
|
|
|
}
|