|
@@ -50,6 +50,7 @@
|
|
|
class="dict-table"
|
|
class="dict-table"
|
|
|
@cell-click="cellClick"
|
|
@cell-click="cellClick"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
|
|
+ @done="onDone"
|
|
|
>
|
|
>
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-radio class="radio" v-model="radio" :label="row.id"
|
|
<el-radio class="radio" v-model="radio" :label="row.id"
|
|
@@ -225,6 +226,15 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ onDone(res) {
|
|
|
|
|
+ const ids = this.currentItem.batchStockId;
|
|
|
|
|
+ console.log('ids', ids);
|
|
|
|
|
+ // this.$refs.table.setSelectedRowKeys(ids);
|
|
|
|
|
+ console.log('res:', res);
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.table.setSelectedRowKeys([ids]);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getDictV(code, val) {
|
|
getDictV(code, val) {
|
|
|
if (!this.dictList[code]) return '';
|
|
if (!this.dictList[code]) return '';
|
|
|
return this.dictList[code].find((item) => item.value == val)?.label;
|
|
return this.dictList[code].find((item) => item.value == val)?.label;
|