From a1b85ef72062ca80db35546e4216dd564f3e0f57 Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期四, 03 四月 2025 15:58:19 +0800 Subject: [PATCH] 问题与漏洞修改 --- admin-web/src/components/mySearch/SearchItem.vue | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/admin-web/src/components/mySearch/SearchItem.vue b/admin-web/src/components/mySearch/SearchItem.vue index fa2580b..349caed 100644 --- a/admin-web/src/components/mySearch/SearchItem.vue +++ b/admin-web/src/components/mySearch/SearchItem.vue @@ -4,7 +4,7 @@ <el-input :type="item.inputType || 'text'" v-if="item.type === 'text'" - :placeholder="item.placeholder || ''" + :placeholder="item.placeholder || '璇疯緭鍏�'" @change="(e) => inputChange(e)" :clearable="true" v-model="val" @@ -15,10 +15,12 @@ <el-cascader v-model="val" v-if="item.type === 'cascader'" + :placeholder="item.placeholder || '璇烽�夋嫨'" :options="item.options" :props="item.optionsConfig.props||{ checkStrictly: true,emitPath: false,value: 'id' }" :show-all-levels="false" filterable + clearable style="width: 150px" @change="(v) => this.$emit('change', v)" > @@ -26,7 +28,7 @@ <!-- 涓嬫媺--> <el-select v-if="item.type === 'select'" - :placeholder="item.placeholder || ''" + :placeholder="item.placeholder || '璇烽�夋嫨'" v-model="val" filterable :multiple="item.multiple || false" @@ -54,7 +56,7 @@ <!--鏃堕棿--> <el-time-select v-if="item.type === 'time-picker'" - :placeholder="item.placeholder || ''" + :placeholder="item.placeholder || '璇烽�夋嫨'" v-model="val" :clearable="true" style="width: 150px" @@ -66,6 +68,7 @@ v-model="val" type="year" :clearable="true" + :placeholder="item.placeholder || '璇烽�夋嫨'" style="width: 150px" :value-format="item.format?item.format:'yyyy'" @change="(v) => panelChange(v, 'yyyy')" @@ -76,6 +79,7 @@ v-model="val" type="month" :clearable="true" + :placeholder="item.placeholder || '璇烽�夋嫨'" style="width: 150px" :value-format="item.format?item.format:'yyyyMM'" @change="(v) => panelChange(v, 'yyyy-MM')" @@ -86,6 +90,7 @@ v-model="val" type="date" :clearable="true" + :placeholder="item.placeholder || '璇烽�夋嫨'" style="width: 150px" :value-format="item.format?item.format:'yyyyMMdd'" @change="(v) => panelChange(v, 'yyyy-MM-dd')" @@ -96,6 +101,7 @@ v-model="val" type="datetime" :clearable="true" + :placeholder="item.placeholder || '璇烽�夋嫨'" style="width: 150px" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" @@ -106,7 +112,7 @@ v-if="item.type === 'datetimerange-picker'" v-model="val" style="width: 378px" - :placeholder="item.placeholder || ''" + :placeholder="item.placeholder || '璇烽�夋嫨'" type="datetimerange" :pickerOptions='pickerOptions' :disabled="item.disabled" @@ -119,7 +125,6 @@ </template> <script> -import {formatDates} from '@/utils/index'; import request from '@/utils/request'; function trim(str) { -- Gitblit v1.9.1