2 files modified
1 files added
| | |
| | | return request({ |
| | | url: "/api/blade-placePractitioner/placePractitioner/countByType", |
| | | method: "get", |
| | | params: { |
| | | ...params, |
| | | }, |
| | | params: params |
| | | }); |
| | | }; |
| | | |
| New file |
| | |
| | | import request from "@/router/axios"; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: "/api/blade-place/place/page", |
| | | method: "get", |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: "/api/blade-practitioner/practitioner/remove", |
| | | method: "post", |
| | | params: { |
| | | ids, |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | |
| | |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="source"> |
| | | <el-tag :size="size" :type="showSource(row.source).type">{{ showSource(row.source).text |
| | | <template slot-scope="{row, size}" slot="resignationFlag"> |
| | | <el-tag :size="size" :type="showResignationFlag(row.resignationFlag).type">{{ showResignationFlag(row.resignationFlag).text |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button :size="size" type="text" icon="el-icon-s-check" v-if="permission.place_audit_cur" |
| | | <!-- <el-button :size="size" type="text" icon="el-icon-s-check" v-if="permission.place_audit_cur" |
| | | @click="auditCur({ ...row, confirmFlag: 1 })">审核 |
| | | </el-button> |
| | | |
| | | <el-button :size="size" type="text" icon="el-icon-edit" v-if="permission.place_manage_tenants" |
| | | @click="ManageTenants(row)">场所维护 |
| | | </el-button> |
| | | </el-button> --> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="principalPhone"> |
| | |
| | | <script> |
| | | import { |
| | | getPractitionerList as getList, |
| | | remove, |
| | | update, |
| | | add, |
| | | getPlace, |
| | | getWarningPersonnelCount as getCount |
| | | } from "@/api/place/place" |
| | | |
| | | import { |
| | | remove |
| | | } from "@/api/place/practitioner" |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | // menuWidth: 280, |
| | | menu: false, |
| | | menuWidth: 120, |
| | | // menu: false, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | |
| | | //stripe:true, |
| | | addBtn: false, |
| | | index: true, |
| | | viewBtn: false, |
| | | viewBtn: true, |
| | | editBtn: false, |
| | | delBtn:true, |
| | | // selection: true, |
| | | dialogClickModal: false, |
| | | // menuFixed: 'right', |
| | |
| | | |
| | | }, |
| | | { |
| | | label: "电话号码", |
| | | prop: "telephone", |
| | | searchSpan: 4, |
| | | searchLabelWidth: 110, |
| | | search: true, |
| | | label: "性别", |
| | | prop: "gender", |
| | | width: 80, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | label: "男", |
| | | value: 1 |
| | | }, |
| | | { |
| | | overHidden: true, |
| | | label: "微信号", |
| | | prop: "wxAccount", |
| | | searchSpan: 4, |
| | | slot: true, |
| | | }, |
| | | { |
| | | overHidden: true, |
| | | label: "身份证号", |
| | | prop: "idCard", |
| | | // search: true, |
| | | width: 160, |
| | | searchSpan: 4, |
| | | slot: true, |
| | | |
| | | label: "女", |
| | | value: 2 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "民族", |
| | | width: 80, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | dicUrl: "/api/blade-system/dict-biz/tree?code=nationType", |
| | | props: { |
| | | label: "title", |
| | |
| | | searchSpan: 4 |
| | | }, |
| | | { |
| | | overHidden: true, |
| | | label: "身份证号", |
| | | prop: "idCard", |
| | | // search: true, |
| | | width: 160, |
| | | label: "年龄", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "age", |
| | | searchSpan: 4 |
| | | searchSpan: 4, |
| | | slot: true, |
| | | }, |
| | | { |
| | | label: "岗位性质", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "jobNature", |
| | | searchSpan: 4 |
| | | }, { |
| | | label: "工作单位", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "employer", |
| | | searchSpan: 4 |
| | | label: "电话号码", |
| | | prop: "telephone", |
| | | searchSpan: 4, |
| | | searchLabelWidth: 110, |
| | | search: true, |
| | | }, |
| | | { |
| | | width: 80, |
| | | label: "年龄", |
| | | prop: "age", |
| | | }, |
| | | { |
| | | minWidth: 160, |
| | | label: "现居住地", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "tempAddress", |
| | | }, |
| | | { |
| | | label: "岗位", |
| | | prop: "jobNature", |
| | | }, { |
| | | width: 110, |
| | | label: '从业人员照片', |
| | | prop: 'employerImg', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | row:true, |
| | | span: 12, |
| | | }, { |
| | | label: "工作单位", |
| | | prop: "employer", |
| | | searchSpan: 4 |
| | | }, |
| | | { |
| | | minWidth: 160, |
| | | label: "户籍地址", |
| | | width: 160, |
| | | label: "标签", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "registeredAddress", |
| | | prop: "categoryName", |
| | | searchSpan: 4 |
| | | }, |
| | | { |
| | | label: "状态", |
| | | prop: "resignationFlag", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | search: true, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | label: "在职", |
| | | value: "1" |
| | | }, |
| | | { |
| | | label: "已离职", |
| | | value: "2" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "入职时间", |
| | | prop: "employmentTime", |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "离职时间", |
| | | prop: "resignationTime", |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "预警人员", |
| | |
| | | value: 3 |
| | | } |
| | | ], |
| | | }, { |
| | | width: 160, |
| | | label: "标签", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "categoryName", |
| | | searchSpan: 4 |
| | | }, { |
| | | width: 110, |
| | | label: '从业人员照片', |
| | | prop: 'employerImg', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | span: 12, |
| | | labelWidth: 110, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | // addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_practitioner_view, true), |
| | | delBtn: this.vaildData(this.permission.place_practitioner_delete, false), |
| | | // editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids() { |
| | |
| | | } |
| | | }, |
| | | |
| | | showSource() { |
| | | showResignationFlag() { |
| | | return (data) => { |
| | | let tags = { |
| | | text: '', |
| | |
| | | |
| | | if (data == 1) { |
| | | tags = { |
| | | text: '是', |
| | | text: '在职', |
| | | type: 'success' |
| | | } |
| | | } else if (data == 2) { |
| | | tags = { |
| | | text: '否', |
| | | type: 'info' |
| | | text: '已离职', |
| | | type: 'danger' |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getPlace(this.form.id).then((res) => { |
| | | this.form = res.data.data |
| | | |
| | | this.form.location = [this.form.lng, this.form.lat, this.form.location].join(',') |
| | | |
| | | // if (this.form.imageUrls.length) { |
| | | // this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website.minioUrl + item).join(',') |
| | | // } |
| | | |
| | | // if (this.form.placePoiLabelVOList.length) { |
| | | // let lebelTwo = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 2 |
| | | // }) |
| | | |
| | | // if (lebelTwo) this.form.label = String(lebelTwo.poiCode) |
| | | |
| | | // let lebelThree = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 3 |
| | | // }) |
| | | |
| | | // if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode) |
| | | // } |
| | | |
| | | done() |
| | | }) |
| | | } else { |
| | | if (this.form.employerImg) { |
| | | // this.form.employerImg = this.form.employerImg.split(",").filter(item => item != '').map(item => website.minioUrl + item).join(',') |
| | | } |
| | | done() |
| | | } |
| | | }, |
| | |
| | | }, |
| | | |
| | | |
| | | getPeopleCount() { |
| | | getCount().then(res => { |
| | | getPeopleCount(params={}) { |
| | | // 在职的 |
| | | // params = { |
| | | // resignationFlag:1 |
| | | // } |
| | | getCount(params).then(res => { |
| | | this.countInfo = res.data.data; |
| | | }) |
| | | } |