|
@@ -250,9 +250,9 @@
|
|
|
type:type||'warning'
|
|
|
})
|
|
|
},
|
|
|
- showConfirmDialog(msg,resolve){
|
|
|
+ showConfirmDialog(msg,resolve,okText){
|
|
|
this.$confirm(msg, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
+ confirmButtonText: okText||'确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
@@ -265,7 +265,7 @@
|
|
|
if(code==='00000005'){
|
|
|
this.showConfirmDialog(msg,()=>{
|
|
|
this.unbindQcType(data,type);
|
|
|
- });
|
|
|
+ },'解绑');
|
|
|
}else{
|
|
|
if(type==='modify'){
|
|
|
this.toEditField(data,type); //编辑
|
|
@@ -279,7 +279,7 @@
|
|
|
},
|
|
|
unbindQcType(data,type){
|
|
|
api.ifNeedUnbind({id:data.id,hospitalId:data.hospitalId,cancel:1}).then((res)=>{
|
|
|
- if(res.data.code=='00000005'){
|
|
|
+ if(res.data.code=='0'){
|
|
|
this.warning(res.data.msg||'解绑成功','success');
|
|
|
if(type==='modify'){
|
|
|
this.toEditField(data,type); //编辑
|