From 02b15ea14af034f54bc80ec054b19406d6eca68e Mon Sep 17 00:00:00 2001 From: zhangyc Date: Sun, 4 Dec 2022 16:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E4=BB=BB=E5=8A=A1=E5=AD=97?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/ActiveAttendance.vue | 1 + src/components/drawers/AddActive.vue | 29 +++++++++-- src/components/drawers/AddCase.vue | 2 + src/components/drawers/AddDiscuss.vue | 1 + src/components/drawers/AddEval.vue | 29 +++++++++-- src/components/drawers/AddFaceteach.vue | 32 +++++++++--- src/components/drawers/AddGroup.vue | 2 + src/components/drawers/AddHomework.vue | 37 ++++++++++++-- src/components/drawers/AddLevelAddStu.vue | 3 ++ src/components/drawers/AddLive.vue | 27 +++++++++- src/components/drawers/AddOnline.vue | 1 + src/components/drawers/AddProject.vue | 7 +-- src/components/drawers/AddRef.vue | 6 ++- src/components/drawers/AddTest.vue | 52 +++++++++++++++----- src/components/drawers/CourseOwner.vue | 1 + src/components/drawers/SelFacet.vue | 2 +- src/views/courselibrary/CoursewareManage.vue | 1 + 17 files changed, 199 insertions(+), 34 deletions(-) diff --git a/src/components/drawers/ActiveAttendance.vue b/src/components/drawers/ActiveAttendance.vue index ca47dbdf..75a1a3b0 100644 --- a/src/components/drawers/ActiveAttendance.vue +++ b/src/components/drawers/ActiveAttendance.vue @@ -32,6 +32,7 @@ v-model:value="name" style="width: 270px; height: 40px; border-radius: 8px" placeholder="请输入姓名" + maxlength="20" />
diff --git a/src/components/drawers/AddActive.vue b/src/components/drawers/AddActive.vue index e918556b..081dea2f 100644 --- a/src/components/drawers/AddActive.vue +++ b/src/components/drawers/AddActive.vue @@ -33,7 +33,7 @@ v-model:value="inputV1" style="width: 424px; height: 32px" placeholder="请输入活动名称" - maxlength="20" + maxlength="50" />
@@ -52,7 +52,8 @@ v-model:value="textV1" placeholder="请输入活动公告" allow-clear - maxlength="150" + :rows="6" + show-count :maxlength="200" /> @@ -65,7 +66,8 @@ v-model:value="textV2" placeholder="请输入活动说明" allow-clear - maxlength="150" + :rows="6" + show-count :maxlength="200" /> @@ -127,6 +129,7 @@ v-model:value="inputV3" style="width: 424px; height: 32px" placeholder="请输入活动地址" + maxlength="100" /> @@ -589,7 +592,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + .ant-input { + width: 100%; + } + + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/AddCase.vue b/src/components/drawers/AddCase.vue index f6f3b511..9ac7873e 100644 --- a/src/components/drawers/AddCase.vue +++ b/src/components/drawers/AddCase.vue @@ -27,6 +27,8 @@ v-model:value="inputV1" style="width: 264px; height: 40px; border-radius: 8px" placeholder="请输入案例标题" + show-count + :maxlength="20" /> diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue index 90e8184f..c69aede3 100644 --- a/src/components/drawers/AddDiscuss.vue +++ b/src/components/drawers/AddDiscuss.vue @@ -46,6 +46,7 @@ v-model:value="textV1" placeholder="请输入讨论说明" allow-clear + :rows="6" show-count :maxlength="200" /> diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index 5fdb0a61..1c09a8ab 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -18,7 +18,8 @@
+ show-count + :maxlength="50" />
@@ -53,9 +54,9 @@ 测评说明:
- - {{ description.length }}/150 + +
@@ -423,7 +424,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + .ant-input { + width: 100%; + } + + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index 818fcf65..2942df5e 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -18,7 +18,7 @@
+ :maxlength="50"/>
@@ -30,7 +30,7 @@
@@ -50,7 +50,7 @@ 面授说明:
- +
@@ -103,7 +103,7 @@
+ :maxlength="100"/>
@@ -209,7 +209,7 @@
- 删除作业 + 删除作业{{EditWorkId}}
@@ -233,7 +233,7 @@
- 删除考试 + 删除考试{{EditTestId}}
@@ -793,7 +793,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + .ant-input { + width: 100%; + } + + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/AddGroup.vue b/src/components/drawers/AddGroup.vue index 0606e0a7..ac0db9e4 100644 --- a/src/components/drawers/AddGroup.vue +++ b/src/components/drawers/AddGroup.vue @@ -29,6 +29,7 @@ v-model:value="valuen" placeholder="请输入小组名称" style="border-radius: 8px; height: 40px" + maxlength="20" />
@@ -45,6 +46,7 @@ v-model:value="valueg" placeholder="请输入小组长" style="border-radius: 8px; height: 40px" + maxlength="20" /> diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index ea551f0b..e0c27c82 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -12,7 +12,7 @@
+
+ + show-count :maxlength="200" + />
@@ -95,7 +99,7 @@
- 取消 + 取消 确定
@@ -283,6 +287,10 @@ export default { state.workEnclosureAddress = ""; resetForm(); }; + const closeDrawer2 = () => { + ctx.emit("update:addhomeworkVisible", false); + resetForm(); + }; const afterVisibleChange = () => { if (props.EditWorkId > 0) { state.EditWorkId = props.EditWorkId; @@ -438,6 +446,7 @@ export default { return { afterVisibleChange, closeDrawer, + closeDrawer2, handleChange, fileList, formState, @@ -527,7 +536,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + + .ant-input { + width: 100%; + } + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/AddLevelAddStu.vue b/src/components/drawers/AddLevelAddStu.vue index 935f71c2..4de33e02 100644 --- a/src/components/drawers/AddLevelAddStu.vue +++ b/src/components/drawers/AddLevelAddStu.vue @@ -31,6 +31,7 @@ v-model:value="name" style="width: 270px; height: 40px; border-radius: 8px" placeholder="请输入姓名" + maxlength="20" />
@@ -126,6 +127,7 @@ v-model:value="nameadd" style="width: 200px; height: 40px; border-radius: 8px" placeholder="请输入姓名" + maxlength="20" />
@@ -205,6 +207,7 @@ v-model:value="nameaddd" style="width: 200px; height: 40px; border-radius: 8px" placeholder="请输入姓名" + maxlength="20" /> diff --git a/src/components/drawers/AddLive.vue b/src/components/drawers/AddLive.vue index 367eb606..46e0b339 100644 --- a/src/components/drawers/AddLive.vue +++ b/src/components/drawers/AddLive.vue @@ -47,7 +47,10 @@ v-model:value="textV1" placeholder="请输入考试说明" allow-clear - maxlength="364px" + show-count + :maxlength="200" + :rows="6" + /> @@ -155,6 +158,7 @@ v-model:value="inputV4" style="width: 424px; height: 32px" placeholder="请输入直播链接" + :maxlength="100" /> @@ -176,6 +180,7 @@ v-model:value="inputV5" style="width: 424px; height: 32px" placeholder="请输入回放链接" + :maxlength="100" /> @@ -872,7 +877,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + .ant-input { + width: 100%; + } + + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue index 1d587c4d..d52c7a4e 100644 --- a/src/components/drawers/AddOnline.vue +++ b/src/components/drawers/AddOnline.vue @@ -27,6 +27,7 @@ v-model:value="inputV1" style="width: 240px; height: 40px; border-radius: 8px" placeholder="请输入项目名称" + maxlength="20" /> diff --git a/src/components/drawers/AddProject.vue b/src/components/drawers/AddProject.vue index 48a0cd5a..23dc5b6c 100644 --- a/src/components/drawers/AddProject.vue +++ b/src/components/drawers/AddProject.vue @@ -15,21 +15,22 @@
项目名称:
+ placeholder="请输入项目名称" + maxlength="20"/>
项目经理:
+ placeholder="请输入项目经理" maxlength="20"/>
创建人:
+ placeholder="请输入创建人" maxlength="20"/>
diff --git a/src/components/drawers/AddRef.vue b/src/components/drawers/AddRef.vue index 32d4e39d..a6b55e71 100644 --- a/src/components/drawers/AddRef.vue +++ b/src/components/drawers/AddRef.vue @@ -42,7 +42,7 @@ v-model:value="inputV1" style="width: 424px; height: 32px" placeholder="请输入外链名称" - maxlength="20" + show-count :maxlength="50" /> @@ -61,6 +61,8 @@ v-model:value="inputV2" style="width: 424px; height: 32px" placeholder="请输入链接" + + show-count :maxlength="100" /> @@ -73,6 +75,8 @@ v-model:value="textV1" placeholder="请输入外链说明" allow-clear + :rows="6" + show-count :maxlength="200" /> diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index 38876d14..8557182f 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -12,7 +12,7 @@ @@ -58,7 +58,7 @@ style="width: 424px; height: 32px; margin-left: 35px" autocomplete="off" placeholder="请输入考试名称" - maxlength="20" + show-count :maxlength="50" /> @@ -68,14 +68,15 @@ has-feedback label="考试说明" name="examinationExplain" - > + >
+ show-count :maxlength="200" + />
@@ -306,7 +307,7 @@
- 取消 + 取消 确定
@@ -335,7 +336,7 @@ style="width: 424px; height: 32px; margin-left: 35px" autocomplete="off" placeholder="请输入考试名称" - maxlength="20" + show-count :maxlength="50" /> @@ -352,7 +353,7 @@ style="width: 424px; height: 32px; margin-left: 35px" autocomplete="off" placeholder="数据来源" - maxlength="20" + show-count :maxlength="50" /> @@ -364,19 +365,21 @@ label="考试说明" name="examinationExplain" > +
+ show-count :maxlength="200" + />
- 取消 + 取消 确定
@@ -652,6 +655,11 @@ export default { localStorage.setItem("chapterId", props.isactive); resetForm(); }; + const closeDrawer2 = () => { + formState.choosedTime = ""; + ctx.emit("update:addtestVisible", false); + resetForm(); + }; const afterVisibleChange = () => { if (props.addtestVisible && props.edit) { // 该页面显示同时 edit为true 时,发送查询请求, @@ -856,6 +864,7 @@ export default { formState, afterVisibleChange, closeDrawer, + closeDrawer2, selectTest, cloradio1, cloradio2, @@ -963,6 +972,27 @@ export default { display: flex; align-items: flex-start; margin-bottom: 32px; + .textarea { + width: 423px; + + .ant-input { + width: 100%; + } + + .ant-input-textarea-show-count { + position: relative; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + } + } .signbox { width: 120px; display: flex; diff --git a/src/components/drawers/CourseOwner.vue b/src/components/drawers/CourseOwner.vue index ab3c53f8..ecc69bbf 100644 --- a/src/components/drawers/CourseOwner.vue +++ b/src/components/drawers/CourseOwner.vue @@ -31,6 +31,7 @@ v-model:value="name" style="width: 270px; height: 40px; border-radius: 8px" placeholder="请输入姓名" + maxlength="20" />
diff --git a/src/components/drawers/SelFacet.vue b/src/components/drawers/SelFacet.vue index a6a845cb..eb59795d 100644 --- a/src/components/drawers/SelFacet.vue +++ b/src/components/drawers/SelFacet.vue @@ -136,7 +136,7 @@ //import { ApiFilled } from "@ant-design/icons-vue"; import {reactive, toRefs, ref, computed} from "vue"; // import { planList } from "../../api/indexTaskadd"; -import {detail} from "../../api/indexCourse"; +//import {detail} from "../../api/indexCourse"; import {list} from "../../api/indexTaskadd"; import {toDate} from "../../api/method"; diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 8c60136d..1de45dc8 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3980,6 +3980,7 @@ export default defineComponent({ state.valueE1 = ""; state.qdms_inputV1 = state.xzinputV1; state.xzinputV1 = ""; + getDictList("faceclassPic"); } if (state.bs_hs && state.valueE1 != "") { state.addOnlineCoursevisible = true;