解决商品编辑页面保存按钮权限控制的bug

This commit is contained in:
季圣华
2023-06-04 18:09:07 +08:00
parent 305b9c4954
commit b308c8182e
2 changed files with 4 additions and 7 deletions

View File

@@ -7,15 +7,12 @@
v-bind:prefixNo="prefixNo"
switchHelp
switchFullscreen
@ok="handleOk"
@cancel="handleCancel"
cancelText="关闭"
:id="prefixNo"
:style="modalStyle">
<template slot="footer">
<a-button key="back" v-if="isReadOnly" @click="handleCancel">
关闭
</a-button>
<a-button key="back" @click="handleCancel">关闭</a-button>
<a-button type="primary" v-if="showOkFlag" :loading="confirmLoading" @click="handleOk">确定</a-button>
</template>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
@@ -321,7 +318,7 @@
skuTwoList: [],
manySkuSelected: 0,
model: {},
isReadOnly: false,
showOkFlag: true,
labelCol: {
xs: { span: 24 },
sm: { span: 8 },