|
@@ -83,6 +83,7 @@
|
|
:label="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
:label="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
:value="searchType == 2 ? `${item.uniqueName}` : item"
|
|
:value="searchType == 2 ? `${item.uniqueName}` : item"
|
|
:title="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
:title="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
|
|
+ @click.native="handleChoose(searchType == 2 ? `${item.uniqueName}` : item.name)"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -266,6 +267,12 @@ export default {
|
|
row.index = rowIndex;
|
|
row.index = rowIndex;
|
|
},
|
|
},
|
|
btn(row) {
|
|
btn(row) {
|
|
|
|
+ const { hisName, hisDetailName } = this.form;
|
|
|
|
+ if (hisName !== '' && hisDetailName === '') {
|
|
|
|
+ this.ty = 1;
|
|
|
|
+ } else if (hisName !== '' && hisDetailName !== '') {
|
|
|
|
+ this.ty = 2;
|
|
|
|
+ }
|
|
if (this.getIndex == row.index) {
|
|
if (this.getIndex == row.index) {
|
|
this.getIndex = 6;
|
|
this.getIndex = 6;
|
|
this.form.searchText = '';
|
|
this.form.searchText = '';
|
|
@@ -280,7 +287,10 @@ export default {
|
|
this.form.source = row.source;
|
|
this.form.source = row.source;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ handleChoose(val) {
|
|
|
|
+ this.form.searchTextPre = val;
|
|
|
|
+ this.form.searchText = val;
|
|
|
|
+ },
|
|
// 搜索列表
|
|
// 搜索列表
|
|
searchTerms(query) {
|
|
searchTerms(query) {
|
|
if (!query) {
|
|
if (!query) {
|