Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workbook
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄志强
workbook
Commits
a2f977a9
提交
a2f977a9
authored
3月 11, 2020
作者:
黄志强
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改
上级
0a001d6c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
259 行增加
和
88 行删除
+259
-88
axios.js
src/axios/axios.js
+2
-1
index.js
src/axios/index.js
+3
-3
headerDetail.vue
src/components/headerDetail.vue
+1
-0
mainBreadcrumb.vue
src/components/mainBreadcrumb.vue
+1
-0
index.js
src/router/index.js
+49
-39
AddTask.vue
src/views/AddTask.vue
+38
-39
PersonInfo.vue
src/views/PersonInfo.vue
+157
-0
PersonList.vue
src/views/PersonList.vue
+2
-2
PersonManage.vue
src/views/PersonManage.vue
+1
-1
TaskDetails.vue
src/views/TaskDetails.vue
+0
-0
UnpublishedTask.vue
src/views/UnpublishedTask.vue
+5
-3
没有找到文件。
src/axios/axios.js
浏览文件 @
a2f977a9
...
@@ -28,9 +28,10 @@ axios.interceptors.response.use(function (response) {
...
@@ -28,9 +28,10 @@ axios.interceptors.response.use(function (response) {
return
response
;
return
response
;
},
function
(
error
)
{
},
function
(
error
)
{
if
(
error
.
response
!==
undefined
)
{
if
(
error
.
response
!==
undefined
)
{
console
.
log
(
error
.
response
.
status
)
//
console.log(error.response.status)
if
(
error
.
response
.
status
===
403
)
{
// 错误处理
if
(
error
.
response
.
status
===
403
)
{
// 错误处理
router
.
push
({
name
:
'login'
,
params
:
{
data
:
'axios'
}});
router
.
push
({
name
:
'login'
,
params
:
{
data
:
'axios'
}});
localStorage
.
clear
();
// window.location.reload();
// window.location.reload();
}
}
}
}
...
...
src/axios/index.js
浏览文件 @
a2f977a9
let
baseUrl
=
"https://workbook.zjtys.com.cn"
;
// 120.55.57.35 localhost 8289
let
baseUrl
=
"https://workbook.zjtys.com.cn
:8289
"
;
// 120.55.57.35 localhost 8289
let
env
=
process
.
env
.
VUE_APP_TITLE
===
'alpha'
?
'alpha'
:
'production'
;
let
env
=
process
.
env
.
VUE_APP_TITLE
===
'alpha'
?
'alpha'
:
'production'
;
switch
(
env
)
{
switch
(
env
)
{
case
'production'
:
case
'production'
:
// baseUrl = "http://192.168.1.248:8090"; // 测试环境
// baseUrl = "http://192.168.1.248:8090"; // 测试环境
baseUrl
=
"https://workbook.zjtys.com.cn"
;
// 测试环境
baseUrl
=
"https://workbook.zjtys.com.cn
:8289
"
;
// 测试环境
break
;
break
;
case
'alpha'
:
case
'alpha'
:
// baseUrl = "https://workbook.zjtys.com.cn"; // 阿里云环境
// baseUrl = "https://workbook.zjtys.com.cn"; // 阿里云环境
baseUrl
=
"https://workbook.zjtys.com.cn"
;
// 阿里云环境
baseUrl
=
"https://workbook.zjtys.com.cn
:8289
"
;
// 阿里云环境
break
;
break
;
}
}
// https://workbook.zjtys.com.cn:8289
// https://workbook.zjtys.com.cn:8289
...
...
src/components/headerDetail.vue
浏览文件 @
a2f977a9
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
this
.
$axios
.
getLogout
().
then
(
res
=>
{
// 登出
this
.
$axios
.
getLogout
().
then
(
res
=>
{
// 登出
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
$router
.
push
({
name
:
'login'
});
this
.
$router
.
push
({
name
:
'login'
});
localStorage
.
clear
();
// setTimeout(function () {
// setTimeout(function () {
// window.location.reload();
// window.location.reload();
// }, 500)
// }, 500)
...
...
src/components/mainBreadcrumb.vue
浏览文件 @
a2f977a9
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<el-breadcrumb-item
v-if=
"currentRouter === '/taskManage' || currentRouter === '/addTask' || currentRouter === '/viewTask'"
:to=
"
{ path: '/taskManage' }">任务管理
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/taskManage' || currentRouter === '/addTask' || currentRouter === '/viewTask'"
:to=
"
{ path: '/taskManage' }">任务管理
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/addTask'"
>
新建任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/addTask'"
>
新建任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/viewTask' || currentRouter === '/taskDetails' || currentRouter === '/unpublishedTask'"
:to=
"
{ path: '/viewTask' }">查看任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/viewTask' || currentRouter === '/taskDetails' || currentRouter === '/unpublishedTask'"
:to=
"
{ path: '/viewTask' }">查看任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/departmentTask'"
:to=
"
{ path: '/departmentTask' }">部门任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/unpublishedTask'"
>
未发布任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/unpublishedTask'"
>
未发布任务
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/taskDetails'"
>
任务详情
</el-breadcrumb-item>
<el-breadcrumb-item
v-if=
"currentRouter === '/taskDetails'"
>
任务详情
</el-breadcrumb-item>
...
...
src/router/index.js
浏览文件 @
a2f977a9
...
@@ -79,11 +79,17 @@ const routes = [
...
@@ -79,11 +79,17 @@ const routes = [
meta
:
[
'user'
],
meta
:
[
'user'
],
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'../views/PersonManage.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'../views/PersonManage.vue'
)
},
},
{
path
:
'/personDetails'
,
name
:
'personDetails'
,
meta
:
[
'user'
],
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'../views/PersonDetails.vue'
)
},
{
{
path
:
'/personInfo'
,
path
:
'/personInfo'
,
name
:
'personInfo'
,
name
:
'personInfo'
,
meta
:
[
'user'
],
meta
:
[
'user'
],
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'../views/Person
Details
.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'../views/Person
Info
.vue'
)
},
},
{
{
path
:
'/personList'
,
path
:
'/personList'
,
...
@@ -158,43 +164,47 @@ const router = new VueRouter({
...
@@ -158,43 +164,47 @@ const router = new VueRouter({
routes
routes
})
})
// router.beforeEach((to, from, next) => {
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// if (to.path === '/login') {
if
(
to
.
path
===
'/login'
)
{
// next();
next
();
// } else {
}
else
{
// let role = JSON.parse(base64.decode(localStorage.getItem('login')));
if
(
localStorage
.
getItem
(
'login'
)
!==
null
)
{
// if (JSON.stringify(role) === '') {
let
role
=
JSON
.
parse
(
base64
.
decode
(
localStorage
.
getItem
(
'login'
)));
// next('/');
if
(
JSON
.
stringify
(
role
)
===
''
)
{
// } else {
next
(
'/'
);
// // console.log(to)
}
else
{
// let data;
// console.log(to)
// if (role.username !== 'root') {
let
data
;
// data = 'user';
if
(
role
.
username
!==
'root'
)
{
// } else {
data
=
'user'
;
// data = 'root';
}
else
{
// }
data
=
'root'
;
// for (let i = 0; i < to.meta.length; i++) {
}
// // console.log(to.meta[i]);
for
(
let
i
=
0
;
i
<
to
.
meta
.
length
;
i
++
)
{
// if (data === to.meta[i]) {
// console.log(to.meta[i]);
// next();
if
(
data
===
to
.
meta
[
i
])
{
// break;
next
();
// } else if (i === to.meta.length - 1) {
break
;
// // next({
}
else
if
(
i
===
to
.
meta
.
length
-
1
)
{
// // path: '/login'
// next({
// // })
// path: '/login'
// break;
// })
// } else {
break
;
// next('/');
}
else
{
// break;
next
(
'/'
);
// }
break
;
// }
}
// // if(to.matched.some(item => item.meta === data)) {
}
// //
// if(to.matched.some(item => item.meta === data)) {
// // } else {
//
// // next('/');
// } else {
// // }
// next('/');
// }
// }
// }
}
// });
}
else
{
next
(
'/'
);
}
}
});
export
default
router
export
default
router
src/views/AddTask.vue
浏览文件 @
a2f977a9
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"任务开始时间"
prop=
"stateTime"
>
<el-form-item
label=
"任务开始时间"
prop=
"stateTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:picker-options=
"startOption"
placeholder=
"选择日期"
v-model=
"taskForm.stateTime"
style=
"width: 100%;"
></el-date-picker>
<el-date-picker
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期"
v-model=
"taskForm.stateTime"
style=
"width: 100%;"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"组员"
>
<el-form-item
label=
"组员"
>
<!--prop="crewList"-->
<!--prop="crewList"-->
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"预计完成时间"
prop=
"completeTime"
>
<el-form-item
label=
"预计完成时间"
prop=
"completeTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:picker-options=
"completeOption"
placeholder=
"选择日期"
v-model=
"taskForm.completeTime"
style=
"width: 100%;"
></el-date-picker>
<el-date-picker
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期"
v-model=
"taskForm.completeTime"
style=
"width: 100%;"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"任务量(天)"
prop=
"workload"
>
<el-form-item
label=
"任务量(天)"
prop=
"workload"
>
<el-input
onkeyup=
"this.value=this.value.replace(/[^\d.]/g,'')"
v-model=
"taskForm.workload"
></el-input>
<el-input
onkeyup=
"this.value=this.value.replace(/[^\d.]/g,'')"
v-model=
"taskForm.workload"
></el-input>
...
@@ -110,30 +110,6 @@
...
@@ -110,30 +110,6 @@
workloadCount
:
1
workloadCount
:
1
},
},
announcer
:
''
,
announcer
:
''
,
startOption
:
{
// disabledDate: time => {
// if (this.taskForm.completeTime) {
// return (
// time.getTime() > new Date(this.taskForm.completeTime).getTime()
// )
// } else {
// // 不能大于当前日期
// return time.getTime() > Date.now()
// }
// }
},
completeOption
:
{
// disabledDate: time => {
// if (this.taskForm.startTime) {
// return (
// time.getTime() > Date.now() ||
// time.getTime()
<
new
Date
(
this
.
taskForm
.
startTime
).
getTime
()
+
8.64e7
// 加- 8.64e7则表示包当天
// )
// } else {
// return time.getTime()
<
Date
.
now
()
// }
// }
},
rules
:
{
rules
:
{
title
:
[
title
:
[
{
required
:
true
,
message
:
'请输入任务名称'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入任务名称'
,
trigger
:
'blur'
},
...
@@ -181,25 +157,41 @@
...
@@ -181,25 +157,41 @@
if
(
res
.
request
.
status
===
200
)
{
if
(
res
.
request
.
status
===
200
)
{
if
(
res
.
data
.
length
===
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
'{}'
&&
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
undefined
))
{
if
(
res
.
data
.
length
===
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
'{}'
&&
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
undefined
))
{
let
data
=
this
.
$store
.
getters
.
getSuperior
.
superior
.
crewList
;
let
data
=
this
.
$store
.
getters
.
getSuperior
.
superior
.
crewList
;
data
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
if
(
data
.
findIndex
(
item
=>
item
.
id
===
this
.
userLoginData
.
id
)
>
-
1
)
{
console
.
log
(
data
)
this
.
leaderOptions
=
data
;
let
data2
=
Array
.
from
(
new
Set
(
data
));
this
.
memberOptions
=
data
;
this
.
leaderOptions
=
data2
;
}
else
{
this
.
memberOptions
=
data2
;
data
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
console
.
log
(
data
)
let
data2
=
Array
.
from
(
new
Set
(
data
));
this
.
leaderOptions
=
data2
;
this
.
memberOptions
=
data2
;
}
}
else
if
(
res
.
data
.
length
>
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
===
'{}'
||
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
===
undefined
))
{
}
else
if
(
res
.
data
.
length
>
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
===
'{}'
||
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
===
undefined
))
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
data
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
if
(
data
.
findIndex
(
item
=>
item
.
id
===
this
.
userLoginData
.
id
)
>
-
1
)
{
let
data2
=
Array
.
from
(
new
Set
(
data
));
this
.
leaderOptions
=
data
;
this
.
leaderOptions
=
data2
;
this
.
memberOptions
=
data
;
this
.
memberOptions
=
data2
;
}
else
{
data
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
let
data2
=
Array
.
from
(
new
Set
(
data
));
this
.
leaderOptions
=
data2
;
this
.
memberOptions
=
data2
;
}
}
else
if
(
res
.
data
.
length
>
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
'{}'
&&
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
undefined
))
{
}
else
if
(
res
.
data
.
length
>
0
&&
(
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
'{}'
&&
JSON
.
stringify
(
this
.
$store
.
getters
.
getSuperior
.
superior
)
!==
undefined
))
{
let
arr1
=
res
.
data
;
let
arr1
=
res
.
data
;
let
arr2
=
this
.
$store
.
getters
.
getSuperior
.
superior
.
crewList
;
let
arr2
=
this
.
$store
.
getters
.
getSuperior
.
superior
.
crewList
;
arr1
.
push
(...
arr2
);
arr1
.
push
(...
arr2
);
arr1
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
if
(
arr1
.
findIndex
(
item
=>
item
.
id
===
this
.
userLoginData
.
id
)
>
-
1
)
{
let
arr3
=
Array
.
from
(
new
Set
(
arr1
));
let
arr3
=
Array
.
from
(
new
Set
(
arr1
));
this
.
leaderOptions
=
arr3
;
this
.
leaderOptions
=
arr3
;
this
.
memberOptions
=
arr3
;
this
.
memberOptions
=
arr3
;
}
else
{
arr1
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
userLoginData
)));
let
arr3
=
Array
.
from
(
new
Set
(
arr1
));
this
.
leaderOptions
=
arr3
;
this
.
memberOptions
=
arr3
;
}
}
}
}
}
})
})
...
@@ -253,6 +245,13 @@
...
@@ -253,6 +245,13 @@
arr
.
push
(
v
.
id
);
arr
.
push
(
v
.
id
);
})
})
console
.
log
(
arr
)
console
.
log
(
arr
)
if
(
new
Date
(
data
.
stateTime
).
getTime
()
>
new
Date
(
data
.
completeTime
).
getTime
())
{
this
.
$message
({
message
:
'任务开始时间不能大于预计完成时间'
,
type
:
'warning'
});
return
false
;
}
data
.
workCoefficient
=
0
;
data
.
workCoefficient
=
0
;
data
.
content
=
this
.
content
;
data
.
content
=
this
.
content
;
data
.
pworkload
=
1
;
data
.
pworkload
=
1
;
...
...
src/views/PersonInfo.vue
0 → 100644
浏览文件 @
a2f977a9
<!-- 人员信息 -->
<
template
>
<div
class=
'personInfo'
>
<div
style=
""
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"5"
>
<div
class=
"leftImg"
>
<img
src=
"../assets/images/xq-tx-1.png"
/>
<!--
<img
src=
"../assets/images/xq-tx-2.png"
/>
-->
</div>
</el-col>
<el-col
:span=
"19"
>
<div>
<el-form
:hide-required-asterisk=
"true"
:model=
"userForm"
:rules=
"rules"
ref=
"userForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
<el-form-item
class=
"first"
label=
"姓名"
>
<div>
{{
userForm
.
username
}}
</div>
</el-form-item>
<el-form-item
class=
"first"
label=
"身份证"
>
<div>
{{
userForm
.
idCard
}}
</div>
</el-form-item>
<el-form-item
class=
"first"
prop=
"email"
label=
"邮箱"
>
<div>
{{
userForm
.
email
}}
</div>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
class=
"first"
label=
"电话1"
prop=
"phone1"
>
<div>
{{
userForm
.
phone1
}}
</div>
</el-form-item>
<el-form-item
class=
"first"
label=
"地址"
prop=
"address"
>
<div>
{{
userForm
.
address
}}
</div>
</el-form-item>
<!--
<el-form-item
class=
"first"
label=
"部门2"
prop=
"department2"
>
-->
<!--
<div>
{{
userForm
.
department2
}}
</div>
-->
<!--
</el-form-item>
-->
</el-col>
<el-col
:span=
"8"
>
<el-form-item
class=
"first"
label=
"电话2"
prop=
"phone2"
>
<div>
{{
userForm
.
phone2
}}
</div>
</el-form-item>
<el-form-item
class=
"first"
label=
"入职时间"
>
<div>
{{
userForm
.
entryTime
}}
</div>
</el-form-item>
</el-col>
</el-row>
<div
class=
"roleDiv first"
style=
"width: 100%;"
>
<el-form-item
class=
"first"
label=
"部门"
>
<span
class=
"deSpan"
>
{{
nameDepartment
(
userForm
.
departmentIds
)
}}
</span>
</el-form-item>
<el-form-item
class=
"first"
label=
"岗位"
>
<div>
{{
userForm
.
jobs
}}
</div>
</el-form-item>
<el-form-item
label=
"角色"
>
<span
class=
"roleSpan"
v-for=
"(items, index) in userForm.roles"
:key=
"index"
>
{{
items
.
name
}}
</span>
</el-form-item>
</div>
</el-form>
</div>
</el-col>
</el-row>
</div>
</div>
</
template
>
<
script
>
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
//例如:import 《组件名称》 from '《组件路径》';
export
default
{
name
:
"personInfo"
,
//import引入的组件需要注入到对象中才能使用
components
:
{},
data
()
{
//这里存放数据
return
{
paramsData
:
''
,
userForm
:{
username
:
''
,
phone1
:
''
,
phone2
:
''
,
idCard
:
''
,
address
:
''
,
jobs
:
''
,
departmentIds
:
''
,
// department2: '',
// department3: '',
email
:
''
,
entryTime
:
''
,
},
rules
:{
},
deOptions
:
[]
};
},
//监听属性 类似于data概念
computed
:
{},
//监控data中的数据变化
watch
:
{},
//方法集合
methods
:
{
postDepartmentList
()
{
this
.
$axios
.
getAllDepartment
().
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
request
.
status
===
200
)
{
this
.
deOptions
=
res
.
data
;
}
})
},
nameDepartment
(
val
)
{
console
.
log
(
val
)
let
name
=
''
;
console
.
log
(
this
.
deOptions
)
for
(
let
i
=
0
;
i
<
this
.
deOptions
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
val
.
length
;
j
++
)
{
if
(
this
.
deOptions
[
i
].
id
===
val
[
j
])
{
name
=
name
+
this
.
deOptions
[
i
].
name
+
'、'
;
}
}
}
name
=
name
.
substring
(
0
,
name
.
length
-
1
);
console
.
log
(
name
);
return
name
;
},
},
//生命周期 - 创建完成(可以访问当前this实例)
created
()
{
},
//生命周期 - 挂载完成(可以访问DOM元素)
mounted
()
{
this
.
postDepartmentList
();
let
that
=
this
;
setTimeout
(
function
()
{
let
data
=
JSON
.
parse
(
that
.
$Base64
.
decode
(
localStorage
.
getItem
(
'infoPerson'
)));
console
.
log
(
data
)
that
.
userForm
=
data
;
},
300
)
},
beforeCreate
()
{
},
//生命周期 - 创建之前
beforeMount
()
{
},
//生命周期 - 挂载之前
beforeUpdate
()
{
},
//生命周期 - 更新之前
updated
()
{
},
//生命周期 - 更新之后
beforeDestroy
()
{
},
//生命周期 - 销毁之前
destroyed
()
{
},
//生命周期 - 销毁完成
activated
()
{
},
//如果页面有keep-alive缓存功能,这个函数会触发
}
</
script
>
<
style
scoped
>
</
style
>
src/views/PersonList.vue
浏览文件 @
a2f977a9
...
@@ -114,8 +114,8 @@
...
@@ -114,8 +114,8 @@
},
},
handleClick
(
val
)
{
handleClick
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
// localStorage.setItem('infoPerson', this.$Base64.decode(localStorage.getItem('info'
)));
localStorage
.
setItem
(
'infoPerson'
,
this
.
$Base64
.
encode
(
JSON
.
stringify
(
val
)));
this
.
$router
.
push
({
name
:
'
viewTask
'
});
this
.
$router
.
push
({
name
:
'
personInfo
'
});
},
},
getSelectDepartment
()
{
getSelectDepartment
()
{
console
.
log
(
this
.
currentUser
);
console
.
log
(
this
.
currentUser
);
...
...
src/views/PersonManage.vue
浏览文件 @
a2f977a9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
template
>
<
template
>
<div
class=
'personManage'
>
<div
class=
'personManage'
>
<ul
class=
"userAuthority"
>
<ul
class=
"userAuthority"
>
<li
class=
"personInfo"
@
click=
"personClick('person
Info
')"
>
<li
class=
"personInfo"
@
click=
"personClick('person
Details
')"
>
<div
class=
"nameManage"
>
个人信息
</div>
<div
class=
"nameManage"
>
个人信息
</div>
</li>
</li>
<li
class=
"personList"
@
click=
"personClick('personList')"
>
<li
class=
"personList"
@
click=
"personClick('personList')"
>
...
...
src/views/TaskDetails.vue
浏览文件 @
a2f977a9
差异被折叠。
点击展开。
src/views/UnpublishedTask.vue
浏览文件 @
a2f977a9
...
@@ -199,9 +199,11 @@
...
@@ -199,9 +199,11 @@
this
.
attachmentsArr
.
push
(
obj
)
this
.
attachmentsArr
.
push
(
obj
)
})
})
let
arr
=
[];
let
arr
=
[];
res
.
data
.
crewList
.
forEach
((
v
,
i
)
=>
{
if
(
res
.
data
.
crewList
!==
null
)
{
arr
.
push
(
v
.
id
);
res
.
data
.
crewList
.
forEach
((
v
,
i
)
=>
{
})
arr
.
push
(
v
.
id
);
})
}
this
.
taskForm
.
crewList
=
arr
;
this
.
taskForm
.
crewList
=
arr
;
}
}
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论