|
@@ -19,15 +19,21 @@
|
|
|
</template> -->
|
|
|
<template #actions="{ row }">
|
|
|
<m-button text type="primary" size="small" @click="onOpen('sandboxDetailsRefs', row)">查看规则</m-button>
|
|
|
- <m-button text type="primary" size="small" @click="onOpen('sandboxParamRefs', row)">系数导向</m-button>
|
|
|
- <!-- <m-button text type="success" size="small" @click="onOpen('sandboxCalculateRefs', row)">开始测算</m-button>
|
|
|
- <m-button text type="primary" size="small" @click="onOpen('sandboxHistoryRefs', row)">测算历史</m-button>
|
|
|
- <m-button text type="success" size="small" @click="onSend(row)">发布</m-button> -->
|
|
|
+ <!-- <m-button text type="primary" size="small" @click="onOpen('sandboxParamRefs', row)">系数导向</m-button> -->
|
|
|
+ <!-- <m-button text type="success" size="small" @click="onOpen('sandboxCalculateRefs', row)">开始测算</m-button> -->
|
|
|
+ <!-- <m-button text type="primary" size="small" @click="onOpen('sandboxHistoryRefs', row)">测算历史</m-button> -->
|
|
|
+ <!-- <m-button text type="success" size="small" @click="onSend(row)">发布</m-button> -->
|
|
|
</template>
|
|
|
</m-table>
|
|
|
- <SandboxDetails ref="sandboxDetailsRefs" append-to-body @sure="onOpen('sandboxParamRefs', $event)"></SandboxDetails>
|
|
|
- <SandboxParam ref="sandboxParamRefs" append-to-body @refresh="getList"></SandboxParam>
|
|
|
- <SandboxHistory ref="sandboxHistoryRefs" append-to-body></SandboxHistory>
|
|
|
+ <SandboxDetails ref="sandboxDetailsRefs" append-to-body @sure="onOpen('sandboxParamRefs', $event)">
|
|
|
+ <template #button="{ row }">
|
|
|
+ <m-button type="orange" @click="onOpen('sandboxParamRefs', row)">系数导向</m-button>
|
|
|
+ <m-button type="orange" @click="onOpen('sandboxHistoryRefs', row)">测算历史</m-button>
|
|
|
+ </template>
|
|
|
+ </SandboxDetails>
|
|
|
+ <SandboxParam ref="sandboxParamRefs" append-to-body @refresh="getList" @issue="onIssue"></SandboxParam>
|
|
|
+ <SandboxHistory ref="sandboxHistoryRefs" append-to-body @issue="onIssue"></SandboxHistory>
|
|
|
+
|
|
|
</m-dialog>
|
|
|
</template>
|
|
|
|
|
@@ -104,12 +110,13 @@ export default {
|
|
|
onOpen (ref, item) {
|
|
|
this.$refs[ref]?.open && this.$refs[ref].open(item)
|
|
|
},
|
|
|
- async onSend (row) {
|
|
|
+ // 发布
|
|
|
+ async onIssue (row) {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
await sendSalaryRelease({ performanceSolutionId: row.performanceSolutionId })
|
|
|
this.$message.success('发布成功')
|
|
|
- this.onInit()
|
|
|
+ // this.onInit()
|
|
|
} catch (error) {
|
|
|
this.$message.error(error)
|
|
|
} finally {
|