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