From 959b048915281a8bf5101e87c76120595fbb1194 Mon Sep 17 00:00:00 2001
From: wyx <51903@qq.com>
Date: Sun, 4 Dec 2022 11:12:24 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E5=BE=85=E5=AE=A1=E6=A0=B8=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B=E9=A2=84=E8=A7=88=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B7=B2?=
=?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=A1=B9=E7=9B=AE=E5=AE=A1=E6=A0=B8=E8=AF=B4?=
=?UTF-8?q?=E6=98=8E=E5=AD=97=E6=AE=B5=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/examine/CourseReviewedN.vue | 25 ++++++++++++++++---------
src/views/examine/ProjectReviewed.vue | 5 ++++-
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/views/examine/CourseReviewedN.vue b/src/views/examine/CourseReviewedN.vue
index 00e854ba..074cbc25 100644
--- a/src/views/examine/CourseReviewedN.vue
+++ b/src/views/examine/CourseReviewedN.vue
@@ -230,13 +230,14 @@
@@ -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
};
},
};
diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue
index 3daa7d81..cd88764e 100644
--- a/src/views/examine/ProjectReviewed.vue
+++ b/src/views/examine/ProjectReviewed.vue
@@ -188,6 +188,7 @@ export default {
key: "topName",
align: "center",
width: "10%",
+ customRender: ({record: {parentId,name}}) => {parentId==0?name:(parentId)}
,
},
{
title: "项目经理",
@@ -219,6 +220,7 @@ export default {
dataIndex: "description",
key: "description",
align: "center",
+ customRender: ({record: {auditList,description}}) => {auditList.length!==0?auditList[auditList.length-1].description?auditList[auditList.length-1].description:'-':description?description:'-'}
,
},
{
@@ -290,6 +292,7 @@ export default {
status: 1,
};
auditedlist(objn).then((res) => {
+ console.log('获取已审核项目列表数据',res)
let result = res.data.data;
state.total = res.data.data.total;
state.tableData1 = result.rows
@@ -347,7 +350,7 @@ export default {
reset,
closeProjAuditModal,
showProjAuditModal,
- setAudit,
+ setAudit
};
},
};