|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <m-dialog title="新增测算" ref="dialog" v-bind="$attrs" width="1200px">
|
|
|
+ <m-dialog title="新增测算" ref="dialog" v-bind="$attrs" width="1200px" v-on="$listeners">
|
|
|
<template #button-after>
|
|
|
<m-button :disabled="active === 0" @click="onPrev">上一步</m-button>
|
|
|
<m-button v-if="active === items.length - 1" type="success" @click="onIssue">发布</m-button>
|
|
@@ -32,6 +32,33 @@ import SandboxResultDetails from './sandboxResultDetails.vue'
|
|
|
import {
|
|
|
sendSalaryRelease
|
|
|
} from '@/api/salary'
|
|
|
+const _data = {
|
|
|
+ 0: {
|
|
|
+ name: null,
|
|
|
+ id: null,
|
|
|
+ ref: 'sandboxRulesRefs'
|
|
|
+ },
|
|
|
+ 1: {
|
|
|
+ name: null,
|
|
|
+ id: null,
|
|
|
+ ref: 'sandboxListRefs'
|
|
|
+ },
|
|
|
+ 2: {
|
|
|
+ name: null,
|
|
|
+ id: null,
|
|
|
+ ref: 'sandboxParamRefs'
|
|
|
+ },
|
|
|
+ 3: {
|
|
|
+ name: null,
|
|
|
+ id: null,
|
|
|
+ ref: 'sandboxDateRefs'
|
|
|
+ },
|
|
|
+ 4: {
|
|
|
+ name: null,
|
|
|
+ id: null,
|
|
|
+ ref: 'sandboxResultDetailsRefs'
|
|
|
+ }
|
|
|
+}
|
|
|
export default {
|
|
|
name: 'sandboxAdd',
|
|
|
components: {
|
|
@@ -44,33 +71,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
active: 0,
|
|
|
- descriptionValues: {
|
|
|
- 0: {
|
|
|
- name: null,
|
|
|
- id: null,
|
|
|
- ref: 'sandboxRulesRefs'
|
|
|
- },
|
|
|
- 1: {
|
|
|
- name: null,
|
|
|
- id: null,
|
|
|
- ref: 'sandboxListRefs'
|
|
|
- },
|
|
|
- 2: {
|
|
|
- name: null,
|
|
|
- id: null,
|
|
|
- ref: 'sandboxParamRefs'
|
|
|
- },
|
|
|
- 3: {
|
|
|
- name: null,
|
|
|
- id: null,
|
|
|
- ref: 'sandboxDateRefs'
|
|
|
- },
|
|
|
- 4: {
|
|
|
- name: null,
|
|
|
- id: null,
|
|
|
- ref: 'sandboxResultDetailsRefs'
|
|
|
- }
|
|
|
- }
|
|
|
+ descriptionValues: JSON.parse(JSON.stringify(_data))
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -79,7 +80,7 @@ export default {
|
|
|
{ title: '点击表格选择规则', subtitle: '已选规则:', description: this.descriptionValues[0].name },
|
|
|
{ title: '点击表格选择版本', subtitle: '已选版本:', description: this.descriptionValues[1].name },
|
|
|
{ title: '系数导向', subtitle: '', description: '' },
|
|
|
- { title: '数据日期', subtitle: '', description: '' },
|
|
|
+ { title: '数据日期', subtitle: '已选日期:', description: this.descriptionValues[3].name },
|
|
|
{ title: '计算结果', subtitle: '', description: '' }
|
|
|
]
|
|
|
},
|
|
@@ -90,6 +91,7 @@ export default {
|
|
|
methods: {
|
|
|
open () {
|
|
|
this.active = 0
|
|
|
+ this.descriptionValues = JSON.parse(JSON.stringify(_data))
|
|
|
this.$refs.dialog.open()
|
|
|
},
|
|
|
assignDescription (item) {
|