| | |
| | | } |
| | | |
| | | deleteTran = (record) => { |
| | | const _this = this |
| | | const that = this |
| | | |
| | | let param = { |
| | | func: 's_sVersion_del', |
| | |
| | | message: '操作成功!', |
| | | duration: 3 |
| | | }) |
| | | _this.getTransList() |
| | | that.getTransList() |
| | | } else { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | } |
| | | |
| | | enableTran = (record) => { |
| | | const _this = this |
| | | const that = this |
| | | |
| | | let param = { |
| | | func: 's_sVersion_sub', |
| | |
| | | message: '操作成功!', |
| | | duration: 3 |
| | | }) |
| | | _this.getTransList() |
| | | that.getTransList() |
| | | } else { |
| | | Modal.error({ |
| | | title: result.message, |
| | |
| | | } |
| | | |
| | | deleteApp = (record) => { |
| | | const _this = this |
| | | const that = this |
| | | |
| | | confirm({ |
| | | content: '确定删除《' + record.remark + '》吗?', |
| | |
| | | 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已被菜单使用,不可删除' |
| | |
| | | |
| | | deleteSubApp = (record) => { |
| | | const { selectApp } = this.state |
| | | const _this = this |
| | | const that = this |
| | | |
| | | let param = { |
| | | func: 's_kei_addupt', |
| | |
| | | duration: 5 |
| | | }) |
| | | |
| | | _this.setState({ |
| | | that.setState({ |
| | | selectSubApp: null, |
| | | loading: true |
| | | }) |
| | | _this.getAppList() |
| | | that.getAppList() |
| | | } else { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | } |
| | | }) |
| | | |
| | | const _this = this |
| | | const that = this |
| | | |
| | | confirm({ |
| | | content: '确定要执行吗?', |
| | |
| | | message: '执行成功。', |
| | | duration: 3 |
| | | }) |
| | | _this.setState({ |
| | | that.setState({ |
| | | scriptIndex: 1 |
| | | }, () => { |
| | | _this.getScriptList() |
| | | that.getScriptList() |
| | | }) |
| | | } |
| | | resolve() |