|
@@ -63,6 +63,7 @@
|
|
.tabs {
|
|
.tabs {
|
|
max-width: 100%;
|
|
max-width: 100%;
|
|
min-width: 100%;
|
|
min-width: 100%;
|
|
|
|
+ border-color: #979797;
|
|
}
|
|
}
|
|
.form_btn {
|
|
.form_btn {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -83,6 +84,7 @@
|
|
.tabs {
|
|
.tabs {
|
|
max-width: 100%;
|
|
max-width: 100%;
|
|
min-width: 100%;
|
|
min-width: 100%;
|
|
|
|
+ border-color: #979797;
|
|
}
|
|
}
|
|
.inp {
|
|
.inp {
|
|
width: 100px;
|
|
width: 100px;
|
|
@@ -132,6 +134,30 @@
|
|
.el-table--border th:first-child .cell {
|
|
.el-table--border th:first-child .cell {
|
|
padding-right: 14px;
|
|
padding-right: 14px;
|
|
}
|
|
}
|
|
|
|
+ /*table边框颜色*/
|
|
|
|
+ /deep/ .el-table--border:after,
|
|
|
|
+ .el-table--group:after,
|
|
|
|
+ .el-table:before {
|
|
|
|
+ background-color: #979797;
|
|
|
|
+ }
|
|
|
|
+ /deep/ .el-table--border,
|
|
|
|
+ .el-table--group {
|
|
|
|
+ border-color: #979797;
|
|
|
|
+ }
|
|
|
|
+ /deep/ .el-table td,
|
|
|
|
+ .el-table th.is-leaf {
|
|
|
|
+ border-bottom: 1px solid #979797;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /deep/ .el-table--border th,
|
|
|
|
+ .el-table--border th.gutter:last-of-type {
|
|
|
|
+ border-bottom: 1px solid #979797;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /deep/ .el-table--border td,
|
|
|
|
+ .el-table--border th {
|
|
|
|
+ border-right: 1px solid #979797;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.test_box {
|
|
.test_box {
|
|
min-height: 300px;
|
|
min-height: 300px;
|
|
@@ -228,7 +254,7 @@
|
|
class="tabs"
|
|
class="tabs"
|
|
ref="table"
|
|
ref="table"
|
|
:header-row-style="{height:'40px'}"
|
|
:header-row-style="{height:'40px'}"
|
|
- :header-cell-style="{height:'40px',background:'#f7f7f7'}"
|
|
|
|
|
|
+ :header-cell-style="{height:'40px',borderColor:'#979797'}"
|
|
>
|
|
>
|
|
<el-table-column prop="conceptLibName" :show-overflow-tooltip="true" label="术语名称"></el-table-column>
|
|
<el-table-column prop="conceptLibName" :show-overflow-tooltip="true" label="术语名称"></el-table-column>
|
|
<el-table-column label="操作">
|
|
<el-table-column label="操作">
|
|
@@ -290,7 +316,7 @@
|
|
ref="tables"
|
|
ref="tables"
|
|
@row-click="btn"
|
|
@row-click="btn"
|
|
:header-row-style="{height:'40px'}"
|
|
:header-row-style="{height:'40px'}"
|
|
- :header-cell-style="{height:'40px',background:'#f7f7f7'}"
|
|
|
|
|
|
+ :header-cell-style="{height:'40px',borderColor:'#979797'}"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
<el-table-column type="selection"></el-table-column>
|
|
<el-table-column type="selection"></el-table-column>
|
|
@@ -373,22 +399,16 @@ export default {
|
|
collectionLibName: [
|
|
collectionLibName: [
|
|
{ required: true, message: '请选择术语集合名称', trigger: 'change' }
|
|
{ required: true, message: '请选择术语集合名称', trigger: 'change' }
|
|
]
|
|
]
|
|
- },
|
|
|
|
|
|
+ }
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getDict();
|
|
this.getDict();
|
|
const param = this.$route.params;
|
|
const param = this.$route.params;
|
|
- let info = param.data;
|
|
|
|
- if (info) {
|
|
|
|
|
|
+ let type = param.type;
|
|
|
|
+ if (type == 2) {
|
|
this.title = '术语集合内容维护-' + '修改';
|
|
this.title = '术语集合内容维护-' + '修改';
|
|
- this.form.collectionLibType = JSON.stringify(info.collectionLibType);
|
|
|
|
- this.form.collectionLibName = info.collectionLibName;
|
|
|
|
- this.form.concepts = info.concepts;
|
|
|
|
- this.form.conceptLibType = info.concepts[0].conceptLibType;
|
|
|
|
- this.form.collectionId = info.collectionId;
|
|
|
|
- this.form.collectionRemark = info.collectionRemark;
|
|
|
|
- this.leftList = info.concepts;
|
|
|
|
|
|
+ this.getInfo(param.id);
|
|
this.sign = 2;
|
|
this.sign = 2;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.getIds(this.form.concepts);
|
|
this.getIds(this.form.concepts);
|
|
@@ -404,6 +424,35 @@ export default {
|
|
let text = event.target.innerText;
|
|
let text = event.target.innerText;
|
|
this.innerText = text.replace(/(^\s*)|(\s*$)/g, '');
|
|
this.innerText = text.replace(/(^\s*)|(\s*$)/g, '');
|
|
},
|
|
},
|
|
|
|
+ getInfo(id) {
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: 'Loading',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
+ });
|
|
|
|
+ api
|
|
|
|
+ .getRecordById({ id })
|
|
|
|
+ .then(res => {
|
|
|
|
+ loading.close();
|
|
|
|
+ if (res.data.code == '0') {
|
|
|
|
+ const data = res.data.data;
|
|
|
|
+ this.form.collectionLibType = JSON.stringify(
|
|
|
|
+ data.collectionLibType
|
|
|
|
+ );
|
|
|
|
+ this.form.collectionLibName = data.collectionLibName;
|
|
|
|
+ this.form.concepts = data.concepts;
|
|
|
|
+ this.form.conceptLibType = data.concepts[0].conceptLibType;
|
|
|
|
+ this.form.collectionId = data.collectionId;
|
|
|
|
+ this.form.collectionRemark = data.collectionRemark;
|
|
|
|
+ this.leftList = data.concepts;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ loading.close();
|
|
|
|
+ this.warning('获取详情失败,请重试');
|
|
|
|
+ });
|
|
|
|
+ },
|
|
collectcancel() {
|
|
collectcancel() {
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
},
|
|
},
|
|
@@ -565,9 +614,7 @@ export default {
|
|
unique2(arr) {
|
|
unique2(arr) {
|
|
let obj = {};
|
|
let obj = {};
|
|
arr = arr.reduce(function(item, next) {
|
|
arr = arr.reduce(function(item, next) {
|
|
- obj[next]
|
|
|
|
- ? ''
|
|
|
|
- : (obj[next] = true && item.push(next));
|
|
|
|
|
|
+ obj[next] ? '' : (obj[next] = true && item.push(next));
|
|
return item;
|
|
return item;
|
|
}, []);
|
|
}, []);
|
|
return arr;
|
|
return arr;
|
|
@@ -586,7 +633,7 @@ export default {
|
|
this.excludedConceptIds.push(it.conceptId);
|
|
this.excludedConceptIds.push(it.conceptId);
|
|
this.form.concepts.push(concepts);
|
|
this.form.concepts.push(concepts);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
this.form.concepts = this.unique(this.form.concepts);
|
|
this.form.concepts = this.unique(this.form.concepts);
|
|
this.excludedConceptIds = this.unique2(this.excludedConceptIds);
|
|
this.excludedConceptIds = this.unique2(this.excludedConceptIds);
|
|
this.leftList = this.form.concepts;
|
|
this.leftList = this.form.concepts;
|
|
@@ -638,7 +685,7 @@ export default {
|
|
...this.form,
|
|
...this.form,
|
|
relationId: 0
|
|
relationId: 0
|
|
};
|
|
};
|
|
- const loading = this.$loading({
|
|
|
|
|
|
+ const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
text: 'Loading',
|
|
text: 'Loading',
|
|
spinner: 'el-icon-loading',
|
|
spinner: 'el-icon-loading',
|
|
@@ -703,13 +750,12 @@ export default {
|
|
if (data.unMatchList.length > 0 || data.disableList.length > 0) {
|
|
if (data.unMatchList.length > 0 || data.disableList.length > 0) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '列表中存在非标准术语或禁用术语',
|
|
message: '列表中存在非标准术语或禁用术语',
|
|
- type: 'error',
|
|
|
|
|
|
+ type: 'error'
|
|
});
|
|
});
|
|
let arr = data.unMatchList.concat(data.disableList);
|
|
let arr = data.unMatchList.concat(data.disableList);
|
|
arr.forEach(it => {
|
|
arr.forEach(it => {
|
|
text += it.conceptLibName + '\n';
|
|
text += it.conceptLibName + '\n';
|
|
});
|
|
});
|
|
-
|
|
|
|
}
|
|
}
|
|
this.$refs.msg.innerHTML = text;
|
|
this.$refs.msg.innerHTML = text;
|
|
this.innerText = text;
|
|
this.innerText = text;
|