mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-10-03 12:04:54 +08:00
Reset page number and add data-pinyin to options
This commit is contained in:
parent
6c8176c238
commit
883fbb823a
3 changed files with 3 additions and 1 deletions
|
@ -2347,6 +2347,7 @@ const CategoryWidget = {
|
||||||
onItemClick={(query) => {
|
onItemClick={(query) => {
|
||||||
if (!query || query[0] === CategoryWidget.__ALL) wpc.protocolFilter = null
|
if (!query || query[0] === CategoryWidget.__ALL) wpc.protocolFilter = null
|
||||||
else wpc.protocolFilter = `category:${wpc.entity[0]}:${query.join('$$$$')}`
|
else wpc.protocolFilter = `category:${wpc.entity[0]}:${query.join('$$$$')}`
|
||||||
|
_RbList().pageNo = 1
|
||||||
RbListPage.reload()
|
RbListPage.reload()
|
||||||
}}
|
}}
|
||||||
/>,
|
/>,
|
||||||
|
|
|
@ -312,6 +312,7 @@ $(document).ready(() => {
|
||||||
// v4.1 AI
|
// v4.1 AI
|
||||||
window.attachAibotPageData = function (cb) {
|
window.attachAibotPageData = function (cb) {
|
||||||
renderRbcomp(
|
renderRbcomp(
|
||||||
|
// eslint-disable-next-line react/jsx-no-undef
|
||||||
<DlgAttachRecordList
|
<DlgAttachRecordList
|
||||||
onConfirm={(s) => {
|
onConfirm={(s) => {
|
||||||
const qe = RbListPage._RbList.getLastQueryEntry()
|
const qe = RbListPage._RbList.getLastQueryEntry()
|
||||||
|
|
|
@ -810,7 +810,7 @@ class CompCategoryItem extends React.Component {
|
||||||
<select className="form-control form-control-sm" ref={(c) => (this._$field = c)}>
|
<select className="form-control form-control-sm" ref={(c) => (this._$field = c)}>
|
||||||
{this.props.fields.map((item) => {
|
{this.props.fields.map((item) => {
|
||||||
return (
|
return (
|
||||||
<option key={item.name} value={item.name}>
|
<option key={item.name} value={item.name} data-pinyin={item.quickCode}>
|
||||||
{item.label}
|
{item.label}
|
||||||
</option>
|
</option>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue