Commit a69909bc by 王志慧

fixed

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