From 1d7a281463430d91c1ffe0e546d85bbc123d34ef Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Wed, 13 Sep 2023 15:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/job.js | 6 +- src/api/login.js | 3 +- src/api/userinfo.js | 24 +- src/components/FirstJob/components/recommend.vue | 6 +- src/components/FirstJob/detail.vue | 91 +- src/components/FirstJob/joblist.vue | 17 +- src/components/FirstJob/recordBill.vue | 2522 +++++++++-------- src/components/Login/login.vue | 776 +++--- src/components/Login/updatepsw.vue | 299 +- src/components/main/index.vue | 932 +++---- src/components/memberInfo/memberInfo.vue | 413 ++- .../accountsetting/components/boundtel.vue | 99 +- .../userinfo/accountsetting/components/boundwx.vue | 32 +- .../accountsetting/components/loginpsw.vue | 334 ++- src/components/userinfo/accountsetting/inedex.vue | 8 +- .../usercenter/components/dataStatistics.vue | 650 +++++ .../userinfo/usercenter/components/mybill.vue | 2927 ++++++++++---------- .../userinfo/usercenter/components/townsman.vue | 1069 ++++--- src/main-dev.js | 10 + src/router/index.js | 6 + src/style/index.less | 274 +- src/utils/commonUtil.js | 2618 +++++++++-------- src/utils/request.js | 6 +- src/views/main.vue | 19 +- webpack.config.js | 1 + 25 files changed, 7032 insertions(+), 6110 deletions(-) create mode 100644 src/components/userinfo/usercenter/components/dataStatistics.vue diff --git a/src/api/job.js b/src/api/job.js index 0c0f9e5..43fe2f6 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -43,12 +43,10 @@ export function getCityApi(id) { } // 录单报名 export function recordBillApi(data) { - console.log(data); - return request({ url: "/yishoudan/user/apply/order/addByAgency", method: "post", - data, + data:data, headers: { "Content-Type": "application/x-www-form-urlencoded" }, }); } @@ -57,7 +55,7 @@ export function getIdCardInfoApi(data) { return request({ url: "/yishoudan/commons/idCardOcrRecognize", method: "post", - data, + data:setqs(data), headers: { "Content-Type": "multipart/form-data" }, }); } diff --git a/src/api/login.js b/src/api/login.js index 7728ae3..c8d3628 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -39,6 +39,7 @@ export function logoutApi() { export function updatePswApi(data) { return request({ url: "/yishoudan/updatePassword", - data: data, + method:'post', + data: setqs(data), }); } diff --git a/src/api/userinfo.js b/src/api/userinfo.js index 62ae994..60ff2d5 100644 --- a/src/api/userinfo.js +++ b/src/api/userinfo.js @@ -100,7 +100,7 @@ export function setUserTelApi(data) { return request({ url: "/yishoudan/user/changeTel", // method: "post", - data: data, + data: setqs(data), }); } // 账号修改绑定银行卡 @@ -135,7 +135,7 @@ export function uploadUserAvatarApi(data) { url: "/yishoudan/user/changeUserImgsrc", method: "post", headers: { "Content-Type": "multipart/form-data" }, - data: data, + data: setqs(data), // data, }); } @@ -173,7 +173,7 @@ export function updateTownsmanInfoApi(data) { return request({ url: "/user/updateInfo", method: "post", - data: data, + data: setqs(data), }); } // 我的老乡各个状态统计 @@ -181,7 +181,7 @@ export function gettownsManCountApi(data) { return request({ url: "/yishoudan/agency/user/listStatistics", method: "post", - data: data, + data: setqs(data), }); } // 成员管理:获取成员列表 @@ -189,7 +189,7 @@ export function getMemberListApi(data) { return request({ url: "/yishoudan/user/getAgencyCorpUsers", method: "post", - data: data, + data: setqs(data), }); } // 成员管理:删除成员 @@ -197,7 +197,7 @@ export function deleteMemberApi(data) { return request({ url: "/yishoudan/user/delAgencyCorpUser", method: "post", - data: data, + data: setqs(data), }); } @@ -206,6 +206,16 @@ export function addMemberApi(data) { return request({ url: "/yishoudan/user/addAgencyUser", method: "post", - data: data, + data: setqs(data), }); } +// 数据统计列表获取 +export function dataStatisticsListApi(data) { + return request({ + url: "/yishoudan/statistics/agency/team", + method: "post", + // headers: { "Content-Type": "multipart/form-data" }, + data: setqs(data), + // data, + }); +} \ No newline at end of file diff --git a/src/components/FirstJob/components/recommend.vue b/src/components/FirstJob/components/recommend.vue index d2dbefc..badd4da 100644 --- a/src/components/FirstJob/components/recommend.vue +++ b/src/components/FirstJob/components/recommend.vue @@ -108,9 +108,9 @@ export default { this.relationList = disposeJobListData(data.data.recordList) console.log(this.relationList) - this.relationList.forEach((item) => { - item.age = '' - }) + // this.relationList.forEach((item) => { + // item.age = '' + // }) // this.$emit("update:relationList", this.relationList); } catch (error) { console.log(error) diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue index ed2fa3b..33a111d 100644 --- a/src/components/FirstJob/detail.vue +++ b/src/components/FirstJob/detail.vue @@ -209,7 +209,7 @@
- +
@@ -565,7 +565,7 @@
其他信息
{{ jobDetail.otherInfo || "-" }}
--> -
+
对接信息
@@ -578,12 +578,12 @@ 宿舍地址 - {{jobPoses.room.posContent ? jobPoses.room.posContent : '-'}} + {{jobPoses.room.posContent ? jobPoses.room.posContent : '-'}} - + 面试说明 {{jobDetail.interviewDesp || '-'}} @@ -605,19 +605,19 @@ - +
-
+ - 代理利润 + 服务费详情 {{ jobDetail.agencyProfit || "-" }} - 出名单 + +
账单日
+
{{'(出名单时间)'}}
+
{{ jobDetail.outListTime || "-" }}
- 结算时间 + +
结算日
+
{{'(结算时间)'}}
+
{{ jobDetail.settlementTime || "-" }}
@@ -709,11 +715,39 @@ import { disposeJobListData, getSalaryClassifyValue } from '../../utils/commonUt import recommend from '../../components/FirstJob/components/recommend.vue' import { nationlist } from '../../utils/datalist' import 'swiper/dist/css/swiper.css' +import Vue from 'vue' +import Viewer from 'v-viewer' +import 'viewerjs/dist/viewer.css' import swiper from 'swiper' import GDMap from '../map.vue' // import recordbill from "@/components/FirstJob/components/recordbill.vue"; import Clipboard from 'clipboard' // import map from '../map.vue' +Vue.use(Viewer, { + defaultOptions: { + // 需要配置的属性 + toolbar: { + zoomIn: true, + zoomOut: true, + oneToOne: false, + reset: false, + prev: true, + play: { + show: true, + size: 'large', + }, + next: true, + rotateLeft: true, + rotateRight: true, + flipHorizontal: false, + flipVertical: false, + }, + title: false, + navbar: false, + initialViewIndex: 1, + isMeetting: false, + }, +}) export default { // 组件名称 name: '', @@ -744,6 +778,7 @@ export default { skeletonshow: true, tabchange: 1, nationlist, + imgList:[], // 预览图片列表 labelColor: ['pink', 'blue', 'purple', 'orange', 'green', 'cyan', 'red', 'purple'], form: { // 录单数据 @@ -948,6 +983,33 @@ export default { getSalaryClassifyValue(salaryClassify, salaryClassifyValue) { return getSalaryClassifyValue(salaryClassify, salaryClassifyValue) }, + /** + * 图片预览点击 + * + * + */ + showImage(idx) { + var that = this + console.log( that.storeImage); + that.storeImage.forEach((item, index) => { + if (that.isImg(item)) { + that.imgList.push(item) + } + }) + + this.$viewerApi({ + options: { initialViewIndex: idx }, + images: this.imgList, + }) + + // } + }, + isImg(str) { + console.log(str); + let regs = /\.(jpg|jpeg|png)(\?.*)?$/ + return regs.test(str) + }, + copyText() { console.log(123) var clipboard = new Clipboard('.copy', { @@ -978,7 +1040,7 @@ export default { diff --git a/src/components/Login/login.vue b/src/components/Login/login.vue index 21a1b37..b0ea4ab 100644 --- a/src/components/Login/login.vue +++ b/src/components/Login/login.vue @@ -1,46 +1,35 @@ diff --git a/src/components/Login/updatepsw.vue b/src/components/Login/updatepsw.vue index 23909d2..6a2431f 100644 --- a/src/components/Login/updatepsw.vue +++ b/src/components/Login/updatepsw.vue @@ -1,21 +1,15 @@ diff --git a/src/components/main/index.vue b/src/components/main/index.vue index 0a77d1a..4eba938 100644 --- a/src/components/main/index.vue +++ b/src/components/main/index.vue @@ -1,112 +1,112 @@ diff --git a/src/components/memberInfo/memberInfo.vue b/src/components/memberInfo/memberInfo.vue index 3bc0a13..c4e2ebe 100644 --- a/src/components/memberInfo/memberInfo.vue +++ b/src/components/memberInfo/memberInfo.vue @@ -15,16 +15,12 @@ 在职中{{ statusNum.num3 == 0 ? "" : statusNum.num3 }} -
--> +
-->
- + {{ index + 1 }} - {{ text }} ({{ record.tel }}) + + {{ record.nickName || record.userName }} + ({{ record.tel }}) -
+
- +
- 共{{ pagination.total }}条,跳至页 + 共{{ pagination.total }}条,跳至 +
- + diff --git a/src/components/userinfo/accountsetting/inedex.vue b/src/components/userinfo/accountsetting/inedex.vue index 63bbd2e..7bdb984 100644 --- a/src/components/userinfo/accountsetting/inedex.vue +++ b/src/components/userinfo/accountsetting/inedex.vue @@ -131,7 +131,7 @@
  • - 伯才TV + 伯才TV @@ -140,7 +140,9 @@
