shop_vue/src/views/plus/release/demandproject/index.vue
@@ -26,6 +26,12 @@
      <div class="table-wrap">
        <el-table size="small" :data="tableData" border style="width: 100%" v-loading="loading">
          <el-table-column prop="project_id" label="ID" width="100"></el-table-column>
          <el-table-column prop="nickName" label="发布用户"></el-table-column>
          <el-table-column prop="nickName" label="微信头像">
            <template slot-scope="scope">
              <img :src="scope.row.user.avatarUrl" width="30px" height="30px" />
            </template>
          </el-table-column>
          <el-table-column prop="name" label="标题"></el-table-column>
          <el-table-column prop="category.name" label="分类" width="200"></el-table-column>
          <el-table-column prop="price" label="预算" width="200"></el-table-column>
@@ -36,10 +42,11 @@
              <span v-if="scope.row.status == 2" class="green">已驳回</span>
            </template>
          </el-table-column>
          <el-table-column fixed="right" label="操作" width="150">
          <el-table-column fixed="right" label="操作" width="200">
            <template slot-scope="scope">
              <el-button v-if="scope.row.status == 0" @click="shClick(scope.row)" type="text" size="small">审核</el-button>
              <el-button @click="editClick(scope.row)" type="text" size="small" >详情</el-button>
              <el-button @click="evaluateClick(scope.row)" type="text" size="small" >评论列表</el-button>
              <el-button @click="deleteClick(scope.row)" type="text" size="small">删除</el-button>
            </template>
          </el-table-column>
@@ -140,6 +147,17 @@
        this.getTableList();
      },
      evaluateClick(item) {
        let self = this;
        let params = item.project_id;
        this.$router.push({
          path: '/plus/release/evaluate/list',
          query: {
            project_id: params
          }
        });
      },
      /*打开编辑*/
      editClick(item) {
        this.userModel = deepClone(item);