临时提交
parent
28961f51f7
commit
e82213b466
|
@ -1,6 +1,5 @@
|
||||||
<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
|
||||||
|
@ -10,30 +9,19 @@
|
||||||
: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>
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue