up.
This commit is contained in:
parent
0e47ef526c
commit
c818caf193
@ -21,6 +21,8 @@ export function strToValue(type: string, value: string): any {
|
|||||||
case 'text':
|
case 'text':
|
||||||
case 'textarea':
|
case 'textarea':
|
||||||
return value ? value.toString() : '';
|
return value ? value.toString() : '';
|
||||||
|
case 'tabs':
|
||||||
|
return 0;
|
||||||
case 'date':
|
case 'date':
|
||||||
case 'datetime':
|
case 'datetime':
|
||||||
case 'time':
|
case 'time':
|
||||||
|
|||||||
@ -25,12 +25,13 @@
|
|||||||
</el-collapse>
|
</el-collapse>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="config.type === 'tabs'">
|
<template v-else-if="config.type === 'tabs'">
|
||||||
|
|
||||||
<el-tabs type="card" v-model="config.value">
|
<el-tabs type="card" v-model="config.value">
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
v-for="tabPane in config.children"
|
v-for="(tabPane, tabPaneIndex) in config.children"
|
||||||
:label="tabPane.title"
|
:label="tabPane.title"
|
||||||
:name="tabPane.id"
|
:name="tabPaneIndex"
|
||||||
:key="tabPane.id"
|
:key="tabPaneIndex"
|
||||||
>
|
>
|
||||||
<config-form-list
|
<config-form-list
|
||||||
:config-list="tabPane.children"
|
:config-list="tabPane.children"
|
||||||
|
|||||||
@ -106,8 +106,12 @@ const reload = () => {
|
|||||||
// 解析vBind属性到item
|
// 解析vBind属性到item
|
||||||
d.bind = strToBind(d.type, d.itemBind);
|
d.bind = strToBind(d.type, d.itemBind);
|
||||||
d.option = strToOption(d.type, d.option);
|
d.option = strToOption(d.type, d.option);
|
||||||
|
if (d.type == 'tabs') {
|
||||||
|
d.value = 0;
|
||||||
|
}
|
||||||
return d;
|
return d;
|
||||||
});
|
});
|
||||||
|
console.log("lists->lists", lists);
|
||||||
configList.value = toTree({
|
configList.value = toTree({
|
||||||
data: lists,
|
data: lists,
|
||||||
idField: 'id',
|
idField: 'id',
|
||||||
|
|||||||
@ -246,7 +246,7 @@
|
|||||||
|
|
||||||
const updateSort = (id, sort) => {
|
const updateSort = (id, sort) => {
|
||||||
updateConfigSort(id, sort).then(()=>{
|
updateConfigSort(id, sort).then(()=>{
|
||||||
EleMessage.success("更新成功");
|
// EleMessage.success("更新成功");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 修改配置状态 */
|
/** 修改配置状态 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user