|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <el-page-header @back="$parent.pageType=0" :content="detailsId?'编辑':'新增'" style=" padding: 20px 20px 0 20px;"
|
|
|
|
|
|
+ <el-page-header @back="pageType=0" :content="detailsId?'编辑':'新增'" style=" padding: 20px 20px 0 20px;"
|
|
></el-page-header>
|
|
></el-page-header>
|
|
<sales-header ref="header" />
|
|
<sales-header ref="header" />
|
|
<sales-table :dataList="dataList" :column="column" isOperation isSelection @handleSelection="handleSelection">
|
|
<sales-table :dataList="dataList" :column="column" isOperation isSelection @handleSelection="handleSelection">
|
|
@@ -55,7 +55,7 @@ export default {
|
|
SalesTable,
|
|
SalesTable,
|
|
SalesDialog
|
|
SalesDialog
|
|
},
|
|
},
|
|
- props: ['detailsId'],
|
|
|
|
|
|
+ props: ['detailsId','pageType'],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
@@ -207,7 +207,7 @@ export default {
|
|
addFrontOrder(params).then(res => {
|
|
addFrontOrder(params).then(res => {
|
|
this.$successMsg('新增成功')
|
|
this.$successMsg('新增成功')
|
|
this.dis = false
|
|
this.dis = false
|
|
- // this.$parent.pageType = 0
|
|
|
|
|
|
+ // this.pageType = 0
|
|
|
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
})
|
|
})
|
|
@@ -215,7 +215,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
updateFrontOrder(params).then(res => {
|
|
updateFrontOrder(params).then(res => {
|
|
this.$successMsg('编辑成功')
|
|
this.$successMsg('编辑成功')
|
|
- this.$parent.pageType = 0
|
|
|
|
|
|
+ this.$emit('close')
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
})
|
|
})
|
|
|
|
|