|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
+ saveSolution,
|
|
|
saveSolutionSimple,
|
|
|
getSolutionDetails
|
|
|
} from '@/api/salary'
|
|
@@ -161,8 +162,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.loading = true
|
|
|
+ // console.log(this.itemData)
|
|
|
+ const submitApi = this.itemData.entity ? saveSolutionSimple : saveSolution
|
|
|
+ // debugger
|
|
|
try {
|
|
|
- await saveSolutionSimple(query)
|
|
|
+ await submitApi(query)
|
|
|
this.$refs.dialog.close()
|
|
|
this.$emit('refresh')
|
|
|
this.$message.success('保存成功')
|