| | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getPageList, |
| | | remove, |
| | | add, |
| | | update, |
| | | getDetatil, |
| | | saveOrUpdateHouseLabel |
| | | getDetatil |
| | | } from "@/api/userHouse/list/houseHold.js"; |
| | | import { |
| | | exportBlob |
| | |
| | | } from "@/util/date"; |
| | | import NProgress from 'nprogress'; |
| | | import 'nprogress/nprogress.css'; |
| | | import func from "@/util/func"; |
| | | import Qs from "qs"; |
| | | |
| | | export default { |
| | |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.household_add, true), |
| | | addBtn: this.vaildData(this.permission.household_add, false), |
| | | viewBtn: this.vaildData(this.permission.household_view, true), |
| | | delBtn: this.vaildData(this.permission.household_delete, true), |
| | | editBtn: this.vaildData(this.permission.household_edit, true) |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => { |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |