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
b630f663
提交
b630f663
authored
1月 12, 2023
作者:
wk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目ID优化
父级
79b9ae2a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
7 行删除
+19
-7
main.js
+2
-2
pages/gallery/app/originalIndex/originalIndex.vue
+4
-0
pages/monitor/labourMonitor/labourMonitor.vue
+1
-0
pages/monitor/monitor.vue
+12
-5
没有找到文件。
main.js
View file @
b630f663
...
@@ -16,9 +16,9 @@ Vue.prototype.$mta = $mta
...
@@ -16,9 +16,9 @@ Vue.prototype.$mta = $mta
Vue
.
prototype
.
$toast
=
$toast
Vue
.
prototype
.
$toast
=
$toast
Vue
.
prototype
.
$config
=
$config
Vue
.
prototype
.
$config
=
$config
Vue
.
prototype
.
$imageUtils
=
$imageUtils
Vue
.
prototype
.
$imageUtils
=
$imageUtils
//
Vue.prototype.webUrl = "https://dev-console.hzdingmao.com"
Vue
.
prototype
.
webUrl
=
"https://dev-console.hzdingmao.com"
// Vue.prototype.webUrl = "https://test-console.hzdingmao.com"
// Vue.prototype.webUrl = "https://test-console.hzdingmao.com"
Vue
.
prototype
.
webUrl
=
"https://console.hibuilding.cn"
//
Vue.prototype.webUrl = "https://console.hibuilding.cn"
Vue
.
prototype
.
getToken
=
function
()
{
Vue
.
prototype
.
getToken
=
function
()
{
return
uni
.
getStorageSync
(
"token"
)
return
uni
.
getStorageSync
(
"token"
)
}
}
...
...
pages/gallery/app/originalIndex/originalIndex.vue
View file @
b630f663
...
@@ -71,6 +71,10 @@
...
@@ -71,6 +71,10 @@
let
curId
=
uni
.
getStorageSync
(
"project_id"
)
let
curId
=
uni
.
getStorageSync
(
"project_id"
)
if
(
curId
)
{
if
(
curId
)
{
this
.
projectName
=
uni
.
getStorageSync
(
"org_name"
)
this
.
projectName
=
uni
.
getStorageSync
(
"org_name"
)
this
.
projectSelect
=
{
project_id
:
curId
,
project_name
:
this
.
projectName
}
}
else
{
}
else
{
this
.
projectSelect
=
this
.
projectList
[
0
]
this
.
projectSelect
=
this
.
projectList
[
0
]
}
}
...
...
pages/monitor/labourMonitor/labourMonitor.vue
View file @
b630f663
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
this
.
project_name
=
option
.
project_name
this
.
project_name
=
option
.
project_name
this
.
url
=
this
.
url
=
`
${
this
.
webUrl
}
/mobileLaborScreen?token_id=
${
short_token
}
&tab=1&type=
${
this
.
type
}
&project_id=
${
this
.
project_id
}
&project_name=
${
this
.
project_name
}
`
`
${
this
.
webUrl
}
/mobileLaborScreen?token_id=
${
short_token
}
&tab=1&type=
${
this
.
type
}
&project_id=
${
this
.
project_id
}
&project_name=
${
this
.
project_name
}
`
console
.
log
(
"web链接"
,
this
.
url
);
},
},
onShow
:
function
()
{
onShow
:
function
()
{
// uni.$once("refresh", (res) => {
// uni.$once("refresh", (res) => {
...
...
pages/monitor/monitor.vue
View file @
b630f663
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
app_endpoint
:
2
,
app_endpoint
:
2
,
is_publish
:
1
,
is_publish
:
1
,
app_sort
:
2
,
app_sort
:
2
,
publish_target
:
"ydt"
},
},
apps
:
[{}],
apps
:
[{}],
currentJob
:
{},
currentJob
:
{},
project_id
:
""
,
project_id
:
""
,
orgName
:
""
,
orgName
:
""
,
isProject
:
false
isProject
:
false
,
type
:
"project"
//企业级company 项目级project
}
}
},
},
onLoad
()
{
onLoad
()
{
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
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'
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
);
...
@@ -70,6 +71,7 @@
...
@@ -70,6 +71,7 @@
this
.
orgName
=
this
.
currentJob
.
org_name
this
.
orgName
=
this
.
currentJob
.
org_name
}
else
{
}
else
{
this
.
isProject
=
true
this
.
isProject
=
true
this
.
type
=
'project'
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
this
.
orgName
=
uni
.
getStorageSync
(
"org_name"
)
}
}
}
}
...
@@ -89,7 +91,12 @@
...
@@ -89,7 +91,12 @@
console
.
log
(
res
.
data
);
console
.
log
(
res
.
data
);
if
(
res
.
data
.
code
===
0
)
{
if
(
res
.
data
.
code
===
0
)
{
let
list
=
res
.
data
.
data
.
list
let
list
=
res
.
data
.
data
.
list
this
.
apps
=
list
list
.
forEach
((
item
)
=>
{
if
(
item
.
app_no
==
"appletlabourboard"
)
{
this
.
apps
.
push
(
item
)
}
})
}
else
{
}
else
{
this
.
$toast
.
showToast
(
result
.
msg
)
this
.
$toast
.
showToast
(
result
.
msg
)
}
}
...
@@ -99,11 +106,11 @@
...
@@ -99,11 +106,11 @@
let
app
=
this
.
apps
[
index
]
let
app
=
this
.
apps
[
index
]
if
(
app
.
app_no
==
"appletboard"
)
{
if
(
app
.
app_no
==
"appletboard"
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/monitor/zhgdMonitor/zhgdMonitor"
url
:
`/pages/monitor/zhgdMonitor/zhgdMonitor?type=
${
this
.
type
}
&project_id=
${
this
.
project_id
}
&project_name=
${
this
.
orgName
}
`
})
})
}
else
if
(
app
.
app_no
==
"appletlabourboard"
)
{
}
else
if
(
app
.
app_no
==
"appletlabourboard"
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/monitor/labourMonitor/labourMonitor"
url
:
`/pages/monitor/labourMonitor/labourMonitor?type=
${
this
.
type
}
&project_id=
${
this
.
project_id
}
&project_name=
${
this
.
orgName
}
`
})
})
}
}
}
}
...
...
Write
Preview
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
Please
register
or
sign in
to comment