-- 项目名称校验

This commit is contained in:
yuping
2022-12-10 21:44:07 +08:00
parent 59cff1b7a9
commit d349b7cacf
3 changed files with 858 additions and 844 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<a-input <a-input
v-model:value="modelV" v-model:value="modelV"
placeholder="请输入项目名称" :placeholder="placeholder"
:show-count="showCount" :show-count="showCount"
:maxlength="maxlength" :maxlength="maxlength"
@blur="validateProName" @blur="validateProName"
@@ -23,6 +23,9 @@ const props = defineProps({
id: { id: {
type: String, type: String,
}, },
placeholder: {
type: String,
},
type: { type: {
type: Number, type: Number,
default: 1 default: 1

View File

@@ -138,7 +138,8 @@
<span style="margin-right: 3px">课程名称</span> <span style="margin-right: 3px">课程名称</span>
</div> </div>
<div class="in b_input"> <div class="in b_input">
<NameInput placeholder="请输入课程名称" v-model:value="xzinputV1" v-model:validate="validate" :maxlength="20" show-count :type="2"></NameInput> <NameInput placeholder="请输入课程名称" v-model:value="xzinputV1" v-model:validate="validate"
:maxlength="20" show-count :type="2"></NameInput>
<!-- <a-input--> <!-- <a-input-->
<!-- v-model:value="xzinputV1"--> <!-- v-model:value="xzinputV1"-->
<!-- maxlength="20"--> <!-- maxlength="20"-->
@@ -350,7 +351,8 @@
<!-- style="width: 440px; height: 40px; border-radius: 8px"--> <!-- style="width: 440px; height: 40px; border-radius: 8px"-->
<!-- placeholder="请输入课程名称"--> <!-- placeholder="请输入课程名称"-->
<!-- />--> <!-- />-->
<NameInput placeholder="请输入课程名称" v-model:value="qdms_inputV1" v-model:validate="validate" :maxlength="20" show-count :type="2"></NameInput> <NameInput placeholder="请输入课程名称" v-model:value="qdms_inputV1" v-model:validate="validate"
:maxlength="20" show-count :type="2"></NameInput>
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2"> <span style="color: #c7cbd2">
{{ qdms_inputV1.length }}/90 {{ qdms_inputV1.length }}/90
@@ -5695,19 +5697,23 @@ export default defineComponent({
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
.addTime { .addTime {
position: absolute; position: absolute;
z-index: 10; z-index: 10;
margin-left: 10px; margin-left: 10px;
color: rgba(0, 0, 0, 0.4); color: rgba(0, 0, 0, 0.4);
} }
.ant-picker { .ant-picker {
padding-left: 85px; padding-left: 85px;
} }
.ant-picker-range .ant-picker-active-bar { .ant-picker-range .ant-picker-active-bar {
margin-left: 85px; margin-left: 85px;
} }
} }
.aeLoading { .aeLoading {
z-index: 10000; z-index: 10000;
} }

View File

@@ -50,17 +50,19 @@
</div> </div>
<div class="item_inp"> <div class="item_inp">
<div class="i1_input"> <div class="i1_input">
<a-input <NameInput placeholder="请输入课程名称" v-model:value="qdms_inputV1" v-model:validate="validate"
v-model:value="qdms_inputV1" :maxlength="20" show-count :type="2" :id="offcourseId"></NameInput>
maxlength="90" <!-- <a-input-->
style="width: 440px; height: 40px; border-radius: 8px" <!-- v-model:value="qdms_inputV1"-->
placeholder="请输入课程名称" <!-- maxlength="90"-->
/> <!-- style="width: 440px; height: 40px; border-radius: 8px"-->
<div class="inp_num"> <!-- placeholder="请输入课程名称"-->
<span style="color: #c7cbd2"> <!-- />-->
{{ qdms_inputV1.length }}/90 <!-- <div class="inp_num">-->
</span> <!-- <span style="color: #c7cbd2">-->
</div> <!-- {{ qdms_inputV1.length }}/90-->
<!-- </span>-->
<!-- </div>-->
</div> </div>
</div> </div>
</div> </div>
@@ -395,6 +397,7 @@ import * as api1 from "../../api/index1";
import "@wangeditor/editor/dist/css/style.css"; import "@wangeditor/editor/dist/css/style.css";
import {Editor, Toolbar} from "@wangeditor/editor-for-vue"; import {Editor, Toolbar} from "@wangeditor/editor-for-vue";
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
import NameInput from "@/components/project/NameInput";
import FJUpload from "@/components/common/FJUpload"; import FJUpload from "@/components/common/FJUpload";
import * as moment from "moment"; import * as moment from "moment";
import * as api2 from "../../api/indexAudit"; import * as api2 from "../../api/indexAudit";
@@ -404,6 +407,7 @@ export default defineComponent({
Editor, Editor,
Toolbar, Toolbar,
FJUpload, FJUpload,
NameInput,
ProjectManager, ProjectManager,
}, },
setup(props, {expose, emit}) { setup(props, {expose, emit}) {
@@ -411,6 +415,7 @@ export default defineComponent({
hideshow: true, hideshow: true,
ft_eidt: false, ft_eidt: false,
attach: "", attach: "",
validate: true,
ft_hs: false, ft_hs: false,
addLoading: false, addLoading: false,
statusJuJue: 0, statusJuJue: 0,