|
@@ -16,19 +16,19 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action1" slot-scope="text, record, index">
|
|
<template slot="action1" slot-scope="text, record, index">
|
|
- <a-checkbox :checked="text==1" @change="onChange(0,record)"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :id="'ac1-'+record.id" :checked="text==1" @change="onChange(0,record)"></a-checkbox>
|
|
</template>
|
|
</template>
|
|
<template slot="action2" slot-scope="text, record, index">
|
|
<template slot="action2" slot-scope="text, record, index">
|
|
- <a-checkbox :checked="text==1" @change="onChange(1,record)"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :id="'ac2-'+record.id" :checked="text==1" @change="onChange(1,record)"></a-checkbox>
|
|
</template>
|
|
</template>
|
|
<template slot="action3" slot-scope="text, record, index">
|
|
<template slot="action3" slot-scope="text, record, index">
|
|
- <a-checkbox :checked="text==1" @change="onChange(2,record)"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :id="'ac3-'+record.id" :checked="text==1" @change="onChange(2,record)"></a-checkbox>
|
|
</template>
|
|
</template>
|
|
<template slot="action4" slot-scope="text, record, index">
|
|
<template slot="action4" slot-scope="text, record, index">
|
|
- <a-checkbox :checked="text==1" @change="onChange(3,record)"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :id="'ac4-'+record.id" :checked="text==1" @change="onChange(3,record)"></a-checkbox>
|
|
</template>
|
|
</template>
|
|
<template slot="action5" slot-scope="text, record, index">
|
|
<template slot="action5" slot-scope="text, record, index">
|
|
- <a-checkbox :checked="text==1" @change="onChange(4,record)"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :id="'ac5-'+record.id" :checked="text==1" @change="onChange(4,record)"></a-checkbox>
|
|
</template>
|
|
</template>
|
|
</a-table>
|
|
</a-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -57,15 +57,15 @@ export default {
|
|
{ title: '货架异常提醒', dataIndex: 'shelfWarnFlag', scopedSlots: { customRender: 'action4' }, width: '10%', align: 'center' },
|
|
{ title: '货架异常提醒', dataIndex: 'shelfWarnFlag', scopedSlots: { customRender: 'action4' }, width: '10%', align: 'center' },
|
|
{ title: '全选', dataIndex: 'allFlag', scopedSlots: { customRender: 'action5' }, width: '10%', align: 'center' }
|
|
{ title: '全选', dataIndex: 'allFlag', scopedSlots: { customRender: 'action5' }, width: '10%', align: 'center' }
|
|
],
|
|
],
|
|
- loadData: [],
|
|
|
|
|
|
+ loadData: [], // 列表数据
|
|
openModal: false, // 新增编辑客户类型 弹框
|
|
openModal: false, // 新增编辑客户类型 弹框
|
|
itemId: '', // 当前id
|
|
itemId: '', // 当前id
|
|
nowData: null // 当前记录数据
|
|
nowData: null // 当前记录数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 选择
|
|
onChange (index, record) {
|
|
onChange (index, record) {
|
|
- console.log(index, record)
|
|
|
|
const key = ['tempOrderFlag', 'shelfReplenishFlag', 'shelfOrderFlag', 'shelfWarnFlag', 'allFlag']
|
|
const key = ['tempOrderFlag', 'shelfReplenishFlag', 'shelfOrderFlag', 'shelfWarnFlag', 'allFlag']
|
|
record[key[index]] = record[key[index]] ? 0 : 1
|
|
record[key[index]] = record[key[index]] ? 0 : 1
|
|
// 全选
|
|
// 全选
|
|
@@ -103,6 +103,7 @@ export default {
|
|
this.getData()
|
|
this.getData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 获取列表数据
|
|
getData () {
|
|
getData () {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
noticeUserBizQuery().then(res => {
|
|
noticeUserBizQuery().then(res => {
|