Browse Source

添加下拉菜单

qin_s4
herenshan112 3 weeks ago
parent
commit
1d61190524
  1. 182
      src/components/DesignForm/assembly/index.ts
  2. 6
      src/views/sysworkflow/lowcodepage/appPage/appPageForm/unitsPageFrom/attribute.vue

182
src/components/DesignForm/assembly/index.ts

@ -306,97 +306,97 @@ export default [
inputStyle: {}
}
},
// {
// type: 'select',
// label: '下拉选择框',
// unitName: '下拉选择框',
// icon: 'select',
// iconFont: 'fa-toggle-down',
// control: {
// modelValue: '',
// appendToBody: true,
// glxxsz: [],
// zdtcsz: {
// tbx: '',
// tby: ''
// },
// optionsValue3Formid:'',
// optionsValue3Field:'',
// },
// options: selectOption,
// config: config,
// styles: {
// divStyle: {
// marginBot: "15"
// },
// labelStyle: {
// //paddingLeft: "7",
// },
// inputStyle: {}
// }
// },
// {
// type: 'cascader',
// label: '级联选择器',
// unitName: '级联选择器',
// icon: 'cascader',
// iconFont: 'fa-sitemap',
// control: {
// modelValue: []
// },
// options: [],
// config: config,
// styles: {
// divStyle: {
// marginBot: "15"
// },
// labelStyle: {
// //paddingLeft: "7",
// },
// inputStyle: {}
// }
// },
// {
// type: 'datePicker',
// label: '日期选择器',
// unitName: '日期选择器',
// icon: 'todo',
// iconFont: 'fa-calendar',
// control: {
// modelValue: '',
// type: 'date'
// },
// config: {},
// styles: {
// divStyle: {
// marginBot: "15"
// },
// labelStyle: {
// //paddingLeft: "7",
// },
// inputStyle: {}
// }
// },
// {
// type: 'timePicker',
// label: '时间选择器',
// unitName: '时间选择器',
// icon: 'time',
// iconFont: 'fa-clock-o',
// control: {
// modelValue: ''
// },
// config: {},
// styles: {
// divStyle: {
// marginBot: "15"
// },
// labelStyle: {
// //paddingLeft: "7",
// },
// inputStyle: {}
// }
// },
{
type: 'select',
label: '下拉选择框',
unitName: '下拉选择框',
icon: 'select',
iconFont: 'fa-toggle-down',
control: {
modelValue: '',
appendToBody: true,
glxxsz: [],
zdtcsz: {
tbx: '',
tby: ''
},
optionsValue3Formid:'',
optionsValue3Field:'',
},
options: selectOption,
config: config,
styles: {
divStyle: {
marginBot: "15"
},
labelStyle: {
//paddingLeft: "7",
},
inputStyle: {}
}
},
{
type: 'cascader',
label: '级联选择器',
unitName: '级联选择器',
icon: 'cascader',
iconFont: 'fa-sitemap',
control: {
modelValue: []
},
options: [],
config: config,
styles: {
divStyle: {
marginBot: "15"
},
labelStyle: {
//paddingLeft: "7",
},
inputStyle: {}
}
},
{
type: 'datePicker',
label: '日期选择器',
unitName: '日期选择器',
icon: 'todo',
iconFont: 'fa-calendar',
control: {
modelValue: '',
type: 'date'
},
config: {},
styles: {
divStyle: {
marginBot: "15"
},
labelStyle: {
//paddingLeft: "7",
},
inputStyle: {}
}
},
{
type: 'timePicker',
label: '时间选择器',
unitName: '时间选择器',
icon: 'time',
iconFont: 'fa-clock-o',
control: {
modelValue: ''
},
config: {},
styles: {
divStyle: {
marginBot: "15"
},
labelStyle: {
//paddingLeft: "7",
},
inputStyle: {}
}
},
{
type: 'txt',
label: '文字描述',

6
src/views/sysworkflow/lowcodepage/appPage/appPageForm/unitsPageFrom/attribute.vue

@ -6535,7 +6535,7 @@ const updataBase = (val: any) => {
<el-button size="small" style="margin-right: 12px;" @click="openDialog">
批量导入
</el-button>
<div style="width:100%; position: relative; top: 6px; display: flex;">
<!-- <div style="width:100%; position: relative; top: 6px; display: flex;">
<div v-if="showHide(['switch'], true)">
<el-button style="position: relative; top: -1px" @click="handelGlxxszDialogSwitch" >关联选项设置</el-button>
</div>
@ -6556,7 +6556,7 @@ const updataBase = (val: any) => {
>
<el-button style="position: relative; top: -1px;right:-12px" @click="handelZdtcszDialog">矩阵填充设置</el-button>
</div>
</div>
</div> -->
</el-form-item>
</template>
<template v-else-if="controlData.config.optionsType === 3">
@ -8308,7 +8308,7 @@ const updataBase = (val: any) => {
<el-tree-select
v-model="controlData.control.optionsValue3Formid"
style="width: 390px"
:data="customerFormTree[0].children"
:data="customerFormTree[0].children?customerFormTree[0].children:[]"
check-strictly
:render-after-expand="false"
filterable

Loading…
Cancel
Save