From 2c071c9974468f8d6d9b86b11bd7dc2c27a50cd2 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 20 Sep 2023 09:44:25 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/course/AddCourse.vue | 5 +---- .../src/views/course/EditCourse.vue | 16 +++++++--------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/course/AddCourse.vue b/ant-design-vue-jeecg/src/views/course/AddCourse.vue index fdce1dd..854560a 100644 --- a/ant-design-vue-jeecg/src/views/course/AddCourse.vue +++ b/ant-design-vue-jeecg/src/views/course/AddCourse.vue @@ -226,7 +226,6 @@ :multi="fs" userSelect="maker" v-model="model.maker" - @change="change" /> @@ -248,7 +247,6 @@ :multi="fs" userSelect="writer" v-model="model.writer" - @change="change" /> @@ -271,7 +269,6 @@ :value="model.verifier" userSelect="verifier" v-model="model.verifier" - @change="change" /> @@ -341,7 +338,7 @@ :rows="8" type="textarea" placeholder="请输入内容" - v-model="textarea" + v-model="model.synopsis" maxlength="500" show-word-limit style="width: 200%" diff --git a/ant-design-vue-jeecg/src/views/course/EditCourse.vue b/ant-design-vue-jeecg/src/views/course/EditCourse.vue index d367866..7907ac8 100644 --- a/ant-design-vue-jeecg/src/views/course/EditCourse.vue +++ b/ant-design-vue-jeecg/src/views/course/EditCourse.vue @@ -238,7 +238,6 @@ :multi="fs" userSelect="maker" v-model="model.maker" - @change="change" /> @@ -260,7 +259,6 @@ :multi="fs" userSelect="writer" v-model="model.writer" - @change="change" /> @@ -282,10 +280,10 @@ @@ -355,7 +353,7 @@ :rows="8" type="textarea" placeholder="请输入内容" - v-model="textarea" + v-model="model.synopsis" maxlength="500" show-word-limit style="width: 200%" @@ -629,11 +627,11 @@ export default { // ], // trigger: 'blur', // }, - name: {//name与v-decorator中属性对应 - // initialValue: "水",//初始化值,也就是默认值 - rules: [{ required: true, message: '不能为空!' },//此处开启校验必填 - // { validator: (rule, value, callback) => validateDuplicateValue('em_project_info', 'project_name', value, this.model.id, callback) },//此处开启唯一验证, - // { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!' },//此处配置正则表达式,手机号,可自己配置正则表达式 + name: {//name与v-decorator中属性对应 + // initialValue: "水",//初始化值,也就是默认值 + rules: [{ required: true, message: '不能为空!' },//此处开启校验必填 + // { validator: (rule, value, callback) => validateDuplicateValue('em_project_info', 'project_name', value, this.model.id, callback) },//此处开启唯一验证, + // { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!' },//此处配置正则表达式,手机号,可自己配置正则表达式 { // pattern: /^(([1]?\\d)|20)$/, pattern: /^[^\\]{0,100}$/,