Commit a4dcf5fe by 杨明

fixed

1 parent a39a60a7
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-04 16:41:09
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-10 10:02:21
* @LastEditTime: 2023-01-10 16:14:33
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -168,13 +168,31 @@ export default {
searchFormData: [
{
label: '活动门店',
name: 'merchantName',
type: 'input'
name: 'merchantNames',
type: 'select',
width: '215px',
multiple: true,
attrs: {
multipleLimit: 10
},
noFilter: false,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '活动名称',
name: 'activityName',
type: 'input'
name: 'activityNames',
type: 'select',
width: '215px',
multiple: true,
attrs: {
multipleLimit: 10
},
noFilter: false,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
}
],
tableSearchForm: {
......@@ -241,6 +259,7 @@ export default {
},
mounted() {
this.getCrowdfundingParams()
this.getMerchantList()
},
computed: {
......@@ -278,6 +297,35 @@ export default {
}
},
methods: {
async getCrowdfundingParams() {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1
})
let activityNameList = []
if (activity?.parameters && activity.parameters.length) {
activity.parameters.map(e => {
activityNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[1], 'optionList', this.$common.utils.deepClone(activityNameList))
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2
})
let merchantNameList = []
if (merchant?.parameters && merchant.parameters.length) {
merchant.parameters.map(e => {
merchantNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[0], 'optionList', this.$common.utils.deepClone(merchantNameList))
},
clearData() {
this.setectList = []
this.config.merchantId = this.merchantId
......@@ -599,6 +647,11 @@ export default {
<style scoped lang="scss">
.activity {
/deep/ {
.el-select .el-tag {
max-width: 60% !important;
}
}
.container {
margin-top: 16px;
.title {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!