Browse Source

再次点击跳转

LIPENGTAO1313 6 years ago
parent
commit
2222d3815c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/bench-views/ArticleTemplate.vue

+ 5 - 2
src/components/bench-views/ArticleTemplate.vue

36
          <el-button type="danger" icon="el-icon-delete" circle @click.stop="delet(item.articleId, index)"></el-button>
36
          <el-button type="danger" icon="el-icon-delete" circle @click.stop="delet(item.articleId, index)"></el-button>
37
        </div>
37
        </div>
38
        <div class="dele" v-else-if='flag === 3'>
38
        <div class="dele" v-else-if='flag === 3'>
39
          <el-button type="primary" size="small" @click.stop.once="add(item)">{{item.addText}}</el-button>
39
          <el-button type="primary" size="small" @click.stop="add(item)">{{item.addText}}</el-button>
40
        </div>
40
        </div>
41
      </li>
41
      </li>
42
    </ul>
42
    </ul>
160
        this.expertList();
160
        this.expertList();
161
      },
161
      },
162
      delet(id, index) {
162
      delet(id, index) {
163
        this.$alert('确认删除该文章', '提示', {
163
        this.$alert('确认该文章移出【企业动态】栏目?', '提示', {
164
          confirmButtonText: '确定',
164
          confirmButtonText: '确定',
165
          cancelButtonText: '取消',
165
          cancelButtonText: '取消',
166
          type: 'warning',
166
          type: 'warning',
200
        });
200
        });
201
      },
201
      },
202
      add(item) {
202
      add(item) {
203
        if(item.addText === '已添加') {
204
          return;
205
        }
203
        this.$axios.post(httpUrl.hQuery.orgTrends.add, {
206
        this.$axios.post(httpUrl.hQuery.orgTrends.add, {
204
              pid: this.platId,
207
              pid: this.platId,
205
              aid: item.articleId
208
              aid: item.articleId