🎈 per: 优化代码并修复bug

This commit is contained in:
wangsongsole 2023-10-25 14:31:16 +08:00
parent eb68c41abf
commit 79088a1857
1 changed files with 3 additions and 7 deletions

View File

@ -12,13 +12,12 @@ import menu from "@/assets/enum.js"
import Grid from "@/components/gird/main.js" import Grid from "@/components/gird/main.js"
import Ipt from "@/components/input/main" import Ipt from "@/components/input/main"
import TabPage from "@/components/tabPage/main.js" import TabPage from "@/components/tabPage/main.js"
import { commonSearchOrder } from "@/tools/apiTools.js" // 公用接口函数
import React from "react" import React from "react"
import { Button, CombinedDateRangePicker, Notify, Sweetalert, Switch } from "zent" import { Button, CombinedDateRangePicker, Notify, Sweetalert, Switch } from "zent"
import "./list.less" import "./list.less"
import { Column, tabList } from "./util" import { Column, tabList } from "./util"
import { commonSearchOrder } from "@/tools/apiTools.js" // 公用接口函数
export default class acclist extends React.Component { export default class acclist extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props)
@ -171,8 +170,7 @@ export default class acclist extends React.Component {
} }
tabFn(index) { tabFn(index) {
this.setState({ tabIndex: index, key_word: "" }) this.setState({ tabIndex: index, key_word: "", page: 1, limit: 10 })
this.setState({ page: 1, limit: 10 })
setTimeout(() => { setTimeout(() => {
this.getCodeListFn({}, index) this.getCodeListFn({}, index)
}, 10) }, 10)
@ -251,9 +249,7 @@ export default class acclist extends React.Component {
}) })
} }
}) })
} catch (err) { } catch (err) {}
console.log("exchangecode/list =>", err)
}
} }
//点击启用/禁用 //点击启用/禁用