|
@@ -14,9 +14,9 @@
|
|
</template>
|
|
</template>
|
|
<template #bottom_menu>
|
|
<template #bottom_menu>
|
|
<data-form :span="24" :fields="testfields" v-model="form.bottom_menu" labelWidth="auto" :isSave="false">
|
|
<data-form :span="24" :fields="testfields" v-model="form.bottom_menu" labelWidth="auto" :isSave="false">
|
|
- <template #is_use>
|
|
|
|
|
|
+ <!-- <template #is_use>
|
|
<el-option v-for="i in useList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in useList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
- </template>
|
|
|
|
|
|
+ </template> -->
|
|
<template #list>
|
|
<template #list>
|
|
<el-col :span="24" style="margin: 0 0 10px 0">
|
|
<el-col :span="24" style="margin: 0 0 10px 0">
|
|
<el-button type="primary" size="mini" @click="toAdd()">添加</el-button>
|
|
<el-button type="primary" size="mini" @click="toAdd()">添加</el-button>
|
|
@@ -158,7 +158,10 @@ export default {
|
|
if (!data.bottom_menu) {
|
|
if (!data.bottom_menu) {
|
|
data.bottom_menu = {};
|
|
data.bottom_menu = {};
|
|
} else {
|
|
} else {
|
|
- this.$set(this, `list`, data.bottom_menu.list);
|
|
|
|
|
|
+ let list = _.sortBy(data.bottom_menu.list, function (item) {
|
|
|
|
+ return item.sort;
|
|
|
|
+ });
|
|
|
|
+ this.$set(this, `list`, list);
|
|
}
|
|
}
|
|
this.$set(this, `form`, data);
|
|
this.$set(this, `form`, data);
|
|
}
|
|
}
|