mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
限制任务字数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user