From c2d3ee929d8fae2a1a3ecd8d78f833c967a33238 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 11 Mar 2021 15:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Banner/BannerDate.vue | 31 +-- src/components/Banner/BannerEdit.vue | 37 ++- src/components/RD/RDAdd.vue | 155 ------------ src/components/RD/RDDate.vue | 168 ++++++++----- src/components/RD/RDEdit.vue | 163 ------------- src/components/RD/RDSearch.vue | 60 ++--- src/components/SpinOff/SpinOffAdd.vue | 182 -------------- src/components/SpinOff/SpinOffDate.vue | 125 +++++----- src/components/SpinOff/SpinOffEdit.vue | 182 -------------- src/components/SpinOff/SpinOffSearch.vue | 17 +- .../innovativeServiceAdd.vue | 226 ++++++++++-------- .../innovativeServiceDate.vue | 112 ++++----- .../innovativeServiceSearch.vue | 62 ++--- src/config/api.js | 20 +- src/plugins/ant-design-vue.js | 2 + .../CooperationIntention.vue | 57 ++--- src/views/DemandFilling/DemandFilling.vue | 32 ++- .../InnovativeService/InnovativeService.vue | 38 ++- 18 files changed, 496 insertions(+), 1173 deletions(-) delete mode 100644 src/components/RD/RDAdd.vue delete mode 100644 src/components/RD/RDEdit.vue delete mode 100644 src/components/SpinOff/SpinOffAdd.vue delete mode 100644 src/components/SpinOff/SpinOffEdit.vue diff --git a/src/components/Banner/BannerDate.vue b/src/components/Banner/BannerDate.vue index b49d438..52c5b8a 100644 --- a/src/components/Banner/BannerDate.vue +++ b/src/components/Banner/BannerDate.vue @@ -44,7 +44,7 @@ diff --git a/src/components/Banner/BannerEdit.vue b/src/components/Banner/BannerEdit.vue index b932050..9d098c2 100644 --- a/src/components/Banner/BannerEdit.vue +++ b/src/components/Banner/BannerEdit.vue @@ -21,7 +21,7 @@ --> - + {{ item }} @@ -32,24 +32,24 @@ :wrapper-col="formItemLayout.wrapperCol" label="图片跳转路径" > - + - + {{ item }} - + {{ item.name }} - 选择图片 + 更换图片 @@ -150,28 +150,21 @@ export default { } return isJpgOrPng; }, + editData: { + jumpType: '', + jumpUrl: '', + recStatus: '', + showPage: '', + url: '', + }, }; }, - watch: { - editItem(val) { - console.log(val); - }, - }, methods: { // 改变搜索条件 getUse(e, str) { - this.editItem[str] = e; + this.editData[str] = e; if (str === 'jumpType' && e === 0) { - this.editItem.jumpUrl = ''; - } - }, - showPageNums(nums) { - for (let i = 0; i < this.enable2.length; i++) { - if (nums - 0 === this.enable2[i].page - 0) { - return this.enable2[i].name; - } else if (i === this.enable2.length - 1) { - return ''; - } + this.editData.jumpUrl = ''; } }, // 上传文件事件 @@ -185,7 +178,7 @@ export default { }, // 提交表单 handleSubmit(e) { - console.log(this.editItem); + console.log(this.editData); e.preventDefault(); this.form.validateFieldsAndScroll(async (err, values) => { if (!err) { diff --git a/src/components/RD/RDAdd.vue b/src/components/RD/RDAdd.vue deleted file mode 100644 index 6317009..0000000 --- a/src/components/RD/RDAdd.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/components/RD/RDDate.vue b/src/components/RD/RDDate.vue index bc884a5..bdf83f9 100644 --- a/src/components/RD/RDDate.vue +++ b/src/components/RD/RDDate.vue @@ -1,12 +1,14 @@ - - - diff --git a/src/components/SpinOff/SpinOffDate.vue b/src/components/SpinOff/SpinOffDate.vue index 41c1bdd..91e7c90 100644 --- a/src/components/SpinOff/SpinOffDate.vue +++ b/src/components/SpinOff/SpinOffDate.vue @@ -1,63 +1,41 @@ - - diff --git a/src/components/SpinOff/SpinOffSearch.vue b/src/components/SpinOff/SpinOffSearch.vue index 744c214..d692fd5 100644 --- a/src/components/SpinOff/SpinOffSearch.vue +++ b/src/components/SpinOff/SpinOffSearch.vue @@ -2,28 +2,18 @@
- - + + 搜索
- - 增加 - - -
diff --git a/src/views/DemandFilling/DemandFilling.vue b/src/views/DemandFilling/DemandFilling.vue index 6de4503..0d6113f 100644 --- a/src/views/DemandFilling/DemandFilling.vue +++ b/src/views/DemandFilling/DemandFilling.vue @@ -1,7 +1,7 @@ @@ -9,7 +9,7 @@ // @ is an alias to /src import RDSearch from 'components/RD/RDSearch.vue'; import RDDate from 'components/RD/RDDate.vue'; -import { getAllTeam } from 'config/api'; +import { searchServiceApply } from 'config/api'; export default { name: 'RDTeam', @@ -19,11 +19,13 @@ export default { }, data() { return { - lists: [], + str: '需求填报界面', + pagination: { current: 1, pageSize: 10 }, + lists: {}, }; }, created() { - // this.getAllTeam() + this.searchServiceApply(); }, methods: { @@ -31,13 +33,27 @@ export default { * 根据团队id查看研发团队相关信息 * @param { String } competeTimeId 第几届信息的id */ - async getAllTeam() { + async searchServiceApply(paramData) { try { - const res = await getAllTeam(); + const params = { + param: { + companyName: paramData && paramData.companyName !== '' ? paramData.companyName : '', + contactName: paramData && paramData.contactName !== '' ? paramData.contactName : '', + contactPhone: paramData && paramData.contactPhone !== '' ? paramData.contactPhone : '', + type: paramData && paramData.type !== '' ? paramData.type : '', + pageNum: paramData && paramData.current ? paramData.current : 1, + pageSize: paramData && paramData.pageSize ? paramData.pageSize : 10, + }, + }; + const res = await searchServiceApply(params); const { code, msg, data } = res.data; if (code === 200) { this.lists = data; - console.log('this.lists: ', this.lists); + const paper = { ...this.pagination }; + paper.current = data.pageNum; + paper.total = +data.total; + paper.pageSize = data.pageSize; + this.pagination = paper; } else { throw msg || '获取失败'; } diff --git a/src/views/InnovativeService/InnovativeService.vue b/src/views/InnovativeService/InnovativeService.vue index ede100e..624d215 100644 --- a/src/views/InnovativeService/InnovativeService.vue +++ b/src/views/InnovativeService/InnovativeService.vue @@ -1,7 +1,5 @@