Commit 07313e68 by huaying

fix: bug修复

parent 8aa01008
...@@ -370,6 +370,7 @@ ...@@ -370,6 +370,7 @@
/> />
<!-- 批量导入 --> <!-- 批量导入 -->
<import-dialog :dialogVisible.sync="dialogImportVisible" <import-dialog :dialogVisible.sync="dialogImportVisible"
:isCustomer="true"
:pageType="1" :pageType="1"
:importList="importList" @successImport="taskId => successImport(taskId, true)"/> :importList="importList" @successImport="taskId => successImport(taskId, true)"/>
</div> </div>
......
...@@ -24,14 +24,25 @@ ...@@ -24,14 +24,25 @@
@change="handleChangeType" @change="handleChangeType"
:disabled="importList.length < 2" :disabled="importList.length < 2"
> >
<template v-for="item in importList"> <template v-if="isCustomer">
<el-option <template v-for="item in importList">
:label="item.importValue" <el-option
:value="item.importType" :label="item.importValue"
v-if="getCodeAuth(item.btnCode)" :value="item.importType"
:limit-code="getCode(item.btnCode)" v-if="getCodeAuth(item.btnCode)"
:key="item"> :limit-code="getCode(item.btnCode)"
</el-option> :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> </template>
</el-select> </el-select>
...@@ -71,6 +82,10 @@ export default { ...@@ -71,6 +82,10 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
isCustomer: {
type: Boolean,
default: false,
},
pageType: '', pageType: '',
importList: { importList: {
type: Array, type: Array,
...@@ -78,12 +93,10 @@ export default { ...@@ -78,12 +93,10 @@ export default {
{ {
importType: 15, importType: 15,
importValue: "批量冻结会员", importValue: "批量冻结会员",
btnCode: 'memberBatchImport'
}, },
{ {
importType: 16, importType: 16,
importValue: "批量解冻会员", importValue: "批量解冻会员",
btnCode: 'memberBatchImport'
} }
], ],
}, },
...@@ -128,7 +141,9 @@ export default { ...@@ -128,7 +141,9 @@ export default {
watch: { watch: {
importList:{ importList:{
handler(n){ handler(n){
n = n.filter(item=> item.btnCode); if(this.isCustomer) {
n = n.filter(item=> item.btnCode);
}
let value = ''; let value = '';
if(n && n.length){ if(n && n.length){
value = n[0].importType; 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