|
@ -39,7 +39,6 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<!-- 列表--> |
|
|
<!-- 列表--> |
|
|
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
|
|
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
|
|
<el-table-column label="全选" type="selection" header-align="center" align="center" width="50"></el-table-column> |
|
|
|
|
|
<el-table-column label="序号" type="index" header-align="center" align="center" width="150"></el-table-column> |
|
|
<el-table-column label="序号" type="index" header-align="center" align="center" width="150"></el-table-column> |
|
|
<el-table-column prop="caseTitle" label="优秀案例标题" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="caseTitle" label="优秀案例标题" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="state" label="状态" :formatter="formatState" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="state" label="状态" :formatter="formatState" header-align="center" align="center"></el-table-column> |
|
@ -47,8 +46,6 @@ |
|
|
<el-table-column prop="createdTime" label="创建时间" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="createdTime" label="创建时间" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- <el-button type="text" size="small" @click="UpdateStateOff(scope.row.id)">{{"下架"}}</el-button>--> |
|
|
|
|
|
<!-- <el-button type="text" size="small" @click="UpdateStateOn(scope.row.id)">{{"上架"}}</el-button>--> |
|
|
|
|
|
<el-button v-if="$hasPermission('heart:actbanner:grounding')" type="text" size="small" @click="changeGroundingHandle(scope.row)">{{ changeGroundingText(scope.row.state) }}</el-button> |
|
|
<el-button v-if="$hasPermission('heart:actbanner:grounding')" type="text" size="small" @click="changeGroundingHandle(scope.row)">{{ changeGroundingText(scope.row.state) }}</el-button> |
|
|
<el-button type="text" size="small" @click="detailHandle(scope.row.id)">{{"查看详细"}}</el-button> |
|
|
<el-button type="text" size="small" @click="detailHandle(scope.row.id)">{{"查看详细"}}</el-button> |
|
|
</template> |
|
|
</template> |
|
@ -66,8 +63,6 @@ |
|
|
@current-change="pageCurrentChangeHandle"> |
|
|
@current-change="pageCurrentChangeHandle"> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <!– 弹窗, 新增 / 修改 –>--> |
|
|
|
|
|
<!-- <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>--> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
</template> |
|
|
</template> |
|
@ -117,14 +112,6 @@ export default { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// UpdateStateOn (id) { |
|
|
|
|
|
// this.mixinViewModuleOptions.getDataListURL = '/cloudAnalysis/typicalcase/on' + '/' + id |
|
|
|
|
|
// this.getDataList() |
|
|
|
|
|
// }, |
|
|
|
|
|
// UpdateStateOff (id) { |
|
|
|
|
|
// this.mixinViewModuleOptions.getDataListURL = '/cloudAnalysis/typicalcase/off' + '/' + id |
|
|
|
|
|
// this.getDataList() |
|
|
|
|
|
// }, |
|
|
|
|
|
detailHandle (id) { |
|
|
detailHandle (id) { |
|
|
this.$parent.selectComponent = 'CaseInfoDetailView' |
|
|
this.$parent.selectComponent = 'CaseInfoDetailView' |
|
|
this.$router.push({ path: '/case-typicalcase', query: { id: id } }) |
|
|
this.$router.push({ path: '/case-typicalcase', query: { id: id } }) |
|
|