| | |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | |
| | | <template slot="menu"> |
| | | <el-button type="text" @click="dialogVisible=true">点击打开 Dialog</el-button> |
| | | |
| | | <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> |
| | | <span>这是一段信息</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | dialogVisible: false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | labelWidth:120, |
| | | menuWidth:120, |
| | | menuWidth:220, |
| | | dialogClickModal: false, |
| | | headerAlign: 'center', |
| | | align: 'center', |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.parcel_pic_view, true), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false) |
| | | }; |
| | |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDetail(this.form.id).then(res => { |
| | | console.log(type); |
| | | if (["view"].includes(type)) { |
| | | getDetail(this.form.imgUrl).then(res => { |
| | | this.form = res.data.data; |
| | | }); |
| | | } |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | done(); |
| | | }) |
| | | .catch(_ => {}); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | debugger; |
| | | const { dateTime } = this.query; |