集成前台任务界面,插件名称下拉框

This commit is contained in:
username 2024-09-25 09:17:32 +08:00
parent 6565b8f7d2
commit 22e77f7bf8
2 changed files with 53 additions and 2 deletions

View File

@ -36,6 +36,7 @@ import baseTable from "@/components/base/baseTable";
import rightDialog from "./rightDialog"; import rightDialog from "./rightDialog";
import configData from "./configData"; import configData from "./configData";
import { authApi } from "@/api/apis/auth"; import { authApi } from "@/api/apis/auth";
import { option } from '@/api/apis/detailData'
export default { export default {
components: { components: {
baseLayout, baseLayout,
@ -57,6 +58,14 @@ export default {
}, },
], // ], //
requirementList: [ requirementList: [
{
placeholder: '插件名称',
prop: 'plug_id',
tag: 'elCascader',
options: [
],
},
{ {
placeholder: "工坊名称", placeholder: "工坊名称",
prop: "workshopName", prop: "workshopName",
@ -98,8 +107,50 @@ export default {
mounted() { mounted() {
// this.queryProductClassfy(); // this.queryProductClassfy();
this.GetProductionTableData(); this.GetProductionTableData();
this.queryOptions();
console.log("mount")
}, },
methods: { 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){ onCellClick(row){
this.openLoading("detail"); this.openLoading("detail");
this.$refs.rightDialog.openDialog("show", row); this.$refs.rightDialog.openDialog("show", row);

View File

@ -40,13 +40,13 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://hzya.ufyct.com:9067/`, // 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://127.0.0.1:9081/`,
// target: `http://192.168.2.78:9999`, // target: `http://192.168.2.78:9999`,
// target: `http://192.168.2.85:9999`, // target: `http://192.168.2.85:9999`,
// target: `http://192.168.2.78:8080`, // target: `http://192.168.2.78:8080`,
// target: `http://192.168.2.78:10086`, // 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://192.168.2.83:9999`,
// target:'http://127.0.0.1:9999/', // target:'http://127.0.0.1:9999/',
changeOrigin: true, changeOrigin: true,