庞东旭 2 лет назад
Родитель
Сommit
3a882d7bd6
7 измененных файлов: 18 добавлений и 9 удалений
  1. +1
    -1
      src/api/project/index.js
  2. +8
    -0
      src/api/user/index.js
  3. +1
    -1
      src/views/interaction/index.vue
  4. +2
    -1
      src/views/project/index.vue
  5. +3
    -3
      src/views/project/signUp.vue
  6. +1
    -1
      src/views/user/index.vue
  7. +2
    -2
      src/views/user/supply/supplyAdd.vue

+ 1
- 1
src/api/project/index.js Просмотреть файл

@@ -62,7 +62,7 @@ export function getMember(id){
//提交报名 //提交报名
export function submmitSignup (params) { export function submmitSignup (params) {
return request({ return request({
url:'/transaction/signup',
url:'/transaction/signup/add',
method: 'post', method: 'post',
data: params data: params
}) })


+ 8
- 0
src/api/user/index.js Просмотреть файл

@@ -129,6 +129,14 @@ export function selectDemand(id){
}) })
} }


//个人供求
export function supplyDetail(id) {
return request({
url: '/transaction/website/supplyDemand/id/'+id,
method: 'get',
})
}

//删除供求 //删除供求
export function deleteSupply(id){ export function deleteSupply(id){
return request({ return request({


+ 1
- 1
src/views/interaction/index.vue Просмотреть файл

@@ -14,7 +14,7 @@
style="margin-top: 10px;" style="margin-top: 10px;"
@load="getList()" @load="getList()"
> >
<van-cell v-for="(item,index) in interactionList" :key="index">
<van-cell v-for="(item,index) in interactionList" v-if="item.reply" :key="index">
<template #title> <template #title>
<van-icon name="../../static/images/icon/questions.png" size="18" style="top: 5px;margin-right: 5px;"/> <van-icon name="../../static/images/icon/questions.png" size="18" style="top: 5px;margin-right: 5px;"/>
{{item.content}} {{item.content}}


+ 2
- 1
src/views/project/index.vue Просмотреть файл

@@ -118,7 +118,7 @@ export default {
this.getDicts("project_type").then(response => { this.getDicts("project_type").then(response => {
console.log(response) console.log(response)
response.data.map(item => { response.data.map(item => {
this.projectTypeOption.push({ value:item.dictCode, text: item.dictLabel});
this.projectTypeOption.push({ value:item.dictValue, text: item.dictLabel});
}); });
}); });
getDeptList().then(response => { getDeptList().then(response => {
@@ -165,6 +165,7 @@ export default {
this.loading = false; this.loading = false;
}, },
getList(){ getList(){
console.log(this.value1)
let queryDatas = { let queryDatas = {
deptId: this.activeId, deptId: this.activeId,
projectNumber:this.value1, projectNumber:this.value1,


+ 3
- 3
src/views/project/signUp.vue Просмотреть файл

@@ -46,7 +46,7 @@
:rules="[{ required: true, message: '请填写会员账号' }]" :rules="[{ required: true, message: '请填写会员账号' }]"
/> />
<van-field <van-field
v-model="bankCardName"
v-model="bankAddress"
name="bankCardName" name="bankCardName"
label="开户银行" label="开户银行"
placeholder="开户银行" placeholder="开户银行"
@@ -110,7 +110,7 @@ export default {
projectId:this.$route.query.projectId, projectId:this.$route.query.projectId,
deposit:this.$route.query.deposit, deposit:this.$route.query.deposit,
projectName:this.$route.query.projectName, projectName:this.$route.query.projectName,
bankCardName:"",
bankAddress:"",
bankCardNum:"", bankCardNum:"",
idCardNum:"", idCardNum:"",
phone:"", phone:"",
@@ -130,7 +130,7 @@ export default {
getMember(response.user.userId).then(res => { getMember(response.user.userId).then(res => {
this.nickName = res.data.realname this.nickName = res.data.realname
this.idCardNum = res.data.idCardNum this.idCardNum = res.data.idCardNum
this.bankCardName = res.data.bankCardName
this.bankAddress = res.data.bankAddress
this.bankCardNum = res.data.bankCardNum this.bankCardNum = res.data.bankCardNum
this.phone = res.data.phone this.phone = res.data.phone
this.memberId = res.data.id this.memberId = res.data.id


+ 1
- 1
src/views/user/index.vue Просмотреть файл

@@ -41,7 +41,7 @@ export default {
methods: { methods: {
loginOut(){ loginOut(){
logout().then(response => { logout().then(response => {
window.location.href = '/login';
this.$router.push({name:'index'})
}); });
}, },
getInfo(){ getInfo(){


+ 2
- 2
src/views/user/supply/supplyAdd.vue Просмотреть файл

@@ -45,7 +45,7 @@
</template> </template>


<script> <script>
import { getMember , userDemand , updateDemand , selectDemand , base64Attach , showImg , deleteUserImg} from "@/api/user/index";
import { getMember , userDemand , updateDemand , selectDemand , base64Attach , showImg , deleteUserImg ,supplyDetail} from "@/api/user/index";
import { getInfo } from "@/api/login/index"; import { getInfo } from "@/api/login/index";
import {Dialog} from "vant"; import {Dialog} from "vant";
export default { export default {
@@ -124,7 +124,7 @@ export default {
}); });
}, },
getInteraction(){ getInteraction(){
selectDemand(this.$route.query.id).then(response => {
supplyDetail(this.$route.query.id).then(response => {
this.form.projectName = response.data.projectName; this.form.projectName = response.data.projectName;
this.form.location = response.data.location; this.form.location = response.data.location;
this.form.projectContent = response.data.projectContent; this.form.projectContent = response.data.projectContent;


Загрузка…
Отмена
Сохранить