Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
Sign in / Register
Toggle navigation
S
site-uniapp
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
王柯
site-uniapp
Commits
d244efa5
提交
d244efa5
authored
1月 15, 2023
作者:
wk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目组织切换
父级
cf851fde
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
48 行增加
和
20 行删除
+48
-20
pages/gallery/allNeedDo/allNeedDo.vue
+1
-1
pages/gallery/app/modeFormList/modeFormList.vue
+14
-2
pages/gallery/gallery.vue
+9
-3
pages/gallery/processFormDetailPage/processFormDetailPage.vue
+1
-1
pages/gallery/todayNeedDo/todayNeedDo.vue
+1
-1
pages/mine/changeOrg/changeOrg.vue
+11
-2
pages/monitor/monitor.vue
+11
-10
没有找到文件。
pages/gallery/allNeedDo/allNeedDo.vue
View file @
d244efa5
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
isEdit
=
0
isEdit
=
0
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/gallery/processFormDetailPage/processFormDetailPage?obj_no=
${
item
.
obj_no
}
&check_module_id=
${
item
.
check_module_id
}
&check_tpl_id=
${
item
.
check_tpl_id
}
&project_id=
${
item
.
project_id
}
&title=
${
item
.
app_name
}
&is_edit=
${
isEdit
}
`
url
:
`/pages/gallery/processFormDetailPage/processFormDetailPage?obj_no=
${
item
.
obj_no
}
&check_module_id=
${
item
.
check_module_id
}
&check_tpl_id=
${
item
.
check_tpl_id
}
&project_id=
${
item
.
project_id
}
&title=
${
item
.
app_name
}
&is_edit=
${
isEdit
}
&status=
${
item
.
status_name
}
`
})
})
},
},
getAllNeedDo
()
{
getAllNeedDo
()
{
...
...
pages/gallery/app/modeFormList/modeFormList.vue
View file @
d244efa5
...
@@ -789,15 +789,27 @@
...
@@ -789,15 +789,27 @@
let
result
=
res
.
data
let
result
=
res
.
data
console
.
log
(
"项目列表:"
,
result
);
console
.
log
(
"项目列表:"
,
result
);
if
(
result
.
code
===
0
)
{
if
(
result
.
code
===
0
)
{
that
.
projectList
=
result
.
data
.
list
let
curId
=
uni
.
getStorageSync
(
"project_id"
)
console
.
log
(
"项目id:"
,
curId
);
if
(
curId
)
{
this
.
projectSelect
=
uni
.
getStorageSync
(
"org_name"
)
this
.
projectNames
.
push
(
this
.
projectSelect
)
this
.
projectId
=
curId
this
.
projectList
.
push
({
project_id
:
curId
,
project_name
:
this
.
projectName
})
}
else
{
this
.
projectList
=
result
.
data
.
list
if
(
that
.
projectList
.
length
>
0
)
{
if
(
that
.
projectList
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
that
.
projectList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
that
.
projectList
.
length
;
i
++
)
{
that
.
projectNames
[
i
]
=
that
.
projectList
[
i
].
project_name
that
.
projectNames
[
i
]
=
that
.
projectList
[
i
].
project_name
}
}
that
.
projectSelect
=
that
.
projectList
[
0
].
project_name
that
.
projectSelect
=
that
.
projectList
[
0
].
project_name
that
.
projectId
=
that
.
projectList
[
0
].
project_id
that
.
projectId
=
that
.
projectList
[
0
].
project_id
that
.
getFormList
()
}
}
}
this
.
getFormList
()
}
else
{
}
else
{
if
(
result
.
code
===
-
1
)
{
if
(
result
.
code
===
-
1
)
{
uni
.
showToast
({
uni
.
showToast
({
...
...
pages/gallery/gallery.vue
View file @
d244efa5
...
@@ -25,13 +25,13 @@
...
@@ -25,13 +25,13 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"popularity-content"
:style=
"
{'
margin-top':statusBarHeight+15
+'px'}">
<view
class=
"popularity-content"
:style=
"
{'
top':statusBarHeight+200
+'px'}">
<image
src=
"../../static/ic-sjzg.png"
class=
"image"
@
click=
"linkToData"
></image>
<image
src=
"../../static/ic-sjzg.png"
class=
"image"
@
click=
"linkToData"
></image>
<text
class=
"text"
@
click=
"linkToData"
>
数据智管
</text>
<text
class=
"text"
@
click=
"linkToData"
>
数据智管
</text>
<image
src=
"../../static/ic-rqyy.png"
class=
"rq-image"
></image>
<image
src=
"../../static/ic-rqyy.png"
class=
"rq-image"
></image>
<text
class=
"text"
>
本周人气最佳:
{{
mostUsed
.
app_name
||
"暂无"
}}
</text>
<text
class=
"text"
>
本周人气最佳:
{{
mostUsed
.
app_name
||
"暂无"
}}
</text>
</view>
</view>
<view
class=
"app-content"
>
<view
class=
"app-content"
:style=
"
{'top':statusBarHeight+250+'px'}"
>
<v-tabs
:tabs=
"tabs"
:scroll=
"true"
:value=
"current"
@
change=
"tabChange"
></v-tabs>
<v-tabs
:tabs=
"tabs"
:scroll=
"true"
:value=
"current"
@
change=
"tabChange"
></v-tabs>
<view
class=
"app-group-content"
>
<view
class=
"app-group-content"
>
<view
class=
"app-group-item"
v-for=
"(item,index) in getMenuApps()"
:key=
"index"
>
<view
class=
"app-group-item"
v-for=
"(item,index) in getMenuApps()"
:key=
"index"
>
...
@@ -103,7 +103,11 @@
...
@@ -103,7 +103,11 @@
uni
.
$once
(
"refreshOrg"
,
res
=>
{
uni
.
$once
(
"refreshOrg"
,
res
=>
{
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
})
})
if
(
!
uni
.
getStorageSync
(
"org_name"
))
{
this
.
getOrgTree
()
this
.
getOrgTree
()
}
else
{
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
}
this
.
getMostUsed
()
this
.
getMostUsed
()
},
},
methods
:
{
methods
:
{
...
@@ -138,7 +142,6 @@
...
@@ -138,7 +142,6 @@
}).
then
((
result
)
=>
{
}).
then
((
result
)
=>
{
console
.
log
(
"组织树"
,
result
);
console
.
log
(
"组织树"
,
result
);
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
)
{
this
.
trees
=
result
.
data
.
list
[
0
].
children_list
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
||
result
.
data
.
list
[
0
].
name
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
||
result
.
data
.
list
[
0
].
name
if
(
this
.
role
==
'VISITOR'
)
{
if
(
this
.
role
==
'VISITOR'
)
{
this
.
orgName
=
"您还未【加入项目】,请前往【我的】加入"
this
.
orgName
=
"您还未【加入项目】,请前往【我的】加入"
...
@@ -521,6 +524,7 @@
...
@@ -521,6 +524,7 @@
}
}
.popularity-content
{
.popularity-content
{
position
:
absolute
;
width
:
690
rpx
;
width
:
690
rpx
;
height
:
40px
;
height
:
40px
;
border-radius
:
40
rpx
;
border-radius
:
40
rpx
;
...
@@ -551,6 +555,7 @@
...
@@ -551,6 +555,7 @@
}
}
.app-content
{
.app-content
{
position
:
absolute
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -560,6 +565,7 @@
...
@@ -560,6 +565,7 @@
.app-group-item
{
.app-group-item
{
display
:
flex
;
display
:
flex
;
width
:
630
rpx
;
padding
:
30
rpx
;
padding
:
30
rpx
;
margin
:
20
rpx
30
rpx
0
30
rpx
;
margin
:
20
rpx
30
rpx
0
30
rpx
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
pages/gallery/processFormDetailPage/processFormDetailPage.vue
View file @
d244efa5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
style=
"display: flex;flex-direction: column;padding: 32rpx;"
>
<view
style=
"display: flex;flex-direction: column;padding: 32rpx;"
>
<view
class=
"executor-text"
>
发起时间:
{{
forms
[
0
].
created_at
}}
</view>
<view
class=
"executor-text"
>
发起时间:
{{
forms
[
0
].
created_at
}}
</view>
<view
class=
"executor-text"
>
发起人:
{{
forms
[
0
].
created_by_name
}}
</view>
<view
class=
"executor-text"
>
发起人:
{{
forms
[
0
].
created_by_name
}}
</view>
<view
class=
"executor-text"
>
目前状态:
{{
forms
[
forms
.
length
-
1
].
check_item_name
}}
</view>
<view
class=
"executor-text"
>
目前状态:
{{
status
}}
</view>
<view
class=
"executor-text"
>
<view
class=
"executor-text"
>
目前执行人:
{{
forms
[
forms
.
length
-
1
].
executorStr
}}
目前执行人:
{{
forms
[
forms
.
length
-
1
].
executorStr
}}
</view>
</view>
...
...
pages/gallery/todayNeedDo/todayNeedDo.vue
View file @
d244efa5
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
},
},
itemClick
(
item
)
{
itemClick
(
item
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/gallery/processFormDetailPage/processFormDetailPage?obj_no=
${
item
.
obj_no
}
&check_module_id=
${
item
.
check_module_id
}
&check_tpl_id=
${
item
.
check_tpl_id
}
&project_id=
${
item
.
project_id
}
&title=
${
item
.
app_name
}
&is_edit=1`
url
:
`/pages/gallery/processFormDetailPage/processFormDetailPage?obj_no=
${
item
.
obj_no
}
&check_module_id=
${
item
.
check_module_id
}
&check_tpl_id=
${
item
.
check_tpl_id
}
&project_id=
${
item
.
project_id
}
&title=
${
item
.
app_name
}
&is_edit=1
&status=
${
item
.
status_name
}
`
})
})
}
}
}
}
...
...
pages/mine/changeOrg/changeOrg.vue
View file @
d244efa5
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<view
v-if=
"tree.isOpen"
style=
"margin-top: 20rpx;"
>
<view
v-if=
"tree.isOpen"
style=
"margin-top: 20rpx;"
>
<view
class=
"org-item"
v-for=
"(oneLevel,oneIndex) in tree.children_list"
:key=
"oneIndex"
>
<view
class=
"org-item"
v-for=
"(oneLevel,oneIndex) in tree.children_list"
:key=
"oneIndex"
>
<view
class=
"org"
>
<view
class=
"org"
>
<image
v-if=
"!oneLevel.project_id&&oneLevel.children_list.length>0"
<image
v-if=
"!oneLevel.project_id&&oneLevel.children_list&&oneLevel.children_list.length>0"
:src=
"oneLevel.isOpen?'../../../static/icon_up_arrow.png':'../../../static/icon_drop_arrow.png'"
:src=
"oneLevel.isOpen?'../../../static/icon_up_arrow.png':'../../../static/icon_drop_arrow.png'"
class=
"image"
@
click=
"toNextChild(index,oneLevel,oneIndex)"
></image>
class=
"image"
@
click=
"toNextChild(index,oneLevel,oneIndex)"
></image>
<view
class=
"name"
@
click=
"toNextChild(index,oneLevel,oneIndex)"
>
{{
oneLevel
.
name
}}
<view
class=
"name"
@
click=
"toNextChild(index,oneLevel,oneIndex)"
>
{{
oneLevel
.
name
}}
...
@@ -70,12 +71,20 @@
...
@@ -70,12 +71,20 @@
}).
then
((
result
)
=>
{
}).
then
((
result
)
=>
{
console
.
log
(
"组织树"
,
result
);
console
.
log
(
"组织树"
,
result
);
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
)
{
this
.
trees
=
result
.
data
.
list
[
0
].
children_list
var
list
=
result
.
data
.
list
if
(
list
&&
list
.
length
>
0
)
{
if
(
list
[
0
].
no
==
'001'
)
{
this
.
trees
=
list
[
0
].
children_list
}
else
{
this
.
trees
=
list
}
}
}
}
})
})
},
},
toNextLevel
(
item
,
index
)
{
toNextLevel
(
item
,
index
)
{
let
children
=
item
.
children_list
let
children
=
item
.
children_list
console
.
log
(
"子集"
,
children
);
if
(
item
.
isOpen
)
{
if
(
item
.
isOpen
)
{
item
.
isOpen
=
false
item
.
isOpen
=
false
}
else
{
}
else
{
...
...
pages/monitor/monitor.vue
View file @
d244efa5
...
@@ -57,25 +57,26 @@
...
@@ -57,25 +57,26 @@
onShow
()
{
onShow
()
{
this
.
userInfo
=
getApp
().
globalData
.
userInfo
this
.
userInfo
=
getApp
().
globalData
.
userInfo
this
.
isHasAuth
=
this
.
userInfo
.
identity
.
code
==
"PM"
this
.
isHasAuth
=
this
.
userInfo
.
identity
.
code
==
"PM"
// var org = uni.getStorageSync("org_name")
if
(
this
.
isHasAuth
)
{
if
(
this
.
isHasAuth
)
{
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
this
.
project_id
=
uni
.
getStorageSync
(
"project_id"
)
this
.
project_id
=
uni
.
getStorageSync
(
"project_id"
)
if
(
!
this
.
project_id
)
{
if
(
!
this
.
project_id
)
{
this
.
isProject
=
false
this
.
isProject
=
false
this
.
type
=
'company'
this
.
type
=
'company'
console
.
log
(
"用户信息"
,
this
.
userInfo
);
//
console.log("用户信息", this.userInfo);
let
jobs
=
this
.
userInfo
.
user
.
job_list
//
let jobs = this.userInfo.user.job_list
console
.
log
(
"岗位列表"
,
jobs
);
//
console.log("岗位列表", jobs);
let
currentComId
=
this
.
userInfo
.
user
.
comp_id
//
let currentComId = this.userInfo.user.comp_id
let
job
=
jobs
.
find
(
item
=>
//
let job = jobs.find(item =>
item
.
company_id
==
currentComId
//
item.company_id == currentComId
)
//
)
console
.
log
(
"当前岗位"
,
job
);
//
console.log("当前岗位", job);
this
.
currentJob
=
job
this
.
currentJob
=
job
this
.
orgName
=
this
.
currentJob
.
org_name
//
this.orgName = this.currentJob.org_name
}
else
{
}
else
{
this
.
isProject
=
true
this
.
isProject
=
true
this
.
type
=
'project'
this
.
type
=
'project'
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
}
}
}
}
...
...
Write
Preview
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
Please
register
or
sign in
to comment