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

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

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