临时提交

pull/1733/head
648540858 2024-12-24 08:00:56 +08:00
parent 28961f51f7
commit e82213b466
6 changed files with 17 additions and 39 deletions

View File

@ -1,39 +1,27 @@
<template> <template>
<div id="channelDataTypeSelect" > <el-select size="mini" @change="change" v-model="dataType" placeholder="请选择"
<el-select size="mini" @change="$emit('change', $event.target.value)" v-model="dataType" placeholder="请选择" default-first-option>
default-first-option> <el-option label="全部" value=""></el-option>
<el-option label="全部" value=""></el-option> <el-option
<el-option v-for="item in dataTypeArray"
v-for="item in dataTypeArray" :key="item.key"
:key="item.key" :label="item.key"
:label="item.key" :value="item.value">
:value="item.value"> </el-option>
</el-option> </el-select>
</el-select>
</div>
</template> </template>
<script> <script>
export default { export default {
name: "channelDataTypeSelect", name: "channelDataTypeSelect",
model: { props: ['dataType','change'],
prop: 'dataType',
event: 'change'
},
props: {
dataType: {
type: String,
default: ''
}
},
components: {},
created() { created() {
this.init() this.init()
}, },
data() { data() {
return { return {
dataTypeArray: [] dataTypeArray: [],
}; };
}, },
methods: { methods: {
@ -51,13 +39,3 @@ export default {
}, },
}; };
</script> </script>
<style>
.channel-form {
display: grid;
background-color: #FFFFFF;
padding: 1rem 2rem 0 2rem;
grid-template-columns: 1fr 1fr 1fr;
gap: 1rem;
}
</style>

View File

@ -23,7 +23,7 @@
<el-option label="离线" value="false"></el-option> <el-option label="离线" value="false"></el-option>
</el-select> </el-select>
类型: 类型:
<channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" @change="getChannelList" v-model="channelType"></channelDataTypeSelect> <channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" :change="getChannelList" :dataType="channelType"></channelDataTypeSelect>
<el-button size="mini" :loading="getChannelListLoading" <el-button size="mini" :loading="getChannelListLoading"
@click="getChannelList()">刷新</el-button> @click="getChannelList()">刷新</el-button>
<el-button type="primary" size="mini" style="float: right" @click="onSubmit"> </el-button> <el-button type="primary" size="mini" style="float: right" @click="onSubmit"> </el-button>

View File

@ -22,7 +22,7 @@
<el-option label="离线" value="false"></el-option> <el-option label="离线" value="false"></el-option>
</el-select> </el-select>
类型: 类型:
<channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" @change="search" v-model="channelType"></channelDataTypeSelect> <channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" :change="search" :dataType="channelType"></channelDataTypeSelect>
<el-button v-if="hasLink !=='true'" size="mini" type="primary" @click="add()"> <el-button v-if="hasLink !=='true'" size="mini" type="primary" @click="add()">
添加 添加
</el-button> </el-button>

View File

@ -20,7 +20,7 @@
<el-option label="离线" value="false"></el-option> <el-option label="离线" value="false"></el-option>
</el-select> </el-select>
类型: 类型:
<channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" @change="search" v-model="channelType"></channelDataTypeSelect> <channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" :change="search" :dataType="channelType"></channelDataTypeSelect>
<el-button v-if="hasShare !=='true'" size="mini" type="primary" @click="add()"> <el-button v-if="hasShare !=='true'" size="mini" type="primary" @click="add()">
添加 添加
</el-button> </el-button>

View File

@ -28,7 +28,7 @@
<el-option label="离线" value="false"></el-option> <el-option label="离线" value="false"></el-option>
</el-select> </el-select>
类型: 类型:
<channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" @change="getChannelList" v-model="channelType"></channelDataTypeSelect> <channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" :change="getChannelList" :dataType="channelType"></channelDataTypeSelect>
<el-button size="mini" type="primary" @click="add()"> <el-button size="mini" type="primary" @click="add()">
添加通道 添加通道
</el-button> </el-button>

View File

@ -28,7 +28,7 @@
<el-option label="离线" value="false"></el-option> <el-option label="离线" value="false"></el-option>
</el-select> </el-select>
类型: 类型:
<channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" @change="getChannelList" v-model="channelType"></channelDataTypeSelect> <channelDataTypeSelect style="width: 8rem; margin-right: 1rem;" :change="getChannelList" :dataType="channelType"></channelDataTypeSelect>
<el-button size="mini" type="primary" @click="add()"> <el-button size="mini" type="primary" @click="add()">
添加通道 添加通道
</el-button> </el-button>