Commit 898d8f39 by srq18211

bi 的东西

1 parent d4e648d8
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"scripts": { "scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules", "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 ", "lint": "eslint src/ --ext .js,.vue ",
"fix": "eslint --fix ./src --ext .js,.vue " "fix": "eslint --fix ./src --ext .js,.vue "
}, },
......
<!-- <!--
* @Description: * @Description:
* @Date: 2021-06-16 16:52:35 * @Date: 2021-06-16 16:52:35
--> -->
<template> <template>
...@@ -26,44 +26,22 @@ ...@@ -26,44 +26,22 @@
import BiMobileTitle from './title.vue'; import BiMobileTitle from './title.vue';
export default { export default {
name: 'bi-mobile-base-info', name: 'bi-mobile-base-info',
props: {
info: {
type: Array,
default: () => []
}
},
inject: ['Bi'],
components: { BiMobileTitle }, components: { BiMobileTitle },
data() { mounted() {
return { this.Bi.getBaseInfo()
info: [ .then(res => {
{ console.log(res);
label: '项目参与人:', })
value: '张三' .catch(err => {
}, console.log(err);
{ });
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'
}
]
};
} }
}; };
</script> </script>
......
<!-- <!--
* @Description: * @Description:
* @Date: 2021-06-17 20:27:04 * @Date: 2021-06-17 20:27:04
--> -->
<template> <template>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:catalogueArr="catalogueArrMobile" :catalogueArr="catalogueArrMobile"
:class="{ mobile: !isPrint }" :class="{ mobile: !isPrint }"
></BiCatalogue> ></BiCatalogue>
<BiMobileBaseInfo class="bi-block mobile"></BiMobileBaseInfo> <BiMobileBaseInfo class="bi-block mobile" :info="baseInfo" />
<BiMobileSingleChoice <BiMobileSingleChoice
:singleChoice="singleChoice" :singleChoice="singleChoice"
class="bi-block mobile" class="bi-block mobile"
...@@ -92,44 +92,38 @@ export default { ...@@ -92,44 +92,38 @@ export default {
} }
], ],
baseInfo: [ baseInfo: [
[ {
{ label: '项目参与人:',
name: '发起方', value: '张三'
value: '在山西地区的零售药店巡店项目' },
}, {
{ label: '发起方:',
name: '服务商', value: '葵花医疗集团'
value: '北京医洋科技有限公司' },
}, {
{ label: '服务商:',
name: '任务时间', value: '杭州大江工作室'
value: '24天' },
} {
], label: '提交日期:',
[ value: '2021-05-30'
{ },
name: '任务开始时间', {
value: '2021-04-02' label: '可供采购量:',
}, value: '100'
{ },
name: '任务结算时间', {
value: '2021-04-02' label: '本期采购量:',
}, value: '20'
{ },
name: '报表生成时间', {
value: '2020-10-2' label: '数据收集:',
} value: '20'
], },
[ {
{ label: '报表成时间:',
name: '本期个人数据数', value: '2021-05-21 22:21:12'
value: '213123' }
},
{
name: '累计个人数据总数',
value: '2020-10-2'
}
]
], ],
textData: [ textData: [
[ [
......
...@@ -20,14 +20,13 @@ ...@@ -20,14 +20,13 @@
<body> <body>
<div id="app"> <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"> :get-fixed-info="config.getFixedInfo" :get-topic-info="config.getTopicInfo" :get-group-info="config.getGroupInfo">
</xrk-bi> </xrk-bi>
</div> </div>
</body> </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/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/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/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/es7-shim.js"></script>
<script src="https://cdn.yxvzb.com/WEB/SaaS/bi/0.1.0/static/js/json3.js"></script> <script src="https://cdn.yxvzb.com/WEB/SaaS/bi/0.1.0/static/js/json3.js"></script>
...@@ -41,11 +40,15 @@ ...@@ -41,11 +40,15 @@
//加参数 //加参数
if (!window.location.search.length){ 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 * @param variable
* @return {string|boolean} * @return {string|boolean}
*/ */
...@@ -77,7 +80,7 @@ ...@@ -77,7 +80,7 @@
// 创建场景BI相关接口 // 创建场景BI相关接口
var makeSceneBi = { var makeSceneBi = {
baseInfo: function baseInfo(data) { 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) { fixedInfo: function fixedInfo(data) {
return service.post(''.concat(baseUrl,'/bi/data/fixed/info'),data); return service.post(''.concat(baseUrl,'/bi/data/fixed/info'),data);
...@@ -89,6 +92,7 @@ ...@@ -89,6 +92,7 @@
return service.post(''.concat(baseUrl,'/bi/data/group/info'),data); return service.post(''.concat(baseUrl,'/bi/data/group/info'),data);
} }
}; };
// 线上推广
var hgtgBi = { var hgtgBi = {
baseInfo: function baseInfo(data) { baseInfo: function baseInfo(data) {
return service.post( return service.post(
...@@ -208,4 +212,4 @@ ...@@ -208,4 +212,4 @@
}); });
</script> </script>
</html> </html>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!