|
@@ -17,7 +17,8 @@
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
|
- <el-button type="primary" icon="el-icon-plus" plain @click="getDetail">新增</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" plain @click="getDetail"
|
|
|
+ v-hasPermi="['operation:startPage:add']">新增</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<!-- 列表 -->
|
|
@@ -30,15 +31,17 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="生效期" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.startTime}} - {{ scope.row.endTime }}</span>
|
|
|
+ <div>{{ scope.row.startTime}}</div>
|
|
|
+ <div>至</div>
|
|
|
+ <div>{{ scope.row.endTime }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="跳转" prop="forwardType" align="center" :formatter="forwardFomatter" />
|
|
|
<el-table-column label="当前状态" prop="currentStatus" align="center" :formatter="currentFormatter" />
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="getDetail(scope.row)">编辑</el-button>
|
|
|
- <el-button type="delete" @click="getDelete(scope.row)">删除</el-button>
|
|
|
+ <el-button type="text" @click="getDetail(scope.row)" v-hasPermi="['operation:startPage:edit']">编辑</el-button>
|
|
|
+ <el-button type="delete" @click="getDelete(scope.row)" v-hasPermi="['operation:startPage:delete']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|