|
@@ -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,
|
|
@@ -129,9 +126,24 @@ 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:{
|
|
|
|
+ getDetail(){
|
|
|
|
+ const params = {
|
|
|
|
+ term:this.data.name,
|
|
|
|
+ type:this.data.type
|
|
|
|
+ }
|
|
|
|
+ api.getMedicalDetail(params).then((res)=>{
|
|
|
|
+ const result = res.data;console.log(999,result);
|
|
|
|
+ if(result.code == 0){
|
|
|
|
+ this.synonymous = result.data.medicalInfo;
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(result.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getTypeList(){
|
|
getTypeList(){
|
|
const param = {
|
|
const param = {
|
|
current: this.currentPage,
|
|
current: this.currentPage,
|
|
@@ -164,12 +176,43 @@ import api from '@api/icss.js';
|
|
this.synonymous.push(singleSpan);
|
|
this.synonymous.push(singleSpan);
|
|
// this.synIndex = index;
|
|
// this.synIndex = index;
|
|
},
|
|
},
|
|
|
|
+ warning(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){
|
|
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.getDetail();
|
|
|
|
+ }else{
|
|
|
|
+ this.warning(res.data.msg);
|
|
|
|
+ }
|
|
|
|
+ }).catch((error)=>{
|
|
|
|
+ this.warning(error);
|
|
|
|
+ })
|
|
|
|
+ });
|
|
},
|
|
},
|
|
comfirn(){
|
|
comfirn(){
|
|
-
|
|
|
|
|
|
+ console.log("修改数据:",this.synonymous);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|