|
@@ -162,12 +162,12 @@ export default {
|
|
createReportDatas() {
|
|
createReportDatas() {
|
|
this.$refs.setReportData.validate((valid) => {
|
|
this.$refs.setReportData.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ this.$refs.normalDialog.visible = false
|
|
this.loading = true
|
|
this.loading = true
|
|
const data = { ...this.setReportData, startTime: this.setReportData.startAndEnd[0], endTime: this.setReportData.startAndEnd[1] }
|
|
const data = { ...this.setReportData, startTime: this.setReportData.startAndEnd[0], endTime: this.setReportData.startAndEnd[1] }
|
|
createMonthlyReport(data).then(res => {
|
|
createMonthlyReport(data).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.loading = false
|
|
this.loading = false
|
|
- this.$refs.normalDialog.visible = false
|
|
|
|
this.$router.push({ path: '/monthlyReport/edit', query: { pageType: 'editAll', reportId: res.data.id, type: 'create' }})
|
|
this.$router.push({ path: '/monthlyReport/edit', query: { pageType: 'editAll', reportId: res.data.id, type: 'create' }})
|
|
window.log({ c: 'report_home', d: 'report_home_create' })
|
|
window.log({ c: 'report_home', d: 'report_home_create' })
|
|
}
|
|
}
|