king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/views/appmanage/index.jsx
@@ -377,7 +377,7 @@
  }
  deleteTran = (record) => {
    const _this = this
    const that = this
    let param = {
      func: 's_sVersion_del',
@@ -395,7 +395,7 @@
                message: '操作成功!',
                duration: 3
              })
              _this.getTransList()
              that.getTransList()
            } else {
              notification.warning({
                top: 92,
@@ -414,7 +414,7 @@
  }
  enableTran = (record) => {
    const _this = this
    const that = this
    let param = {
      func: 's_sVersion_sub',
@@ -432,7 +432,7 @@
                message: '操作成功!',
                duration: 3
              })
              _this.getTransList()
              that.getTransList()
            } else {
              Modal.error({
                title: result.message,
@@ -601,7 +601,7 @@
  }
  deleteApp = (record) => {
    const _this = this
    const that = this
    confirm({
      content: '确定删除《' + record.remark + '》吗?',
@@ -621,12 +621,12 @@
                duration: 5
              })
              _this.setState({
              that.setState({
                selectApp: null,
                selectSubApp: null,
                loading: true
              })
              _this.getAppList()
              that.getAppList()
            } else {
              if (result.message.indexOf('kei_no已被菜单使用,不可删除') > -1) {
                result.message = 'kei_no已被菜单使用,不可删除'
@@ -649,7 +649,7 @@
  
  deleteSubApp = (record) => {
    const { selectApp } = this.state
    const _this = this
    const that = this
    let param = {
      func: 's_kei_addupt',
@@ -696,11 +696,11 @@
                duration: 5
              })
      
              _this.setState({
              that.setState({
                selectSubApp: null,
                loading: true
              })
              _this.getAppList()
              that.getAppList()
            } else {
              notification.warning({
                top: 92,
@@ -821,7 +821,7 @@
      }
    })
    const _this = this
    const that = this
    confirm({
      content: '确定要执行吗?',
@@ -857,10 +857,10 @@
                message: '执行成功。',
                duration: 3
              })
              _this.setState({
              that.setState({
                scriptIndex: 1
              }, () => {
                _this.getScriptList()
                that.getScriptList()
              })
            }
            resolve()