From d08bd5e10e114ce55a8be051a9ef5680b63ca9cf Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Sun, 13 Nov 2022 14:56:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feaet:=E6=8A=95=E7=A5=A8=E9=A2=98=E5=B9=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E3=80=81=E9=80=89=E9=A1=B9=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CreVote.vue | 35 ++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue index cdcd309d..0158a5ed 100644 --- a/src/components/drawers/CreVote.vue +++ b/src/components/drawers/CreVote.vue @@ -36,7 +36,7 @@
-
+
删除题干
@@ -77,10 +77,18 @@ v-model:value="o.opvalue" style="width: 424px; height: 32px" /> -
+ + 上传图片
@@ -154,7 +162,11 @@ export default { }, ], }); - }; + }; + const delQue = (value,index)=>{ + console.log('gyd',value,index); + value.splice(value[index],1) + } const addOpt = (value) => { console.log(value); value.push({ @@ -163,10 +175,10 @@ export default { opvalue: "", }); }; - const delOpt = (value) => { - console.log('gys', value); - // delete value[0] - value.pop() + const delOpt = (value,index) => { + console.log('gys', value,index); + // delete value + value.splice(value[index],1) } const closeDrawer = () => { @@ -186,10 +198,10 @@ export default { // message.destroy(); // return message.info("请输入题干"); // } - // if (!state.questions.optins.opvalue) { - // message.destroy(); - // return message.info("请输入选项"); - // } + if (!state.questions.optins.opvalue) { + message.destroy(); + return message.info("请输入选项"); + } console.log("111111", state.questions); // console.log('22222',state.questions.inputV); // console.log('333333',state.questions.options); @@ -258,6 +270,7 @@ export default { afterVisibleChange, closeDrawer, addQue, + delQue, addOpt, delOpt, createQueTit, From c2b68cf5aaec80041ed978b04b71409fed9b3686 Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Mon, 14 Nov 2022 09:42:40 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=E6=8A=95=E7=A5=A8=E9=A2=98=E5=B9=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=92=8C=E9=80=89=E9=A1=B9=E5=88=A0=E9=99=A4?= =?UTF-8?q?\=E5=88=9B=E5=BB=BA=E5=88=A0=E9=99=A4=E9=A2=98=E5=B9=B2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddVote.vue | 41 +++++----- src/components/drawers/CreVote.vue | 120 +++++++++++++++-------------- vue.config.js | 1 + 3 files changed, 83 insertions(+), 79 deletions(-) diff --git a/src/components/drawers/AddVote.vue b/src/components/drawers/AddVote.vue index 57195b43..01647cc1 100644 --- a/src/components/drawers/AddVote.vue +++ b/src/components/drawers/AddVote.vue @@ -66,7 +66,7 @@
{{voteStemName}} -
+
@@ -74,7 +74,8 @@
@@ -195,7 +196,7 @@ export default { endTimes: "", startTimes: "", ascriptionId: "", - voteStemId: "", + voteStemId: null, voteId:"", voteStemName:"", }); @@ -209,6 +210,14 @@ export default { const showDrawerCreVote = () => { state.crevotevisible = true; }; + const getStemId = (data) => { + state.voteStemName = data.voteStemName; + state.voteStemId = Number(data.voteStemId); + state.creVote = data.creVote; + console.log('state.voteStemId', state.voteStemId); + console.log('state.voteStemId', state.creVote); + } + //暂时没用 之前给子用传参来着 const changeVData = (data) => { console.log("111", data); state.creVote = data.creVote; @@ -220,25 +229,11 @@ export default { }; const delBox = () => { state.creVote = false; - dleVoteStem() }; - //获取题干信息 - // const getStemText = () => { - // let objstem = { - // stemId: state.ascriptionId, - // ascriptionId: state.voteStemId, - // } - // api - // .queryStemByStemId(objstem) - // .then((res) => { - // console.log("获取成功", res); - // message.success("获取成功"); - // }) - // .catch((err) => { - // console.log(err); - // }); - // } + const updateTableData = (data) => { + console.log(data, 'data'); + } //删除题干信息接口 const dleVoteStem = () => { @@ -249,6 +244,7 @@ export default { .then((res) => { console.log('删除题干信息成功', res) message.success('删除题干信息成功') + delBox() }) } //创建投票信息 @@ -273,9 +269,6 @@ export default { ); } - // if (state.crevotevisible = false) { - // changeVData() - // }; let obj = { ascriptionId: state.ascriptionId, @@ -342,12 +335,14 @@ export default { showDrawerCreVote, afterVisibleChange, closeDrawer, + getStemId, changeVData, rowSelection, options1, dleVoteStem, createVoteText, delBox, + updateTableData, }; }, }; diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue index 826218f8..7ac4071e 100644 --- a/src/components/drawers/CreVote.vue +++ b/src/components/drawers/CreVote.vue @@ -111,7 +111,7 @@ - - diff --git a/src/components/drawers/StuAdd.vue b/src/components/drawers/StuAdd.vue index 735d851f..89507bf4 100644 --- a/src/components/drawers/StuAdd.vue +++ b/src/components/drawers/StuAdd.vue @@ -3,7 +3,7 @@ :visible="Stuvisible" class="drawerStyle stuadd" placement="right" - width="70%" + width="85%" @after-visible-change="afterVisibleChange" >
@@ -67,23 +67,28 @@
-->
- BOE组织树
+ + - +
-
+
@@ -155,53 +163,34 @@ -->
- BOE组织树
+ + - - - - + @@ -211,7 +200,7 @@ >
-
+
-
姓名:
+
受众名称:
-
-
-
-
- +
+
+
+ +
+
搜索
-
搜索
-
-
-
- +
+
+ +
+
重置
-
重置
+ -
+
-
+
@@ -300,27 +291,190 @@
已选
-
6
-
+
-
+
全部清除
快速选人
-
- -
- {{ item.name }} -
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
添加组织
+
+
+
+ +
+
{{ item.value }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
+
+
受众关联
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
+
+
@@ -328,11 +482,44 @@
+ + + +
+
+
+
+
+ 提示 +
+
+
+ 您确定要添加此组织吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+