🦀️ fix: 修复bug
This commit is contained in:
parent
f2355e099f
commit
4e5641d5e9
|
@ -834,7 +834,7 @@ export default class acclist extends React.Component {
|
||||||
rowItemClick(row, rowIndex) {
|
rowItemClick(row, rowIndex) {
|
||||||
// 兑换码
|
// 兑换码
|
||||||
if (this.props.keyType === 1) {
|
if (this.props.keyType === 1) {
|
||||||
if (row.recharge_type === 2) {
|
if (row.recharge_type == 2) {
|
||||||
this.setState({
|
this.setState({
|
||||||
draw_title: "编辑组合商品",
|
draw_title: "编辑组合商品",
|
||||||
rowIndex: rowIndex,
|
rowIndex: rowIndex,
|
||||||
|
@ -1243,7 +1243,7 @@ export default class acclist extends React.Component {
|
||||||
placeholder="请输入数量"
|
placeholder="请输入数量"
|
||||||
type="number"
|
type="number"
|
||||||
width={120}
|
width={120}
|
||||||
disabled={rowData.recharge_type === 2}
|
disabled={rowData.recharge_type == 2}
|
||||||
value={rowData.restrict}
|
value={rowData.restrict}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
this.onRestrict(e, rowData, rowIndex)
|
this.onRestrict(e, rowData, rowIndex)
|
||||||
|
|
|
@ -571,7 +571,7 @@ const UseKeyAddEdit = () => {
|
||||||
// 编辑
|
// 编辑
|
||||||
const rowEditClick = (row, rowIndex) => {
|
const rowEditClick = (row, rowIndex) => {
|
||||||
if (state.keyType === 1) {
|
if (state.keyType === 1) {
|
||||||
if (row.recharge_type === 2) {
|
if (row.recharge_type == 2) {
|
||||||
setState({
|
setState({
|
||||||
draw_title: "编辑组合商品",
|
draw_title: "编辑组合商品",
|
||||||
rowIndex: rowIndex,
|
rowIndex: rowIndex,
|
||||||
|
@ -1172,7 +1172,7 @@ const UseKeyAddEdit = () => {
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
onBindNum(e, rowData, rowIndex)
|
onBindNum(e, rowData, rowIndex)
|
||||||
}}
|
}}
|
||||||
disabled={rowData.disabled || rowData.recharge_type === 2}
|
disabled={rowData.disabled || rowData.recharge_type == 2}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue