Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
jml0128
/
xrk-bi
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 898d8f39
authored
Aug 09, 2021
by
srq18211
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bi 的东西
1 parent
d4e648d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
88 deletions
package.json
src/packages/bi/src/components/mobile/base-info.vue
src/packages/bi/src/project/6-zone-mobile.vue
test/index.html
package.json
View file @
898d8f3
...
...
@@ -15,7 +15,7 @@
"scripts"
:
{
"dev"
:
"cross-env NODE_ENV=development webpack-dev-server --open --hot"
,
"build"
:
"cross-env NODE_ENV=production webpack --progress --hide-modules"
,
"dev:srq"
:
"cross-env NODE_ENV=srq webpack-dev-server --hot"
,
"dev:srq"
:
"
npm run-script build &&
cross-env NODE_ENV=srq webpack-dev-server --hot"
,
"lint"
:
"eslint src/ --ext .js,.vue "
,
"fix"
:
"eslint --fix ./src --ext .js,.vue "
},
...
...
src/packages/bi/src/components/mobile/base-info.vue
View file @
898d8f3
<!--
* @Description:
* @Description:
* @Date: 2021-06-16 16:52:35
-->
<
template
>
...
...
@@ -26,44 +26,22 @@
import
BiMobileTitle
from
'./title.vue'
;
export
default
{
name
:
'bi-mobile-base-info'
,
props
:
{
info
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
inject
:
[
'Bi'
],
components
:
{
BiMobileTitle
},
data
()
{
return
{
info
:
[
{
label
:
'项目参与人:'
,
value
:
'张三'
},
{
label
:
'发起方:'
,
value
:
'葵花医疗集团'
},
{
label
:
'服务商:'
,
value
:
'杭州大江工作室'
},
{
label
:
'提交日期:'
,
value
:
'2021-05-30'
},
{
label
:
'可供采购量:'
,
value
:
'100'
},
{
label
:
'本期采购量:'
,
value
:
'20'
},
{
label
:
'数据收集:'
,
value
:
'20'
},
{
label
:
'报表成时间:'
,
value
:
'2021-05-21 22:21:12'
}
]
};
mounted
()
{
this
.
Bi
.
getBaseInfo
()
.
then
(
res
=>
{
console
.
log
(
res
);
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
};
</
script
>
...
...
src/packages/bi/src/project/6-zone-mobile.vue
View file @
898d8f3
<!--
* @Description:
* @Description:
* @Date: 2021-06-17 20:27:04
-->
<
template
>
...
...
@@ -10,7 +10,7 @@
:catalogueArr=
"catalogueArrMobile"
:class=
"
{ mobile: !isPrint }"
>
</BiCatalogue>
<BiMobileBaseInfo
class=
"bi-block mobile"
></BiMobileBaseInfo
>
<BiMobileBaseInfo
class=
"bi-block mobile"
:info=
"baseInfo"
/
>
<BiMobileSingleChoice
:singleChoice=
"singleChoice"
class=
"bi-block mobile"
...
...
@@ -92,44 +92,38 @@ export default {
}
],
baseInfo
:
[
[
{
name
:
'发起方'
,
value
:
'在山西地区的零售药店巡店项目'
},
{
name
:
'服务商'
,
value
:
'北京医洋科技有限公司'
},
{
name
:
'任务时间'
,
value
:
'24天'
}
],
[
{
name
:
'任务开始时间'
,
value
:
'2021-04-02'
},
{
name
:
'任务结算时间'
,
value
:
'2021-04-02'
},
{
name
:
'报表生成时间'
,
value
:
'2020-10-2'
}
],
[
{
name
:
'本期个人数据数'
,
value
:
'213123'
},
{
name
:
'累计个人数据总数'
,
value
:
'2020-10-2'
}
]
{
label
:
'项目参与人:'
,
value
:
'张三'
},
{
label
:
'发起方:'
,
value
:
'葵花医疗集团'
},
{
label
:
'服务商:'
,
value
:
'杭州大江工作室'
},
{
label
:
'提交日期:'
,
value
:
'2021-05-30'
},
{
label
:
'可供采购量:'
,
value
:
'100'
},
{
label
:
'本期采购量:'
,
value
:
'20'
},
{
label
:
'数据收集:'
,
value
:
'20'
},
{
label
:
'报表成时间:'
,
value
:
'2021-05-21 22:21:12'
}
],
textData
:
[
[
...
...
test/index.html
View file @
898d8f3
...
...
@@ -20,14 +20,13 @@
<body>
<div
id=
"app"
>
<xrk-bi
use-scale=
"1"
print=
"1"
mobile=
"1"
:project-type=
"projectType"
:get-base-info=
"config.getBaseInfo"
<xrk-bi
use-scale=
"1"
mobile=
"1"
:project-type=
"projectType"
:get-base-info=
"config.getBaseInfo"
:get-fixed-info=
"config.getFixedInfo"
:get-topic-info=
"config.getTopicInfo"
:get-group-info=
"config.getGroupInfo"
>
</xrk-bi>
</div>
</body>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/vue/2.5.0/vue.min.js"
></script>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"
></script>
<!--<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.5.0/vue.min.js"></script>-->
<!--<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>-->
<script
src=
"https://cdn.yxvzb.com/WEB/SaaS/bi/0.1.0/static/js/es6-sham.min.js"
></script>
<script
src=
"https://cdn.yxvzb.com/WEB/SaaS/bi/0.1.0/static/js/es7-shim.js"
></script>
<script
src=
"https://cdn.yxvzb.com/WEB/SaaS/bi/0.1.0/static/js/json3.js"
></script>
...
...
@@ -41,11 +40,15 @@
//加参数
if
(
!
window
.
location
.
search
.
length
){
window
.
location
.
search
=
'?print=1&projectType=20&id=42&url=http://saas-cso-pc-1.jimijiayuan.cn'
//对应参数说明:http://bug.yxvzb.com/zentao/task-view-353.html
window
.
location
.
search
=
'?fenpeiIds=9335188&userId=2771&type=person&projectType=20&id=42&url=http://saas-cso-pc-1.jimijiayuan.cn'
}
/**
* @desc 输入一个字段名 返回 query 字段名对应的字段值 或者 false
* fenpeiIds 分配id 可能有多个
/**
* @desc 输入一个字段名 返回 query 字段名对应的字段值 或者 false
* @param variable
* @return {string|boolean}
*/
...
...
@@ -77,7 +80,7 @@
// 创建场景BI相关接口
var
makeSceneBi
=
{
baseInfo
:
function
baseInfo
(
data
)
{
return
service
.
post
(
''
.
concat
(
baseUrl
,
'/
bi/data
/base/info'
),
data
);
return
service
.
post
(
''
.
concat
(
baseUrl
,
'/
person
/base/info'
),
data
);
},
fixedInfo
:
function
fixedInfo
(
data
)
{
return
service
.
post
(
''
.
concat
(
baseUrl
,
'/bi/data/fixed/info'
),
data
);
...
...
@@ -89,6 +92,7 @@
return
service
.
post
(
''
.
concat
(
baseUrl
,
'/bi/data/group/info'
),
data
);
}
};
// 线上推广
var
hgtgBi
=
{
baseInfo
:
function
baseInfo
(
data
)
{
return
service
.
post
(
...
...
@@ -208,4 +212,4 @@
});
</script>
</html>
\ No newline at end of file
</html>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment