|
@@ -702,10 +702,17 @@
|
|
|
><span class="colorbalck">({{ reportTargetAll.allShopYearRate }}%)</span>
|
|
><span class="colorbalck">({{ reportTargetAll.allShopYearRate }}%)</span>
|
|
|
</p>
|
|
</p>
|
|
|
</van-col>
|
|
</van-col>
|
|
|
- <!-- <van-col span="12" ><p>调色机上传数:{{ Micrometer(reportTargetAll.tsjUploadYearAct) }}</p></van-col>-->
|
|
|
|
|
- <!-- <van-col span="12">-->
|
|
|
|
|
- <!-- <p>调色机上传数:<span class="colorbalck">{{ Micrometer(reportTargetAll.tsjUploadYearTarget) }}</span><span class="colorbalck">({{ reportTargetAll.tsjUploadYearRate }}%)</span></p>-->
|
|
|
|
|
- <!-- </van-col>-->
|
|
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>调色机上传数:{{ Micrometer(reportTargetAll.tsjUploadYearAct) }}</p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12">
|
|
|
|
|
+ <p>
|
|
|
|
|
+ 调色机上传数:<span class="colorbalck">{{
|
|
|
|
|
+ Micrometer(reportTargetAll.tsjUploadYearTarget)
|
|
|
|
|
+ }}</span
|
|
|
|
|
+ ><span class="colorbalck">({{ reportTargetAll.tsjUploadYearRate }}%)</span>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </van-col>
|
|
|
<van-col span="24" v-if="powerGrade == 1"
|
|
<van-col span="24" v-if="powerGrade == 1"
|
|
|
><p>涂料店点数:{{ Micrometer(reportTargetAll.tlShopYearAct) }}</p></van-col
|
|
><p>涂料店点数:{{ Micrometer(reportTargetAll.tlShopYearAct) }}</p></van-col
|
|
|
>
|
|
>
|
|
@@ -1081,6 +1088,82 @@
|
|
|
</div>
|
|
</div>
|
|
|
</van-collapse>
|
|
</van-collapse>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 经销商负责人 查看下属 -->
|
|
|
|
|
+ <div v-if="tabVal == 1 && type == 4" class="container linep">
|
|
|
|
|
+ <van-collapse v-model="activeNames" v-if="reportInfoData.customerUserTargets">
|
|
|
|
|
+ <van-collapse-item
|
|
|
|
|
+ :name="index + ''"
|
|
|
|
|
+ :title="item.nickName"
|
|
|
|
|
+ v-for="(item, index) in reportInfoData.customerUserTargets"
|
|
|
|
|
+ :key="index">
|
|
|
|
|
+ <van-row>
|
|
|
|
|
+ <van-col span="24"
|
|
|
|
|
+ ><p class="indexTile" style="margin-top: -2px">
|
|
|
|
|
+ <van-icon :name="bfindex" class="indexicon"></van-icon>拜访
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="leftTitle">本日实际</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="rightTitle">本月实际</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 拜访点数:<span class="colorbalck">{{ Micrometer(item.dayVisitCount) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 拜访点数:<span class="colorbalck">{{ Micrometer(item.monthVisitCount) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="24"
|
|
|
|
|
+ ><p class="indexTile">
|
|
|
|
|
+ <van-icon :name="storeindex" class="indexicon"></van-icon>建店
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="leftTitle">本日新增</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="rightTitle">本月实际</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 分销店点数:<span class="colorbalck">{{ Micrometer(item.dayFxdAct) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 分销店点数:<span class="colorbalck">{{ Micrometer(item.monthFxdAct) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="24"
|
|
|
|
|
+ ><p class="indexTile">
|
|
|
|
|
+ <van-icon :name="oderindex" class="indexicon"></van-icon>下单
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="leftTitle">昨日新增</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p><span class="rightTitle">本月实际</span></p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 下单点数:<span class="colorbalck">{{ Micrometer(item.yesOrderAct) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ <van-col span="12"
|
|
|
|
|
+ ><p>
|
|
|
|
|
+ 下单点数:<span class="colorbalck">{{ Micrometer(item.monthOrderAct) }}</span>
|
|
|
|
|
+ </p></van-col
|
|
|
|
|
+ >
|
|
|
|
|
+ </van-row>
|
|
|
|
|
+ </van-collapse-item>
|
|
|
|
|
+ </van-collapse>
|
|
|
|
|
+ </div>
|
|
|
<div style="color: #999; font-size: 12px; margin: 0 10px">
|
|
<div style="color: #999; font-size: 12px; margin: 0 10px">
|
|
|
<!-- 昨日新增的数据统一在上午9点更新.-->
|
|
<!-- 昨日新增的数据统一在上午9点更新.-->
|
|
|
<span v-if="reportInfoData.newUser"
|
|
<span v-if="reportInfoData.newUser"
|
|
@@ -1190,9 +1273,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import history from "@/assets/Icon/history.png";
|
|
|
|
|
-import tabBar from "@/components/tabBar";
|
|
|
|
|
-import times from "@/assets/Icon/times.png";
|
|
|
|
|
|
|
+import history from '@/assets/Icon/history.png';
|
|
|
|
|
+import tabBar from '@/components/tabBar';
|
|
|
|
|
+import times from '@/assets/Icon/times.png';
|
|
|
import {
|
|
import {
|
|
|
userTodayPlanNum,
|
|
userTodayPlanNum,
|
|
|
loginLog,
|
|
loginLog,
|
|
@@ -1203,10 +1286,10 @@ import {
|
|
|
mobileReposition,
|
|
mobileReposition,
|
|
|
applyNumber,
|
|
applyNumber,
|
|
|
joinInPlan,
|
|
joinInPlan,
|
|
|
-} from "@/api/index";
|
|
|
|
|
-import axios from "axios";
|
|
|
|
|
|
|
+} from '@/api/index';
|
|
|
|
|
+import axios from 'axios';
|
|
|
export default {
|
|
export default {
|
|
|
- name: "home",
|
|
|
|
|
|
|
+ name: 'home',
|
|
|
components: { tabBar },
|
|
components: { tabBar },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -1216,55 +1299,55 @@ export default {
|
|
|
timeimg: times,
|
|
timeimg: times,
|
|
|
todayGoal: {},
|
|
todayGoal: {},
|
|
|
progressWidth: 0,
|
|
progressWidth: 0,
|
|
|
- updataTime: "",
|
|
|
|
|
|
|
+ updataTime: '',
|
|
|
customerClueButton: false,
|
|
customerClueButton: false,
|
|
|
- saptitle: "业绩目标SAP(千元)",
|
|
|
|
|
|
|
+ saptitle: '业绩目标SAP(千元)',
|
|
|
history: history,
|
|
history: history,
|
|
|
activeNames: [
|
|
activeNames: [
|
|
|
- "1",
|
|
|
|
|
- "2",
|
|
|
|
|
- "3",
|
|
|
|
|
- "4",
|
|
|
|
|
- "5",
|
|
|
|
|
- "6",
|
|
|
|
|
- "7",
|
|
|
|
|
- "8",
|
|
|
|
|
- "10",
|
|
|
|
|
- "11",
|
|
|
|
|
- "12",
|
|
|
|
|
- "16",
|
|
|
|
|
- "17",
|
|
|
|
|
- "20",
|
|
|
|
|
- "21",
|
|
|
|
|
- "22",
|
|
|
|
|
- "23",
|
|
|
|
|
- "24",
|
|
|
|
|
- "25",
|
|
|
|
|
- "26",
|
|
|
|
|
- "27",
|
|
|
|
|
- "28",
|
|
|
|
|
- "29",
|
|
|
|
|
- "30",
|
|
|
|
|
- "31",
|
|
|
|
|
- "32",
|
|
|
|
|
- "33",
|
|
|
|
|
- "34",
|
|
|
|
|
- "35",
|
|
|
|
|
- "36",
|
|
|
|
|
- "37",
|
|
|
|
|
- "38",
|
|
|
|
|
- "39",
|
|
|
|
|
- "40",
|
|
|
|
|
- "41",
|
|
|
|
|
- "42",
|
|
|
|
|
- "43",
|
|
|
|
|
|
|
+ '1',
|
|
|
|
|
+ '2',
|
|
|
|
|
+ '3',
|
|
|
|
|
+ '4',
|
|
|
|
|
+ '5',
|
|
|
|
|
+ '6',
|
|
|
|
|
+ '7',
|
|
|
|
|
+ '8',
|
|
|
|
|
+ '10',
|
|
|
|
|
+ '11',
|
|
|
|
|
+ '12',
|
|
|
|
|
+ '16',
|
|
|
|
|
+ '17',
|
|
|
|
|
+ '20',
|
|
|
|
|
+ '21',
|
|
|
|
|
+ '22',
|
|
|
|
|
+ '23',
|
|
|
|
|
+ '24',
|
|
|
|
|
+ '25',
|
|
|
|
|
+ '26',
|
|
|
|
|
+ '27',
|
|
|
|
|
+ '28',
|
|
|
|
|
+ '29',
|
|
|
|
|
+ '30',
|
|
|
|
|
+ '31',
|
|
|
|
|
+ '32',
|
|
|
|
|
+ '33',
|
|
|
|
|
+ '34',
|
|
|
|
|
+ '35',
|
|
|
|
|
+ '36',
|
|
|
|
|
+ '37',
|
|
|
|
|
+ '38',
|
|
|
|
|
+ '39',
|
|
|
|
|
+ '40',
|
|
|
|
|
+ '41',
|
|
|
|
|
+ '42',
|
|
|
|
|
+ '43',
|
|
|
],
|
|
],
|
|
|
activeNameType: [],
|
|
activeNameType: [],
|
|
|
powerGradeShow: false,
|
|
powerGradeShow: false,
|
|
|
showButton: false,
|
|
showButton: false,
|
|
|
isCommit: null,
|
|
isCommit: null,
|
|
|
- powerGrade: "2",
|
|
|
|
|
- deptLevel: "",
|
|
|
|
|
|
|
+ powerGrade: '2',
|
|
|
|
|
+ deptLevel: '',
|
|
|
// positionId:等级(1-销售员 2-销售部主管 3-大区主管 4-区域公司总经理 5-DIY公司)
|
|
// positionId:等级(1-销售员 2-销售部主管 3-大区主管 4-区域公司总经理 5-DIY公司)
|
|
|
reportTargetAll: {},
|
|
reportTargetAll: {},
|
|
|
approvalPendingNum: 0,
|
|
approvalPendingNum: 0,
|
|
@@ -1272,11 +1355,11 @@ export default {
|
|
|
approvalButton: false,
|
|
approvalButton: false,
|
|
|
times: 5,
|
|
times: 5,
|
|
|
timer: null,
|
|
timer: null,
|
|
|
- type: "-1",
|
|
|
|
|
|
|
+ type: '-1',
|
|
|
monthNoVisit: {},
|
|
monthNoVisit: {},
|
|
|
flag: true,
|
|
flag: true,
|
|
|
reportInfoData: {},
|
|
reportInfoData: {},
|
|
|
- applyNumber: "",
|
|
|
|
|
|
|
+ applyNumber: '',
|
|
|
proccessPendingNum: 0,
|
|
proccessPendingNum: 0,
|
|
|
JZQuota: false,
|
|
JZQuota: false,
|
|
|
GZdata: false,
|
|
GZdata: false,
|
|
@@ -1290,8 +1373,8 @@ export default {
|
|
|
this.timeFn();
|
|
this.timeFn();
|
|
|
this.userTodayPlanNum();
|
|
this.userTodayPlanNum();
|
|
|
if (
|
|
if (
|
|
|
- localStorage.getItem("shows") == "false" ||
|
|
|
|
|
- new Date("2023/05/04 23:59:59").getTime() < new Date().getTime()
|
|
|
|
|
|
|
+ localStorage.getItem('shows') == 'false' ||
|
|
|
|
|
+ new Date('2023/05/04 23:59:59').getTime() < new Date().getTime()
|
|
|
) {
|
|
) {
|
|
|
this.shows = false;
|
|
this.shows = false;
|
|
|
} else {
|
|
} else {
|
|
@@ -1300,7 +1383,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
$route(to, from) {
|
|
$route(to, from) {
|
|
|
- if (to.path == "/home") {
|
|
|
|
|
|
|
+ if (to.path == '/home') {
|
|
|
this.num = 0;
|
|
this.num = 0;
|
|
|
this.userTodayPlanNum();
|
|
this.userTodayPlanNum();
|
|
|
this.loginLogFn();
|
|
this.loginLogFn();
|
|
@@ -1312,7 +1395,7 @@ export default {
|
|
|
storeJoinVisit(val) {
|
|
storeJoinVisit(val) {
|
|
|
joinInPlan({ storeId: val.storeId }).then((res) => {
|
|
joinInPlan({ storeId: val.storeId }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- this.$toast.success("加入成功");
|
|
|
|
|
|
|
+ this.$toast.success('加入成功');
|
|
|
} else {
|
|
} else {
|
|
|
this.$toast(res.msg);
|
|
this.$toast(res.msg);
|
|
|
}
|
|
}
|
|
@@ -1325,7 +1408,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
titleconfirm() {
|
|
titleconfirm() {
|
|
|
this.shows = false;
|
|
this.shows = false;
|
|
|
- localStorage.setItem("shows", false);
|
|
|
|
|
|
|
+ localStorage.setItem('shows', false);
|
|
|
},
|
|
},
|
|
|
timeFn() {
|
|
timeFn() {
|
|
|
var t = 5;
|
|
var t = 5;
|
|
@@ -1340,29 +1423,29 @@ export default {
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
},
|
|
},
|
|
|
dailyLinks() {
|
|
dailyLinks() {
|
|
|
- this.$router.push("/myHistoricalDaily");
|
|
|
|
|
|
|
+ this.$router.push('/myHistoricalDaily');
|
|
|
},
|
|
},
|
|
|
getReportInfo() {
|
|
getReportInfo() {
|
|
|
let loading1 = this.$toast.loading({
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
duration: 0,
|
|
|
- message: "加载中...",
|
|
|
|
|
|
|
+ message: '加载中...',
|
|
|
forbidClick: true,
|
|
forbidClick: true,
|
|
|
});
|
|
});
|
|
|
getReportInfo({ isContent: false }).then((res) => {
|
|
getReportInfo({ isContent: false }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- if (res.data.postType == "GZ") {
|
|
|
|
|
|
|
+ if (res.data.postType == 'GZ') {
|
|
|
this.GZdata = true;
|
|
this.GZdata = true;
|
|
|
- this.saptitle = "公裝业绩SAP(千元)";
|
|
|
|
|
|
|
+ this.saptitle = '公裝业绩SAP(千元)';
|
|
|
} else {
|
|
} else {
|
|
|
- this.saptitle = "业绩目标SAP(千元)";
|
|
|
|
|
|
|
+ this.saptitle = '业绩目标SAP(千元)';
|
|
|
this.GZdata = false;
|
|
this.GZdata = false;
|
|
|
}
|
|
}
|
|
|
loading1.clear();
|
|
loading1.clear();
|
|
|
- localStorage.setItem("powerGrade", res.data.positionId);
|
|
|
|
|
- localStorage.setItem("isDiy", res.data.diy);
|
|
|
|
|
- localStorage.setItem("uType", res.data.userType);
|
|
|
|
|
- localStorage.setItem("jzType", res.data.jzType);
|
|
|
|
|
- localStorage.setItem("customerVisits", res.data.customerManagerVisits);
|
|
|
|
|
|
|
+ localStorage.setItem('powerGrade', res.data.positionId);
|
|
|
|
|
+ localStorage.setItem('isDiy', res.data.diy);
|
|
|
|
|
+ localStorage.setItem('uType', res.data.userType);
|
|
|
|
|
+ localStorage.setItem('jzType', res.data.jzType);
|
|
|
|
|
+ localStorage.setItem('customerVisits', res.data.customerManagerVisits);
|
|
|
this.isDiy = res.data.diy;
|
|
this.isDiy = res.data.diy;
|
|
|
this.proccessPendingNum = res.data.proccessPendingNum;
|
|
this.proccessPendingNum = res.data.proccessPendingNum;
|
|
|
this.reportInfoData = res.data;
|
|
this.reportInfoData = res.data;
|
|
@@ -1370,61 +1453,64 @@ export default {
|
|
|
this.powerGrade = res.data.positionId;
|
|
this.powerGrade = res.data.positionId;
|
|
|
this.showButton = res.data.showButton;
|
|
this.showButton = res.data.showButton;
|
|
|
this.deptLevel = res.data.deptLevel;
|
|
this.deptLevel = res.data.deptLevel;
|
|
|
- if (res.data.postType == "JZ") {
|
|
|
|
|
|
|
+ if (res.data.postType == 'JZ') {
|
|
|
this.JZQuota = true;
|
|
this.JZQuota = true;
|
|
|
} else {
|
|
} else {
|
|
|
this.JZQuota = false;
|
|
this.JZQuota = false;
|
|
|
}
|
|
}
|
|
|
- localStorage.setItem("postType", res.data.postType);
|
|
|
|
|
|
|
+ localStorage.setItem('postType', res.data.postType);
|
|
|
if (res.data.reportTargetAll != null) {
|
|
if (res.data.reportTargetAll != null) {
|
|
|
this.reportTargetAll = res.data.reportTargetAll;
|
|
this.reportTargetAll = res.data.reportTargetAll;
|
|
|
this.updataTime = res.data.reportTargetAll.updateTime;
|
|
this.updataTime = res.data.reportTargetAll.updateTime;
|
|
|
}
|
|
}
|
|
|
this.approvalPendingNum = res.data.approvalPendingNum;
|
|
this.approvalPendingNum = res.data.approvalPendingNum;
|
|
|
this.type = res.data.userType;
|
|
this.type = res.data.userType;
|
|
|
|
|
+ if (res.data.userType == 4) {
|
|
|
|
|
+ this.tabVal = '1';
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.$toast(res.msg);
|
|
this.$toast(res.msg);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
dailyLink() {
|
|
dailyLink() {
|
|
|
- this.$router.push("/daily");
|
|
|
|
|
|
|
+ this.$router.push('/daily');
|
|
|
},
|
|
},
|
|
|
weeklyLink() {
|
|
weeklyLink() {
|
|
|
- this.$router.push("/weekly");
|
|
|
|
|
|
|
+ this.$router.push('/weekly');
|
|
|
},
|
|
},
|
|
|
doubleWeeklyLink() {
|
|
doubleWeeklyLink() {
|
|
|
- this.$router.push("/doubleWeekly");
|
|
|
|
|
|
|
+ this.$router.push('/doubleWeekly');
|
|
|
},
|
|
},
|
|
|
login() {
|
|
login() {
|
|
|
if (this.num > 4) {
|
|
if (this.num > 4) {
|
|
|
- this.$router.push("/login");
|
|
|
|
|
|
|
+ this.$router.push('/login');
|
|
|
} else {
|
|
} else {
|
|
|
this.num = this.num + 1;
|
|
this.num = this.num + 1;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
userTodayPlanNum() {
|
|
userTodayPlanNum() {
|
|
|
- localStorage.setItem("outvstoreName", "");
|
|
|
|
|
- localStorage.setItem("outvchainName", "");
|
|
|
|
|
- localStorage.removeItem("outvstoreLabelTypes");
|
|
|
|
|
- localStorage.removeItem("outvstoreCategoryList");
|
|
|
|
|
- localStorage.setItem("outvchainCode", "");
|
|
|
|
|
- localStorage.setItem("outvstoreName", "");
|
|
|
|
|
- localStorage.setItem("deviveStoreName", "");
|
|
|
|
|
- localStorage.setItem("outvsortType", "");
|
|
|
|
|
- localStorage.setItem("outsortParam", "");
|
|
|
|
|
- localStorage.setItem("lat", "");
|
|
|
|
|
- localStorage.setItem("lon", "");
|
|
|
|
|
|
|
+ localStorage.setItem('outvstoreName', '');
|
|
|
|
|
+ localStorage.setItem('outvchainName', '');
|
|
|
|
|
+ localStorage.removeItem('outvstoreLabelTypes');
|
|
|
|
|
+ localStorage.removeItem('outvstoreCategoryList');
|
|
|
|
|
+ localStorage.setItem('outvchainCode', '');
|
|
|
|
|
+ localStorage.setItem('outvstoreName', '');
|
|
|
|
|
+ localStorage.setItem('deviveStoreName', '');
|
|
|
|
|
+ localStorage.setItem('outvsortType', '');
|
|
|
|
|
+ localStorage.setItem('outsortParam', '');
|
|
|
|
|
+ localStorage.setItem('lat', '');
|
|
|
|
|
+ localStorage.setItem('lon', '');
|
|
|
userTodayPlanNum().then((res) => {
|
|
userTodayPlanNum().then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.todayGoal = res.data;
|
|
this.todayGoal = res.data;
|
|
|
- this.progressWidth = (this.todayGoal.finishNum / this.todayGoal.planNum) * 100 + "%";
|
|
|
|
|
- localStorage.setItem("nickName", res.data.user.nickName);
|
|
|
|
|
- localStorage.setItem("postName", res.data.user.postName);
|
|
|
|
|
- localStorage.setItem("zipPhoto", res.data.zipPhoto);
|
|
|
|
|
- localStorage.setItem("storeType", res.data.user.type);
|
|
|
|
|
- localStorage.setItem("deptLevel", res.data.user.depts[0].deptLevel);
|
|
|
|
|
- localStorage.setItem("userId", res.data.user.userId);
|
|
|
|
|
|
|
+ this.progressWidth = (this.todayGoal.finishNum / this.todayGoal.planNum) * 100 + '%';
|
|
|
|
|
+ localStorage.setItem('nickName', res.data.user.nickName);
|
|
|
|
|
+ localStorage.setItem('postName', res.data.user.postName);
|
|
|
|
|
+ localStorage.setItem('zipPhoto', res.data.zipPhoto);
|
|
|
|
|
+ localStorage.setItem('storeType', res.data.user.type);
|
|
|
|
|
+ localStorage.setItem('deptLevel', res.data.user.depts[0].deptLevel);
|
|
|
|
|
+ localStorage.setItem('userId', res.data.user.userId);
|
|
|
this.monthNoVisit = res.data.monthNoVisit;
|
|
this.monthNoVisit = res.data.monthNoVisit;
|
|
|
} else {
|
|
} else {
|
|
|
this.$toast(res.msg);
|
|
this.$toast(res.msg);
|
|
@@ -1433,21 +1519,21 @@ export default {
|
|
|
},
|
|
},
|
|
|
loginLogFn() {
|
|
loginLogFn() {
|
|
|
var appVersion = navigator.appVersion;
|
|
var appVersion = navigator.appVersion;
|
|
|
- var Logapp = appVersion.split("(")[1].split(";");
|
|
|
|
|
- var arrLog = "";
|
|
|
|
|
- if (Logapp[0] == "Linux") {
|
|
|
|
|
|
|
+ var Logapp = appVersion.split('(')[1].split(';');
|
|
|
|
|
+ var arrLog = '';
|
|
|
|
|
+ if (Logapp[0] == 'Linux') {
|
|
|
arrLog = {
|
|
arrLog = {
|
|
|
browser: navigator.appCodeName,
|
|
browser: navigator.appCodeName,
|
|
|
os: Logapp[1],
|
|
os: Logapp[1],
|
|
|
- phoneBrand: Logapp[2].split("/")[1],
|
|
|
|
|
- phoneModel: Logapp[2].split("/")[0],
|
|
|
|
|
|
|
+ phoneBrand: Logapp[2].split('/')[1],
|
|
|
|
|
+ phoneModel: Logapp[2].split('/')[0],
|
|
|
};
|
|
};
|
|
|
} else {
|
|
} else {
|
|
|
arrLog = {
|
|
arrLog = {
|
|
|
browser: navigator.appCodeName,
|
|
browser: navigator.appCodeName,
|
|
|
os: Logapp[0],
|
|
os: Logapp[0],
|
|
|
- phoneBrand: "",
|
|
|
|
|
- phoneModel: "",
|
|
|
|
|
|
|
+ phoneBrand: '',
|
|
|
|
|
+ phoneModel: '',
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
loginLog(arrLog);
|
|
loginLog(arrLog);
|