From 5fe8acc2626d7e55860cf9b955e5b3bd435b447e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 3 Mar 2025 09:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=B1=87?= =?UTF-8?q?=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/jobinfo/index.js | 38 ++++++ pages.json | 28 +++++ pages/index.vue | 2 +- pages/owner.vue | 32 ++++- sub/owner/invite.vue | 4 +- sub/owner/job-detail.vue | 143 +++++++++++++++++++++ sub/owner/job-view.vue | 143 +++++++++++++++++++++ sub/owner/jobInfo.vue | 266 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 650 insertions(+), 6 deletions(-) create mode 100644 api/jobinfo/index.js create mode 100644 sub/owner/job-detail.vue create mode 100644 sub/owner/job-view.vue create mode 100644 sub/owner/jobInfo.vue diff --git a/api/jobinfo/index.js b/api/jobinfo/index.js new file mode 100644 index 0000000..4973c1c --- /dev/null +++ b/api/jobinfo/index.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + + +// 工作汇报 API +export const JobInfoApi = { + // 查询工作汇报分页 + getJobInfoPage: (params) => { + return request({ url: `/system/job-info/page`, params ,method: 'get'}) + + }, + + // 查询工作汇报详情 + getJobInfo: (id) => { + return request({ url: `/system/job-info/get?id=` + id,method: 'get' }) + }, + + // 模板信息 + jobDetail: (id) => { + return request({ url: `/system/job-info/jobDetail?id=` + id,method: 'get' }) + }, + + // 新增工作汇报 + createJobInfo: (data) => { + return request({ url: `/system/job-info/create`, data, method: 'post' }) + }, + + // 修改工作汇报 + updateJobInfo: (data) => { + return request({ url: `/system/job-info/update`, data , method: 'put'}) + }, + + // 删除工作汇报 + deleteJobInfo: (id) => { + return request({ url: `/system/job-info/delete?id=` + id , method: 'delete' }) + } + + +} diff --git a/pages.json b/pages.json index bb3db05..2043be6 100644 --- a/pages.json +++ b/pages.json @@ -96,6 +96,34 @@ "componentPlaceholder": {} } }, + { + "path": "owner/jobInfo", + "style": { + "navigationBarTitleText": "工作汇报", + "usingComponents": { + "van-search": "/wxcomponents/vant/search/index" + }, + "componentPlaceholder": { + "u-modal": "view" + } + } + }, + { + "path": "owner/job-detail", + "style": { + "navigationBarTitleText": "工作汇报", + "usingComponents": {}, + "componentPlaceholder": {} + } + }, + { + "path": "owner/job-view", + "style": { + "navigationBarTitleText": "工作汇报", + "usingComponents": {}, + "componentPlaceholder": {} + } + }, { "path": "enterprise/edit", "style": { diff --git a/pages/index.vue b/pages/index.vue index 10240f0..7106d9a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -178,7 +178,7 @@ --> - @@ -99,7 +99,7 @@ > - + @@ -175,6 +195,11 @@ export default { url: '/sub/owner/policy' }) }, + btnJobInfo() { + uni.navigateTo({ + url: '/sub/owner/jobInfo' + }) + }, init() { getUserProfile().then(res => { this.user = res.data @@ -200,12 +225,13 @@ export default { url: '/sub/owner/edit' }) }, + invite() { this.share = { title: '邀请企业入驻', // 标题 path: `/pages/login?inviteId=${this.$store.getters.userId}`, imageUrl: - 'http://82.156.141.150:9001/api/v1/download-shared-object/aHR0cDovL2xvY2FsaG9zdDo5MDAwL2h1YW5iYW8vbWluaWFwcC9pbnZhdGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUQxODY1RVA2NEczMEdEUUhDVTglMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDcyMDI0WiZYLUFtei1FeHBpcmVzPTQzMTk5JlgtQW16LVNlY3VyaXR5LVRva2VuPWV5SmhiR2NpT2lKSVV6VXhNaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpoWTJObGMzTkxaWGtpT2lKQlJERTROalZGVURZMFJ6TXdSMFJSU0VOVk9DSXNJbVY0Y0NJNk1UY3pPVGt3TmpJME55d2ljR0Z5Wlc1MElqb2lZV1J0YVc0aWZRLmp6djBhdEY5QVBYXzVjYWg4c18yeXhVV3oxek9BekFzSVdzemVrUmZwcXlHd0RPWkptazlUSGJRUnBDdVNmLVMyU0otWTI1cldUd2hpNUlrY0xBSThRJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZ2ZXJzaW9uSWQ9bnVsbCZYLUFtei1TaWduYXR1cmU9MjcxZTkzOTE1MDkwYzUzYmRjYTg0MjQ1MTJhYjk3ZWQxZWMyN2QzM2MwM2U3NGUwYmRhNTBmYjQyNWI0N2MyOQ' + 'https://hb.jzce.com/fx_qyrz.png' } }, callPhone() { diff --git a/sub/owner/invite.vue b/sub/owner/invite.vue index d9bbffc..363fe29 100644 --- a/sub/owner/invite.vue +++ b/sub/owner/invite.vue @@ -26,7 +26,7 @@ export default { title: '邀请企业入驻', path: `/pages/login?inviteId=${this.$store.getters.userId}`, imageUrl: - 'http://82.156.141.150:9001/api/v1/download-shared-object/aHR0cDovL2xvY2FsaG9zdDo5MDAwL2h1YW5iYW8vbWluaWFwcC9pbnZhdGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUQxODY1RVA2NEczMEdEUUhDVTglMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDcyMDI0WiZYLUFtei1FeHBpcmVzPTQzMTk5JlgtQW16LVNlY3VyaXR5LVRva2VuPWV5SmhiR2NpT2lKSVV6VXhNaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpoWTJObGMzTkxaWGtpT2lKQlJERTROalZGVURZMFJ6TXdSMFJSU0VOVk9DSXNJbVY0Y0NJNk1UY3pPVGt3TmpJME55d2ljR0Z5Wlc1MElqb2lZV1J0YVc0aWZRLmp6djBhdEY5QVBYXzVjYWg4c18yeXhVV3oxek9BekFzSVdzemVrUmZwcXlHd0RPWkptazlUSGJRUnBDdVNmLVMyU0otWTI1cldUd2hpNUlrY0xBSThRJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZ2ZXJzaW9uSWQ9bnVsbCZYLUFtei1TaWduYXR1cmU9MjcxZTkzOTE1MDkwYzUzYmRjYTg0MjQ1MTJhYjk3ZWQxZWMyN2QzM2MwM2U3NGUwYmRhNTBmYjQyNWI0N2MyOQ' + 'https://hb.jzce.com/fx_qyrz.png' } }, onShareTimeline() { @@ -34,7 +34,7 @@ export default { title: '邀请企业入驻', // 标题 path: `/pages/login?inviteId=${this.$store.getters.userId}`, imageUrl: - 'http://82.156.141.150:9001/api/v1/download-shared-object/aHR0cDovL2xvY2FsaG9zdDo5MDAwL2h1YW5iYW8vbWluaWFwcC9pbnZhdGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUQxODY1RVA2NEczMEdEUUhDVTglMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDcyMDI0WiZYLUFtei1FeHBpcmVzPTQzMTk5JlgtQW16LVNlY3VyaXR5LVRva2VuPWV5SmhiR2NpT2lKSVV6VXhNaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpoWTJObGMzTkxaWGtpT2lKQlJERTROalZGVURZMFJ6TXdSMFJSU0VOVk9DSXNJbVY0Y0NJNk1UY3pPVGt3TmpJME55d2ljR0Z5Wlc1MElqb2lZV1J0YVc0aWZRLmp6djBhdEY5QVBYXzVjYWg4c18yeXhVV3oxek9BekFzSVdzemVrUmZwcXlHd0RPWkptazlUSGJRUnBDdVNmLVMyU0otWTI1cldUd2hpNUlrY0xBSThRJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZ2ZXJzaW9uSWQ9bnVsbCZYLUFtei1TaWduYXR1cmU9MjcxZTkzOTE1MDkwYzUzYmRjYTg0MjQ1MTJhYjk3ZWQxZWMyN2QzM2MwM2U3NGUwYmRhNTBmYjQyNWI0N2MyOQ' + 'https://hb.jzce.com/fx_qyrz.png' } }, diff --git a/sub/owner/job-detail.vue b/sub/owner/job-detail.vue new file mode 100644 index 0000000..884cf10 --- /dev/null +++ b/sub/owner/job-detail.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/sub/owner/job-view.vue b/sub/owner/job-view.vue new file mode 100644 index 0000000..884cf10 --- /dev/null +++ b/sub/owner/job-view.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/sub/owner/jobInfo.vue b/sub/owner/jobInfo.vue new file mode 100644 index 0000000..68f7bbd --- /dev/null +++ b/sub/owner/jobInfo.vue @@ -0,0 +1,266 @@ + + + + + \ No newline at end of file