浏览代码

Merge branch 'master' of http://git.cc-lotus.info/count/webnew-count

wuhongyu 5 年之前
父节点
当前提交
de6ca7054b
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/pcenter/demand.vue

+ 4 - 4
src/views/pcenter/demand.vue

@@ -6,7 +6,7 @@
           <el-col :span="24" class="top" v-if="user.type === '3'"><el-button type="primary" size="mini" @click="add">添加</el-button></el-col>
           <template>
             <el-table :data="tableData" border style="width: 100%">
-              <el-table-column prop="name" label="需求技术名称" align="center" :show-overflow-tooltip="true" width="180px"> </el-table-column>
+              <el-table-column prop="name" label="需求技术名称" align="center" show-overflow-tooltip> </el-table-column>
               <el-table-column prop="uname" label="发布人" align="center"> </el-table-column>
               <el-table-column prop="address" label="状态" align="center">
                 <template slot-scope="scope">
@@ -105,8 +105,8 @@
               </el-form-item>
               <el-form-item>
                 <el-button v-if="user.type === '3'" type="primary" @click="onSubmit()">提交</el-button>
-                <el-button v-if="user.type === '0' || user.type === '1'" type="success" @click="refer(form.id, { status: '2' })">审核通过</el-button>
-                <el-button v-if="user.type === '0' || user.type === '1'" type="warning" @click="refer(form.id, { status: '3' })">审核拒绝</el-button>
+                <el-button v-if="user.type === '0' || user.type === '1'" type="success" @click="refer(scope.row.id, { status: '2' })">审核通过</el-button>
+                <el-button v-if="user.type === '0' || user.type === '1'" type="warning" @click="refer(scope.row.id, { status: '3' })">审核拒绝</el-button>
               </el-form-item>
             </el-form>
           </el-col>
@@ -187,7 +187,6 @@ export default {
           type: 'success',
         });
         this.search();
-        this.display = true;
       } else {
         this.$message.error('信息修改失败');
       }
@@ -198,6 +197,7 @@ export default {
     },
     // 返回
     back() {
+      console.log(this.display);
       this.display = true;
     },
     async onSubmit() {