Browse Source

bug 修改

tags/小炒逻辑变更前
gwbvipvip 2 years ago
parent
commit
593c222c7f
3 changed files with 7 additions and 7 deletions
  1. +2
    -2
      src/pages/crm/coupon/coupon-Batch/components/ShowRecord.jsx
  2. +3
    -3
      src/pages/crm/coupon/coupon-Batch/index.jsx
  3. +2
    -2
      src/pages/device/deviceBom/components/CreateForm.jsx

+ 2
- 2
src/pages/crm/coupon/coupon-Batch/components/ShowRecord.jsx View File

@@ -92,10 +92,10 @@ const record = (props) => {
onConfirm={async () => {
TextArea.value = p.remark;
setrow(p);
setIsModalVisible( p.status==0?true:false);
setIsModalVisible(true);
}}
onCancel={() => { }} >
<a href="#">{p.status == 0 ? "启用" : "禁用"}</a>
<a href="#">{p.status == 0 ? "禁用" :"启用" }</a>
</Popconfirm>);
}
}


+ 3
- 3
src/pages/crm/coupon/coupon-Batch/index.jsx View File

@@ -64,7 +64,7 @@ const CouponBatch = () => {
render: (_, record) => {
let template = [
<a
key="primary"
key="primary1"
type="primary"
onClick={() => {
showsVisible(true);
@@ -74,7 +74,7 @@ const CouponBatch = () => {
适用范围
</a>,
<a
key="primary"
key="primary2"
type="primary"
onClick={() => {
showsVisible(true);
@@ -84,7 +84,7 @@ const CouponBatch = () => {
适用商品
</a>,
<a
key="primary"
key="primary3"
type="primary"
onClick={() => {
setCustomerCouponShow(true);


+ 2
- 2
src/pages/device/deviceBom/components/CreateForm.jsx View File

@@ -54,7 +54,7 @@ const CreateForm = (props) => {
params.pertains=[2];
await GetBOMs(params).then((r) => {
Data = r.data.data;
setBoms(r.data.data);
total = 1;
});
return {
@@ -65,7 +65,7 @@ const CreateForm = (props) => {
}}
columns={columns}
rowSelection={{
onChange: (_, selectedRows) => setSelectedRows(selectedRows),
onChange: (_, selectedRows) => {setSelectedRows(selectedRows);setBoms(selectedRows);},
}}
/>
</Modal>


Loading…
Cancel
Save