-- 项目名称校验

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

File diff suppressed because it is too large Load Diff

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,
@@ -431,11 +436,11 @@ export default defineComponent({
auditDescription: "", auditDescription: "",
contentClassify: [], contentClassify: [],
// 课程三级分类 // 课程三级分类
options2222:[ options2222: [
{ {
title: '领导力', title: '领导力',
value: '100', value: '100',
selectable:false, selectable: false,
children: [ children: [
{ {
title: '领导业务', title: '领导业务',
@@ -454,7 +459,7 @@ export default defineComponent({
{ {
title: '专业力', title: '专业力',
value: '200', value: '200',
selectable:false, selectable: false,
children: [ children: [
{ {
title: '研发', title: '研发',
@@ -537,7 +542,7 @@ export default defineComponent({
{ {
title: '通用力', title: '通用力',
value: '300', value: '300',
selectable:false, selectable: false,
children: [ children: [
{ {
title: '职业操守与道德', title: '职业操守与道德',
@@ -551,7 +556,7 @@ export default defineComponent({
title: '规章制度', title: '规章制度',
value: '3003', value: '3003',
}, },
], ],
} }
], ],
}); });