|
@@ -120,29 +120,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- async getAgentOptions (airport) {
|
|
|
- try {
|
|
|
- const { code, returnData, message } = await Query({
|
|
|
- serviceId: SERVICE_ID.agentCode,
|
|
|
- dataContent: [
|
|
|
- {
|
|
|
- airport,
|
|
|
- },
|
|
|
- ],
|
|
|
- })
|
|
|
- if (String(code) === '0') {
|
|
|
- const listValues = returnData.listValues || returnData
|
|
|
- this.formItems[2].options = listValues.map(element => ({
|
|
|
- label: element.agent_number,
|
|
|
- value: element.agent_number,
|
|
|
- }))
|
|
|
- } else {
|
|
|
- this.$message.error(message)
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- this.$message.error('失败')
|
|
|
- }
|
|
|
- },
|
|
|
+ // async getAgentOptions (airport) {
|
|
|
+ // try {
|
|
|
+ // const { code, returnData, message } = await Query({
|
|
|
+ // serviceId: SERVICE_ID.agentCode,
|
|
|
+ // dataContent: [
|
|
|
+ // {
|
|
|
+ // airport,
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // })
|
|
|
+ // if (String(code) === '0') {
|
|
|
+ // const listValues = returnData.listValues || returnData
|
|
|
+ // this.formItems[2].options = listValues.map(element => ({
|
|
|
+ // label: element.agent_number,
|
|
|
+ // value: element.agent_number,
|
|
|
+ // }))
|
|
|
+ // } else {
|
|
|
+ // this.$message.error(message)
|
|
|
+ // }
|
|
|
+ // } catch (error) {
|
|
|
+ // this.$message.error('失败')
|
|
|
+ // }
|
|
|
+ // },
|
|
|
},
|
|
|
}
|
|
|
</script>
|