From 2c9ddebd07230ca4165e2ee55470133fdf9ccd99 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 31 七月 2024 09:42:22 +0800 Subject: [PATCH] 测试完成 --- src/components/Regular/index.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 4aa1773..bab62b1 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -6,7 +6,7 @@ ><el-form-item label="閫夐」鍚嶇О"> <el-input type="text" - placeholder="璇疯緭鍏�" + placeholder="璇疯緭鍏ワ紙蹇呭~椤癸級" v-model="item.targetvalue" show-word-limit > @@ -150,13 +150,13 @@ > </div> </el-form-item> - <el-form-item label="閫夐」鏂囦欢" prop="sickness"> + <el-form-item label="閫夐」鏂囦欢" prop="sickness" v-if="Verbalproblem"> <div style="width: 40vw"> <el-upload class="upload-demo" :action="uploadImgUrl" :headers="headers" - :accept="'image/*,video/*'" + accept=".jpg,.png,image/*" :on-success="handleChange.bind(this, item)" > <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> @@ -268,6 +268,10 @@ default: true, }, hasValue: { + type: Boolean, + default: true, + }, + Verbalproblem: { type: Boolean, default: true, }, @@ -399,8 +403,9 @@ console.log(item, "item"); console.log(this.TargetoptionList, "this.TargetoptionList"); let index = this.TargetoptionList.findIndex( - (obj) => obj.guid == item.guid && obj.name == item.name + (obj) => obj.guid == item.guid ); + console.log(index); this.TargetoptionList[index].picturePath = response.url; }, }, -- Gitblit v1.9.3