From 1d8522499d6052e3d389667db1aae46a23208831 Mon Sep 17 00:00:00 2001
From: cy <1664593601@qq.com>
Date: 星期四, 14 十二月 2023 13:05:01 +0800
Subject: [PATCH] feat: 去掉按钮权限
---
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