| | |
| | | this.$http({ |
| | | url: this.$http.adornUrl('/sys/menu/table'), |
| | | method: 'get', |
| | | params: this.$http.adornParams() |
| | | params: this.$http.adornParams({ |
| | | appType: "1", //1综合盘 2 交易所 |
| | | }), |
| | | }).then(({data}) => { |
| | | this.menuList = treeDataTranslate(data, 'menuId', 'parentId') |
| | | }).then(() => { |
| | |
| | | 'menuIdList': [].concat(this.$refs.menuListTree.getCheckedKeys(), [this.tempKey], this.$refs.menuListTree.getHalfCheckedKeys()) |
| | | }) |
| | | }).then(({data}) => { |
| | | this.$message({ |
| | | message: '操作成功', |
| | | type: 'success', |
| | | duration: 1500, |
| | | onClose: () => { |
| | | this.visible = false |
| | | this.$emit('refreshDataList') |
| | | } |
| | | }) |
| | | if(data==0){ |
| | | this.$message({ |
| | | message: '操作成功', |
| | | type: 'success', |
| | | duration: 1500, |
| | | onClose: () => { |
| | | this.visible = false |
| | | this.$emit('refreshDataList') |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | message: data.msg, |
| | | type: 'error', |
| | | duration: 1500, |
| | | onClose: () => { |
| | | } |
| | | }) |
| | | // |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }) |