- + + +
@@ -287,7 +289,7 @@ export default { this.activelist = 7 } else if (this.path.indexOf('/mybalance') > -1) { this.activelist = 8 - }else if (this.path.indexOf('/bocaiTV') > -1) { + } else if (this.path.indexOf('/bocaiTV') > -1) { this.activelist = 9 } }, diff --git a/src/components/userinfo/usercenter/components/dataStatistics.vue b/src/components/userinfo/usercenter/components/dataStatistics.vue new file mode 100644 index 0000000..8b4c2b7 --- /dev/null +++ b/src/components/userinfo/usercenter/components/dataStatistics.vue @@ -0,0 +1,650 @@ + + + + + \ No newline at end of file diff --git a/src/components/userinfo/usercenter/components/mybill.vue b/src/components/userinfo/usercenter/components/mybill.vue index 99d517b..cc7459f 100644 --- a/src/components/userinfo/usercenter/components/mybill.vue +++ b/src/components/userinfo/usercenter/components/mybill.vue @@ -1,29 +1,36 @@ diff --git a/src/components/userinfo/usercenter/components/townsman.vue b/src/components/userinfo/usercenter/components/townsman.vue index 1fbe6dc..f1f2529 100644 --- a/src/components/userinfo/usercenter/components/townsman.vue +++ b/src/components/userinfo/usercenter/components/townsman.vue @@ -3,23 +3,31 @@
- + {{ text }} 详情
- 共{{ pagination.total }}条,跳至页 + 共{{ pagination.total }}条,跳至 +
-
- 老乡详情 -
+
老乡详情
- - {{currentTownsmanDetail.name}}{{currentTownsmanDetail.sex && currentTownsmanDetail.sex == 1 ? '/男':'/女'}}{{currentTownsmanDetail.age && '/' + currentTownsmanDetail.age + '岁'}}{{currentTownsmanDetail.nation && '/' + currentTownsmanDetail.nation + '族'}} - - 编辑 + {{ currentTownsmanDetail.name }}{{ currentTownsmanDetail.sex && currentTownsmanDetail.sex == 1 ? "/男" : "/女" }}{{ currentTownsmanDetail.age && "/" + currentTownsmanDetail.age + "岁" }}{{ currentTownsmanDetail.nation && "/" + currentTownsmanDetail.nation + "族" }} + 编辑
-

