cyl/master-im
wangxia 5 months ago
parent f45a3cda6e
commit f72c676ae9

@ -58,24 +58,14 @@
result: userNum.upNum, result: userNum.upNum,
path: '/root/person/teamManage', path: '/root/person/teamManage',
pRow: 12, pRow: 12,
itype:'icon' itype: 'icon',
}, },
]" ]"
@clickItem="goPage('/root/bind/order?active=0')" @clickItem="goPage('/root/bind/order?active=0')"
/> />
</view> </view>
<view class="g_mt_10"> <view class="g_mt_10">
<g-panel-card-num :list="billDataList" <g-panel-card-num :list="billDataList" titleNav="/root/person/applyIndex" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="报名工单(我报的)" @clickItem="goOrder" />
titleNav="/root/person/applyIndex"
:border="true"
:speed="1"
:marginBottom="16"
cusType="num"
:height="26"
:num="5"
cusTitle="报名工单(我报的)"
@clickItem="goOrder"
/>
<!-- <g-panel-card-num :list="todayDataList" <!-- <g-panel-card-num :list="todayDataList"
titleNav="/root/person/todayData" titleNav="/root/person/todayData"
:border="true" :border="true"
@ -97,7 +87,7 @@
result: agencyInfo.fullName || agencyInfo.agencyName || '设置企业信息', result: agencyInfo.fullName || agencyInfo.agencyName || '设置企业信息',
path: '/root/person/teamManage', path: '/root/person/teamManage',
pRow: 12, pRow: 12,
itype:'icon' itype: 'icon',
}, },
]" ]"
@clickItem="handleClickItem" @clickItem="handleClickItem"
@ -114,7 +104,7 @@
path: '/root/person/set', path: '/root/person/set',
tip: 'set', tip: 'set',
pRow: 12, pRow: 12,
itype:'icon' itype: 'icon',
}, },
]" ]"
@clickItem="goPage('/root/person/set')" @clickItem="goPage('/root/person/set')"
@ -304,26 +294,31 @@ export default {
{ {
name: "审核中", name: "审核中",
num: 0, num: 0,
type: 1,
path: "/root/person/applyIndex?status=1", path: "/root/person/applyIndex?status=1",
}, },
{ {
name: "待接待", name: "待接待",
num: 0, num: 0,
type: 2,
path: "/root/person/applyIndex?status=2", path: "/root/person/applyIndex?status=2",
}, },
{ {
name: "待面试", name: "待面试",
num: 0, num: 0,
type: 3,
path: "/root/person/applyIndex?status=3", path: "/root/person/applyIndex?status=3",
}, },
{ {
name: "待入职", name: "待入职",
num: 0, num: 0,
type: 4,
path: "/root/person/applyIndex?status=4", path: "/root/person/applyIndex?status=4",
}, },
{ {
name: "在职中", name: "在职中",
num: 0, num: 0,
type: 5,
path: "/root/person/applyIndex?status=5", path: "/root/person/applyIndex?status=5",
}, },
], ],
@ -344,7 +339,6 @@ export default {
this.getCompanyInfo(); this.getCompanyInfo();
} }
} else { } else {
that.waitNum_ups = 0; that.waitNum_ups = 0;
that.pageSpeed = 1; that.pageSpeed = 1;
@ -668,69 +662,78 @@ export default {
}, },
getData() { getData() {
let that = this; let that = this;
this.G.Get(this.api.user_dataValue + "?classify=1", { this.G.Get(
classify:1 this.api.user_dataValue + "?classify=1",
}, (res) => { {
console.log("res", res); classify: 1,
if (res) { },
that.map = res; (res) => {
console.log("res", res);
if (res) {
that.map = res;
}
let resdata = res.classify1num;
that.todayDataList = [
{
name: "报名",
num: resdata.signUps || 0,
path: "/root/person/todayData",
},
{
name: "到面",
num: resdata.arrived || 0,
path: "/root/person/todayData",
},
{
name: "通过",
num: resdata.passed || 0,
path: "/root/person/todayData",
},
{
name: "入职",
num: resdata.entry || 0,
path: "/root/person/todayData",
},
{
name: "在职",
num: resdata.obJob || 0,
path: "/root/person/todayData",
},
];
that.billDataList = [
{
name: "审核中",
num: that.map.classify1num.num10 || 0,
type: 1,
path: "/root/person/applyIndex?status=1",
},
{
name: "待接待",
num: that.map.classify1num.num20 || 0,
type: 2,
path: "/root/person/applyIndex?status=2",
},
{
name: "待面试",
num: that.map.classify1num.num25 || 0,
type: 3,
path: "/root/person/applyIndex?status=3",
},
{
name: "待入职",
num: that.map.classify1num.num30 || 0,
type: 4,
path: "/root/person/applyIndex?status=4",
},
{
name: "在职中",
num: that.map.classify1num.num40 || 0,
type: 5,
path: "/root/person/applyIndex?status=5",
},
];
} }
let resdata = res.classify1num; );
that.todayDataList = [
{
name: "报名",
num: resdata.signUps || 0,
path: "/root/person/todayData",
},
{
name: "到面",
num: resdata.arrived || 0,
path: "/root/person/todayData",
},
{
name: "通过",
num: resdata.passed || 0,
path: "/root/person/todayData",
},
{
name: "入职",
num: resdata.entry || 0,
path: "/root/person/todayData",
},
{
name: "在职",
num: resdata.obJob || 0,
path: "/root/person/todayData",
},
];
that.billDataList = [
{
name: "审核中",
num: that.map.classify1num.num10 || 0,
path: "/root/person/applyIndex?status=1",
},
{
name: "待接待",
num: that.map.classify1num.num20 || 0,
path: "/root/person/applyIndex?status=2",
},
{
name: "待面试",
num: that.map.classify1num.num25 || 0,
path: "/root/person/applyIndex?status=3",
},
{
name: "待入职",
num: that.map.classify1num.num30 || 0,
path: "/root/person/applyIndex?status=4",
},
{
name: "在职中",
num: that.map.classify1num.num40 || 0,
path: "/root/person/applyIndex?status=5",
},
];
});
}, },
getCompanyInfo() { getCompanyInfo() {
let that = this; let that = this;
@ -747,7 +750,7 @@ export default {
); );
}, },
getNum() { getNum() {
let that = this; let that = this;
that.G.Get(that.api.bind_getApplyNum, {}, (res) => { that.G.Get(that.api.bind_getApplyNum, {}, (res) => {
console.log("获取待处理数量:", res); console.log("获取待处理数量:", res);
if (res.approvePassHasNotRed > 0) { if (res.approvePassHasNotRed > 0) {
@ -764,20 +767,21 @@ export default {
} }
}); });
}, },
goOrder(){ goOrder(e) {
console.log("e", e);
uni.setStorageSync("applyType", e.item.type);
uni.switchTab({ uni.switchTab({
url: '/pages/workBench/index', url: "/pages/workBench/index",
success: (res) => {}, success: (res) => {},
fail: (res) => {}, fail: (res) => {},
complete: (res) => {}, complete: (res) => {},
}) });
}, },
handleClickNus(){ handleClickNus() {
uni.navigateTo({ uni.navigateTo({
url:'/root/person/todayData' url: "/root/person/todayData",
}) });
} },
}, },
}; };
</script> </script>

@ -164,7 +164,7 @@ export default {
}, },
created() { created() {
let that = this; let that = this;
console.log(12312312312); console.log(12312312312);
}, },
onShow() { onShow() {
let that = this; let that = this;
@ -186,6 +186,11 @@ export default {
that.isLogin = uni.getStorageSync("apply-token") ? true : false; that.isLogin = uni.getStorageSync("apply-token") ? true : false;
console.log("that.isLogin", that.isLogin); console.log("that.isLogin", that.isLogin);
that.loginInfo = uni.getStorageSync("apply-userinfo"); that.loginInfo = uni.getStorageSync("apply-userinfo");
if (uni.getStorageSync("applyType")) {
that.menuActive = uni.getStorageSync("applyType");
uni.removeStorageSync("applyType");
}
if (!that.isLogin) { if (!that.isLogin) {
that.loading = false; that.loading = false;
that.speed = 0; that.speed = 0;

Loading…
Cancel
Save