king
2023-08-11 fbe91f6f07f6296bbf6c30029c7f36014fe66e79
src/tabviews/subtabtable/index.jsx
@@ -4,8 +4,6 @@
import { notification, Spin, Modal } from 'antd'
import Api from '@/api'
import zhCN from '@/locales/zh-CN/main.js'
import enUS from '@/locales/en-US/main.js'
import Utils from '@/utils/utils.js'
import UtilsDM from '@/utils/utils-datamanage.js'
import { updateSubTabTable } from '@/utils/utils-update.js'
@@ -30,7 +28,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    loadingview: true,    // 页面加载中
    viewlost: false,      // 页面丢失:1、未获取到配置-页面丢失;2、页面未启用
    lostmsg: '',          // 页面丢失时的提示信息
@@ -89,7 +86,7 @@
        this.setState({
          loadingview: false,
          viewlost: true,
          lostmsg: this.state.dict['main.view.unenabled']
          lostmsg: '抱歉,您访问的页面未启用,请联系管理员。'
        })
        return
      }
@@ -202,6 +199,8 @@
        item.$menuId = this.props.MenuID
        item.$old = true
        if (item.OpenType === 'popview') return
        if (item.controlField) {
          if (/,/ig.test(item.controlVal)) {
            item.controlVals = item.controlVal.split(',')
@@ -260,11 +259,6 @@
        let userName = sessionStorage.getItem('User_Name') || ''
        let fullName = sessionStorage.getItem('Full_Name') || ''
        if (sessionStorage.getItem('isEditState') === 'true') {
          userName = sessionStorage.getItem('CloudUserName') || ''
          fullName = sessionStorage.getItem('CloudFullName') || ''
        }
        let regs = [
          { reg: /@userName@/ig, value: `'${userName}'` },
@@ -701,7 +695,6 @@
            actions={actions}
            columns={columns}
            BID={this.props.BID}
            dict={this.state.dict}
            BData={this.props.BData}
            selectedData={selectedData}
            MenuID={this.props.SupMenuID}
@@ -713,7 +706,6 @@
          columns={columns}
          pageSize={pageSize}
          data={this.state.data}
          dict={this.state.dict}
          BData={this.props.BData}
          total={this.state.total}
          MenuID={this.props.MenuID}