| | |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | size, |
| | | roleAlias: 111 //筛选保安员 固定 |
| | | } |
| | | }) |
| | | } |
| | |
| | | export default { |
| | | props: ["card"], |
| | | data() { |
| | | var dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | search = true; |
| | | if (this.card.jurisdiction != "") { |
| | | dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | this.card.jurisdiction; |
| | | } else if (this.card.jurisdiction == 1372091709474910209) { |
| | | // a = ""; |
| | | } |
| | | if (this.card.deptId != "") { |
| | | search = false; |
| | | } |
| | | return { |
| | | securityid1: "", |
| | | ExperienceVisible: false, |
| | |
| | | // prop: "deptName", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | dicUrl: dicUrl, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | // slot: true, |
| | | searchSpan: 5, |
| | | display: false, |
| | | search: true, |
| | | search: search, |
| | | minWidth: 220, |
| | | }, |
| | | { |
| | |
| | | export default { |
| | | props: ["card"], |
| | | data() { |
| | | var jurisdiction = |
| | | this.card.jurisdiction == "1372091709474910209" |
| | | ? "1372091709474910209" |
| | | : this.card.jurisdiction; |
| | | var dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | search = true; |
| | | if (this.card.jurisdiction != "") { |
| | | dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | this.card.jurisdiction; |
| | | } else if (this.card.jurisdiction == 1372091709474910209) { |
| | | // a = ""; |
| | | } |
| | | if (this.card.deptId != "") { |
| | | search = false; |
| | | } |
| | | return { |
| | | securityid1: "", |
| | | ExperienceVisible: false, |
| | |
| | | prop: "deptName", |
| | | type: "tree", |
| | | overHidden: true, |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | dicUrl: dicUrl, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | labelWidth: 118, |
| | | width: 230, |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | | search: search, |
| | | searchSpan: 4, |
| | | // editDisplay: false, |
| | | // addDisplay: false, |
| | |
| | | prop: "jurisdiction", |
| | | hide: true, |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | | search: search, |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | labelWidth: 118, |
| | |
| | | return ""; |
| | | }, |
| | | getPractitionersPageInfo(page, params = {}) { |
| | | // this.card.jurisdiction = "130"; |
| | | // this.card.this.card = "1425365571343515649"; |
| | | // if (params.hold == undefined) { |
| | | // params.hold = 1; |
| | | // } |
| | | if (this.card.jurisdiction != "" || this.card.jurisdiction != undefined) { |
| | | if (this.query1.deptId != "" || this.query1.deptId != undefined) { |
| | | this.card.deptId = this.query1.deptId; |
| | | } |
| | | this.option1.column[2].search = true; |
| | | } else { |
| | | this.option1.column[2].search = false; |
| | | } |
| | | if (this.card.jurisdiction == 1372091709474910209) { |
| | | this.card.jurisdiction = ""; |
| | | } |
| | |
| | | if (releaseTimeRange) { |
| | | params = { |
| | | ...params, |
| | | ...this.card, |
| | | beginTime: releaseTimeRange[0], |
| | | overTime: releaseTimeRange[1], |
| | | status: 1, |
| | | ...this.query1, |
| | | ...this.card, |
| | | }; |
| | | // values.releaseTimeRange = null; |
| | | } else { |
| | | params = { |
| | | ...params, |
| | | ...this.card, |
| | | ...this.query1, |
| | | status: 1, |
| | | ...this.card, |
| | | }; |
| | | } |
| | | console.log(params); |
| | | // console.log(params); |
| | | getdata(page.currentPage, page.pageSize, params).then((res) => { |
| | | // console.log(res.data.data.records); |
| | | const data = res.data.data; |
| | |
| | | export default { |
| | | props: ["card"], |
| | | data() { |
| | | var dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | search = true; |
| | | if (this.card.jurisdiction != "") { |
| | | dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | this.card.jurisdiction; |
| | | } else if (this.card.jurisdiction == 1372091709474910209) { |
| | | // a = ""; |
| | | } |
| | | // console.log(this.card); |
| | | if (this.card.deptId != "") { |
| | | search = false; |
| | | } |
| | | return { |
| | | securityid1: "", |
| | | ExperienceVisible: false, |
| | |
| | | // prop: "deptName", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | dicUrl: dicUrl, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | // slot: true, |
| | | searchSpan: 4, |
| | | display: false, |
| | | search: true, |
| | | search: search, |
| | | minWidth: 220, |
| | | }, |
| | | { |
| | |
| | | if (this.card.jurisdiction == 1372091709474910209) { |
| | | this.card.jurisdiction = ""; |
| | | } |
| | | // if (params.hold == undefined) { |
| | | // params.hold = 1; |
| | | // } |
| | | |
| | | params = { |
| | | ...params, |
| | | ...this.query1, |
| | | status: 1, |
| | | ...this.card, |
| | | ...params, |
| | | status: 1, |
| | | ...this.query1, |
| | | }; |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | // console.log(res.data.data.records); |
| | |
| | | top="9vh" |
| | | > |
| | | <situation |
| | | :card="{ deptid: deptid, jurisdiction: jurisdiction }" |
| | | :card="{ deptId: deptid, jurisdiction: jurisdiction }" |
| | | v-if="sees == 1" |
| | | > |
| | | <!-- 保安员审查情况统计 --> |
| | | </situation> |
| | | |
| | | <certificate |
| | | :card="{ deptid: deptid, jurisdiction: jurisdiction }" |
| | | :card="{ deptId: deptid, jurisdiction: jurisdiction }" |
| | | v-if="sees == 2" |
| | | > |
| | | <!-- 保安员持证情况统计 --> |
| | |
| | | feature: { |
| | | myTool1: { |
| | | show: true, |
| | | title: title, |
| | | title: "", |
| | | icon: "image://img/table.png", |
| | | onclick: function () { |
| | | that.dialogVisible = true; |
| | |
| | | // console.log(roleName); |
| | | // console.log(res.data.data); |
| | | // console.log(roleAlias); |
| | | if (roleName == "超级管理员" || roleName == "公安管理员") { |
| | | if (roleName != "保安公司管理员") { |
| | | this.deptid = ""; |
| | | this.jurisdiction = this.userInfo.jurisdiction; |
| | | } else if (roleName == "保安公司管理员") { |
| | | } else { |
| | | this.deptid = this.userInfo.dept_id; |
| | | this.jurisdiction = ""; |
| | | } |
| | |
| | | <template> |
| | | <el-row class="user"> |
| | | <el-col :span="5"> |
| | | <el-col :span="sizes[0]"> |
| | | <div class="box"> |
| | | <el-scrollbar> |
| | | <basic-container> |
| | |
| | | </el-scrollbar> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="19"> |
| | | <el-col :span="sizes[1]"> |
| | | <basic-container> |
| | | <avue-crud |
| | | :option="option" |
| | |
| | | } |
| | | }; |
| | | return { |
| | | sizes: [5, 19], |
| | | deptids: null, |
| | | |
| | | form: {}, |
| | | search: {}, |
| | | roleBox: false, |
| | |
| | | label: "所属组织机构", |
| | | prop: "deptName", |
| | | slot: true, |
| | | overHidden: true, |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "用户姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | width: 90, |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "所属角色", |
| | | prop: "roleName", |
| | | slot: true, |
| | | width: 130, |
| | | display: false, |
| | | }, |
| | | // { |
| | |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo.role_name); |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | this.deptids = this.userInfo.dept_id; |
| | | this.sizes = [0, 24]; |
| | | } else { |
| | | this.deptids = null; |
| | | this.sizes = [5, 19]; |
| | | } |
| | | }, |
| | | mounted() { |
| | | // 非保安单位模式默认加载管理组数据 |
| | | if (!website.tenantMode) { |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | params["status"] = 1; |
| | | var deptid = this.deptids == null ? this.treeDeptId : this.deptids; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query), |
| | | this.treeDeptId |
| | | deptid |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | }, |
| | | platformOnLoad(page, params = {}) { |
| | | this.platformLoading = true; |
| | | var deptid = this.deptids == null ? this.treeDeptId : this.deptids; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query), |
| | | this.treeDeptId |
| | | deptid |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.platformPage.total = data.total; |