zhengnaiwen_citu преди 3 месеца
родител
ревизия
9924bc5603
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/sandbox/sandboxHistory.vue

+ 4 - 2
src/views/sandbox/sandboxHistory.vue

@@ -17,7 +17,7 @@
       <template #actions="{ row }">
         <m-button text type="primary" @click="onDetails(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>
     </m-table>
     <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: 4, time: '2020-01-01 12:00:00', name: '规则5' },
         { id: 5, time: '2020-01-01 12:00:00', name: '规则6' }
-      ]
+      ],
+      itemData: {}
     }
   },
   methods: {
     open (item) {
+      this.itemData = item
       this.$refs.dialog.open()
     },
     onSortChange () {},