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 a7d164f..a59111f 100644 --- a/src/components/Banner/BannerEdit.vue +++ b/src/components/Banner/BannerEdit.vue @@ -35,10 +35,10 @@ label="跳转类型" > {{ item }} @@ -50,7 +50,7 @@ label="图片跳转路径" v-if="editItem.jumpType === 1" > - + {{ item }} @@ -74,9 +74,9 @@ label="页面显示位置" > - 选择图片 + 更换图片 @@ -203,28 +203,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 = ''; } }, // 上传文件事件 @@ -238,7 +231,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/Challenge/ChallengeAdd.vue b/src/components/Challenge/ChallengeAdd.vue index b021ebc..1bbb965 100644 --- a/src/components/Challenge/ChallengeAdd.vue +++ b/src/components/Challenge/ChallengeAdd.vue @@ -11,84 +11,118 @@ width="700px" > - + - - 平台 - 用户 - + - + - - + - + - + - + - + + + 选择图片 + + + + + + + {{ item }} + - 取消 保存 @@ -99,6 +133,8 @@ diff --git a/src/components/Challenge/ChallengeEdit.vue b/src/components/Challenge/ChallengeEdit.vue index 192a858..844bb1c 100644 --- a/src/components/Challenge/ChallengeEdit.vue +++ b/src/components/Challenge/ChallengeEdit.vue @@ -11,84 +11,76 @@ width="700px" > - + - - 平台 - 用户 - + - + - + - + - + - + - + - + - + + + 选择图片 + + + + + + + {{ item }} + - 取消 保存 @@ -99,6 +91,8 @@ - + diff --git a/src/components/Course/CourseDate.vue b/src/components/Course/CourseDate.vue index 3e5d49b..6f0dd0c 100644 --- a/src/components/Course/CourseDate.vue +++ b/src/components/Course/CourseDate.vue @@ -1,11 +1,14 @@ - - - + diff --git a/src/components/Course/CourseSearch.vue b/src/components/Course/CourseSearch.vue index 319d5da..3e979d6 100644 --- a/src/components/Course/CourseSearch.vue +++ b/src/components/Course/CourseSearch.vue @@ -1,22 +1,22 @@ @@ -31,7 +31,14 @@ export default { data() { return { visible: false, - courseName: '', + name: '', + serviceTypes: [ + { id: 1, value: '创新平台' }, + { id: 2, value: '孵化平台' }, + { id: 3, value: '产业平台' }, + ], + statusList: ['正常', '禁用'], + status111: '', }; }, methods: { @@ -43,13 +50,21 @@ export default { this.visible = false; }, + handleChangeSelect(e) { + // this[type] = value; + this.status111 = e; + }, + handleChangeName(value) { console.log('value: ', value); - this.courseName = value; + this.name = value; }, - handleTableChange() { - console.log('搜索'); + async handleTableChange() { + const { name, status111 } = this; + // 传参 + const condition = { name, status111 }; + await this.$emit('getInnovativeServiceSearch', condition); }, }, }; 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/innovativeService/innovativeServiceEdit.vue b/src/components/innovativeService/innovativeServiceEdit.vue index 9860aa2..4820187 100644 --- a/src/components/innovativeService/innovativeServiceEdit.vue +++ b/src/components/innovativeService/innovativeServiceEdit.vue @@ -11,101 +11,76 @@ width="700px" > - + - - + - + - + - + - + - + - + - + - + + + 选择图片 + + + + + + + {{ item }} + - 取消 保存 @@ -116,6 +91,8 @@ 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/IncubationServices/IncubationServices.vue b/src/views/IncubationServices/IncubationServices.vue index b0314b3..5f9916e 100644 --- a/src/views/IncubationServices/IncubationServices.vue +++ b/src/views/IncubationServices/IncubationServices.vue @@ -1,19 +1,64 @@ diff --git a/src/views/IndustrialServices/IndustrialServices.vue b/src/views/IndustrialServices/IndustrialServices.vue index dc46d3c..dc4ee87 100644 --- a/src/views/IndustrialServices/IndustrialServices.vue +++ b/src/views/IndustrialServices/IndustrialServices.vue @@ -1,19 +1,64 @@ diff --git a/src/views/InnovativeService/InnovativeService.vue b/src/views/InnovativeService/InnovativeService.vue index ede100e..915d472 100644 --- a/src/views/InnovativeService/InnovativeService.vue +++ b/src/views/InnovativeService/InnovativeService.vue @@ -1,7 +1,5 @@