Commit a69909bc by 王志慧

fixed

1 parent ad2211e0
......@@ -8,7 +8,7 @@
<div class="config-wrap gl-form-page">
<el-form ref="battleRef" :model="config" label-width="154px" :rules="rules">
<el-form-item label="门店信息:" prop="merchantId">
<el-button type="default" class="el-icon-plus" @click="handleRelateStoreClose" :disabled="id!=''">选择门店</el-button>
<el-button type="default" class="el-icon-plus" @click="handleRelateStoreClose" :disabled="id != ''">选择门店</el-button>
<div class="merchantNameLabel" v-if="config.merchantName">
<p>所属门店</p>
<div class="merchantName ellipsis-1">{{ config.merchantName }}</div>
......@@ -16,7 +16,7 @@
</el-form-item>
<!-- 所属企业-->
<el-form-item label="所属企业:" prop="groupMerchantId">
<el-select v-model="config.groupMerchantId" placeholder="请选择" @change="handleMerchatChange">
<el-select v-model="config.groupMerchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select>
</el-form-item>
......@@ -205,7 +205,7 @@ export default {
this.hideSelect()
this.config.automaticName = data.name
this.config.staffId = data.staffId
this.idBefEncryption = data.idBefEncryption?data.idBefEncryption:'1688855154413617'
this.idBefEncryption = data.idBefEncryption ? data.idBefEncryption : '1688855154413617'
this.$refs.battleRef.clearValidate('staffId')
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
......@@ -354,7 +354,7 @@ export default {
groupConfigList: [],
content: this.config.content
}
if(this.id) params.id =this.id
if (this.id) params.id = this.id
Object.keys(this.groupCofList).map(item => {
if (this.groupCofList[item].length) {
this.groupCofList[item].forEach(k => {
......@@ -382,7 +382,12 @@ export default {
type: res.code == '0' ? 'success' : 'error'
})
if (res.data) {
this.$router.go(-1)
this.$router.push({
path: '/bulletin/index',
query: {
activeName: '3'
}
})
}
})
}
......@@ -487,4 +492,7 @@ export default {
}
}
}
.is-reverse {
transform: rotate(180deg);
}
</style>
......@@ -8,7 +8,7 @@
<div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select>
</el-form-item>
......@@ -605,4 +605,7 @@ export default {
line-height: 20px;
}
}
.is-reverse {
transform: rotate(180deg);
}
</style>
......@@ -43,7 +43,7 @@ export default {
label: '商户号',
name: 'merchantId',
type: 'input',
maxlength: 11
maxlength: 9
},
{
label: '企微名称',
......
......@@ -41,12 +41,16 @@ export default {
]
}
},
created() {
this.activeName = this.$route.query.activeName ? this.$route.query.activeName : '1'
this.handleClick()
},
methods: {
handleClick() {
let componetObj = {
1: 'saasOrder',
2: 'battle',
3:'clewOrder',
3: 'clewOrder',
4: 'vehicleDamageOrder'
}
this.currentComponent = componetObj[this.activeName]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!