king
2023-08-02 b5c32333ac9cebee515171f4ad68e6e5e73ebf1f
src/tabviews/zshare/actionList/changeuserbutton/index.jsx
@@ -4,8 +4,6 @@
import { Button, notification, Modal } from 'antd'
import Api from '@/api'
import zhCN from '@/locales/zh-CN/main.js'
import enUS from '@/locales/en-US/main.js'
import MKEmitter from '@/utils/events.js'
import MkIcon from '@/components/mk-icon'
// import './index.scss'
@@ -24,7 +22,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    disabled: false,
    hidden: false,
    loading: false
@@ -129,7 +126,7 @@
      // 需要选择单行时,校验数据
      notification.warning({
        top: 92,
        message: this.state.dict['main.action.confirm.selectSingleLine'],
        message: '请选择单行数据!',
        duration: 5
      })
      return
@@ -174,7 +171,7 @@
    param[setting.primaryKey] = primaryId
    confirm({
      title: this.state.dict['main.action.confirm.tip'],
      title: '确定要执行吗?',
      onOk() {
        return new Promise(resolve => {
          Api.genericInterface(param).then(res => {
@@ -210,7 +207,7 @@
            } else {
              notification.error({
                top: 92,
                message: res.message || res.ErrMesg,
                message: res.message || '执行失败!',
                duration: btn.verify && btn.verify.ntime ? btn.verify.ntime : 10
              })
              _this.setState({loading: false})