+
-
{{item.LEAVE_PERSON+"【"+item.DEPARTMENT_NAME+"】"}}
-
{{item.SORTNUM==0 ? '待我处理': proStatus[item.FINANCEPROINST_NEXTID]}}
+
+ {{ item.LEAVE_PERSON + "【" + item.DEPARTMENT_NAME + "】" }}
+
{{ item.SORTNUM == 0
+ ? '待我处理' : proStatus[item.FINANCEPROINST_NEXTID] }}
-
+
+
- {{item.LEAVE_VALUE}}
+ {{ item.LEAVE_VALUE }}
-
+
起止时间:
- {{$util.cutDate(item.LEAVE_STARTDATE,'YYYY.MM.DD')+' - '+$util.cutDate(item.LEAVE_ENDDATE,'YYYY.MM.DD')}}
- {{item.DURATION_DAYS}}天
+ {{ $util.cutDate(item.LEAVE_STARTDATE, 'YYYY.MM.DD') + ' -
+ '+$util.cutDate(item.LEAVE_ENDDATE,'YYYY.MM.DD')}}
+ {{ item.DURATION_DAYS }}天
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6904526..17b096a 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4302,6 +4302,7 @@ export default {
height: 0
},
isScrollLock: false, // 是否锁定页面滚动
+ userInfo: {}
};
},
watch: {
@@ -4310,6 +4311,7 @@ export default {
handler: async function (value) {
let userInfo = uni.getStorageSync("vuex");
userInfo = JSON.parse(userInfo);
+ this.userInfo = userInfo;
if (this.isReturn === true) {
// 无权限就会跳转到无数据的页面
if (
@@ -4355,14 +4357,16 @@ export default {
this.projectWarning = true;
}
- if (
- userInfo.userData.AuthorityInfo[
- "2cf9a69f-fc06-4a1c-a8cb-3f0e914db6b8"
- ] === 1
- ) {
- this.showAi = true;
- // 移除这里的触发,统合到 getData 结束后触发
- }
+ // if (
+ // userInfo.userData.AuthorityInfo[
+ // "2cf9a69f-fc06-4a1c-a8cb-3f0e914db6b8"
+ // ] === 1
+ // ) {
+ // this.showAi = true;
+ // // 移除这里的触发,统合到 getData 结束后触发
+ // }
+
+ this.handleShowAi()
if (!this.isReturn) {
@@ -4464,7 +4468,7 @@ export default {
uni.setStorageSync("festival", this.isShowFestival);
} else {
let isSkip = uni.getStorageSync('isSkip')
- if (!isSkip) {
+ if (!isSkip && this.$store.state.userData) {
this.$util.toNextRoute(
"navigateTo",
`/pages/nationalPage/springTravel?selectType=2`
@@ -4600,15 +4604,8 @@ export default {
) {
this.projectWarning = true;
}
- if (
- userInfo.userData.AuthorityInfo &&
- userInfo.userData.AuthorityInfo[
- "2cf9a69f-fc06-4a1c-a8cb-3f0e914db6b8"
- ] === 1
- ) {
- this.showAi = true;
- // 移除这里的触发,统合到 getData 结束后触发
- }
+
+
//拿到option的值
@@ -4617,6 +4614,10 @@ export default {
if (this.user.Membership_Id) {
await this.getData(option);
}
+
+ // 判断是否显示数智能助手
+ this.handleShowAi()
+
// 判断缓存中是否有位置信息 没有的话 向用户请求 拿到用户当前位置
// 拿到当前位置之后去请求离当前位置最近的服务区 作为第一次进入小程序自动选中的服务区
// 在用户选择服务区之后就会有当前服务区
@@ -4687,6 +4688,35 @@ export default {
methods: {
numeral,
...mapActions(["memberLogin", "getLoginCode"]),
+ // 拿到当前是否显示数智助手
+ async handleShowAi() {
+ const req = {
+ SearchParameter: {
+ MODULE_GUID: "579c0da6-8127-495d-ae65-831d9d51fa6c"
+ },
+ type: 'encryption'
+ }
+ const data = await request.$webPost(
+ "MemberApi/WeChat/GetMODULEList",
+ req
+ );
+ let res = data.Result_Data.List[0]
+ console.log('当前是否显示数智能助手', res);
+ console.log('当前用户', this.userInfo);
+ if (res.MODULE_STATE === 1) {
+ if (
+ this.userInfo.userData.AuthorityInfo &&
+ this.userInfo.userData.AuthorityInfo[
+ "2cf9a69f-fc06-4a1c-a8cb-3f0e914db6b8"
+ ] === 1
+ ) {
+ this.showAi = true;
+ // 移除这里的触发,统合到 getData 结束后触发
+ }
+ } else {
+ this.showAi = false
+ }
+ },
// 切换演示版的显示样式
handleChangeSmallTab() {
if (this.smallTab === 1) {
diff --git a/pages/nationalPage/rankPage.vue b/pages/nationalPage/rankPage.vue
index fb7db56..687a123 100644
--- a/pages/nationalPage/rankPage.vue
+++ b/pages/nationalPage/rankPage.vue
@@ -152,7 +152,7 @@
}}
{{
type === 3 ? "/万辆" : "/万元"
- }}
+ }}
@@ -426,25 +426,13 @@
{{
type === 1
? item.RevenueINC.curYearData
- ? $util.getMoney(
- item.RevenueINC.curYearData / 10000
- )
- : "0.00"
- : type === 2
- ? item.AccountINC.curYearData
- ? $util.getMoney(
- item.AccountINC.curYearData / 10000
- )
- : "0.00"
- : type === 3
- ? item.BayonetINC.curYearData
- ? $util.getMoney(
- item.BayonetINC.curYearData / 10000
- )
- : "0.00"
- : "-"
- }}
-
+ ? item.RevenueINC.curYearData < 100 && item.RevenueINC.curYearData > 0 ? '<100' :
+ $util.getMoney(item.RevenueINC.curYearData / 10000) : "0.00" : type === 2 ?
+ item.AccountINC.curYearData ? item.AccountINC.curYearData < 100 &&
+ item.AccountINC.curYearData > 0 ? '<100' : $util.getMoney(item.AccountINC.curYearData /
+ 10000) : "0.00" : type === 3 ? item.BayonetINC.curYearData ? item.BayonetINC.curYearData <
+ 100 && item.BayonetINC.curYearData > 0 ? '<100' :
+ $util.getMoney(item.BayonetINC.curYearData / 10000) : "0.00" : "-" }}