发表于: 2020-03-22 21:49:13

1 1750


今天完成的事情:

1.推进任务


明天计划的事情:

1.推进任务


遇到的问题和收获:


onlineEdit() {
   console.log('编辑线!');
   this.article.status 2
   this.$http({
       method'put',
       url'/api/a/u/article/' + this.$route.query.id,
       data: this.$qs.stringify(this.article)
   }).then(res => {
       console.log(res);
       if (res.data.code === 0) {
           console.log(res);
           this.$message.success('操作成功')
           this.$router.push({
               path'/home/admin'
           })
       }
   })
}


像编辑上线、存为草稿接口目前点击无反应。未做改动,之前可行。


<el-pagination class="block"
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="page"
              :page-sizes="[5, 10, 20, 30]"
              :page-size="size"
              background
              layout="total, sizes, prev, pager, next, jumper"
              :total="total">
</el-pagination>

分页器感觉没有封装好,点击页码,切换起来比较的慢,继续优化




返回列表 返回列表
评论

    分享到