mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
fix:待审核课程预览问题,已审核项目审核说明字段添加
This commit is contained in:
@@ -230,13 +230,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mbl_items">
|
||||
<div class="item_nam">
|
||||
<div v-if="(attachMap.length>0)" class="item_nam">
|
||||
<span style="margin-right: 10px">附件</span>
|
||||
</div>
|
||||
<div class="item_inp" v-for="(value, index) in attachMap" :key="index">
|
||||
<a :src="value">
|
||||
<a>
|
||||
{{ ['附件一', '附件二', '附件三', '附件四', '附件五', '附件六'][index] }}
|
||||
</a>
|
||||
<a style="margin-left:120px;" :src="value" :href="value">查看</a>
|
||||
<!-- <a-upload multiple :show-upload-list="false" :before-upload="beforeUpload2">
|
||||
<div class="accessory" style="cursor: pointer">
|
||||
<div class="accessory_icon">
|
||||
@@ -287,9 +288,9 @@
|
||||
</div>
|
||||
<div class="fotarea">
|
||||
<div style="border: 1px solid #ccc">
|
||||
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig"
|
||||
:mode="mode" />
|
||||
<Editor v-model="valueHtml" :defaultConfig="editorConfig" :mode="mode" @onCreated="handleCreated" />
|
||||
<!-- <Toolbar style="border-bottom: 1px solid #ccc;width:900px;height: 300px;" :defaultConfig="toolbarConfig"
|
||||
:mode="mode" /> -->
|
||||
<Editor @focus="onEditorFocus" style="border-bottom: 1px solid #ccc;width:900px;height: 300px;" v-model="valueHtml" :defaultConfig="editorConfig" :mode="mode" @onCreated="handleCreated" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -319,7 +320,7 @@ import { reactive, toRefs, onMounted, ref } from "vue";
|
||||
import { list, courseAuditView, courseDetail } from "../../api/indexAudit";
|
||||
import { toDate } from "../../api/method";
|
||||
import { message } from "ant-design-vue";
|
||||
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
||||
import { Editor } from "@wangeditor/editor-for-vue";
|
||||
import { iframeUrl } from "../../api/method";
|
||||
import * as api1 from "@/api/index1";
|
||||
|
||||
@@ -327,7 +328,7 @@ export default {
|
||||
name: "CoursereViewedN",
|
||||
components: {
|
||||
Editor,
|
||||
Toolbar,
|
||||
// Toolbar,
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
@@ -505,7 +506,7 @@ export default {
|
||||
state.faceDetailObj = result;
|
||||
heroImg.value.src = result.picUrl
|
||||
valueHtml.value = result.outline
|
||||
attachMap.value = result.attach.split(",")
|
||||
attachMap.value = result.attach==""?[]:result.attach.split(",")
|
||||
console.log(result, attachMap.value);
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -654,6 +655,11 @@ export default {
|
||||
//获取分类列表
|
||||
state.calssifyList = (await getDictList("faceclassClass")).map(e => ({ label: e.dictName, value: e.dictCode }))
|
||||
});
|
||||
|
||||
// 禁止用户编辑文本框内容
|
||||
const onEditorFocus = (event) => {
|
||||
event.enable(false);
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
getFaceList,
|
||||
@@ -671,7 +677,8 @@ export default {
|
||||
valueHtml,
|
||||
attachMap,
|
||||
contentList11,
|
||||
sceneist11
|
||||
sceneist11,
|
||||
onEditorFocus
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user