From 5c9ea95fb81961b73478ceaf0c90de177186e541 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Tue, 19 Mar 2024 17:23:29 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E6=9A=82=E5=AD=98,=20=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tenant/serve.js | 24 ++ src/components/text-tooltip/index.vue | 47 +++ src/util/util.js | 11 + .../tenant/main/serve/Dialog/pushService.vue | 291 ++++++++++++++---- src/views/tenant/main/serve/index.vue | 4 +- src/views/tenant/mission/index.vue | 2 +- vue.config.js | 4 +- 7 files changed, 325 insertions(+), 58 deletions(-) create mode 100644 src/components/text-tooltip/index.vue diff --git a/src/api/tenant/serve.js b/src/api/tenant/serve.js index ceec074..2fbac18 100644 --- a/src/api/tenant/serve.js +++ b/src/api/tenant/serve.js @@ -172,3 +172,27 @@ export const getMatchServeList = params: params }) + export const getListByids = (params) => request({ + url: '/api/jobslink-api/policy/listByids', + method: 'get', + params: params + }) + + export const getSearchAll = (params) => request({ + url: '/api/jobslink-api/serve/searchAll', + method: 'get', + params: params + }) + + export const pushPolicyUserServe = (params) => request({ + url: '/api/jobslink-api/serve/push/policyUserServe', + method: 'post', + data: params + }) + + export const pushPostUserServe = (params) => request({ + url: '/api/jobslink-api/serve/push/postUserServe', + method: 'post', + data: params + }) + diff --git a/src/components/text-tooltip/index.vue b/src/components/text-tooltip/index.vue new file mode 100644 index 0000000..669c35b --- /dev/null +++ b/src/components/text-tooltip/index.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/util/util.js b/src/util/util.js index ef9d273..7eac156 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -396,3 +396,14 @@ export const nameDesensitization = (name) => { str = str.substring(0,1) + new Array(str.length).join('*') return str; } +export function debounce(fn, delay) { + let timer = null + return function() { + const context = this + const args = arguments + clearTimeout(timer) + timer = setTimeout(function() { + fn.apply(context, args) + }, delay) + } +} diff --git a/src/views/tenant/main/serve/Dialog/pushService.vue b/src/views/tenant/main/serve/Dialog/pushService.vue index 5994636..26f6c55 100644 --- a/src/views/tenant/main/serve/Dialog/pushService.vue +++ b/src/views/tenant/main/serve/Dialog/pushService.vue @@ -3,35 +3,43 @@ size="100%" append-to-body title="推送服务" - :visible.sync="visible" - @close="changeVisible" + :visible.sync="viewDrawer" > -
- - - + + + + + + + + 搜索 + + + + + + + + + + + + + + + - - - - - - - - - - 搜索 - + @@ -46,28 +54,54 @@ :table-loading="leftLoading" :page.sync="leftPages" @current-change="leftCurrentPageChange" + @size-change="leftSizePageChange" @selection-change="leftSelectionChange" > +
-
匹配政策
-
匹配岗位
+
匹配政策
+
匹配岗位
- - +
+ + + + + +
@@ -75,9 +109,12 @@