Преглед изворни кода

fix:处理富文本编辑器问题、处理首页列表告警人映射

lh_hub пре 6 месеци
родитељ
комит
2214e8a117

+ 3 - 0
snowy-admin-web/src/components/HomeCard/SysWarningCard/index.vue

@@ -22,6 +22,9 @@
 					</a-popconfirm>
 					<a-divider type="vertical" />
 				</template>
+				<template v-if="column.dataIndex === 'alarmUsers'">
+					<span v-for="(e, i) in record.alarmUsers" :key="i">{{ e.nickName + ',' }} </span></template
+				>
 			</template>
 		</a-table>
 

+ 3 - 3
snowy-admin-web/src/components/XnEditor/index.vue

@@ -55,10 +55,10 @@
 	})
 	const contentValue = ref()
 	const init = ref({
-		language_url: 'tinymce/langs/zh_CN.js',
+		language_url: '/tinymce/langs/zh_CN.js',
 		language: 'zh_CN',
-		skin_url: 'tinymce/skins/ui/oxide',
-		content_css: 'tinymce/skins/content/default/content.css',
+		skin_url: '/tinymce/skins/ui/oxide',
+		content_css: '/tinymce/skins/content/default/content.css',
 		menubar: false,
 		statusbar: true,
 		plugins: props.plugins,

+ 2 - 2
snowy-admin-web/src/views/biz/notice/form.vue

@@ -30,8 +30,7 @@
 				</a-col>
 				<a-col :span="24">
 					<a-form-item label="内容:" name="content">
-						<!-- <xn-editor v-model:value="formData.content" placeholder="请输入内容" /> -->
-						<a-textarea v-model:value="formData.content" placeholder="请输入内容" :rows="8" />
+						<xn-editor v-model:value="formData.content" placeholder="请输入内容" />
 					</a-form-item>
 				</a-col>
 				<a-col :span="24">
@@ -83,6 +82,7 @@
 	import { cloneDeep } from 'lodash-es'
 	import { required } from '@/utils/formRules'
 	import bizNoticeApi from '@/api/biz/bizNoticeApi'
+
 	// 抽屉状态
 	const open = ref(false)
 	const emit = defineEmits({ successful: null })