diff --git a/src/api/flow/index.js b/src/api/flow/index.js index b175c27..1142476 100644 --- a/src/api/flow/index.js +++ b/src/api/flow/index.js @@ -185,3 +185,12 @@ export function flowLogs(params,isLoading=false) { isLoading }) } + +export function statistics(type, params, isLoading=true) { + return request({ + method: 'get', + url: `/api/oa/statistics/get-chart-data/${type}`, + params, + isLoading + }) +} diff --git a/src/layout/CardContainer.vue b/src/layout/CardContainer.vue new file mode 100644 index 0000000..2a502b9 --- /dev/null +++ b/src/layout/CardContainer.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 89b9992..f65735a 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -25,10 +25,17 @@ export default { background: #eff2f9; position: relative; overflow: hidden; + padding: 20px; } .fixed-header+.app-main { padding-top: 50px; } +@media (max-width: 768px) { + .app-main { + min-height: calc(100vh - 54px); + padding: 10px; + } +} diff --git a/src/main.js b/src/main.js index 6096093..3be85be 100644 --- a/src/main.js +++ b/src/main.js @@ -54,6 +54,8 @@ import Vant from 'vant' import 'vant/lib/index.css'; Vue.use(Vant) +import CardContainer from '@/layout/CardContainer.vue' +Vue.component('CardContainer', CardContainer) //moment import moment from 'moment' Vue.prototype.$moment = moment; @@ -87,7 +89,7 @@ else if(window.top !== window.self) { store, render: h => h(App) }).$mount("#app") - router.push('/') + router.push(getQueryParam('to') || '/') // window.addEventListener("message",function (e) { // const { module_name, auth_token } = e.data; // window.MODULE_NAME = module_name; diff --git a/src/views/flow/statistics.vue b/src/views/flow/statistics.vue new file mode 100644 index 0000000..3314d88 --- /dev/null +++ b/src/views/flow/statistics.vue @@ -0,0 +1,133 @@ + + + + +