|
@@ -14,7 +14,7 @@
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td class="ind">1</td>
|
|
<td class="ind">1</td>
|
|
- <td>
|
|
|
|
|
|
+ <td :title="data.name&&data.name.length>9?data.name:''">
|
|
<el-input v-model="data.name" placeholder="请输入术语" maxlength="30" size="small"></el-input>
|
|
<el-input v-model="data.name" placeholder="请输入术语" maxlength="30" size="small"></el-input>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
@@ -44,8 +44,8 @@
|
|
</tr>
|
|
</tr>
|
|
<tr v-for="(item,index) in synonymous">
|
|
<tr v-for="(item,index) in synonymous">
|
|
<td class="ind">{{index+1}}</td>
|
|
<td class="ind">{{index+1}}</td>
|
|
- <td>
|
|
|
|
- <el-input v-model="item.term" placeholder="请输入术语" maxlength="30" size="small"></el-input>
|
|
|
|
|
|
+ <td :title="item.name&&item.name.length>9?item.name:''">
|
|
|
|
+ <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small"></el-input>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
<!-- <el-select v-model="item.type" clearable placeholder="请选择">
|
|
<!-- <el-select v-model="item.type" clearable placeholder="请选择">
|
|
@@ -59,7 +59,7 @@
|
|
{{data.type}}
|
|
{{data.type}}
|
|
</td>
|
|
</td>
|
|
<td class="desc">
|
|
<td class="desc">
|
|
- <el-input v-model="item.mark" placeholder="请输入术语说明" maxlength="120" size="small"></el-input>
|
|
|
|
|
|
+ <el-input v-model="item.note" placeholder="请输入术语说明" maxlength="120" size="small"></el-input>
|
|
</td>
|
|
</td>
|
|
<td v-if="id">
|
|
<td v-if="id">
|
|
<span @click="deleLine(index)" class="delete">删除</span>
|
|
<span @click="deleLine(index)" class="delete">删除</span>
|
|
@@ -96,22 +96,19 @@ import api from '@api/icss.js';
|
|
id:null,
|
|
id:null,
|
|
synonymous:[//同义词
|
|
synonymous:[//同义词
|
|
{
|
|
{
|
|
- term:'',
|
|
|
|
|
|
+ name:'',
|
|
id:1,
|
|
id:1,
|
|
- type:'',
|
|
|
|
- mark:''
|
|
|
|
|
|
+ note:''
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- term:'',
|
|
|
|
|
|
+ name:'',
|
|
id:2,
|
|
id:2,
|
|
- type:'',
|
|
|
|
- mark:''
|
|
|
|
|
|
+ note:''
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- term:'',
|
|
|
|
|
|
+ name:'',
|
|
id:3,
|
|
id:3,
|
|
- type:'',
|
|
|
|
- mark:''
|
|
|
|
|
|
+ note:''
|
|
},
|
|
},
|
|
],
|
|
],
|
|
colspan:4,
|
|
colspan:4,
|
|
@@ -121,7 +118,7 @@ import api from '@api/icss.js';
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
this.getTypeList();
|
|
this.getTypeList();
|
|
- const info = this.$route.params.info;console.log(111,info);
|
|
|
|
|
|
+ const info = this.$route.params.info;
|
|
if(info){
|
|
if(info){
|
|
this.minTitle = '医学术语命名维护-修改';
|
|
this.minTitle = '医学术语命名维护-修改';
|
|
this.id = info.id;
|
|
this.id = info.id;
|
|
@@ -129,6 +126,7 @@ import api from '@api/icss.js';
|
|
this.data.type = info.type;
|
|
this.data.type = info.type;
|
|
this.data.remark = info.remark;
|
|
this.data.remark = info.remark;
|
|
this.colspan = 5;
|
|
this.colspan = 5;
|
|
|
|
+ this.getDetail();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -138,9 +136,9 @@ import api from '@api/icss.js';
|
|
type:this.data.type
|
|
type:this.data.type
|
|
}
|
|
}
|
|
api.getMedicalDetail(params).then((res)=>{
|
|
api.getMedicalDetail(params).then((res)=>{
|
|
- const result = res.data;console.log(1111,result);
|
|
|
|
|
|
+ const result = res.data;console.log(999,result);
|
|
if(result.code == 0){
|
|
if(result.code == 0){
|
|
-
|
|
|
|
|
|
+ this.synonymous = result.data.medicalInfo;
|
|
}else{
|
|
}else{
|
|
this.$message.error(result.msg);
|
|
this.$message.error(result.msg);
|
|
}
|
|
}
|
|
@@ -178,7 +176,7 @@ import api from '@api/icss.js';
|
|
this.synonymous.push(singleSpan);
|
|
this.synonymous.push(singleSpan);
|
|
// this.synIndex = index;
|
|
// this.synIndex = index;
|
|
},
|
|
},
|
|
- arning(msg,type){
|
|
|
|
|
|
+ warning(msg,type){
|
|
this.$message({
|
|
this.$message({
|
|
showClose: true,
|
|
showClose: true,
|
|
message:msg,
|
|
message:msg,
|
|
@@ -204,8 +202,7 @@ import api from '@api/icss.js';
|
|
api.deletMedicalName(param).then((res)=>{
|
|
api.deletMedicalName(param).then((res)=>{
|
|
if(res.data.code=='0'){
|
|
if(res.data.code=='0'){
|
|
this.warning(res.data.msg||'操作成功','success');
|
|
this.warning(res.data.msg||'操作成功','success');
|
|
- // this.getDataList();
|
|
|
|
- // this.synonymous.splice(index,1);
|
|
|
|
|
|
+ this.getDetail();
|
|
}else{
|
|
}else{
|
|
this.warning(res.data.msg);
|
|
this.warning(res.data.msg);
|
|
}
|
|
}
|
|
@@ -214,12 +211,8 @@ import api from '@api/icss.js';
|
|
})
|
|
})
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // deleLine(index){
|
|
|
|
- // this.synonymous.splice(index,1);
|
|
|
|
- // // console.log(123,index,this.synonymous);
|
|
|
|
- // },
|
|
|
|
comfirn(){
|
|
comfirn(){
|
|
-
|
|
|
|
|
|
+ console.log("修改数据:",this.synonymous);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|