wuhongyu hace 5 años
padre
commit
5e1230952a

+ 4 - 0
src/components/enterprise/enterprisefabu.vue

@@ -29,6 +29,8 @@
               :total6="total6"
               :faqilist="faqilist"
               :totalfaqi="totalfaqi"
+              :tatalcaogao="tatalcaogao"
+              :caogao="caogao"
             ></contextfabuxx>
           </el-col>
         </div>
@@ -63,6 +65,8 @@ export default {
     jiaoyilist1: null,
     faqilist: null,
     totalfaqi: null,
+    caogao: null,
+    tatalcaogao: null,
   },
   components: {
     heads,

+ 2 - 8
src/layout/enterprise/contextfabu.vue

@@ -143,15 +143,9 @@
                 <el-form-item label="产品描述">
                   <el-input type="textarea" v-model="demandForm.description" placeholder="请输入产品描述"></el-input>
                 </el-form-item>
-                <el-form-item label="状态">
-                  <el-select v-model="demandForm.status" placeholder="请选择产品状态">
-                    <el-option label="草稿" value="0"></el-option>
-                    <el-option label="发布" value="1" :disabled="true"></el-option>
-                    <el-option label="删除" value="2" :disabled="true"></el-option>
-                  </el-select>
-                </el-form-item>
+
                 <el-row class="demandBtn">
-                  <el-button type="primary" @click="demandBtn()">产品发布</el-button>
+                  <el-button type="primary" @click="demandBtn()">保存草稿</el-button>
                 </el-row>
               </el-form>
             </el-row>

+ 55 - 311
src/layout/enterprise/contextfabuxx.vue

@@ -6,9 +6,9 @@
         <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
           <el-row style="padding: 0 20px;">
             <el-tabs v-model="activeNameFirst" @tab-click="handleClickFirst">
-              <el-tab-pane label="审核成功" name="first">
+              <el-tab-pane label="草稿" name="thirdasdasdath">
                 <el-col :span="24" class="info">
-                  <el-col :span="24" v-for="(item, index) in recruitData" :key="index">
+                  <el-col :span="24" v-for="(item, index) in caogao" :key="index">
                     <el-col class="xqborder">
                       <el-col :span="24" class="fbListTop">
                         <el-col :span="21"> {{ item.name }} </el-col>
@@ -34,12 +34,7 @@
                         </el-col>
                         <el-col :span="6" class="fbListCenterR">
                           <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
-                            ><br />
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
-                            <!-- <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })"
-                              >查看申请</el-link
-                            > -->
+                            <el-link :underline="false" @click="submitcaogao(item)">发布</el-link>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -49,19 +44,20 @@
                 <el-col class="page" :span="24">
                   <el-pagination
                     @size-change="handleSizeChange"
-                    @current-change="handleCurrentChange"
+                    @current-change="handleCurrentcaogao"
                     :current-page="currentPage"
                     background
                     layout="total,  prev, pager, next, jumper"
-                    :total="total"
+                    :total="tatalcaogao"
                     :page-size="pageSize"
                   >
                   </el-pagination>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="审核中信息" name="second">
+
+              <el-tab-pane label="审核成功" name="first">
                 <el-col :span="24" class="info">
-                  <el-col :span="24" v-for="(item, index) in shenheList" :key="index">
+                  <el-col :span="24" v-for="(item, index) in recruitData" :key="index">
                     <el-col class="xqborder">
                       <el-col :span="24" class="fbListTop">
                         <el-col :span="21"> {{ item.name }} </el-col>
@@ -90,6 +86,9 @@
                             <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
                             ><br />
                             <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                            <!-- <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })"
+                              >查看申请</el-link
+                            > -->
                           </el-col>
                         </el-col>
                       </el-col>
@@ -99,19 +98,19 @@
                 <el-col class="page" :span="24">
                   <el-pagination
                     @size-change="handleSizeChange"
-                    @current-change="handleCurrentChange1"
+                    @current-change="handleCurrentChange"
                     :current-page="currentPage"
                     background
                     layout="total,  prev, pager, next, jumper"
