|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<crumbs title="医学术语静态知识维护">
|
|
<crumbs title="医学术语静态知识维护">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item label="标准术语归属:">
|
|
|
|
|
|
+ <el-form-item label="术语分类:">
|
|
<el-select size="mini" v-model="filter.libType" placeholder="标准术语归属" clearable>
|
|
<el-select size="mini" v-model="filter.libType" placeholder="标准术语归属" clearable>
|
|
<el-option v-for="item in typeList" :label="item.name" :value="item.key" :key="item.key"></el-option>
|
|
<el-option v-for="item in typeList" :label="item.name" :value="item.key" :key="item.key"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -42,27 +42,27 @@
|
|
label="标准术语">
|
|
label="标准术语">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="type"
|
|
|
|
- label="标准术语归属"
|
|
|
|
|
|
+ prop="typeName"
|
|
|
|
+ label="术语分类"
|
|
width="120">
|
|
width="120">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="title"
|
|
prop="title"
|
|
- label="关联标题"
|
|
|
|
|
|
+ label="内容概览"
|
|
width="240">
|
|
width="240">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
label="状态">
|
|
label="状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.isDeleted=='N'">启用中</span>
|
|
<span v-if="scope.row.isDeleted=='N'">启用中</span>
|
|
<span v-if="scope.row.isDeleted=='Y'" class="delete">已删除</span>
|
|
<span v-if="scope.row.isDeleted=='Y'" class="delete">已删除</span>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
+ <!-- <el-table-column
|
|
prop="modifier"
|
|
prop="modifier"
|
|
label="操作人"
|
|
label="操作人"
|
|
width="80">
|
|
width="80">
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column
|
|
<el-table-column
|
|
label="操作" width="140">
|
|
label="操作" width="140">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -112,8 +112,8 @@
|
|
pays:[],
|
|
pays:[],
|
|
typeList:[],
|
|
typeList:[],
|
|
stateList:[
|
|
stateList:[
|
|
- {id:'N',name:'启用中'},
|
|
|
|
- {id:'Y',name:'已删除'},
|
|
|
|
|
|
+ {id:'N',name:'启用'},
|
|
|
|
+ {id:'Y',name:'禁用'},
|
|
],
|
|
],
|
|
searched: false,
|
|
searched: false,
|
|
filter: {
|
|
filter: {
|
|
@@ -204,7 +204,12 @@
|
|
loading.close()
|
|
loading.close()
|
|
if (res.data.code == '0') {
|
|
if (res.data.code == '0') {
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
- this.list = data.records;
|
|
|
|
|
|
+ // 类型:1-诊断、2-药品、3-检验套餐、4-检验明细、5-检查、6-手术和操作
|
|
|
|
+ let temp = ['','诊断','药品','检验套餐','检验明细','检查','手术和操作']
|
|
|
|
+ this.list = data.records = data.records.filter((item)=>{
|
|
|
|
+ item.typeName = temp[item.type]
|
|
|
|
+ return item
|
|
|
|
+ });
|
|
this.cacheData[param.current] = data.records;
|
|
this.cacheData[param.current] = data.records;
|
|
this.total = data.total;
|
|
this.total = data.total;
|
|
if(this.inCurrentPage!==undefined){
|
|
if(this.inCurrentPage!==undefined){
|
|
@@ -230,12 +235,12 @@
|
|
this.clearFilter();
|
|
this.clearFilter();
|
|
};
|
|
};
|
|
const param = {
|
|
const param = {
|
|
- conceptName:this.filter.term.trim(),
|
|
|
|
|
|
+ name:this.filter.term.trim(),
|
|
title:this.filter.title,
|
|
title:this.filter.title,
|
|
current: this.inCurrentPage||this.currentPage,
|
|
current: this.inCurrentPage||this.currentPage,
|
|
size: this.pageSize,
|
|
size: this.pageSize,
|
|
- status:this.filter.status,
|
|
|
|
- libType:this.filter.libType,
|
|
|
|
|
|
+ isDeleted:this.filter.status,
|
|
|
|
+ type:this.filter.libType,
|
|
};
|
|
};
|
|
return param;
|
|
return param;
|
|
},
|
|
},
|
|
@@ -268,8 +273,8 @@
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
},
|
|
},
|
|
showDelDialog(row){
|
|
showDelDialog(row){
|
|
- this.showConfirmDialog('是否删除该静态知识?',()=>{
|
|
|
|
- api.delConceptInfo({conceptId:[row.conceptId],status:'Y'}).then((res)=>{
|
|
|
|
|
|
+ this.showConfirmDialog('确定禁用该静态知识?',()=>{
|
|
|
|
+ api.delConceptInfo({id:row.id,isDeleted:'Y'}).then((res)=>{
|
|
if(res.data.code=='0'){
|
|
if(res.data.code=='0'){
|
|
if(!this.searched){
|
|
if(!this.searched){
|
|
//未点确认时清空搜索条件
|
|
//未点确认时清空搜索条件
|
|
@@ -286,8 +291,8 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
showReuseDialog(row){
|
|
showReuseDialog(row){
|
|
- this.showConfirmDialog('是否重新启用该条数据?',()=>{
|
|
|
|
- api.delConceptInfo({conceptId:[row.conceptId],status:"N"}).then((res)=>{
|
|
|
|
|
|
+ this.showConfirmDialog('确定启用该静态知识?',()=>{
|
|
|
|
+ api.delConceptInfo({id:row.id,isDeleted:"N"}).then((res)=>{
|
|
if(res.data.code=='0'){
|
|
if(res.data.code=='0'){
|
|
this.currentPage = 1; //恢复数据跳转到筛选条件下首页
|
|
this.currentPage = 1; //恢复数据跳转到筛选条件下首页
|
|
this.warning(res.data.msg||'操作成功','success');
|
|
this.warning(res.data.msg||'操作成功','success');
|