Kaynağa Gözat

修改显示

zs 10 ay önce
ebeveyn
işleme
a5229e8d94

+ 1 - 1
src/components/WangEditor/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="editor-wrapper" style="border: 1px solid #dcdfe6; border-radius: 5px">
+  <div class="editor-wrapper" style="width: 100%; border: 1px solid #dcdfe6; border-radius: 5px">
     <!-- 工具栏 -->
     <Toolbar id="toolbar-container" :editor="editorRef" :default-config="toolbarConfig" :mode="mode" />
     <!-- 编辑器 -->

+ 1 - 1
src/views/footplate/index.vue

@@ -186,7 +186,7 @@ const toMoreDelect = () => {
 }
 // 添加
 const toAdd = () => {
-  form.value = { type: '1' }
+  form.value = { file: [] }
   dialog.value = { type: '1', show: true, title: t('pages.footplate.addDialogTitle') }
 }
 // 修改

+ 1 - 1
src/views/journal/index.vue

@@ -140,7 +140,7 @@ const toMoreDelect = () => {
 }
 // 添加
 const toAdd = () => {
-  form.value = { type: '1' }
+  form.value = { file: [] }
   dialog.value = { type: '1', show: true, title: t('pages.journal.addDialogTitle') }
 }
 // 修改

+ 2 - 2
src/views/journal/notes.vue

@@ -143,7 +143,7 @@ const toMoreDelect = () => {
 }
 // 添加
 const toAdd = () => {
-  form.value = { type: '1' }
+  form.value = { journal: route.query.id }
   dialog.value = { type: '1', show: true, title: t('pages.notes.addDialogTitle') }
 }
 // 修改
@@ -166,7 +166,7 @@ const onUpload = (e) => {
 }
 const toSave = async () => {
   const data = cloneDeep(form.value)
-  const other = { status: '0', journal: route.query.id }
+  const other = { status: '0' }
   let res
   if (get(data, 'id')) res = await store.update({ ...data, ...other })
   else res = await store.create({ ...data, ...other })

+ 3 - 3
src/views/support/index.vue

@@ -65,8 +65,8 @@ const fields = [
   { label: t('pages.support.name'), model: 'name', isSearch: true },
   { label: t('pages.support.industry'), model: 'industry', isSearch: true, type: 'select' },
   { label: t('pages.support.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
-  { label: t('pages.support.field'), model: 'build', isSearch: true },
-  { label: t('pages.support.time'), model: 'operate', isSearch: true },
+  { label: t('pages.support.field'), model: 'field', isSearch: true },
+  { label: t('pages.support.time'), model: 'time', isSearch: true },
   { label: t('pages.support.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
   { label: t('pages.support.status'), model: 'status', format: (i) => getDict(i, 'status') }
 ]
@@ -179,7 +179,7 @@ const toMoreDelect = () => {
 }
 // 添加
 const toAdd = () => {
-  form.value = { type: '1' }
+  form.value = {}
   dialog.value = { type: '1', show: true, title: t('pages.support.addDialogTitle') }
 }
 // 修改