| | |
| | | <div class="dispatch"> |
| | | <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'"> --> |
| | | <avue-crud :option="option" |
| | | <avue-crud |
| | | :option="option" |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | |
| | | @row-del="rowDel" |
| | | @selection-change="selectionChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="rowClick"> |
| | | @row-click="rowClick" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | @click="handleDelete">删 除 |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | |
| | | <el-button type="success" |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | @click="handleImport">批量导入 |
| | | @click="handleImport" |
| | | >批量导入 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" |
| | | slot="jurisdiction"> |
| | | <template slot-scope="{ row }" slot="jurisdiction"> |
| | | {{ row.jurisdiction == -1 ? "" : row.jurisdiction }} |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog title="派遣单位导入" |
| | | <el-dialog |
| | | title="派遣单位导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter"> |
| | | :upload-after="uploadAfter" |
| | | > |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | |
| | | // span: 12, |
| | | labelWidth: 118, |
| | | }, |
| | | |
| | | |
| | | |
| | | { |
| | | label: "保安公司", |
| | | prop: "deptId", |
| | | prop: "deptName", |
| | | type: "tree", |
| | | overHidden: true, |
| | | dicUrl: |
| | |
| | | // hide: true, |
| | | // span: 11, |
| | | }, |
| | | //备用 不删 ↑针对没有depid的公司名字转换 |
| | | // { |
| | | // label: "保安公司", |
| | | // prop: "deptId", |
| | | // type: "tree", |
| | | // overHidden: true, |
| | | // dicUrl: |
| | | // "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | // props: { |
| | | // label: "title", |
| | | // value: "id", |
| | | // }, |
| | | // // hide: true, |
| | | // // hide: !website.tenantMode, |
| | | // // addDisplay: website.tenantMode, |
| | | // // editDisplay: website.tenantMode, |
| | | // // viewDisplay: website.tenantMode, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择保安公司", |
| | | // trigger: "click", |
| | | // }, |
| | | // ], |
| | | // labelWidth: 118, |
| | | // width: 230, |
| | | // searchLabelWidth: 80, |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // // editDisplay: false, |
| | | // // addDisplay: false, |
| | | // // hide: true, |
| | | // // span: 11, |
| | | // }, |
| | | { |
| | | label: "保安服务类型", |
| | | prop: "serveType", |
| | |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | |
| | | }, |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }) |
| | | }), |
| | | }, |
| | | methods: { |
| | | handleChangeTABS (column) { |
| | |
| | | // } |
| | | }, |
| | | searchChange (params, done) { |
| | | if (params.deptName) { |
| | | params.deptId = params.deptName; |
| | | } |
| | | delete params.deptName; |
| | | // console.log(params); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | }; |
| | | } |
| | | |
| | | console.log(values); |
| | | // console.log(values); |
| | | |
| | | getdata( |
| | | page.currentPage, |
| | |
| | | // Object.assign(params, this.query) |
| | | values |
| | | ).then((res) => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | for (var k in this.data) { |
| | | // this.data[k]["deptId"] = that.userInfo.dept_id; |
| | | this.data[k]["tenantName"] = that.userInfo.user_name; |
| | |
| | | if (this.card.jurisdiction == 1123598813738675201) { |
| | | this.card.jurisdiction = ""; |
| | | } |
| | | console.log(this.query1); |
| | | // console.log(this.query1); |
| | | const releaseTimeRange = this.query1.releaseTimeRange; |
| | | if (releaseTimeRange) { |
| | | params = { |
| | |
| | | this.query1 = {}; |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | | console.log(212); |
| | | // console.log(212); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | this.query1 = {}; |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | | console.log(212); |
| | | // console.log(212); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | // span: 12, |
| | | labelWidth: 118, |
| | | }, |
| | | |
| | | { |
| | | label: "保安公司", |
| | | prop: "deptId", |
| | | prop: "deptName", |
| | | type: "tree", |
| | | overHidden: true, |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | | jurisdiction, |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | // hide: true, |
| | | // span: 11, |
| | | }, |
| | | //备用 不删 ↑针对没有depid的公司名字转换 |
| | | // { |
| | | // label: "保安公司", |
| | | // prop: "deptId", |
| | | // type: "tree", |
| | | // overHidden: true, |
| | | // dicUrl: |
| | | // "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | | // jurisdiction, |
| | | // props: { |
| | | // label: "title", |
| | | // value: "id", |
| | | // }, |
| | | // // hide: true, |
| | | // // hide: !website.tenantMode, |
| | | // // addDisplay: website.tenantMode, |
| | | // // editDisplay: website.tenantMode, |
| | | // // viewDisplay: website.tenantMode, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择保安公司", |
| | | // trigger: "click", |
| | | // }, |
| | | // ], |
| | | // labelWidth: 118, |
| | | // width: 230, |
| | | // searchLabelWidth: 80, |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // // editDisplay: false, |
| | | // // addDisplay: false, |
| | | // // hide: true, |
| | | // // span: 11, |
| | | // }, |
| | | { |
| | | label: "保安服务类型", |
| | | prop: "serveType", |
| | |
| | | if (this.card.jurisdiction == 1123598813738675201) { |
| | | this.card.jurisdiction = ""; |
| | | } |
| | | console.log(this.query1); |
| | | // console.log(this.query1); |
| | | const releaseTimeRange = this.query1.releaseTimeRange; |
| | | if (releaseTimeRange) { |
| | | params = { |
| | |
| | | this.getPractitionersPageInfo(this.page1, this.query1); |
| | | }, |
| | | searchChange(params, done) { |
| | | if (params.deptName) { |
| | | params.deptId = params.deptName; |
| | | } |
| | | delete params.deptName; |
| | | this.query1 = params; |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | |
| | | this.query1 = {}; |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | | console.log(212); |
| | | // console.log(212); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | methods: { |
| | | getPractitionersPageInfo(page, params = {}) { |
| | | // this.data1 = this.czdata; |
| | | console.log(page); |
| | | // console.log(page); |
| | | params = { |
| | | ...params, |
| | | ...this.card, |
| | |
| | | this.query1 = {}; |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | | console.log(212); |
| | | // console.log(212); |
| | | }, |
| | | }, |
| | | }; |