1、二级页面跳转测试

This commit is contained in:
cuiyouliang 2025-06-05 18:34:40 +08:00
parent 214ecd9c95
commit 65323ac352
3 changed files with 1 additions and 94 deletions

View File

@ -8,6 +8,7 @@
import { getDicts } from '@/api/system/dict/data';
export default {
props: ['radioData', 'size', 'value', 'showAll', 'filter'],
emits: ['change', 'input'],
data() {
return {
dictList: []

View File

@ -1,39 +0,0 @@
<template>
<el-select v-model="value1" clearable>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item[valueProp1]"
>
</el-option>
</el-select>
</template>
<script>
import {mapGetters} from "vuex";
export default {
props: ["size", "value", "propName", 'valueProp'],
computed: {
...mapGetters(['dictMap']),
valueProp1() {
return this.valueProp || 'value';
},
value1: {
get() {
return this.value;
},
set(v) {
this.$emit("input", v);
},
},
options() {
if (!this.propName) {
return [];
}
return this.dictMap[this.propName] || []
}
},
};
</script>

View File

@ -1,55 +0,0 @@
<template lang="pug">
.item-select-wrapper
el-select(
v-model="value1"
clearable
:size="size"
)
el-option(
v-for="item in opTypes"
:key="item.value"
:label="item.label"
:value="item.value"
)
div {{item.label}}
</template>
<script>
import { mapGetters } from 'vuex'
let optionsCache = null
export default {
name: 'InOutTypeSelect',
props: {
value: {
type: [String, Number],
default: null
},
size: {
type: String,
default: 'small'
}
},
data() {
return {
}
},
computed: {
...mapGetters(['opTypes']),
value1: {
get() {
return this.value
},
set(v) {
this.$emit('input', v)
}
}
},
}
</script>
<style lang="stylus">
</style>