|
@@ -120,8 +120,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 获取列表数据
|
|
|
- async getDataList(isTurnPage) {
|
|
|
- let params = await this.getFilterItems(isTurnPage)
|
|
|
+ async getDataList(isTurnPage) {
|
|
|
+ let params = await this.getFilterItems(isTurnPage);
|
|
|
this.searched = true;
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
if (isTurnPage && !this.searched) {
|
|
|
this.clearFilter();
|
|
|
}
|
|
|
- let res = await api.getHospitalInfo()
|
|
|
+ let res = await api.getHospitalInfo();
|
|
|
if (res.data.code === '0') {
|
|
|
this.hospitalId = res.data.data.id;
|
|
|
}
|
|
@@ -220,11 +220,22 @@ export default {
|
|
|
type: type || 'warning'
|
|
|
});
|
|
|
},
|
|
|
- showConfirmDialog(msg, resolve) {
|
|
|
+ showConfirmDialog(msg, resolve, type) {
|
|
|
+ let showInfo = '启用';
|
|
|
+ let btnNameClass = 'confirmBtn2';
|
|
|
+ if (type === 'Del') {
|
|
|
+ showInfo = '禁用';
|
|
|
+ btnNameClass = 'delBtn';
|
|
|
+ }else if(type === 'Del1'){
|
|
|
+ showInfo = '删除';
|
|
|
+ btnNameClass = 'delBtn';
|
|
|
+ }
|
|
|
+
|
|
|
this.$confirm(msg, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
+ confirmButtonText: showInfo,
|
|
|
cancelButtonText: '取消',
|
|
|
cancelButtonClass: 'cancelBtn',
|
|
|
+ confirmButtonClass: btnNameClass,
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -246,7 +257,8 @@ export default {
|
|
|
this.$confirm(`${info}正在启用中,无法删除。`, '', {
|
|
|
confirmButtonText: '确定',
|
|
|
// cancelButtonText: '取消',
|
|
|
- cancelButtonClass: 'makeSure',
|
|
|
+ cancelButtonClass: 'cancelSure',
|
|
|
+ confirmButtonClass: 'sure',
|
|
|
customClass: 'exportBox'
|
|
|
})
|
|
|
.then(() => {})
|
|
@@ -281,7 +293,7 @@ export default {
|
|
|
.catch(error => {
|
|
|
this.warning(error);
|
|
|
});
|
|
|
- });
|
|
|
+ },'Del1');
|
|
|
},
|
|
|
|
|
|
// 启用/禁用 数据请求
|
|
@@ -312,14 +324,15 @@ export default {
|
|
|
// 启用
|
|
|
this.showConfirmDialog(`确定要启用${row.planName}吗?`, () => {
|
|
|
this.sendAbleOrEn(row, type);
|
|
|
- });
|
|
|
+ },'Reuse');
|
|
|
} else {
|
|
|
// 禁用
|
|
|
this.showConfirmDialog(
|
|
|
`方案禁用后前端页面将无法正常显示内容,确定要禁用${row.planName}吗?`,
|
|
|
() => {
|
|
|
this.sendAbleOrEn(row, type);
|
|
|
- }
|
|
|
+ },
|
|
|
+ 'Del'
|
|
|
);
|
|
|
}
|
|
|
}
|
|
@@ -339,24 +352,32 @@ export default {
|
|
|
.pagination {
|
|
|
min-width: 1010px;
|
|
|
}
|
|
|
-.disable{
|
|
|
- border-color: transparent
|
|
|
+.disable {
|
|
|
+ border-color: transparent;
|
|
|
}
|
|
|
.el-message-box {
|
|
|
/deep/.cancelBtn {
|
|
|
background-color: #d7d7d7;
|
|
|
border-color: transparent;
|
|
|
}
|
|
|
+ /deep/ .delBtn {
|
|
|
+ background-color: #ff545b !important;
|
|
|
+ border-color: transparent !important;
|
|
|
+ }
|
|
|
+ /deep/ .confirmBtn2 {
|
|
|
+ position: relative;
|
|
|
+ right: 0px !important;
|
|
|
+ }
|
|
|
}
|
|
|
.exportBox {
|
|
|
/deep/ .el-message-box__btns {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
/deep/ .el-message-box__message {
|
|
|
- text-align: center;
|
|
|
+ // text-align: center;
|
|
|
}
|
|
|
/deep/ .el-message-box__btns {
|
|
|
- text-align: center;
|
|
|
+ // text-align: center;
|
|
|
margin-bottom: 24px;
|
|
|
}
|
|
|
/deep/ .leftbtn {
|
|
@@ -364,10 +385,13 @@ export default {
|
|
|
background-color: #d7d7d7;
|
|
|
border-color: transparent;
|
|
|
}
|
|
|
- /deep/ .makeSure {
|
|
|
+ /deep/ .cancelSure {
|
|
|
// text-align: center;
|
|
|
display: none;
|
|
|
}
|
|
|
+ /deep/ .sure {
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
}
|
|
|
.contents {
|
|
|
.is-plain {
|
|
@@ -378,9 +402,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.el-table__row{
|
|
|
- /deep/ .is-disabled{
|
|
|
- border-color: transparent !important
|
|
|
+.el-table__row {
|
|
|
+ /deep/ .is-disabled {
|
|
|
+ border-color: transparent !important;
|
|
|
}
|
|
|
}
|
|
|
</style>
|