n20-common-lib 3.2.10 → 3.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -142,7 +142,11 @@
|
|
|
142
142
|
</el-form-item>
|
|
143
143
|
<div class="flex-box flex-lr flex-v">
|
|
144
144
|
<div>{{ $lc('数据范围') }}</div>
|
|
145
|
-
<div
|
|
145
|
+
<div
|
|
146
|
+
v-if="showTypeSwitch"
|
|
147
|
+
style="color: var(--color-primary); cursor: pointer"
|
|
148
|
+
@click="typeChange"
|
|
149
|
+
>
|
|
146
150
|
<i class="v3-icon-switch"></i>
|
|
147
151
|
<span v-if="form.viewType === VIEW_TYPE.ADVANCED"> {{ $lc('高级查询') }}</span>
|
|
148
152
|
<span v-else> {{ $lc('基础查询') }}</span>
|
|
@@ -270,6 +274,15 @@ export default {
|
|
|
270
274
|
isFilter: {
|
|
271
275
|
type: Boolean,
|
|
272
276
|
default: true
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* 是否显示"高级查询 / 基础查询"切换按钮。
|
|
280
|
+
* - true(默认):显示,用户可在两种查询模式间切换(保持原有行为)
|
|
281
|
+
* - false:隐藏切换按钮,新建视图固定使用高级查询模式(add() 默认 viewType)
|
|
282
|
+
*/
|
|
283
|
+
showTypeSwitch: {
|
|
284
|
+
type: Boolean,
|
|
285
|
+
default: true
|
|
273
286
|
}
|
|
274
287
|
},
|
|
275
288
|
data() {
|