|
@@ -200,17 +200,17 @@
|
|
<div class="left_header">
|
|
<div class="left_header">
|
|
<h4 class="tips">关联的术语({{form.concepts.length}})</h4>
|
|
<h4 class="tips">关联的术语({{form.concepts.length}})</h4>
|
|
<div style="display:flex">
|
|
<div style="display:flex">
|
|
- <el-input v-model="searchtext" @input="searchList" placeholder="标准术语关键词" class="inp"></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchtext" @input="searchList" placeholder="关键词" class="inp"></el-input>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
- <el-input v-model="searchtext2" @input="searchList" placeholder="标准术语关键词" class="inp"></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchtext2" @input="searchList" placeholder="关键词" class="inp"></el-input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="left_box">
|
|
<div class="left_box">
|
|
<el-table
|
|
<el-table
|
|
- v-if="leftList.length>0"
|
|
|
|
:data="leftList"
|
|
:data="leftList"
|
|
border
|
|
border
|
|
|
|
+ height="520"
|
|
class="tabs"
|
|
class="tabs"
|
|
:header-row-style="{height:'40px'}"
|
|
:header-row-style="{height:'40px'}"
|
|
:header-cell-style="{height:'40px',padding:'0',background:'#f7f7f7'}"
|
|
:header-cell-style="{height:'40px',padding:'0',background:'#f7f7f7'}"
|
|
@@ -246,30 +246,30 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="formInline.name1"
|
|
v-model="formInline.name1"
|
|
@input="searchConcept"
|
|
@input="searchConcept"
|
|
- placeholder="标准术语关键字"
|
|
|
|
|
|
+ placeholder="关键字"
|
|
class="inp"
|
|
class="inp"
|
|
></el-input>
|
|
></el-input>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
<el-input
|
|
<el-input
|
|
v-model="formInline.name2"
|
|
v-model="formInline.name2"
|
|
@input="searchConcept"
|
|
@input="searchConcept"
|
|
- placeholder="标准术语关键字"
|
|
|
|
|
|
+ placeholder="关键字"
|
|
class="inp"
|
|
class="inp"
|
|
></el-input>
|
|
></el-input>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
<span style="display:flex;align-items: center;margin:0 5px">-</span>
|
|
<el-input
|
|
<el-input
|
|
v-model="formInline.name3"
|
|
v-model="formInline.name3"
|
|
@input="searchConcept"
|
|
@input="searchConcept"
|
|
- placeholder="标准术语关键字"
|
|
|
|
|
|
+ placeholder="关键字"
|
|
class="inp"
|
|
class="inp"
|
|
></el-input>
|
|
></el-input>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="right_box">
|
|
<div class="right_box">
|
|
<el-table
|
|
<el-table
|
|
- v-if="conceptList.length>0"
|
|
|
|
:data="conceptList"
|
|
:data="conceptList"
|
|
border
|
|
border
|
|
|
|
+ height="520"
|
|
class="tabs"
|
|
class="tabs"
|
|
@row-click="btn"
|
|
@row-click="btn"
|
|
:header-row-style="{height:'40px'}"
|
|
:header-row-style="{height:'40px'}"
|
|
@@ -281,8 +281,8 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<div class="form_btn">
|
|
<div class="form_btn">
|
|
- <el-button type="primary" size="medium " @click="add">添加</el-button>
|
|
|
|
- <el-button type="primary" size="medium " @click="dialogVisible = true">文本批量添加</el-button>
|
|
|
|
|
|
+ <el-button size="medium " @click="add" icon="el-icon-arrow-left">添加</el-button>
|
|
|
|
+ <el-button size="medium " @click="dialogVisible = true">文本批量添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -291,7 +291,7 @@
|
|
:title="'请输入要添加到关联的标准术语(每行一个)'+'共'+len+'行'"
|
|
:title="'请输入要添加到关联的标准术语(每行一个)'+'共'+len+'行'"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
width="30%"
|
|
width="30%"
|
|
- @close="cancel"
|
|
|
|
|
|
+ @close="collectcancel"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
class="test_box"
|
|
class="test_box"
|
|
@@ -303,6 +303,7 @@
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button type="primary" @click="collectionMatch">确 定</el-button>
|
|
<el-button type="primary" @click="collectionMatch">确 定</el-button>
|
|
|
|
+ <el-button @click="collectcancel">保存并关闭</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -387,13 +388,16 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
handleInput(event) {
|
|
handleInput(event) {
|
|
let text = event.target.innerText;
|
|
let text = event.target.innerText;
|
|
- this.innerText = text;
|
|
|
|
|
|
+ this.innerText = text.replace(/(^\s*)|(\s*$)/g, "");
|
|
},
|
|
},
|
|
cancel() {
|
|
cancel() {
|
|
this.$refs.msg.innerHTML = '';
|
|
this.$refs.msg.innerHTML = '';
|
|
this.innerText = '';
|
|
this.innerText = '';
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
},
|
|
},
|
|
|
|
+ collectcancel() {
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
+ },
|
|
cancelRequest() {
|
|
cancelRequest() {
|
|
if (typeof this.source === 'function') {
|
|
if (typeof this.source === 'function') {
|
|
this.source('终止请求');
|
|
this.source('终止请求');
|
|
@@ -500,9 +504,11 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
btn(row) {
|
|
btn(row) {
|
|
|
|
+
|
|
if (this.whether) {
|
|
if (this.whether) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
let concepts = {
|
|
let concepts = {
|
|
conceptId: row.conceptId,
|
|
conceptId: row.conceptId,
|
|
conceptLibType: row.libType,
|
|
conceptLibType: row.libType,
|
|
@@ -510,8 +516,10 @@ export default {
|
|
};
|
|
};
|
|
this.excludedConceptIds.push(row.conceptId);
|
|
this.excludedConceptIds.push(row.conceptId);
|
|
this.form.concepts.push(concepts);
|
|
this.form.concepts.push(concepts);
|
|
- this.leftList = this.form.concepts
|
|
|
|
|
|
+ this.leftList = this.form.concepts;
|
|
this.conceptList = [];
|
|
this.conceptList = [];
|
|
|
|
+ this.searchtext = ''
|
|
|
|
+ this.searchtext2 = ''
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getTreeSearchList();
|
|
this.getTreeSearchList();
|
|
@@ -522,10 +530,12 @@ export default {
|
|
this.multipleSelection = val;
|
|
this.multipleSelection = val;
|
|
},
|
|
},
|
|
add() {
|
|
add() {
|
|
- if(this.multipleSelection.length == 0){
|
|
|
|
- return
|
|
|
|
|
|
+ if (this.multipleSelection.length == 0) {
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
this.processing(this.multipleSelection);
|
|
this.processing(this.multipleSelection);
|
|
|
|
+ this.searchtext = ''
|
|
|
|
+ this.searchtext2 = ''
|
|
},
|
|
},
|
|
//处理数据
|
|
//处理数据
|
|
processing(arr) {
|
|
processing(arr) {
|
|
@@ -536,14 +546,14 @@ export default {
|
|
let concepts = {
|
|
let concepts = {
|
|
conceptId: it.conceptId,
|
|
conceptId: it.conceptId,
|
|
conceptLibType: it.libType ? it.libType : it.conceptLibType,
|
|
conceptLibType: it.libType ? it.libType : it.conceptLibType,
|
|
- conceptLibName: it.conceptName? it.conceptName : it.conceptLibName,
|
|
|
|
|
|
+ conceptLibName: it.conceptName ? it.conceptName : it.conceptLibName
|
|
};
|
|
};
|
|
this.excludedConceptIds.push(it.conceptId);
|
|
this.excludedConceptIds.push(it.conceptId);
|
|
this.form.concepts.push(concepts);
|
|
this.form.concepts.push(concepts);
|
|
- this.leftList = this.form.concepts
|
|
|
|
|
|
+ this.leftList = this.form.concepts;
|
|
});
|
|
});
|
|
this.conceptList = [];
|
|
this.conceptList = [];
|
|
- this.multipleSelection = []
|
|
|
|
|
|
+ this.multipleSelection = [];
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getTreeSearchList();
|
|
this.getTreeSearchList();
|
|
@@ -595,6 +605,13 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
collectionMatch() {
|
|
collectionMatch() {
|
|
|
|
+ if (this.innerText.length == 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '术语名称不能为空',
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
let params = {
|
|
let params = {
|
|
conceptLibNames: this.innerText,
|
|
conceptLibNames: this.innerText,
|
|
conceptLibType: this.form.conceptLibType
|
|
conceptLibType: this.form.conceptLibType
|
|
@@ -606,12 +623,14 @@ export default {
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
let text = '';
|
|
let text = '';
|
|
if (data.unMatchList.length > 0) {
|
|
if (data.unMatchList.length > 0) {
|
|
- console.log(65);
|
|
|
|
data.unMatchList.forEach(it => {
|
|
data.unMatchList.forEach(it => {
|
|
text += it.conceptLibName + '\n';
|
|
text += it.conceptLibName + '\n';
|
|
});
|
|
});
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '列表中存在非标准术语',
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
} else if (data.matchList.length > 0) {
|
|
} else if (data.matchList.length > 0) {
|
|
- console.log(123);
|
|
|
|
this.processing(data.matchList);
|
|
this.processing(data.matchList);
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
}
|
|
}
|