|
|
@ -41,7 +41,7 @@ |
|
|
|
:value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-input @click.native="clickQbb(scope.$index)" v-if="scope.row.deviceType == 2" |
|
|
|
<el-input @click.native="clickQbb(scope.$index)" v-if="type == 1 && scope.row.deviceType == 2" |
|
|
|
placeholder="请选择" v-model="scope.row.qbb" readonly> |
|
|
|
<i slot="suffix" class="el-input__icon el-icon-search"></i> |
|
|
|
</el-input> |
|
|
@ -115,6 +115,7 @@ export default { |
|
|
|
props: { |
|
|
|
visible: Boolean, |
|
|
|
eventType: Number, |
|
|
|
type: Number, |
|
|
|
tableData: { |
|
|
|
type: Array, |
|
|
|
default: () => [{ |
|
|
@ -219,10 +220,21 @@ export default { |
|
|
|
index: 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
async created() { |
|
|
|
let loadData = await this.loadData(1); |
|
|
|
// console.log('aa',loadData) |
|
|
|
watch: { |
|
|
|
async tableData(newValue) { |
|
|
|
console.log('newValue', newValue) |
|
|
|
if (newValue) { |
|
|
|
const item = this.tableData.find(it => it.searchRule == 1); |
|
|
|
console.log('item', item); |
|
|
|
if (item && item.deviceType) { |
|
|
|
let loadData = await this.loadData(item.deviceType); |
|
|
|
console.log('aa', loadData) |
|
|
|
this.sbOptions = loadData; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initData() { |
|
|
|