|
@@ -2,7 +2,7 @@
|
|
|
<el-container class="">
|
|
|
<el-header height="20px">
|
|
|
<el-page-header @back="handleBack" :content="content"> </el-page-header>
|
|
|
- </el-header>
|
|
|
+ </el-header>
|
|
|
<div class="line">
|
|
|
<el-divider></el-divider>
|
|
|
<h4>限定条件</h4>
|
|
@@ -366,6 +366,12 @@ export default {
|
|
|
policyId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ isShow:{
|
|
|
+ type: Number,
|
|
|
+ },
|
|
|
+ isFlag:{
|
|
|
+ type: [Number,String],
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -441,7 +447,7 @@ export default {
|
|
|
comCode: state => state.sales.code,
|
|
|
content() {
|
|
|
const textArr = ['新增条件', '编辑条件', '条件详情']
|
|
|
- const isShow = this.$parent.$parent.$parent.$parent.isShow - 2
|
|
|
+ const isShow = this.isShow - 2
|
|
|
let len = isShow ? 2 : isShow
|
|
|
return textArr[len]
|
|
|
}
|
|
@@ -449,7 +455,7 @@ export default {
|
|
|
methods: {
|
|
|
getList() {},
|
|
|
handleBack() {
|
|
|
- const isShow = this.$parent.$parent.$parent.$parent.isShow
|
|
|
+ const isShow = this.isShow
|
|
|
if ([4, 5].includes(isShow)) {
|
|
|
this.$parent.isEdit = 1
|
|
|
} else {
|
|
@@ -568,7 +574,7 @@ export default {
|
|
|
this.pop = ''
|
|
|
this.popArr = {}
|
|
|
this.$parent.isCondition = 0
|
|
|
- this.$parent.$parent.$parent.$parent.isFlag = 1
|
|
|
+ this.isFlag = 1
|
|
|
// Object.assign(this.$data, this.$options.data());
|
|
|
this.$emit('handleSubmitCon', this.$parent.searchForm.code || this.comCode)
|
|
|
})
|