-                    :total="tatalstatus1"
+                    :total="total"
                     :page-size="pageSize"
                   >
                   </el-pagination>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="审核失败" name="thirth">
+              <el-tab-pane label="审核中信息" name="second">
                 <el-col :span="24" class="info">
-                  <el-col :span="24" v-for="(item, index) in successlist" :key="index">
+                  <el-col :span="24" v-for="(item, index) in shenheList" :key="index">
                     <el-col class="xqborder">
                       <el-col :span="24" class="fbListTop">
                         <el-col :span="21"> {{ item.name }} </el-col>
@@ -137,6 +136,8 @@
                         </el-col>
                         <el-col :span="6" class="fbListCenterR">
                           <el-col :span="24" class="bainji">
+                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
+                            ><br />
                             <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
                           </el-col>
                         </el-col>
@@ -151,290 +152,30 @@
                     :current-page="currentPage"
                     background
                     layout="total,  prev, pager, next, jumper"
-                    :total="tatalstatus2"
+                    :total="tatalstatus1"
                     :page-size="pageSize"
                   >
                   </el-pagination>
                 </el-col>
               </el-tab-pane>
-
-              <!-- <el-tab-pane label="发起交易" name="fgffadqdfa">
-                  <el-col :span="24" class="info">
-                    <el-col :span="24" v-for="(item, index) in faqilist" :key="index">
-                      <el-col class="xqborder">
-                        <el-col :span="24" class="fbListTop">
-                          <el-col :span="21"> </el-col>
-                          <el-col :span="3">
-                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                          </el-col>
-                        </el-col>
-                        <el-col :span="24" class="fbListCenter">
-                          <el-col :span="6" class="fbListCenterC">
-                            <p class="textOver">产品:{{ item.product_name }}</p>
-                            <p>营销人名称:{{ item.market_username }}</p>
-                            <p>购买人名称:{{ item.username }}</p>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterTwo">
-                            <el-col :span="24">说明:{{ item.description }}</el-col>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterR">
-                            <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="jiaoyisuccess(item)">同意交易</el-link>
-                            </el-col>
-                          </el-col>
-                        </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChangefaqi"
-                      :current-page="currentPage"
-                      background
-                      layout="total,  prev, pager, next, jumper"
-                      :total="totalfaqi"
-                      :page-size="pageSize"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane>
-
-                <el-tab-pane label="交易中" name="fgrrsss">
-                  <el-col :span="24" class="info">
-                    <el-col :span="24" v-for="(item, index) in Transactionlist" :key="index">
-                      <el-col class="xqborder">
-                        <el-col :span="24" class="fbListTop">
-                          <el-col :span="21"> </el-col>
-                          <el-col :span="3">
-                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                          </el-col>
-                        </el-col>
-                        <el-col :span="24" class="fbListCenter">
-                          <el-col :span="6" class="fbListCenterC">
-                            <p class="textOver">产品:{{ item.product_name }}</p>
-                            <p>营销人名称:{{ item.market_username }}</p>
-                            <p>购买人名称:{{ item.username }}</p>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterTwo">
-                            <el-col :span="24">说明:{{ item.description }}</el-col>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterR">
-                            <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
-                              <el-link :underline="false" @click="success(item)">审核通过</el-link>
-                              <el-link :underline="false" @click="shibai(item)">审核失败</el-link>
-                            </el-col>
-                          </el-col>
-                        </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange4"
-                      :current-page="currentPage"
-                      background
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total4"
-                      :page-size="pageSize"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane>
-
-                <el-tab-pane label="交易完成" name="fgrraaa">
-                  <el-col :span="24" class="info">
-                    <el-col :span="24" v-for="(item, index) in jiaoyilist1" :key="index">
-                      <el-col class="xqborder">
-                        <el-col :span="24" class="fbListTop">
-                          <el-col :span="21"> </el-col>
-                          <el-col :span="3">
-                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                          </el-col>
-                        </el-col>
-                        <el-col :span="24" class="fbListCenter">
-                          <el-col :span="6" class="fbListCenterC">
-                            <p class="textOver">产品:{{ item.product_name }}</p>
-                            <p>营销人名称:{{ item.market_username }}</p>
-                            <p>购买人名称:{{ item.username }}</p>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterTwo">
-                            <el-col :span="24">说明:{{ item.description }}</el-col>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterR">
-                            <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
-                            </el-col>
-                          </el-col>
-                        </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange5"
-                      :current-page="currentPage"
-                      background
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total5"
-                      :page-size="pageSize"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane> -->
-              <!-- 
-                <el-tab-pane label="交易取消" name="fgrr">
-                  <el-col :span="24" class="info">
-                    <el-col :span="24" v-for="(item, index) in jiaoyilist" :key="index">
-                      <el-col class="xqborder">
-                        <el-col :span="24" class="fbListTop">
-                          <el-col :span="21"> </el-col>
-                          <el-col :span="3">
-                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                          </el-col>
-                        </el-col>
-                        <el-col :span="24" class="fbListCenter">
-                          <el-col :span="6" class="fbListCenterC">
-                            <p class="textOver">产品:{{ item.product_name }}</p>
-                            <p>营销人名称:{{ item.market_username }}</p>
-                            <p>购买人名称:{{ item.username }}</p>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterTwo">
-                            <el-col :span="24">说明:{{ item.description }}</el-col>
-                          </el-col>
-                          <el-col :span="6" class="fbListCenterR">
-                            <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
-                            </el-col>
-                          </el-col>
-                        </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange6"
-                      :current-page="currentPage"
-                      background
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total6"
-                      :page-size="pageSize"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane> -->
-            </el-tabs>
-          </el-row>
-
-          <!-- <el-tab-pane label="我的供给" name="second">
-            <el-row style="padding: 0 20px;">
-              <el-tabs v-model="activeNameFirst" @tab-click="handleClickFirst">
-                <el-tab-pane label="已经审核信息" name="first">
-                  <el-col :span="24" v-for="(item, index) in gonggeiData" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> {{ item.name }} </el-col>
-                        <el-col :span="4">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fimage">
-                          <el-image style="width:100px;height:100px" :src="item.image.url"></el-image>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.name }}</p>
-                          <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-                          <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">最新申请:</el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
-                            ><br />
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
-                             <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })"
-                              >查看申请</el-link
-                            > 
-                          </el-col>
-                        </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange"
-                      :current-page="currentPage"
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane>
-                <el-tab-pane label="审核中信息" name="second">
-                  <el-col :span="24" v-for="(item, index) in gonggeiData" :key="index">
+              <el-tab-pane label="审核失败" name="thirth">
+                <el-col :span="24" class="info">
+                  <el-col :span="24" v-for="(item, index) in successlist" :key="index">
                     <el-col class="xqborder">
                       <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> {{ item.name }} </el-col>
