|
@@ -46,7 +46,9 @@ import SalarySandboxRules from './salarySandboxRules.vue'
|
|
|
import Coefficient from '../solution/salaryCoefficient'
|
|
|
import History from '../solution/salarySolutionHistory'
|
|
|
import SolutionDetails from '../solution/components/solutionDetails.vue'
|
|
|
+
|
|
|
import {
|
|
|
+ sendSalaryRelease,
|
|
|
getSolutionDetails
|
|
|
} from '@/api/salary'
|
|
|
export default {
|
|
@@ -76,6 +78,18 @@ export default {
|
|
|
this.$refs[this.activeName].onInit()
|
|
|
},
|
|
|
methods: {
|
|
|
+ async onSend (row) {
|
|
|
+ this.loading = true
|
|
|
+ try {
|
|
|
+ await sendSalaryRelease({ performanceSolutionId: row.performanceSolutionId })
|
|
|
+ this.$message.success('发布成功')
|
|
|
+ this.$refs.Solution.onInit()
|
|
|
+ } catch (error) {
|
|
|
+ this.$message.error(error)
|
|
|
+ } finally {
|
|
|
+ this.loading = false
|
|
|
+ }
|
|
|
+ },
|
|
|
onCalculate () {},
|
|
|
onOpen (ref, item) {
|
|
|
this.$refs[ref]?.open && this.$refs[ref].open(item)
|