山东大学暑期项目实训

在这个暑期项目实训的第四周中,我们专注于制作文章和专题的标签模板。通过提供的代码段,我们可以看到一个用于创建专题的表单,包括输入专题名称和简介。此外,还有一个展示博客列表的表格,列出了博客名称和操作选项,如编辑和删除。用户可以通过hover弹窗查看完整的博客名称,并能进行编辑和删除操作,提供了便捷的博客管理体验。
摘要由CSDN通过智能技术生成

暑期项目实训第四周(二)

制作文章label模板,专题label模板;


 <div>
    <Leftbar>
    </Leftbar>
    <headers_copy>
    </headers_copy>
    <div class="s-content">

      <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"
               style="margin-top: 80px;margin-left:250px;margin-right: 50px" class="demo-ruleForm">
        <el-form-item label="专题名称" prop="subName">
          <el-input v-model="ruleForm.subName"></el-input>
        </el-form-item>
        <br>
        <el-form-item label="专题简介" prop="content">
          <el-input type="textarea" v-model="ruleForm.content"></el-input>
        </el-form-item>
        <br>
        <el-form-item>
          <el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button>
          <el-button @click="resetForm('ruleForm')">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
 <div>
    <Leftbar>
    </Leftbar>
    <headers_copy>

    </headers_copy>
    <el-table  class="blog"
               :data="tableData"
               style="width: 100%">

      <el-table-column
          label="博客名称"
          width="550">
        <template slot-scope="props">
          <el-popover trigger="hover" placement="top">
            <p>博客名称: <span content="name">
            {{props.row.title}}
          </span></p>
            <div slot="reference" class="name-wrapper">
              <el-button type="text"><span content="name">
            {{props.row.title}}
          </span></el-button>
            </div>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column  label="操作" >
        <template slot-scope="scope">
          <el-button-group>
            <el-button type="primary"plain icon="el-icon-edit" @click="ChangeArticle(scope.row.aid)"></el-button>
            <el-button type="primary"plain icon="el-icon-delete" @click="DeleteArticle(scope.row.aid)"></el-button>
          </el-button-group>
        </template>
      </el-table-column>
    </el-table>
  </div>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值