king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/views/design/header/editfirstmenu/index.jsx
@@ -60,7 +60,7 @@
      this.setState({
        loading: true
      })
      Api.getSystemConfig(param).then(res => {
      Api.getCloudConfig(param).then(res => {
        if (res.status) {
          this.setState({
            loading: false,
@@ -92,7 +92,7 @@
      return
    }
    
    let _this = this
    let that = this
    confirm({
      title: `确定删除菜单《${item.MenuName}》吗?`,
      content: '',
@@ -101,9 +101,9 @@
          func: 'sPC_MainMenu_Del',
          MenuID: item.MenuID
        }
        return Api.getSystemConfig(param).then(res => {
        return Api.getCloudConfig(param).then(res => {
          if (res.status) {
            _this.props.reload()
            that.props.reload()
          } else {
            notification.warning({
              top: 92,
@@ -125,22 +125,24 @@
    if (type === 'confirm' && _menuchange) {
      let param  = {
        func: 'sPC_Menu_SortUpt',
        exec_type: 'x',
        LText: this.state.menulist.map((item, index) => {
          return 'select \'' + item.MenuID + '\' as Menuid,' + (index + 1) * 10 + ' as sort'
        })
      }
      param.LText = param.LText.join(' union ') // sql拼接
      param.LText = Utils.formatOptions(param.LText) // 关键字符替换,base64加密
      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') // 时间戳
      param.secretkey = Utils.encrypt(param.LText, param.timestamp) // md5密钥
      param.LText = param.LText.join(' union ')
      param.LText = Utils.formatOptions(param.LText, 'x')
      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
      param.secretkey = Utils.encrypt('', param.timestamp)
      confirm({
        title: '确认调整菜单顺序吗?',
        content: '',
        onOk() {
          return Api.getSystemConfig(param).then(res => {
          return Api.getCloudConfig(param).then(res => {
            if (res.status) {
              that.setState({ change: false })
              that.props.reload()
            } else {
              notification.warning({