-                        <el-col :span="4">
+                        <el-col :span="21"> {{ item.name }} </el-col>
+                        <el-col :span="3">
                           {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                         </el-col>
                       </el-col>
                       <el-col :span="24" class="fbListCenter">
                         <el-col :span="6" class="fimage">
-                          <el-image style="width:100px;height:100px" :src="item.image.url"></el-image>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterC">
-                          <el-col :span="24" class="listName">
-                            <p class="textOver">产品:{{ item.name }}</p>
-                            <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-                            <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
-                          </el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">最新申请:</el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
-                            ><br />
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                          <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
+                            <template v-if="index === 0">
+                              <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
+                            </template>
                           </el-col>
                         </el-col>
-                      </el-col>
-                    </el-col>
-                  </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange"
-                      :current-page="currentPage"
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane>
-                <el-tab-pane label="交易成功信息" name="thirth">
-                  <el-col :span="24" v-for="(item, index) in gonggeiData" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> {{ item.name }} </el-col>
-                        <el-col :span="4">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fimage">
-                          <el-image style="width:100px;height:100px" :src="item.image.url"></el-image>
-                        </el-col>
                         <el-col :span="6" class="fbListCenterC">
                           <p class="textOver">产品:{{ item.name }}</p>
                           <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
@@ -443,7 +184,6 @@
                         <el-col :span="6" class="fbListCenterTwo">
                           <el-col :span="24">最新申请:</el-col>
                         </el-col>
-
                         <el-col :span="6" class="fbListCenterR">
                           <el-col :span="24" class="bainji">
                             <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
@@ -452,20 +192,22 @@
                       </el-col>
                     </el-col>
                   </el-col>
-                  <el-col class="page" :span="24">
-                    <el-pagination
-                      @size-change="handleSizeChange"
-                      @current-change="handleCurrentChange"
-                      :current-page="currentPage"
-                      layout="total,  prev, pager, next, jumper"
-                      :total="total"
-                    >
-                    </el-pagination>
-                  </el-col>
-                </el-tab-pane>
-              </el-tabs>
-            </el-row>
-        </el-tab-pane> -->
+                </el-col>
+                <el-col class="page" :span="24">
+                  <el-pagination
+                    @size-change="handleSizeChange"
+                    @current-change="handleCurrentChange1"
+                    :current-page="currentPage"
+                    background
+                    layout="total,  prev, pager, next, jumper"
+                    :total="tatalstatus2"
+                    :page-size="pageSize"
+                  >
+                  </el-pagination>
+                </el-col>
+              </el-tab-pane>
+            </el-tabs>
+          </el-row>
         </el-tabs>
         <el-link :underline="false" class="fabuBtn" @click="messFabu()">信息发布</el-link>
       </el-col>
@@ -492,14 +234,15 @@ export default {
     total6: null,
     faqilist: null,
     totalfaqi: null,
-
+    tatalcaogao: null,
+    caogao: null,
     // gonggeiData: null,
   },
   components: {},
   data: () => ({
     currentPage: 0,
-    activeName: 'first',
-    activeNameFirst: 'first',
+    activeName: 'thirdasdasdath',
+    activeNameFirst: 'thirdasdasdath',
     pageSize: 3,
   }),
   created() {},
@@ -511,7 +254,9 @@ export default {
     success(item) {
       this.$emit('success', { item });
     },
-
+    submitcaogao(item) {
+      this.$emit('submitcaogao', { item });
+    },
     shibai(item) {
       this.$emit('shibai', { item });
     },
@@ -530,12 +275,6 @@ export default {
     handleClickFirst(tab, event) {
       console.log(tab, event);
     },
-    // handleSizeChange(val) {
-    //   console.log(`每页 ${val} 条`);
-    // },
-    // handleCurrentChange(val) {
-    //   console.log(`当前页: ${val}`);
-    // },
 
     handleSizeChange(pageSize) {
       // this.$emit('handleSizeChange', pageSize);
@@ -574,6 +313,11 @@ export default {
       console.log(currentPage);
       this.$emit('handleCurrentChangefaqi', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
     },
+
+    handleCurrentcaogao(currentPage) {
+      console.log(currentPage);
+      this.$emit('handleCurrentcaogao', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
+    },
   },
 };
 </script>

+ 35 - 59
src/views/enterprise/enterprisefabu.vue

@@ -30,6 +30,10 @@
       @handleCurrentChange4="handleCurrentChange4"
       @handleCurrentChange5="handleCurrentChange5"
       @handleCurrentChange6="handleCurrentChange6"
+      :tatalcaogao="tatalcaogao"
+      :caogao="caogao"
+      @handleCurrentcaogao="handleCurrentcaogao"
+      @submitcaogao="submitcaogao"
     ></enterprisefabu-detail>
   </div>
 </template>
@@ -77,22 +81,22 @@ export default {
     skip: '',
     faqilist: [],
     totalfaqi: 1,
+    tatalcaogao: 1,
+    caogao: [],
   }),
   created() {
     this.searchInfo();
     this.searchstatus1();
     this.searchstaus2();
-    this.jiaoyi1();
-    this.jiaoyi2();
-    this.jiaoyi3();
-    this.faqijiaoyi();
+
+    this.caogaolist();
   },
   computed: {
     ...mapState(['user']),
   },
   methods: {
     ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
-    ...marketproduct({ productList: 'query', columnInfo: 'fetch', marketcerate: 'create', productdeltet: 'delete' }),
+    ...marketproduct({ productList: 'query', columnInfo: 'fetch', marketcerate: 'create', productdeltet: 'delete', upup: 'update' }),
     ...transaction({ list: 'query', columnInfo: 'fetch', marketcerate: 'create', delete: 'delete', shenheupdate: 'update' }),
     ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     // 查询列表
@@ -128,48 +132,18 @@ export default {
         this.$set(this, `tatalstatus2`, res.total);
       }
     },
-    async faqijiaoyi({ skip = 0, limit = 3, ...info } = {}) {
-      let status = 0;
+
+    async caogaolist({ skip = 0, limit = 3, ...info } = {}) {
+      let status = '3';
       skip = this.skip;
-      const res = await this.list({ skip, limit, status, ...info });
+      const res = await this.productList({ skip, limit, status, ...info });
       console.log(res.total);
       if (this.$checkRes(res)) {
-        this.$set(this, `faqilist`, res.data);
-        this.$set(this, `totalfaqi`, res.total);
-      }
-    },
-    async jiaoyi1({ skip = 0, limit = 3, ...info } = {}) {
-      let status = 1;
-      skip = this.skip;
-      console.log();
-      const res = await this.list({ skip, limit, status, ...info });
-      console.log(res);
-      if (this.$checkRes(res)) {
-        this.$set(this, `Transactionlist`, res.data);
-        this.$set(this, `total4`, res.total);
-      }
-    },
-    async jiaoyi2({ skip = 0, limit = 3, ...info } = {}) {
-      let status = 2;
-      skip = this.skip;
-      console.log();
-      const res = await this.list({ skip, limit, status, ...info });
-      console.log(res);
-      if (this.$checkRes(res)) {
-        this.$set(this, `jiaoyilist1`, res.data);
-        this.$set(this, `total5`, res.total);
-      }
-    },
-    async jiaoyi3({ skip = 0, limit = 3, ...info } = {}) {
-      let status = 3;
-      skip = this.skip;
-      console.log();
-      const res = await this.list({ skip, limit, status, ...info });
-      if (this.$checkRes(res)) {
-        this.$set(this, `jiaoyilist`, res.data);
-        this.$set(this, `total6`, res.total);
+        this.$set(this, `caogao`, res.data);
+        this.$set(this, `tatalcaogao`, res.total);
       }
     },
+
     //分页
     async handleCurrentChangefaqi({ skip, limit, currentPage }) {
       this.$set(this, `skip`, skip);
@@ -185,6 +159,13 @@ export default {
       console.log(skip);
       this.searchstatus1();
     },
+
+    async handleCurrentcaogao({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      console.log(skip);
+      this.caogaolist();
+    },
+
     async handleCurrentChange2({ skip, limit, currentPage }) {
       this.$set(this, `skip`, skip);
       this.searchstaus2();
@@ -216,24 +197,19 @@ export default {
       this.$checkRes(res, '删除成功', '删除失败');
     },
     //审核
-    async jiaoyisuccess({ item }) {
-      item.status = '1';
-      let res = await this.shenheupdate(item);
-      this.faqijiaoyi();
-      this.$checkRes(res, '同意成功', '审核失败');
-    },
-    async shibai({ item }) {
-      item.status = '3';
-      let res = await this.shenheupdate(item);
-      this.$checkRes(res, '审核成功', '审核失败');
-      this.jiaoyi3();
-    },
-    async success({ item }) {
-      item.status = '2';
-      let res = await this.shenheupdate(item);
-      this.$checkRes(res, '审核成功', '审核失败');
-      this.jiaoyi2();
+
+    async submitcaogao({ item }) {
+      item.status = '0';
+      let res = await this.upup(item);
+      this.$checkRes(res, '发布成功', '审核失败');
+      this.searchInfo();
+      this.caogaolist();
     },
+
+    async jiaoyisuccess({ item }) {},
+    async shibai({ item }) {},
+    async success({ item }) {},
+
     async onsaveClick({ id }) {
       console.log(id);