|
@@ -2,19 +2,37 @@
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<!--部门数据-->
|
|
<!--部门数据-->
|
|
- <!-- <el-col :span="4" :xs="24">
|
|
|
|
|
|
+ <el-col
|
|
|
|
+ :span="2"
|
|
|
|
+ :xs="24"
|
|
|
|
+ style="padding-left: 0; padding-right: 0; overflow-x: auto"
|
|
|
|
+ >
|
|
<div class="head-container">
|
|
<div class="head-container">
|
|
- <el-input v-model="deptName" placeholder="请输入部门名称" clearable size="small" prefix-icon="el-icon-search"
|
|
|
|
- style="margin-bottom: 20px" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="deptName"
|
|
|
|
+ placeholder="请输入部门名称"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
- <div class="head-container">
|
|
|
|
- <el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false"
|
|
|
|
- :filter-node-method="filterNode" ref="tree" node-key="id" default-expand-all highlight-current
|
|
|
|
- @node-click="handleNodeClick" />
|
|
|
|
|
|
+ <div class="head-container" style="display: flex">
|
|
|
|
+ <el-tree
|
|
|
|
+ :data="deptOptions"
|
|
|
|
+ :props="defaultProps"
|
|
|
|
+ :expand-on-click-node="false"
|
|
|
|
+ :filter-node-method="filterNode"
|
|
|
|
+ ref="tree"
|
|
|
|
+ node-key="id"
|
|
|
|
+ default-expand-all
|
|
|
|
+ highlight-current
|
|
|
|
+ @node-click="handleNodeClick"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
- </el-col> -->
|
|
|
|
|
|
+ </el-col>
|
|
<!--用户数据-->
|
|
<!--用户数据-->
|
|
- <el-col :span="24" :xs="24">
|
|
|
|
|
|
+ <el-col :span="22" :xs="24">
|
|
<el-form
|
|
<el-form
|
|
:model="queryParams"
|
|
:model="queryParams"
|
|
ref="queryForm"
|
|
ref="queryForm"
|
|
@@ -215,7 +233,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
label="累积工时"
|
|
label="累积工时"
|
|
align="center"
|
|
align="center"
|
|
- width="80"
|
|
|
|
|
|
+ width="50"
|
|
key="duration"
|
|
key="duration"
|
|
prop="duration"
|
|
prop="duration"
|
|
v-if="columns[7].visible"
|
|
v-if="columns[7].visible"
|
|
@@ -231,12 +249,15 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
label="起止时间"
|
|
label="起止时间"
|
|
align="center"
|
|
align="center"
|
|
|
|
+ width="168"
|
|
key="startTime"
|
|
key="startTime"
|
|
prop="startTime"
|
|
prop="startTime"
|
|
v-if="columns[9].visible"
|
|
v-if="columns[9].visible"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div>{{ scope.row.startTime + " 至 " + scope.row.endTime }}</div>
|
|
|
|
|
|
+ <div style="font-size: 12px;">
|
|
|
|
+ {{ scope.row.startTime + " 至 " + scope.row.endTime }}
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -473,7 +494,7 @@ import {
|
|
listStaff,
|
|
listStaff,
|
|
deleteStaff,
|
|
deleteStaff,
|
|
} from "@/api/system/project";
|
|
} from "@/api/system/project";
|
|
-import { selectName } from "@/api/system/user";
|
|
|
|
|
|
+import { selectName, deptTreeSelect } from "@/api/system/user";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -588,7 +609,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getList();
|
|
this.getList();
|
|
- // this.getDeptTree();
|
|
|
|
|
|
+ this.getDeptTree();
|
|
this.getConfigKey("sys.user.initPassword").then((response) => {
|
|
this.getConfigKey("sys.user.initPassword").then((response) => {
|
|
this.initPassword = response.msg;
|
|
this.initPassword = response.msg;
|
|
});
|
|
});
|
|
@@ -776,9 +797,6 @@ export default {
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
this.form.startTime = this.dateRange1[0];
|
|
this.form.startTime = this.dateRange1[0];
|
|
this.form.endTime = this.dateRange1[1];
|
|
this.form.endTime = this.dateRange1[1];
|
|
-
|
|
|
|
- console.log("-----");
|
|
|
|
- return;
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != undefined) {
|
|
if (this.form.id != undefined) {
|
|
updateProject(this.form).then((response) => {
|
|
updateProject(this.form).then((response) => {
|