|
@@ -121,7 +121,7 @@ import api from '@api/icss.js';
|
|
|
},
|
|
|
created(){
|
|
|
this.getTypeList();
|
|
|
- const info = this.$route.params.info;
|
|
|
+ const info = this.$route.params.info;console.log(111,info);
|
|
|
if(info){
|
|
|
this.minTitle = '医学术语命名维护-修改';
|
|
|
this.id = info.id;
|
|
@@ -132,6 +132,20 @@ import api from '@api/icss.js';
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ getDetail(){
|
|
|
+ const params = {
|
|
|
+ term:this.data.name,
|
|
|
+ type:this.data.type
|
|
|
+ }
|
|
|
+ api.getMedicalDetail(params).then((res)=>{
|
|
|
+ const result = res.data;console.log(1111,result);
|
|
|
+ if(result.code == 0){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.$message.error(result.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getTypeList(){
|
|
|
const param = {
|
|
|
current: this.currentPage,
|
|
@@ -164,12 +178,48 @@ import api from '@api/icss.js';
|
|
|
this.synonymous.push(singleSpan);
|
|
|
// this.synIndex = index;
|
|
|
},
|
|
|
+ arning(msg,type){
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message:msg,
|
|
|
+ type:type||'warning'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ showConfirmDialog(msg,resolve){
|
|
|
+ this.$alert(msg, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ resolve();
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
deleLine(index){
|
|
|
- this.synonymous.splice(index,1);
|
|
|
- // console.log(123,index,this.synonymous);
|
|
|
+ const item = this.synonymous[index];
|
|
|
+ const param = {
|
|
|
+ term:item.term,
|
|
|
+ type:item.type,
|
|
|
+ id:item.id
|
|
|
+ }
|
|
|
+ this.showConfirmDialog('是否删除该同义词?',()=>{
|
|
|
+ api.deletMedicalName(param).then((res)=>{
|
|
|
+ if(res.data.code=='0'){
|
|
|
+ this.warning(res.data.msg||'操作成功','success');
|
|
|
+ // this.getDataList();
|
|
|
+ // this.synonymous.splice(index,1);
|
|
|
+ }else{
|
|
|
+ this.warning(res.data.msg);
|
|
|
+ }
|
|
|
+ }).catch((error)=>{
|
|
|
+ this.warning(error);
|
|
|
+ })
|
|
|
+ });
|
|
|
},
|
|
|
+ // deleLine(index){
|
|
|
+ // this.synonymous.splice(index,1);
|
|
|
+ // // console.log(123,index,this.synonymous);
|
|
|
+ // },
|
|
|
comfirn(){
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|