Commit b6ed1d84 by caoyanzhi

门店详情查看绑定范围接口调整请求参数

parent 8128ceb0
......@@ -64,7 +64,7 @@
</template>
</el-table-column>
</el-table>
<el-dialog :visible.sync="bindInfo.show" title="门店授权范围" width="600px">
<el-dialog :visible.sync="bindInfo.show" title="门店授权范围" width="600px" @closed="onBindInfoClose">
<el-form label-width="140px">
<el-form-item label="门店绑定授权范围">
<el-select style="width: 392px" disabled multiple :value="bindInfo.selected">
......@@ -117,8 +117,10 @@ export default {
refreshEnterpriseInfo().then(this.getEnterpriseDetail);
},
getBindDetail(storeData, type) {
const { wxEnterpriseId, enterpriseId } = storeData
const params = {
enterpriseId: storeData.enterpriseId,
wxEnterpriseId,
enterpriseId,
operationType: type, // 0 门店绑定 1门店分享
}
this.bindInfo.show = true;
......@@ -126,6 +128,10 @@ export default {
this.bindInfo.data = res.result || [];
this.bindInfo.selected = this.bindInfo.data.map(el => el.id);
})
},
onBindInfoClose() {
this.bindInfo.data = [];
this.bindInfo.selected = [];
}
}
}
......
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