- {{currentTownsmanDetail.address || '-'}} -

+

{{ currentTownsmanDetail.address || "-" }}

- - {{currentTownsmanDetail.idCard ? currentTownsmanDetail.idCard : '-' }} + + + {{ currentTownsmanDetail.idCard ? currentTownsmanDetail.idCard : "-" }} - {{currentTownsmanDetail.tel ? currentTownsmanDetail.tel : '-' }} + + {{ currentTownsmanDetail.tel ? currentTownsmanDetail.tel : "-" }}
- +
-
- 工作{{item.index}} -
+
工作{{ item.index }}
- - 报名岗位 - - - {{item.storeJobName || '-'}} - + 报名岗位 + {{ item.storeJobName || "-" }} - - 报名企业 - - - {{item.storeName || '-'}} - + 报名企业 + {{ item.storeName || "-" }} - - 政策 - - - {{item.policy}} - - {{item.policyStatus?'收起':'展开'}} + 政策 + {{ item.policy }} + {{ item.policyStatus ? "收起" : "展开" }} - - 状态 - - - {{item.statusText}} - + 状态 + {{ item.statusText }} - - {{item.timeText}} - - - {{item.timeStr}} - + {{ item.timeText }} + {{ item.timeStr }}
-
-
- 跟进记录{{item.index}} -
-
+
- -
- 老乡信息 -
+ +
老乡信息
- + - + - - - 男 - - - 女 - + + + @@ -259,57 +251,60 @@ - + - - {{item.name}} - + {{ item.name }} - + - + - + - - + + - 上传 + + 上传 + - - + -
+
- -

{{item.title}}

+ +

{{ item.title }}

- +
-
+
- -

{{item.name}}

+ +

{{ item.name }}

- + 取消 - 提交 + 提交
@@ -320,26 +315,15 @@