mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
限制任务字数
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
<div class="namecon" style="margin-right: 30px">
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
v-model:value="inputV1"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入活动名称"
|
||||
maxlength="20"
|
||||
maxlength="50"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -52,7 +52,8 @@
|
||||
v-model:value="textV1"
|
||||
placeholder="请输入活动公告"
|
||||
allow-clear
|
||||
maxlength="150"
|
||||
:rows="6"
|
||||
show-count :maxlength="200"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -65,7 +66,8 @@
|
||||
v-model:value="textV2"
|
||||
placeholder="请输入活动说明"
|
||||
allow-clear
|
||||
maxlength="150"
|
||||
:rows="6"
|
||||
show-count :maxlength="200"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,6 +129,7 @@
|
||||
v-model:value="inputV3"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入活动地址"
|
||||
maxlength="100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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;
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
v-model:value="inputV1"
|
||||
style="width: 264px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入案例标题"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
v-model:value="textV1"
|
||||
placeholder="请输入讨论说明"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="inputV1" style="width: 424px; height: 32px" placeholder="请输入测评名称"
|
||||
maxlength="20" />
|
||||
show-count
|
||||
:maxlength="50" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -53,9 +54,9 @@
|
||||
<span style="margin-right: 3px">测评说明:</span>
|
||||
</div>
|
||||
<div class="textarea">
|
||||
<a-textarea maxlength="150" v-model:value="description" placeholder="请输入测评说明"
|
||||
style="width: 424px; height: 120px" allowClear />
|
||||
<span style="position:relative;top:96px;left:-54px;z-index:9999;">{{ description.length }}/150</span>
|
||||
<a-textarea show-count :maxlength="200" v-model:value="description" placeholder="请输入测评说明"
|
||||
style="width: 424px;" allowClear :rows="6"/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="courseName" style="width: 384px; height: 32px" placeholder="请输入名称"
|
||||
maxlength="20"/>
|
||||
:maxlength="50"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<button class="xkbtn" @click="showDrawerSelFacet">
|
||||
{{ chooseCourse == null ? "选择" : chooseCourseName }}面授课
|
||||
{{ chooseCourse == null ? "选择" : 重选 }}面授课
|
||||
</button>
|
||||
<div v-if="chooseCourse">
|
||||
<a-tag closable color="processing" @close="logC">
|
||||
@@ -50,7 +50,7 @@
|
||||
<span style="margin-right: 3px">面授说明:</span>
|
||||
</div>
|
||||
<div class="textarea">
|
||||
<a-textarea v-model:value="description" placeholder="请输入说明" allow-clear maxlength="100"/>
|
||||
<a-textarea v-model:value="description" placeholder="请输入说明" allow-clear show-count :maxlength="200" :rows="6"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -103,7 +103,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="address" style="width: 384px; height: 32px" placeholder="请输入上课地址"
|
||||
maxlength="100"/>
|
||||
:maxlength="100"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item2">
|
||||
@@ -209,7 +209,7 @@
|
||||
<button class="xkbtn">配置</button>
|
||||
<div v-if="EditWorkId > 0">
|
||||
<a-tag closable color="processing" @close="logW">
|
||||
<span style="font-size:14px;line-height: 33px;">删除作业</span>
|
||||
<span style="font-size:14px;line-height: 33px;">删除作业{{EditWorkId}}</span>
|
||||
</a-tag>
|
||||
</div>
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
<button class="xkbtn">配置</button>
|
||||
<div v-if="EditTestId > 0">
|
||||
<a-tag closable color="processing" @close="logT">
|
||||
<span style="font-size:14px;line-height: 33px;">删除考试</span>
|
||||
<span style="font-size:14px;line-height: 33px;">删除考试{{EditTestId}}</span>
|
||||
</a-tag>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
v-model:value="valuen"
|
||||
placeholder="请输入小组名称"
|
||||
style="border-radius: 8px; height: 40px"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -45,6 +46,7 @@
|
||||
v-model:value="valueg"
|
||||
placeholder="请输入小组长"
|
||||
style="border-radius: 8px; height: 40px"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
@click="closeDrawer2"
|
||||
/>
|
||||
</div>
|
||||
<a-form
|
||||
@@ -35,20 +35,24 @@
|
||||
style="width: 424px; height: 32px; margin-left: 35px"
|
||||
placeholder="请输入作业名称"
|
||||
autocomplete="off"
|
||||
show-count :maxlength="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item2">
|
||||
<a-form-item has-feedback label="作业要求" name="workRequirement">
|
||||
<div class="textarea">
|
||||
|
||||
<a-textarea
|
||||
v-model:value="formState.workRequirement"
|
||||
placeholder="请输入作业要求"
|
||||
autocomplete="off"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
style="margin-left: 35px"
|
||||
maxlength="150"
|
||||
/>
|
||||
show-count :maxlength="200"
|
||||
/></div>
|
||||
</a-form-item>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -95,7 +99,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<a-button class="btn1" @click="closeDrawer">取消</a-button>
|
||||
<a-button class="btn1" @click="closeDrawer2">取消</a-button>
|
||||
<a-button class="btn2" html-type="submit" @click="cle">确定</a-button>
|
||||
</div>
|
||||
</a-form>
|
||||
@@ -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;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
<div class="btns">
|
||||
@@ -126,6 +127,7 @@
|
||||
v-model:value="nameadd"
|
||||
style="width: 200px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -205,6 +207,7 @@
|
||||
v-model:value="nameaddd"
|
||||
style="width: 200px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,10 @@
|
||||
v-model:value="textV1"
|
||||
placeholder="请输入考试说明"
|
||||
allow-clear
|
||||
maxlength="364px"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
:rows="6"
|
||||
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,6 +158,7 @@
|
||||
v-model:value="inputV4"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入直播链接"
|
||||
:maxlength="100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -176,6 +180,7 @@
|
||||
v-model:value="inputV5"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入回放链接"
|
||||
:maxlength="100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
v-model:value="inputV1"
|
||||
style="width: 240px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入项目名称"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,21 +15,22 @@
|
||||
<div class="ipt_name">项目名称:</div>
|
||||
<div class="fi_input">
|
||||
<a-input v-model:value="inputV1" style="width: 240px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入项目名称" />
|
||||
placeholder="请输入项目名称"
|
||||
maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">项目经理:</div>
|
||||
<div class="fi_input">
|
||||
<a-input v-model:value="inputV2" style="width: 240px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入项目经理" />
|
||||
placeholder="请输入项目经理" maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">创建人:</div>
|
||||
<div class="fi_input">
|
||||
<a-input v-model:value="inputV3" style="width: 240px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入创建人" />
|
||||
placeholder="请输入创建人" maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
v-model:value="inputV1"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入外链名称"
|
||||
maxlength="20"
|
||||
show-count :maxlength="50"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -61,6 +61,8 @@
|
||||
v-model:value="inputV2"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入链接"
|
||||
|
||||
show-count :maxlength="100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,6 +75,8 @@
|
||||
v-model:value="textV1"
|
||||
placeholder="请输入外链说明"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
show-count :maxlength="200"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
@click="closeDrawer2"
|
||||
/>
|
||||
</div>
|
||||
<!-- 2022-11-30注释 后面放开 修改div的padding-topL:32 -->
|
||||
@@ -58,7 +58,7 @@
|
||||
style="width: 424px; height: 32px; margin-left: 35px"
|
||||
autocomplete="off"
|
||||
placeholder="请输入考试名称"
|
||||
maxlength="20"
|
||||
show-count :maxlength="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
</div>
|
||||
@@ -68,14 +68,15 @@
|
||||
has-feedback
|
||||
label="考试说明"
|
||||
name="examinationExplain"
|
||||
>
|
||||
><div class="textarea">
|
||||
<a-textarea
|
||||
v-model:value="formState.examinationExplain"
|
||||
placeholder="请输入考试说明"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
style="margin-left: 35px"
|
||||
maxlength="150"
|
||||
/>
|
||||
show-count :maxlength="200"
|
||||
/></div>
|
||||
</a-form-item>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -306,7 +307,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<a-button class="btn1" @click="closeDrawer">取消</a-button>
|
||||
<a-button class="btn1" @click="closeDrawer2">取消</a-button>
|
||||
<a-button class="btn2" html-type="submit">确定</a-button>
|
||||
</div>
|
||||
</a-form>
|
||||
@@ -335,7 +336,7 @@
|
||||
style="width: 424px; height: 32px; margin-left: 35px"
|
||||
autocomplete="off"
|
||||
placeholder="请输入考试名称"
|
||||
maxlength="20"
|
||||
show-count :maxlength="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
</div>
|
||||
@@ -352,7 +353,7 @@
|
||||
style="width: 424px; height: 32px; margin-left: 35px"
|
||||
autocomplete="off"
|
||||
placeholder="数据来源"
|
||||
maxlength="20"
|
||||
show-count :maxlength="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
</div>
|
||||
@@ -364,19 +365,21 @@
|
||||
label="考试说明"
|
||||
name="examinationExplain"
|
||||
>
|
||||
<div class="textarea">
|
||||
<a-textarea
|
||||
v-model:value="formState.examinationExplain"
|
||||
placeholder="请输入考试说明"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
style="margin-left: 35px"
|
||||
maxlength="150"
|
||||
/>
|
||||
show-count :maxlength="200"
|
||||
/></div>
|
||||
</a-form-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<a-button class="btn1" @click="closeDrawer">取消</a-button>
|
||||
<a-button class="btn1" @click="closeDrawer2">取消</a-button>
|
||||
<a-button class="btn2" html-type="submit">确定</a-button>
|
||||
</div>
|
||||
</a-form>
|
||||
@@ -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;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
<div class="btns">
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user