|
@@ -17,7 +17,7 @@
|
|
<template #actions="{ row }">
|
|
<template #actions="{ row }">
|
|
<m-button text type="primary" @click="onDetails(row)">查看规则</m-button>
|
|
<m-button text type="primary" @click="onDetails(row)">查看规则</m-button>
|
|
<m-button text type="primary" @click="onResult(row)">查看结果</m-button>
|
|
<m-button text type="primary" @click="onResult(row)">查看结果</m-button>
|
|
- <m-button text type="success" @click="$emit('issue', row)">发布</m-button>
|
|
|
|
|
|
+ <m-button text type="success" @click="$emit('issue', itemData)">发布</m-button>
|
|
</template>
|
|
</template>
|
|
</m-table>
|
|
</m-table>
|
|
<SandboxResult ref="sandboxResultRefs" append-to-body></SandboxResult>
|
|
<SandboxResult ref="sandboxResultRefs" append-to-body></SandboxResult>
|
|
@@ -55,11 +55,13 @@ export default {
|
|
{ id: 3, time: '2020-01-01 12:00:00', name: '规则4' },
|
|
{ id: 3, time: '2020-01-01 12:00:00', name: '规则4' },
|
|
{ id: 4, time: '2020-01-01 12:00:00', name: '规则5' },
|
|
{ id: 4, time: '2020-01-01 12:00:00', name: '规则5' },
|
|
{ id: 5, time: '2020-01-01 12:00:00', name: '规则6' }
|
|
{ id: 5, time: '2020-01-01 12:00:00', name: '规则6' }
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ itemData: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
open (item) {
|
|
open (item) {
|
|
|
|
+ this.itemData = item
|
|
this.$refs.dialog.open()
|
|
this.$refs.dialog.open()
|
|
},
|
|
},
|
|
onSortChange () {},
|
|
onSortChange () {},
|