Commit 2193009c by chenweisong

init

parent ab0bc293
.DS_Store
node_modules
/dist
/kpi
# local env files ### IntelliJ IDEA ###
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea .idea
.vscode .svn
*.suo *.iws
*.ntvs*
*.njsproj
*.sln
*.sw?
*.iml *.iml
*.zip *.ipr
*.rar
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
dist/
kpi/
/nbdist/
/.nb-gradle/
node_modules/
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="divb"> <div class="divb">
<p>打开前请先安装最新版手机经分APP</p> <p>打开前请先安装最新版手机经分APP</p>
<p> <p>
<a href="https://emm.cmccbigdata.com:8443/emm/about">点击安装</a> <a href="http://172.168.20.37:8888/emm/about">点击安装</a>
</p> </p>
<br> <br>
<div class="button"> <div class="button">
......
...@@ -15,10 +15,7 @@ ...@@ -15,10 +15,7 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<div v-show="tabActive === 1 && showTime" class="time" ref="timeRef"> <div v-show="tabActive === 1 && showTime" class="time" ref="timeRef">{{showTime}}</div>
{{showTime}}
</div>
<div v-if="showUpperLevel" @click="changeUpperLevel" class="upper-level">上一级</div> <div v-if="showUpperLevel" @click="changeUpperLevel" class="upper-level">上一级</div>
<ModelArea <ModelArea
:userInfo="userInfo" :userInfo="userInfo"
...@@ -58,15 +55,6 @@ ...@@ -58,15 +55,6 @@
<span @click="clickTab(2)" <span @click="clickTab(2)"
:class="{active : tabActive === 2 }" :class="{active : tabActive === 2 }"
class="month">月通报</span> class="month">月通报</span>
<div @click.prevent.stop="boreShow "
class="bore"
>
<span class="caliber">口径</span>
<span class="question"> ? </span>
<Popup @hide="hidePop"
v-if="popObjMouth.visable"
:obj="popObjMouth"></Popup>
</div>
</div> </div>
<div ref="kpiRef" class="kpis"> <div ref="kpiRef" class="kpis">
<div class="kpi" :style="{width: kpiWidth}"> <div class="kpi" :style="{width: kpiWidth}">
...@@ -157,7 +145,6 @@ ...@@ -157,7 +145,6 @@
import SelectArea from "com/app/add/selectArea.vue"; import SelectArea from "com/app/add/selectArea.vue";
import selectDate from "com/app/add/selectDate.vue"; import selectDate from "com/app/add/selectDate.vue";
import commonMixin from "mixins/common/common.js"; import commonMixin from "mixins/common/common.js";
import Popup from "com/app/common/popup.vue";
const REAL_TIME = 1, const REAL_TIME = 1,
MONTH = 2; MONTH = 2;
...@@ -166,8 +153,7 @@ ...@@ -166,8 +153,7 @@
ModelArea, ModelArea,
ModelDate, ModelDate,
SelectArea, SelectArea,
selectDate, selectDate
Popup
}, },
mixins: [commonMixin], mixins: [commonMixin],
computed: { computed: {
...@@ -265,19 +251,7 @@ ...@@ -265,19 +251,7 @@
kpiListOrigin: [], kpiListOrigin: [],
currentKpiCode: "", currentKpiCode: "",
changeUpperLevelIng: false, changeUpperLevelIng: false,
changeCacheFlag: false, changeCacheFlag: false
popObjMouth: {
//口径的数据
title: "",
ind_unit: "元",
remark: "",
top: "0.5rem",
right: "-0.2rem",
topRight: "0.15rem",
visable: false,
type: 1,
activeIndex: '' // 当前激活
},
}; };
}, },
filters: { filters: {
...@@ -291,19 +265,6 @@ ...@@ -291,19 +265,6 @@
} }
}, },
methods: { methods: {
hidePop(type) {
this.popObjMouth.visable = false;
this.popObjMouth.remark = "";
},
boreShow() {
// console.log(this.activeKpiItem)
this.popObjMouth.remark = this.activeKpiItem.remarks;
if (this.popObjMouth.remark) {
this.popObjMouth.visable = true;
} else {
Toast("该指标下没有口径说明 !");
}
},
changeUpperLevel() { changeUpperLevel() {
this.changeUpperLevelIng = true; this.changeUpperLevelIng = true;
let length = this.cacheList.length; let length = this.cacheList.length;
...@@ -907,6 +868,7 @@ ...@@ -907,6 +868,7 @@
.time { .time {
height: 0.4rem; height: 0.4rem;
// padding: 0.1rem 0;
padding-left: 2.5rem; padding-left: 2.5rem;
font-size: 0.26rem; font-size: 0.26rem;
color: #fff; color: #fff;
...@@ -957,7 +919,6 @@ ...@@ -957,7 +919,6 @@
font-size: 0.28rem; font-size: 0.28rem;
text-align: center; text-align: center;
/*padding-left: 1.8rem;*/ /*padding-left: 1.8rem;*/
position: relative;
.day, .day,
.month { .month {
...@@ -976,27 +937,6 @@ ...@@ -976,27 +937,6 @@
background-color: #2b90fa; background-color: #2b90fa;
color: #fff; color: #fff;
} }
.bore {
position: absolute;
top: 0.3rem;
right: .35rem;
height: 0.5rem;
color: #999;
.question {
display: inline-block;
width: 0.2rem;
height: 0.2rem;
overflow: hidden;
line-height: 0.2rem;
border-radius: 50%;
color: #999;
text-align: center;
border: 1px solid #999;
}
}
} }
.bg { .bg {
...@@ -1191,6 +1131,5 @@ ...@@ -1191,6 +1131,5 @@
.stars { .stars {
width: 0.4rem; width: 0.4rem;
} }
} }
</style> </style>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<script> <script>
import { Indicator, Toast } from 'mint-ui'; import { Indicator, Toast } from 'mint-ui';
import { formatDateTime, formatDateTimeReg } from "libs/common/common"; import { formatDateTime, formatDateTimeReg } from "libs/common/common";
import ModelArea from "com/app/index/area.vue"; import ModelArea from "com/app/gridMarketing/area.vue";
import ModelDate from "com/app/appUsage/appModelDate.vue"; import ModelDate from "com/app/appUsage/appModelDate.vue";
import CategoryPicker from "com/app/index/categoryPicker.vue"; import CategoryPicker from "com/app/index/categoryPicker.vue";
// import Broadcast from "com/app/index/broadcast.vue"; // import Broadcast from "com/app/index/broadcast.vue";
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<script> <script>
import {Indicator, Toast} from 'mint-ui'; import {Indicator, Toast} from 'mint-ui';
import {formatDateTime, formatDateTimeReg, getTextWidth} from "libs/common/common"; import {formatDateTime, formatDateTimeReg, getTextWidth} from "libs/common/common";
import ModelArea from "com/app/index/area.vue"; import ModelArea from "com/app/gridMarketing/area.vue";
import ModelDate from "com/app/appUsage/appModelDate.vue"; import ModelDate from "com/app/appUsage/appModelDate.vue";
import CategoryPicker from "com/app/index/categoryPicker.vue"; import CategoryPicker from "com/app/index/categoryPicker.vue";
import Popup from "com/app/common/popup.vue"; import Popup from "com/app/common/popup.vue";
......
...@@ -59,10 +59,10 @@ export default { ...@@ -59,10 +59,10 @@ export default {
newHref += i + '=' + query[i] + '&'; newHref += i + '=' + query[i] + '&';
} }
} }
// let newHref = 'https://emm.cmccbigdata.com:8443/cscm/pages/home?' // let newHref = 'http://172.168.20.37:8888/cscm/pages/home?'
console.log('newHref :', newHref) console.log('newHref :', newHref)
// https://emm.cmccbigdata.com:8443/cscm/pages/home?id=OCxusheng1&phone=13873110056&level=1&areaId=731&aid=18411&area=A_%E9%95%BF%E6%B2%99&xid=633f47589186780e4d534ef743915005&token=b43eb37f48ec38054507cb0695a3787f&ua=pc& // http://172.168.20.37:8888/cscm/pages/home?id=OCxusheng1&phone=13873110056&level=1&areaId=731&aid=18411&area=A_%E9%95%BF%E6%B2%99&xid=633f47589186780e4d534ef743915005&token=b43eb37f48ec38054507cb0695a3787f&ua=pc&
if (query.ua === 'android') { if (query.ua === 'android') {
emm.openWebView(newHref) emm.openWebView(newHref)
} else if (query.ua === 'ios') { } else if (query.ua === 'ios') {
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
if (data === null) return if (data === null) return
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const d = data[i]; const d = data[i];
d.imgUrl = 'https://emm.cmccbigdata.com:8443/work/' + d.imagePath d.imgUrl = 'http://172.168.20.37:8888/work/' + d.imagePath
} }
this.list = data this.list = data
if (!this.list.length) { if (!this.list.length) {
......
...@@ -269,6 +269,8 @@ export default { ...@@ -269,6 +269,8 @@ export default {
} }
}, },
applicationClick(applicationItem, url, index) { applicationClick(applicationItem, url, index) {
// applicationItem.pack = String(applicationItem.pack).replace("https://emm.cmccbigdata.com:8443", "http://172.168.20.37:8888");
// applicationItem.pack = applicationItem.pack.replace("file/order", "file/order1");
let href = applicationItem.pack + '?' let href = applicationItem.pack + '?'
const query = this.$route.query const query = this.$route.query
for (let i in query) { for (let i in query) {
...@@ -323,8 +325,8 @@ export default { ...@@ -323,8 +325,8 @@ export default {
// this.applicationList = data.applications // this.applicationList = data.applications
this.applicationList = data this.applicationList = data
this.applicationList.forEach(e => { this.applicationList.forEach(e => {
// https://emm.cmccbigdata.com:8443/file/1530357218832.png // http://172.168.20.37:8888/file/1530357218832.png
e.icon = "https://emm.cmccbigdata.com:8443/file/" + e.icon e.icon = "http://172.168.20.37:8888/file/" + e.icon
}); });
}, },
async getAdvertList() { async getAdvertList() {
...@@ -336,8 +338,8 @@ export default { ...@@ -336,8 +338,8 @@ export default {
// console.log('data advertList:', data) // console.log('data advertList:', data)
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const d = data[i]; const d = data[i];
if (d.filePath) d.filePath = 'https://emm.cmccbigdata.com:8443/work/' + d.filePath if (d.filePath) d.filePath = 'http://172.168.20.37:8888/work/' + d.filePath
d.imagePath = 'https://emm.cmccbigdata.com:8443/work/' + d.imagePath d.imagePath = 'http://172.168.20.37:8888/work/' + d.imagePath
} }
data.sort((a, b) => { data.sort((a, b) => {
return a.pos - b.pos return a.pos - b.pos
...@@ -367,7 +369,7 @@ export default { ...@@ -367,7 +369,7 @@ export default {
doc.imgUrl = require("../../assets/app/workbench/pdf.png") doc.imgUrl = require("../../assets/app/workbench/pdf.png")
// doc.createdTime = this.formatTime(doc.createdTime) // doc.createdTime = this.formatTime(doc.createdTime)
doc.createdTime = doc.createdTime.slice(0, 10) doc.createdTime = doc.createdTime.slice(0, 10)
doc.filePath = 'https://emm.cmccbigdata.com:8443/work/' + doc.filePath doc.filePath = 'http://172.168.20.37:8888/work/' + doc.filePath
} }
data.sort((a, b) => { data.sort((a, b) => {
return b.id - a.id return b.id - a.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment