Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
ef992c27
提交
ef992c27
编写于
1月 06, 2022
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add native save
上级
d317609d
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
36 行增加
和
14 行删除
+36
-14
index.js
src/router/index.js
+7
-9
index.js
src/service/index.js
+9
-0
kf.js
src/utils/kf.js
+1
-1
prolist.vue
src/views/prolist.vue
+19
-4
未找到文件。
src/router/index.js
浏览文件 @
ef992c27
import
{
router
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
{
router
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
// try {
import
{
headerConfigByMeta
}
from
'mn-template/util/routerUtil'
;
// console.log('--router', router.prototype);
// const originalPush = router.prototype.push;
// router.prototype.push = function push(location) {
// return originalPush.call(this, location).catch((err) => err);
// };
// } catch (error) {
// console.log(error);
// }
const
routerConfig
=
[
const
routerConfig
=
[
{
{
...
@@ -77,4 +69,10 @@ const routerConfig = [
...
@@ -77,4 +69,10 @@ const routerConfig = [
component
:
()
=>
import
(
'@/views/rankedu'
),
component
:
()
=>
import
(
'@/views/rankedu'
),
},
},
];
];
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
headerConfigByMeta
(
to
);
next
();
});
router
.
addRoutes
(
routerConfig
);
router
.
addRoutes
(
routerConfig
);
src/service/index.js
浏览文件 @
ef992c27
...
@@ -202,3 +202,12 @@ export const getProjectList = async (params) => {
...
@@ -202,3 +202,12 @@ export const getProjectList = async (params) => {
url
:
'portal/report/getReportListForApp'
,
url
:
'portal/report/getReportListForApp'
,
});
});
};
};
export
const
getImUrl
=
(
data
)
=>
{
return
request
({
withCredentials
:
true
,
url
:
'/im/call/im/link'
,
method
:
'post'
,
data
:
data
,
});
};
src/utils/kf.js
浏览文件 @
ef992c27
...
@@ -24,7 +24,7 @@ function nativeGo(url) {
...
@@ -24,7 +24,7 @@ function nativeGo(url) {
seqNo
:
1
,
seqNo
:
1
,
},
},
];
];
this
.
rocNative
.
dispatchEventByModuleCode
({
this
.
$
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
'M300'
,
modeCode
:
'M300'
,
jsonString
:
paramList
,
jsonString
:
paramList
,
});
});
...
...
src/views/prolist.vue
浏览文件 @
ef992c27
...
@@ -16,9 +16,8 @@
...
@@ -16,9 +16,8 @@
// import CommonHeaderNew from '@/components/common/common-header-new';
// import CommonHeaderNew from '@/components/common/common-header-new';
import
PageModel
from
'@pica-kit/page-model'
;
import
PageModel
from
'@pica-kit/page-model'
;
import
CoopListItem
from
'@/components/bussiness/coop-list-item'
;
import
CoopListItem
from
'@/components/bussiness/coop-list-item'
;
import
{
getProjectList
}
from
'@/service'
;
import
{
getProjectList
,
getImUrl
}
from
'@/service'
;
import
{
BASE_URL
}
from
'@/utils/enumerate'
;
import
{
BASE_URL
}
from
'@/utils/enumerate'
;
import
{
goKfFn
}
from
'@/utils/kf'
;
const
{
VUE_APP_ENV
}
=
process
.
env
;
const
{
VUE_APP_ENV
}
=
process
.
env
;
const
cookies
=
require
(
'cookie-universal'
)();
const
cookies
=
require
(
'cookie-universal'
)();
...
@@ -34,7 +33,7 @@ export default {
...
@@ -34,7 +33,7 @@ export default {
title
:
'学情报告'
,
title
:
'学情报告'
,
backMethod
:
'native'
,
backMethod
:
'native'
,
},
},
token
:
'
C98719AA9D544876A92277955A692C8D
'
,
token
:
'
0F1712A49D7F4DC79A31484ED97E9433
'
,
projectList
:
[],
projectList
:
[],
isShowKf
:
true
,
isShowKf
:
true
,
};
};
...
@@ -91,8 +90,24 @@ export default {
...
@@ -91,8 +90,24 @@ export default {
});
});
},
},
goKf
()
{
goKf
()
{
goKfFn
({
const
that
=
this
;
getImUrl
({
code
:
'0002'
,
code
:
'0002'
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
const
paramList
=
[
{
key
:
'pageUrl'
,
value
:
res
.
data
,
type
:
4
,
seqNo
:
1
,
},
];
that
.
$rocNative
.
dispatchEventByModuleCode
({
modeCode
:
'M300'
,
jsonString
:
paramList
,
});
}
});
});
},
},
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录