Merge remote-tracking branch 'origin/master'
| | |
| | | return new Promise((resolve) => { |
| | | getButtons().then(res => { |
| | | const data = res.data.data; |
| | | console.log('getButton', data) |
| | | commit('SET_PERMISSION', data); |
| | | resolve(); |
| | | }) |
| | |
| | | prop="name"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | width="60"> |
| | | <template slot-scope="scope"> |
| | |
| | | prop="name"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | width="60"> |
| | | <template slot-scope="scope"> |
| | |
| | | </avue-crud> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="bizTypeVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="bizTypeAddHandler">确 定</el-button> |
| | | <el-button @click="bizTypeVisible = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | |
| | | // 打开弹出层结束时的回调 |
| | | modalOpened() { |
| | | this.visible = true; |
| | | if (!this.resizeHandler) { |
| | | this.resizeHandler = debounce(() => { |
| | | this.refresh() |
| | | }, 100) |
| | | } |
| | | // if (!this.resizeHandler) { |
| | | // this.resizeHandler = debounce(() => { |
| | | // this.refresh() |
| | | // }, 100) |
| | | // } |
| | | window.addEventListener("resize", this.resizeHandler) |
| | | }, |
| | | // 刷新组件 |
| | |
| | | // 上传图片 |
| | | uploadImg() { |
| | | this.$refs.cropper.getCropBlob(data => { |
| | | console.log(data); |
| | | let formData = new FormData(); |
| | | formData.append("avatarfile", data, this.options.filename); |
| | | uploadAvatar(formData).then(response => { |