update code
parent
672638af84
commit
1b0eb695d9
|
@ -2,10 +2,18 @@
|
||||||
<div class="project-attendance-data-drawer" v-if="isOpen">
|
<div class="project-attendance-data-drawer" v-if="isOpen">
|
||||||
<el-drawer v-if="isOpen" :visible.sync="isOpen" direction="rtl" size="70%" style="padding-left: 20px">
|
<el-drawer v-if="isOpen" :visible.sync="isOpen" direction="rtl" size="70%" style="padding-left: 20px">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div>{{ title + " 【劳务实名管理-考勤记录】" }}</div>
|
<div>{{ title + " 【劳务实名管理】" }}</div>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
|
<el-tab-pane label="考勤记录" name="first">
|
||||||
<main-index ref="main"></main-index>
|
<main-index ref="main"></main-index>
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="人员信息" name="second">
|
||||||
|
<workerIndex ref="workerMain"></workerIndex>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,12 +21,15 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import mainIndex from './index.vue'
|
import mainIndex from './index.vue'
|
||||||
|
import workerIndex from '../attendanceWorker/index'
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
mainIndex
|
mainIndex,
|
||||||
|
workerIndex
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
activeName: 'first',
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
title: '',
|
title: '',
|
||||||
};
|
};
|
||||||
|
@ -29,14 +40,23 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
show(prj) {
|
show(prj) {
|
||||||
this.prj=prj;
|
this.prj=prj;
|
||||||
|
this.activeName='first';
|
||||||
this.title = prj.projectName||""
|
this.title = prj.projectName||""
|
||||||
this.isOpen = true;
|
this.isOpen = true;
|
||||||
setTimeout(()=>{
|
this.handleClick();
|
||||||
this.$refs.main.init(prj);
|
|
||||||
},400);
|
|
||||||
},
|
},
|
||||||
|
handleClick(){
|
||||||
|
setTimeout(()=>{
|
||||||
|
if(this.activeName=='first'){
|
||||||
|
this.$refs.main.init(this.prj);
|
||||||
|
}else{
|
||||||
|
this.$refs.workerMain.initMe(this.prj);
|
||||||
|
}
|
||||||
|
},400);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -475,16 +475,11 @@
|
||||||
icon="el-icon-s-grid"
|
icon="el-icon-s-grid"
|
||||||
v-hasPermi="['project:projectStandard:list']"
|
v-hasPermi="['project:projectStandard:list']"
|
||||||
>标准化管理</el-dropdown-item>
|
>标准化管理</el-dropdown-item>
|
||||||
<el-dropdown-item
|
|
||||||
command="handleAttendanceWorker"
|
|
||||||
icon="el-icon-s-grid"
|
|
||||||
v-hasPermi="['project:attendanceWorker:list']"
|
|
||||||
>劳务实名管理</el-dropdown-item>
|
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
command="handleAttendanceData"
|
command="handleAttendanceData"
|
||||||
icon="el-icon-s-grid"
|
icon="el-icon-s-grid"
|
||||||
v-hasPermi="['project:attendance:list']"
|
v-hasPermi="['project:attendance:list']"
|
||||||
>劳务实名管理-考勤记录</el-dropdown-item>
|
>劳务实名管理</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
command="handleDelete"
|
command="handleDelete"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
|
@ -769,7 +764,6 @@
|
||||||
<checkDetectionDrawer ref="checkDetection"></checkDetectionDrawer>
|
<checkDetectionDrawer ref="checkDetection"></checkDetectionDrawer>
|
||||||
<standardDrawer ref="standard"></standardDrawer>
|
<standardDrawer ref="standard"></standardDrawer>
|
||||||
<attendanceDataDrawer ref="attendanceData"></attendanceDataDrawer>
|
<attendanceDataDrawer ref="attendanceData"></attendanceDataDrawer>
|
||||||
<attendanceWorkerDrawer ref="attendanceWorker"></attendanceWorkerDrawer>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -802,7 +796,6 @@ import costOutputDrawer from "@/views/project/costOutput/costOutputDrawer.vue";
|
||||||
import checkDetectionDrawer from "../checkDetection/checkDetectionDrawer.vue";
|
import checkDetectionDrawer from "../checkDetection/checkDetectionDrawer.vue";
|
||||||
import standardDrawer from '@/views/project/projectStandard/projectStandardDrawer.vue'
|
import standardDrawer from '@/views/project/projectStandard/projectStandardDrawer.vue'
|
||||||
import attendanceDataDrawer from '@/views/project/attendance/attendanceDrawer.vue'
|
import attendanceDataDrawer from '@/views/project/attendance/attendanceDrawer.vue'
|
||||||
import attendanceWorkerDrawer from '@/views/project/attendanceWorker/attendanceWorkerDrawer.vue'
|
|
||||||
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
|
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -827,7 +820,6 @@ export default {
|
||||||
checkDetectionDrawer,
|
checkDetectionDrawer,
|
||||||
standardDrawer,
|
standardDrawer,
|
||||||
attendanceDataDrawer,
|
attendanceDataDrawer,
|
||||||
attendanceWorkerDrawer
|
|
||||||
},
|
},
|
||||||
dicts: [
|
dicts: [
|
||||||
"sur_project_xmjd",
|
"sur_project_xmjd",
|
||||||
|
@ -1083,9 +1075,6 @@ export default {
|
||||||
case "handleStandard":
|
case "handleStandard":
|
||||||
this.$refs.standard.show(row);
|
this.$refs.standard.show(row);
|
||||||
break;
|
break;
|
||||||
case "handleAttendanceWorker":
|
|
||||||
this.$refs.attendanceWorker.show(row);
|
|
||||||
break;
|
|
||||||
case "handleAttendanceData":
|
case "handleAttendanceData":
|
||||||
this.$refs.attendanceData.show(row);
|
this.$refs.attendanceData.show(row);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -152,6 +152,8 @@
|
||||||
icon="el-icon-money">项目成本产值管理</el-button>
|
icon="el-icon-money">项目成本产值管理</el-button>
|
||||||
<el-button type="primary" @click="doPrjStandard" v-hasPermi="['project:projectStandard:list']"
|
<el-button type="primary" @click="doPrjStandard" v-hasPermi="['project:projectStandard:list']"
|
||||||
icon="el-icon-s-grid">标准化管理</el-button>
|
icon="el-icon-s-grid">标准化管理</el-button>
|
||||||
|
<el-button type="primary" @click="doAttendanceData" v-hasPermi="['project:attendance:list']"
|
||||||
|
icon="el-icon-s-check">劳务实名管理</el-button>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -162,6 +164,7 @@
|
||||||
<projectUserInfoDrawer ref="prjUser" size="50%" :visible.sync="showPrjUser" :form-data="prj"/>
|
<projectUserInfoDrawer ref="prjUser" size="50%" :visible.sync="showPrjUser" :form-data="prj"/>
|
||||||
<costOutputDrawer ref="costOutput"></costOutputDrawer>
|
<costOutputDrawer ref="costOutput"></costOutputDrawer>
|
||||||
<standardDrawer ref="standard"></standardDrawer>
|
<standardDrawer ref="standard"></standardDrawer>
|
||||||
|
<attendanceDataDrawer ref="attendanceData"></attendanceDataDrawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -175,6 +178,7 @@ import buildNodeDrawer from "../surBuildNode/buildNodeDrawer.vue";
|
||||||
import attendanceDrawer from "../surProjectAttendance/attendanceDrawer.vue";
|
import attendanceDrawer from "../surProjectAttendance/attendanceDrawer.vue";
|
||||||
import costOutputDrawer from '@/views/project/costOutput/costOutputDrawer.vue'
|
import costOutputDrawer from '@/views/project/costOutput/costOutputDrawer.vue'
|
||||||
import standardDrawer from '@/views/project/projectStandard/projectStandardDrawer.vue'
|
import standardDrawer from '@/views/project/projectStandard/projectStandardDrawer.vue'
|
||||||
|
import attendanceDataDrawer from '@/views/project/attendance/attendanceDrawer.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
dicts: [
|
dicts: [
|
||||||
|
@ -193,7 +197,8 @@ export default {
|
||||||
attendanceDrawer,
|
attendanceDrawer,
|
||||||
projectUserInfoDrawer,
|
projectUserInfoDrawer,
|
||||||
costOutputDrawer,
|
costOutputDrawer,
|
||||||
standardDrawer
|
standardDrawer,
|
||||||
|
attendanceDataDrawer
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -208,6 +213,9 @@ export default {
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
doAttendanceData(){
|
||||||
|
this.$refs.attendanceData.show(this.prj);
|
||||||
|
},
|
||||||
doPrjStandard(){
|
doPrjStandard(){
|
||||||
this.$refs.standard.show(this.prj);
|
this.$refs.standard.show(this.prj);
|
||||||
},
|
},
|
||||||
|
|
|
@ -41,8 +41,8 @@ module.exports = {
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
'/jhapi':{
|
'/jhapi':{
|
||||||
//target: `http://62.234.3.186/jhapi/`,
|
target: `http://62.234.3.186/jhapi/`,
|
||||||
target: `http://127.0.0.1:8090/jhapi/`,
|
//target: `http://127.0.0.1:8090/jhapi/`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/jhapi':'/'
|
'^/jhapi':'/'
|
||||||
|
|
Loading…
Reference in New Issue