|
@@ -18,15 +18,16 @@
|
|
|
<template #type>
|
|
|
<el-option v-for="(i, index) in typeList" :key="`t${index}`" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
- <!-- <template #parent_id>
|
|
|
- <el-option v-for="(i, index) in getOneDimensionList()" :key="`m${index}`" :label="i.name" :value="i._id"></el-option>
|
|
|
- </template>
|
|
|
<template #icon>
|
|
|
- <el-option v-for="i in iconList" :key="i.dict_value" :label="i.dict_label" :value="i.dict_value">
|
|
|
+ <el-option v-for="i in iconList" :key="i.value" :label="i.label" :value="i.value">
|
|
|
<span style="float: left" :class="['iconfont', i.dict_label]"></span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ i.dict_label }}</span>
|
|
|
</el-option>
|
|
|
</template>
|
|
|
+ <!-- <template #parent_id>
|
|
|
+ <el-option v-for="(i, index) in getOneDimensionList()" :key="`m${index}`" :label="i.name" :value="i._id"></el-option>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #status>
|
|
|
<el-radio-group v-model="form.status">
|
|
|
<el-radio label="0">使用</el-radio>
|
|
@@ -78,6 +79,7 @@ const typeList: Ref<any> = ref([
|
|
|
{ label: '菜单', value: '1' },
|
|
|
{ label: '子页面', value: '2' }
|
|
|
]);
|
|
|
+const iconList: Ref<any> = ref([]);
|
|
|
// 请求
|
|
|
onMounted(async () => {
|
|
|
let id = route.query.id;
|