|
@@ -34,7 +34,7 @@
|
|
|
<div class="contents knowledgeContents">
|
|
|
<el-table :data="list" border style="width: 100%">
|
|
|
<el-table-column type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
|
|
|
- <el-table-column prop="collectionLibName" label="术语集合名称" ></el-table-column>
|
|
|
+ <el-table-column prop="collectionLibName" label="术语集合名称"></el-table-column>
|
|
|
<el-table-column prop="conceptLibName" label="术语集合类型">
|
|
|
<template slot-scope="scope">
|
|
|
<span
|
|
@@ -42,23 +42,36 @@
|
|
|
>{{item.val==scope.row.collectionLibType?item.name:''}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="collectionRemark" label="说明"></el-table-column>
|
|
|
+ <el-table-column prop="collectionRemark" label="说明">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip
|
|
|
+ v-if="scope.row.collectionRemark.length>80"
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ :content="scope.row.collectionRemark"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <span>{{scope.row.collectionRemark.slice(0,80)+'...'}}</span>
|
|
|
+ </el-tooltip>
|
|
|
+ <span v-if="scope.row.collectionRemark.length<81">{{scope.row.collectionRemark}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="concatConceptLibName" label="基础术语名称" width="500">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tooltip
|
|
|
- v-if="scope.row.concatConceptLibName.length>80"
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
:content="scope.row.concatConceptLibName"
|
|
|
placement="top"
|
|
|
>
|
|
|
- <span>{{scope.row.concatConceptLibName.slice(0,80)+'...'}}</span>
|
|
|
+ <span
|
|
|
+ style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
|
|
|
+ >{{scope.row.concatConceptLibName}}</span>
|
|
|
</el-tooltip>
|
|
|
- <span v-if="scope.row.concatConceptLibName.length<81">{{scope.row.concatConceptLibName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="modifier" label="操作人" ></el-table-column>
|
|
|
- <el-table-column prop="gmtModified" label="操作时间" ></el-table-column>
|
|
|
+ <el-table-column prop="modifier" label="操作人"></el-table-column>
|
|
|
+ <el-table-column prop="gmtModified" label="操作时间"></el-table-column>
|
|
|
<el-table-column label="操作" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="editData(scope.row.collectionId)">修改</el-button>
|
|
@@ -274,32 +287,36 @@ export default {
|
|
|
this.warning('获取详情失败,请重试');
|
|
|
});
|
|
|
},
|
|
|
- showDelDialog(row){
|
|
|
- const param = {
|
|
|
- id: row.collectionId
|
|
|
- }
|
|
|
- let waringTxt = '是否删除该集合内容,可能对现有系统造成影响'
|
|
|
- this.showConfirmDialog(waringTxt,()=>{
|
|
|
- api.deleteById(param).then((res)=>{
|
|
|
- if(res.data.code=='0'){
|
|
|
- if(!this.searched){
|
|
|
+ showDelDialog(row) {
|
|
|
+ const param = {
|
|
|
+ id: row.collectionId
|
|
|
+ };
|
|
|
+ let waringTxt = '是否删除该集合内容,可能对现有系统造成影响';
|
|
|
+ this.showConfirmDialog(waringTxt, () => {
|
|
|
+ api
|
|
|
+ .deleteById(param)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code == '0') {
|
|
|
+ if (!this.searched) {
|
|
|
//未点确认时清空搜索条件
|
|
|
this.clearFilter();
|
|
|
}
|
|
|
- if(this.list.length==1){
|
|
|
+ if (this.list.length == 1) {
|
|
|
//当前在最后一页且只有一条数据时,删除后跳到前一页
|
|
|
- this.currentPage = this.currentPage===1?1:this.currentPage-1;
|
|
|
+ this.currentPage =
|
|
|
+ this.currentPage === 1 ? 1 : this.currentPage - 1;
|
|
|
}
|
|
|
- this.warning(res.data.msg||'操作成功','success');
|
|
|
+ this.warning(res.data.msg || '操作成功', 'success');
|
|
|
this.getDataList();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.warning(res.data.msg);
|
|
|
}
|
|
|
- }).catch((error)=>{
|
|
|
- this.warning(error);
|
|
|
})
|
|
|
- });
|
|
|
- },
|
|
|
+ .catch(error => {
|
|
|
+ this.warning(error);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
clearFilter() {
|
|
|
this.filter = {
|
|
|
collectionRemark: '',
|