From 60baf4b6dcef7123802e97d0fa5e38ee164d3603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 16 Feb 2022 22:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xm/core/xmQuestion/XmQuestionEdit.vue | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index e3be639f..d8600f71 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -1,7 +1,7 @@ @@ -136,6 +147,7 @@ import XmTaskList from '../xmTask/XmTaskList'; import xmMenuSelect from '../xmMenu/XmMenuSelect'; import XmQuestionHandleMng from '../xmQuestionHandle/XmQuestionHandleMng';//修改界面 + import TagMng from "@/views/mdp/arc/tag/TagMng"; export default { computed: { @@ -206,6 +218,7 @@ flowInfoVisible:false, selectMenuVisible:false, receiptMessageEditorVisible:false, + tagSelectVisible:false, /**end 在上面加自定义属性**/ }//end return },//end data @@ -383,10 +396,20 @@ this.editForm.menuId='' this.editForm.menuName="" }, + onTagSelected(tags) { + this.tagSelectVisible = false; + if(tags && tags.length>0){ + this.editForm.tagIds=tags.map(i=>i.tagId).join(",") + this.editForm.tagNames=tags.map(i=>i.tagName).join(",") + }else{ + this.editForm.tagIds="" + this.editForm.tagNames="" + } + }, },//end method components: { //在下面添加其它组件 'xm-question-edit':XmQuestionEdit - 'upload': AttachmentUpload,XmGroupMng,VueEditor,XmTaskList,xmMenuSelect,XmQuestionHandleMng, + 'upload': AttachmentUpload,XmGroupMng,VueEditor,XmTaskList,xmMenuSelect,XmQuestionHandleMng,TagMng, }, mounted() { console.log("question_add");