| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params["tasktype"] = "0"; // 治安巡查 |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params["tasktype"] = "2"; // 治安防范培训 |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params["tasktype"] = "1"; // 治安义务宣传 |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | display: false, |
| | | width:95, |
| | | prop: "phone", |
| | | }, |
| | | { |
| | | label: "辖区", |
| | | }, { |
| | | label: "居住地辖区", |
| | | prop: "xqname", |
| | | },{ |
| | | label: "工作地辖区", |
| | | prop: "workname", |
| | | }, |
| | | { |
| | | label: "角色", |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.zc_add, false), |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | this.loading = true; |
| | | getList( |
| | | page.currentPage, |
| | |
| | | // value: "value" |
| | | // }, |
| | | }, { |
| | | label: "辖区", |
| | | label: "居住地辖区", |
| | | prop: "xqname", |
| | | },{ |
| | | label: "工作地辖区", |
| | | prop: "workname", |
| | | }, |
| | | { |
| | | label: "角色", |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.zc_add, false), |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |