Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-yunying-sheet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a2657325
authored
Dec 26, 2023
by
zhongqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update:跳转天眼云
parent
b42d75da
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
31 deletions
build/webpack.prod.conf.js
src/libraries/polyfill/cordova.js
src/shared/api.js
src/shared/app.vue
build/webpack.prod.conf.js
View file @
a2657325
...
@@ -30,7 +30,8 @@ var webpackConfig = merge(baseWebpackConfig, {
...
@@ -30,7 +30,8 @@ var webpackConfig = merge(baseWebpackConfig, {
plugins
:
[
plugins
:
[
// http://vuejs.github.io/vue-loader/en/workflow/production.html
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.env'
:
env
'process.env'
:
env
,
'process.env.PACK_ENV'
:
JSON
.
stringify
(
process
.
env
.
PACK_ENV
)
}),
}),
new
webpack
.
optimize
.
UglifyJsPlugin
({
new
webpack
.
optimize
.
UglifyJsPlugin
({
compress
:
{
compress
:
{
...
...
src/libraries/polyfill/cordova.js
View file @
a2657325
;(
function
(
global
)
{
;(
function
(
global
)
{
var
qing
=
global
.
qing
var
qing
=
global
.
qing
var
appMap
=
{
var
appMap
=
{
'com.jffc.gc-bak'
:
'500000106'
,
'com.cnd.jffc.tyypt'
:
process
.
env
.
PACK_ENV
===
'test'
?
'500000155'
:
''
,
'com.jffc.gc'
:
'500000113'
,
'com.jffc.supplier'
:
'500000112'
}
}
function
isObject
(
value
)
{
console
.
log
(
'appMap>>'
,
appMap
)
function
isObject
(
value
)
{
return
value
!==
null
&&
typeof
value
===
'object'
return
value
!==
null
&&
typeof
value
===
'object'
}
}
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
qing
.
call
(
fnName
,
opt
)
qing
.
call
(
fnName
,
opt
)
})
})
}
}
// 根据“工号”查询【工号、eid、orgId】等信息
// 根据“工号”查询【工号、eid、orgId】等信息
function
getPersonInfosByJobNo
(
jobNos
)
{
function
getPersonInfosByJobNo
(
jobNos
)
{
var
opt
=
{
var
opt
=
{
...
@@ -192,7 +193,7 @@
...
@@ -192,7 +193,7 @@
qing
.
call
(
'request'
,
opt
)
qing
.
call
(
'request'
,
opt
)
}
}
function
openAppWithData
(
appName
,
data
,
url
)
{
function
openAppWithData
(
appName
,
data
,
url
)
{
var
val
=
''
var
val
=
''
if
(
isObject
(
data
))
{
if
(
isObject
(
data
))
{
data
=
JSON
.
stringify
(
data
)
data
=
JSON
.
stringify
(
data
)
...
@@ -484,7 +485,8 @@
...
@@ -484,7 +485,8 @@
error
:
failFn
error
:
failFn
})
})
},
},
showRAR
:
function
()
{}
showRAR
:
function
()
{
}
}
}
}
}
global
.
cordova
=
{
global
.
cordova
=
{
...
...
src/shared/api.js
View file @
a2657325
...
@@ -20,6 +20,8 @@ export const SetToken = function (val) {
...
@@ -20,6 +20,8 @@ export const SetToken = function (val) {
}
}
}
}
export
const
appId
=
''
// android or iOS scheme
// android or iOS scheme
export
const
goThirdAppPrefix
=
{
export
const
goThirdAppPrefix
=
{
smartbuild
:
'com.tsinglink.smartbuild://'
,
// 进度概况->项目节点列表->跳转到“智慧工地”第三方app的参数拼接前缀
smartbuild
:
'com.tsinglink.smartbuild://'
,
// 进度概况->项目节点列表->跳转到“智慧工地”第三方app的参数拼接前缀
...
...
src/shared/app.vue
View file @
a2657325
...
@@ -22,17 +22,17 @@
...
@@ -22,17 +22,17 @@
<div
class=
"bar"
>
<div
class=
"bar"
>
<ul>
<ul>
<li
@
click=
"goPage('')"
>
<li
@
click=
"goPage('')"
>
<img
v-if=
"tabIndex==0"
:src=
"require('~proj/assets/images/yygl_active.png')"
/>
<img
v-if=
"tabIndex==0"
:src=
"require('~proj/assets/images/yygl_active.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/yygl.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/yygl.png')"
/>
<p>
运营概况
</p>
<p>
运营概况
</p>
</li>
</li>
<li
@
click=
"goMap"
v-if=
"showProjectMap"
>
<li
@
click=
"goMap"
v-if=
"showProjectMap"
>
<img
:src=
"require('~proj/assets/images/xmdt.png')"
/>
<img
:src=
"require('~proj/assets/images/xmdt.png')"
/>
<p>
项目地图
</p>
<p>
项目地图
</p>
</li>
</li>
<li
v-if=
"showReport"
@
click=
"goPage('classifySheet')"
>
<li
v-if=
"showReport"
@
click=
"goPage('classifySheet')"
>
<img
v-if=
"tabIndex==2"
:src=
"require('~proj/assets/images/flbb_active.png')"
/>
<img
v-if=
"tabIndex==2"
:src=
"require('~proj/assets/images/flbb_active.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/flbb.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/flbb.png')"
/>
<p>
分类报表
</p>
<p>
分类报表
</p>
</li>
</li>
</ul>
</ul>
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<
script
>
<
script
>
import
CHeader
from
"./components/commom/c-header.vue"
;
import
CHeader
from
"./components/commom/c-header.vue"
;
import
{
SetToken
,
code
,
projectMapUrl
}
from
"./api.js"
;
import
{
SetToken
,
code
,
projectMapUrl
}
from
"./api.js"
;
import
{
delCookie
}
from
"~lib/utils/common"
;
import
{
delCookie
}
from
"~lib/utils/common"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -112,7 +112,41 @@ export default {
...
@@ -112,7 +112,41 @@ export default {
});
});
},
},
goMap
()
{
goMap
()
{
// V+切换地图功能: areaNum 填写要进入的片区地图
var
that
=
this
;
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===>>>"
);
cordova
.
exec
(
function
(
success
)
{
console
.
log
(
success
);
},
function
(
error
)
{
console
.
log
(
error
);
},
"MideaCommon"
,
"showWidget"
,
[
"com.cnd.jffc.tyypt"
,
`{"action":"gotoMap", "areaNum":"
${
that
.
currentAreaNum
}
","H5CallBackFunction":"callBack()"}`
,
]
);
// const urlParam = {
// action: 'gotoMap',
// areaNum: this.currentAreaNum
// }
//
// const path = encodeURIComponent(`index.html?${urlParam}`);
// const href = `cloudhub://miniapp?appid=${TyyptAppId}&path=${path}`;
// qing.call("gotoLightApp", {
// urlParam: href,
// });
},
goMap_old
()
{
var
that
=
this
;
var
that
=
this
;
// V+切换地图功能: areaNum 填写要进入的片区地图
// V+切换地图功能: areaNum 填写要进入的片区地图
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===>>>"
);
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===>>>"
);
...
@@ -131,24 +165,7 @@ export default {
...
@@ -131,24 +165,7 @@ export default {
]
]
);
);
// cordova.exec(
// function (result) {
// console.log("回调成功: " + JSON.stringify(result));
// },
// function (error) {
// console.log("回调失败");
// },
// "MideaCommon",
// "openUrl", [
// projectMapUrl + "?areaNum=05&access_token=" +
// that.$mas.token,
// {
// title: 1,
// shareRange: 2
// }
// ]
// );
},
},
clickBar
:
function
()
{
clickBar
:
function
()
{
this
.
isShowTransition
=
false
;
this
.
isShowTransition
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment