Commit 07313e68 by huaying

fix: bug修复

parent 8aa01008
......@@ -370,6 +370,7 @@
/>
<!-- 批量导入 -->
<import-dialog :dialogVisible.sync="dialogImportVisible"
:isCustomer="true"
:pageType="1"
:importList="importList" @successImport="taskId => successImport(taskId, true)"/>
</div>
......
......@@ -24,6 +24,7 @@
@change="handleChangeType"
:disabled="importList.length < 2"
>
<template v-if="isCustomer">
<template v-for="item in importList">
<el-option
:label="item.importValue"
......@@ -33,6 +34,16 @@
:key="item">
</el-option>
</template>
</template>
<template v-else>
<template v-for="item in importList" >
<el-option
:label="item.importValue"
:value="item.importType"
:key="item">
</el-option>
</template>
</template>
</el-select>
</el-form-item>
......@@ -71,6 +82,10 @@ export default {
type: Boolean,
default: false,
},
isCustomer: {
type: Boolean,
default: false,
},
pageType: '',
importList: {
type: Array,
......@@ -78,12 +93,10 @@ export default {
{
importType: 15,
importValue: "批量冻结会员",
btnCode: 'memberBatchImport'
},
{
importType: 16,
importValue: "批量解冻会员",
btnCode: 'memberBatchImport'
}
],
},
......@@ -128,7 +141,9 @@ export default {
watch: {
importList:{
handler(n){
if(this.isCustomer) {
n = n.filter(item=> item.btnCode);
}
let value = '';
if(n && n.length){
value = n[0].importType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment