|
@@ -46,9 +46,9 @@
|
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
|
<div style="width: 25%;">
|
|
<div style="width: 25%;">
|
|
|
<el-form-item label="团组名称:" label-width="160px">
|
|
<el-form-item label="团组名称:" label-width="160px">
|
|
|
- <el-select v-model="OpCarTouristGuideGroundData.diId" clearable filterable
|
|
|
|
|
|
|
+ <el-select v-model="OpCarTouristGuideGroundData.diId" remote :remote-method="GroupFeeKeywordSearch" clearable filterable
|
|
|
placeholder="团组选择" :disabled="isShow" @change="DiIdSelectChange">
|
|
placeholder="团组选择" :disabled="isShow" @change="DiIdSelectChange">
|
|
|
- <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
|
|
|
|
|
|
|
+ <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
|
|
|
:value="item.id">
|
|
:value="item.id">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -259,6 +259,7 @@ export default {
|
|
|
isShow: false,
|
|
isShow: false,
|
|
|
delegationInfo: {},
|
|
delegationInfo: {},
|
|
|
delegationInfoList: [],//团组下拉框
|
|
delegationInfoList: [],//团组下拉框
|
|
|
|
|
+ delegationInfoLists: [],//团组下拉框
|
|
|
OpCarTouristGuideGroundData: {
|
|
OpCarTouristGuideGroundData: {
|
|
|
status: 0,
|
|
status: 0,
|
|
|
id: 0,
|
|
id: 0,
|
|
@@ -346,6 +347,35 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //联想
|
|
|
|
|
+ GroupFeeKeywordSearch(query) {
|
|
|
|
|
+ if (query !== '') {
|
|
|
|
|
+ // this.selectLoading=true;
|
|
|
|
|
+ var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+79 +'/'+query
|
|
|
|
|
+ var that = this
|
|
|
|
|
+ this.$axios({
|
|
|
|
|
+ method: 'get',
|
|
|
|
|
+ url: url,
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
|
|
+ },
|
|
|
|
|
+ }).then(function (res) {
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ that.delegationInfoLists = res.data.data;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.delegationInfoLists=[];
|
|
|
|
|
+ }
|
|
|
|
|
+ }).finally(()=>{
|
|
|
|
|
+ // that.selectLoading=false;
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.delegationInfoLists=this.delegationInfoList;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.delegationInfoLists);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 验证特殊字符
|
|
// 验证特殊字符
|
|
|
validateSpecialChars(rule, value, callback) {
|
|
validateSpecialChars(rule, value, callback) {
|
|
|
console.log(value);
|
|
console.log(value);
|
|
@@ -480,6 +510,7 @@ export default {
|
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
that.delegationInfoList = res.data.data.groupName;
|
|
that.delegationInfoList = res.data.data.groupName;
|
|
|
|
|
+ that.delegationInfoLists = that.delegationInfoList;
|
|
|
that.PostTourClientListByDiId()
|
|
that.PostTourClientListByDiId()
|
|
|
for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
if (that.delegationInfoList[index].id == that.OpCarTouristGuideGroundData.diId) {
|
|
if (that.delegationInfoList[index].id == that.OpCarTouristGuideGroundData.diId) {
|
|
@@ -494,8 +525,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
//团组下拉框绑定
|
|
//团组下拉框绑定
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
DiIdSelectChange(val) {
|
|
DiIdSelectChange(val) {
|
|
|
var that = this;
|
|
var that = this;
|