| | |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab4'" class="tab"> --> |
| | | <el-tab-pane label="装备管理" name="tab4"> |
| | | <!-- 装备管理 --> |
| | | <equipments :fromDeptId="departmentid"></equipments> |
| | | <equipments :fromDeptId="departmentid" v-if="overzb"></equipments> |
| | | <!-- </span> --> |
| | | </el-tab-pane> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab5'" class="tab"> --> |
| | | <el-tab-pane label="车辆管理" name="tab5"> |
| | | <!-- 车辆管理 --> |
| | | <car :fromDeptId="departmentid"></car> |
| | | <car :fromDeptId="departmentid" v-if="overcar"></car> |
| | | <!-- </span> --> |
| | | </el-tab-pane> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab6'" class="tab"> |
| | |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab9'" class="tab"> --> |
| | | <el-tab-pane label="社保记录" name="tab9"> |
| | | <!-- 社保记录 --> |
| | | <social :deptid="obj0.departmentid"></social> |
| | | <social |
| | | :deptid="obj0.departmentid" |
| | | :socialRE="social" |
| | | v-if="social" |
| | | ></social> |
| | | <!-- </span> --> |
| | | </el-tab-pane> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab7'" class="tab"> --> |
| | |
| | | ], |
| | | }; |
| | | return { |
| | | overcar: false, //结决id传入、信息获取的优先级 |
| | | overzb: false, //结决id传入、信息获取的优先级 |
| | | overcar: false, //结决id传入、信息获取的优先级 |
| | | |
| | | social: false, //解决表格错乱 |
| | | overHtp: false, |
| | | |
| | | activeName: "tab1", |
| | |
| | | window.open(`/api/member/export-template`); |
| | | }, |
| | | |
| | | handleChangeTABS(column) { |
| | | // this.typeTABS = column; |
| | | // console.log(column.prop); |
| | | // this.$message.success(JSON.stringify(column)); |
| | | if (column.prop == "tab1") { |
| | | this.loading1 = false; |
| | | this.loading2 = false; |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading1 = false; |
| | | this.loading2 = false; |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } else if (column.prop == "tab3") { |
| | | this.loading1 = false; |
| | | // this.loading2 = false; |
| | | this.onLoad2(this.page2); //第二个表格不会自动执行 |
| | | } |
| | | }, |
| | | // handleChangeTABS(column) { |
| | | // // this.typeTABS = column; |
| | | // // console.log(column.prop); |
| | | // // this.$message.success(JSON.stringify(column)); |
| | | // if (column.prop == "tab1") { |
| | | // this.loading1 = false; |
| | | // this.loading2 = false; |
| | | // // this.onLoad(this.page); |
| | | // } else if (column.prop == "tab2") { |
| | | // // this.loading1 = false; |
| | | // this.loading2 = false; |
| | | // this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | // } else if (column.prop == "tab3") { |
| | | // this.loading1 = false; |
| | | // // this.loading2 = false; |
| | | // this.onLoad2(this.page2); //第二个表格不会自动执行 |
| | | // } |
| | | // }, |
| | | handleClick(tab, event) { |
| | | // console.log(tab.name, event); |
| | | if (tab.name == "tab1") { |
| | | this.loading1 = false; |
| | | this.loading2 = false; |
| | | // this.onLoad(this.page); |
| | | } else if (tab.name == "tab5") { |
| | | this.overcar = true; |
| | | // this.onLoad(this.page); |
| | | } else if (tab.name == "tab4") { |
| | | this.overzb = true; |
| | | // this.onLoad(this.page); |
| | | } else if (tab.name == "tab2") { |
| | | // this.loading1 = false; |
| | |
| | | this.loading1 = false; |
| | | // this.loading2 = false; |
| | | this.onLoad2(this.page2); //第二个表格不会自动执行 |
| | | } else if (tab.name == "tab9") { |
| | | this.social = true; //表格错乱 |
| | | } else { |
| | | this.social = false; |
| | | this.overcar = false; |
| | | this.overzb = false; |
| | | this.overcar = false; |
| | | } |
| | | }, |
| | | //派遣记录 |
| | |
| | | this.data1 = data.records; |
| | | console.log(this.data1); |
| | | this.loading1 = false; |
| | | |
| | | this.$refs.crudrec1.refreshTable(); |
| | | this.$refs.crudrec1.doLayout(); |
| | | }); |
| | | // onLoad1(page, params = {}) { |
| | | // this.loading1 = true; |
| | |
| | | this.data2 = data.records; |
| | | console.log(this.data2); |
| | | this.loading2 = false; |
| | | this.$refs.crudrec2.refreshTable(); |
| | | this.$refs.crudrec2.doLayout(); |
| | | }); |
| | | }, |
| | | //派遣记录 |