king
2024-12-24 9cab9972e2a2b5d1db88da6e17be2384a0f5e5e7
2024-12-24
1个文件已修改
17 ■■■■ 已修改文件
src/menu/datasource/verifycard/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/index.jsx
@@ -719,11 +719,24 @@
      if (r.custompage && setting.laypage === 'true' && _columns.findIndex(col => col.field === 'mk_total') === -1) {
        if (config.subtype !== 'basetable') {
          Modal.warning({
            title: `数据源或自定义脚本中使用自定义分页排序时,请在字段集中添加 mk_total。`,
          const that = this
          Modal.confirm({
            title: `数据源或自定义脚本中使用自定义分页排序时,字段集中需要添加 mk_total。`,
            okText: '知道了',
            cancelText: '添加',
            onOk: () => {
              reject()
            },
            onCancel() {
              let item = {
                field: 'mk_total',
                label: 'mk_total',
                datatype: 'Int',
                uuid: Utils.getuuid()
              }
              that.setState({ columns: [item, ...columns] })
              reject()
            }
          })
          return