diff --git a/src/views/newIntegrationTask/foregroundTask/index.vue b/src/views/newIntegrationTask/foregroundTask/index.vue index 39b8d87..0e6f503 100644 --- a/src/views/newIntegrationTask/foregroundTask/index.vue +++ b/src/views/newIntegrationTask/foregroundTask/index.vue @@ -36,6 +36,7 @@ import baseTable from "@/components/base/baseTable"; import rightDialog from "./rightDialog"; import configData from "./configData"; import { authApi } from "@/api/apis/auth"; +import { option } from '@/api/apis/detailData' export default { components: { baseLayout, @@ -57,6 +58,14 @@ export default { }, ], //按钮组 requirementList: [ + { + placeholder: '插件名称', + prop: 'plug_id', + tag: 'elCascader', + options: [ + ], + }, + { placeholder: "工坊名称", prop: "workshopName", @@ -98,8 +107,50 @@ export default { mounted() { // this.queryProductClassfy(); this.GetProductionTableData(); + + this.queryOptions(); + console.log("mount") }, methods: { + //获取属于特定插件类别的插件编号及插件名称 + async getOptionChildren(optionItem){ + let res = await option({ + tl: 'sysApplicationPluginService', + as: '', + dj: 'queryEntity' + }, {typeId:optionItem.value}) + if (res.status == '200') { + optionItem.children = res.attribute.map(item =>{ + return { + value:item.pluginCode, + label:item.pluginName, + } + }) + } + }, + + //获取级联选择器options数据 + async queryOptions(){ + const res = await option({ + tl: 'sysApplicationPluginTypeService', + as: '', + dj: 'queryPluginType' + }, {}) + if (res.status == '200') { + this.requirementList[0].options = res.attribute.map(item =>{ + return { + value: item.id, + label: item.name, + children: [] + } + }); + } + for (let optionItem of this.requirementList[0].options) { + await this.getOptionChildren(optionItem); + } + console.log(this.requirementList[0].options); + }, + onCellClick(row){ this.openLoading("detail"); this.$refs.rightDialog.openDialog("show", row); diff --git a/vue.config.js b/vue.config.js index 89e8c5e..a44ecdb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,13 +40,13 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://hzya.ufyct.com:9067/`, - target: `http://ufidahz.com.cn:9067/`, + //target: `http://ufidahz.com.cn:9067/`, // target: `http://127.0.0.1:9081/`, // target: `http://192.168.2.78:9999`, // target: `http://192.168.2.85:9999`, // target: `http://192.168.2.78:8080`, // target: `http://192.168.2.78:10086`, - // target: `http://192.168.2.185:9999`, + target: `http://192.168.2.185:10086`, // target: `http://192.168.2.83:9999`, // target:'http://127.0.0.1:9999/', changeOrigin: true,