Browse Source

需求bug

lyn7568 6 years ago
parent
commit
c3b3e36cbf
2 changed files with 5 additions and 6 deletions
  1. 3 3
      src/views/demandCen/closedList.vue
  2. 2 3
      src/views/demandCen/completedList.vue

+ 3 - 3
src/views/demandCen/closedList.vue

1
<template>
1
<template>
2
  <div class="app-container">
2
  <div class="app-container">
3
    <div class="box-container">
3
    <div class="box-container">
4
      <div class="contain-title">发布中需求</div>
4
      <div class="contain-title">已关闭需求</div>
5
      <div class="contain-search">
5
      <div class="contain-search">
6
        <el-input placeholder="搜索需求主题/需求内容/需求方" v-model="searchText" class="input-with-select" @keyup.enter.native="pageQuery">
6
        <el-input placeholder="搜索需求主题/需求内容/需求方" v-model="searchText" class="input-with-select" @keyup.enter.native="pageQuery">
7
          <el-button slot="append" icon="el-icon-search" @click="pageQuery"></el-button>
7
          <el-button slot="append" icon="el-icon-search" @click="pageQuery"></el-button>
65
        total: 0,
65
        total: 0,
66
        tableData: [],
66
        tableData: [],
67
        tableLoading: true,
67
        tableLoading: true,
68
        curTime: (new Date()).toISOString().substring(0, 10).replace(/-/g, ''),
68
        // curTime: (new Date()).toISOString().substring(0, 10).replace(/-/g, ''),
69
        tableItem: [
69
        tableItem: [
70
          {
70
          {
71
            prop: 'title',
71
            prop: 'title',
122
        var that = this
122
        var that = this
123
        this.$http.get(pageDemandUrl, {
123
        this.$http.get(pageDemandUrl, {
124
          order: 'closeTime',
124
          order: 'closeTime',
125
          invalidDay: that.curTime,
125
          // invalidDay: that.curTime,
126
          key: that.searchText,
126
          key: that.searchText,
127
          actived: 1,
127
          actived: 1,
128
          state: 3,
128
          state: 3,

+ 2 - 3
src/views/demandCen/completedList.vue

69
        total: 0,
69
        total: 0,
70
        tableData: [],
70
        tableData: [],
71
        tableLoading: true,
71
        tableLoading: true,
72
        curTime: (new Date()).toISOString().substring(0, 10).replace(/-/g, ''),
72
        // curTime: (new Date()).toISOString().substring(0, 10).replace(/-/g, ''),
73
        tableItem: [
73
        tableItem: [
74
          {
74
          {
75
            prop: 'title',
75
            prop: 'title',
130
        var that = this
130
        var that = this
131
        this.$http.get(pageDemandUrl, {
131
        this.$http.get(pageDemandUrl, {
132
          order: 'overTime',
132
          order: 'overTime',
133
          invalidDay: that.curTime,
133
          // invalidDay: that.curTime,
134
          key: that.searchText,
134
          key: that.searchText,
135
          actived: 1,
135
          actived: 1,
136
          state: 2,
136
          state: 2,
189
          if (res.success) {
189
          if (res.success) {
190
            num--
190
            num--
191
            lmt.countNum = res.data
191
            lmt.countNum = res.data
192
            alert(res.data)
193
            that.$forceUpdate()
192
            that.$forceUpdate()
194
          }
193
          }
195
        })
194
        })