提交
This commit is contained in:
parent
3fce0f3bf9
commit
7ae1b7da4b
@ -10,7 +10,7 @@
|
|||||||
<el-form style="display: flex" ref="formRef" :model="formData" label-width="80px">
|
<el-form style="display: flex" ref="formRef" :model="formData" label-width="80px">
|
||||||
<div style="width: 880px;flex: none" :style="{height:fwbHeight+'px'}">
|
<div style="width: 880px;flex: none" :style="{height:fwbHeight+'px'}">
|
||||||
<el-form-item label-width="0px" prop="content">
|
<el-form-item label-width="0px" prop="content">
|
||||||
<Editor ref="editorRef" :height="fwbHeight"/>
|
<Editor ref="editorRef" :height="fwbHeight" name="content"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div style="flex:1;margin-left: 10px">
|
<div style="flex:1;margin-left: 10px">
|
||||||
|
@ -71,7 +71,6 @@
|
|||||||
import type {FormInstance} from "element-plus";
|
import type {FormInstance} from "element-plus";
|
||||||
import { categoryAdd,categoryUpdate,getCategoryList,getCategoryDetail } from '@/api/content/category';
|
import { categoryAdd,categoryUpdate,getCategoryList,getCategoryDetail } from '@/api/content/category';
|
||||||
import {onMounted, reactive, ref, shallowRef} from "vue";
|
import {onMounted, reactive, ref, shallowRef} from "vue";
|
||||||
import {getModulesKey} from "@/router";
|
|
||||||
import {message,buildTree} from "@/utils/auth";
|
import {message,buildTree} from "@/utils/auth";
|
||||||
import {useLockFn} from "@/utils/useLockFn";
|
import {useLockFn} from "@/utils/useLockFn";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -93,16 +92,6 @@ const props = defineProps({
|
|||||||
const emit = defineEmits(["success","update:visible"]);
|
const emit = defineEmits(["success","update:visible"]);
|
||||||
const formRef = shallowRef<FormInstance>();
|
const formRef = shallowRef<FormInstance>();
|
||||||
|
|
||||||
const componentsOptions = ref(getModulesKey());
|
|
||||||
const querySearch = (queryString: string, cb: any) => {
|
|
||||||
const results = queryString
|
|
||||||
? componentsOptions.value.filter((item) =>
|
|
||||||
item.toLowerCase().includes(queryString.toLowerCase())
|
|
||||||
)
|
|
||||||
: componentsOptions.value;
|
|
||||||
cb(results.map((item) => ({value: item})));
|
|
||||||
};
|
|
||||||
|
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
id: "",
|
id: "",
|
||||||
//父级id
|
//父级id
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
prop="content"
|
prop="content"
|
||||||
:rules="{ required: true, message: '请输入通知内容', trigger: 'blur' }"
|
:rules="{ required: true, message: '请输入通知内容', trigger: 'blur' }"
|
||||||
>
|
>
|
||||||
<Editor ref="editorRef" :height="fwbHeight" class="flex-1"/>
|
<Editor ref="editorRef" :height="fwbHeight" class="flex-1" name="data"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
:file-list="item.filePath" :z-index="index"/>
|
:file-list="item.filePath" :z-index="index"/>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="item.type == 'ueditor'">
|
<template v-else-if="item.type == 'ueditor'">
|
||||||
<Editor ref="editorRef" :height="fwbHeight" class="flex-1"/>
|
<Editor ref="editorRef" :height="fwbHeight" class="flex-1" name="setting"/>
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
Loading…
Reference in New Issue
Block a user