|
|
@ -98,12 +98,13 @@
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="bangOpen" append-to-body title="绑定接收器" width="500px">
|
|
|
|
<el-dialog @close="()=>{bindValue='';bindInput=''}" v-model="bangOpen" append-to-body title="绑定接收器" width="500px">
|
|
|
|
<el-table ref="bindRef" v-loading="loading" :data="postList">
|
|
|
|
<el-input style="width:200px" v-model="bindInput" /> <el-button type="primary" @click="bindSearch" >搜索</el-button>
|
|
|
|
|
|
|
|
<el-table ref="bindRef" v-loading="loading" :data="bindList">
|
|
|
|
<el-table-column align="center" width="25">
|
|
|
|
<el-table-column align="center" width="25">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<el-radio-group v-model="bindValue">
|
|
|
|
<el-radio-group v-model="bindValue">
|
|
|
|
<el-radio @click.native="bindHandleSelectionChange(scope.row.id)" :label="scope.row.id"> </el-radio>
|
|
|
|
<el-radio @click="bindHandleSelectionChange(scope.row.id)" :label="scope.row.id"> </el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -198,6 +199,10 @@ const total = ref(0);
|
|
|
|
const title = ref("");
|
|
|
|
const title = ref("");
|
|
|
|
// 绑定接收器选择行
|
|
|
|
// 绑定接收器选择行
|
|
|
|
const bindValue = ref('')
|
|
|
|
const bindValue = ref('')
|
|
|
|
|
|
|
|
// 搜索接收器
|
|
|
|
|
|
|
|
const bindInput = ref('')
|
|
|
|
|
|
|
|
// 接收器筛选
|
|
|
|
|
|
|
|
const bindList = ref([])
|
|
|
|
|
|
|
|
|
|
|
|
// 搜索参数
|
|
|
|
// 搜索参数
|
|
|
|
const queryParams = ref({
|
|
|
|
const queryParams = ref({
|
|
|
@ -270,11 +275,20 @@ function handleSelectionChange(selection) {
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 绑定接收器单选
|
|
|
|
const bindHandleSelectionChange = (selection) => {
|
|
|
|
const bindHandleSelectionChange = (selection) => {
|
|
|
|
bindValue.value = selection
|
|
|
|
bindValue.value = selection
|
|
|
|
console.log(bindValue.value)
|
|
|
|
console.log(bindValue.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 搜索接收器
|
|
|
|
|
|
|
|
const bindSearch = () => {
|
|
|
|
|
|
|
|
console.log(bindInput.value)
|
|
|
|
|
|
|
|
listBaseCar(queryParams.value).then(response => {
|
|
|
|
|
|
|
|
bindList.value = response.rows;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
function handleAdd() {
|
|
|
|
function handleAdd() {
|
|
|
|
reset();
|
|
|
|
reset();
|
|
|
@ -303,6 +317,7 @@ function handleUpdate(row) {
|
|
|
|
function handleBang(row) {
|
|
|
|
function handleBang(row) {
|
|
|
|
// console.log(row.id)
|
|
|
|
// console.log(row.id)
|
|
|
|
bangOpen.value = true;
|
|
|
|
bangOpen.value = true;
|
|
|
|
|
|
|
|
bindSearch()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|