From 22e77f7bf853ba8efa9ec67802d9faaab4ada2bc Mon Sep 17 00:00:00 2001 From: username Date: Wed, 25 Sep 2024 09:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90=E5=89=8D=E5=8F=B0=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=95=8C=E9=9D=A2=EF=BC=8C=E6=8F=92=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foregroundTask/index.vue | 51 +++++++++++++++++++ vue.config.js | 4 +- 2 files changed, 53 insertions(+), 2 deletions(-) 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,