集成前台任务界面,插件名称下拉框
This commit is contained in:
parent
6565b8f7d2
commit
22e77f7bf8
|
@ -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);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue