Browse Source

内容管理增加排序

feature/syp_points
liuchuang 5 years ago
parent
commit
958db843d9
  1. 6
      src/views/modules/news/notice-add-or-update.vue
  2. 4
      src/views/modules/news/notice.vue

6
src/views/modules/news/notice-add-or-update.vue

@ -87,6 +87,9 @@
class="el-icon-plus avatar-uploader-icon"></i> class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort">
<el-input-number v-model="dataForm.sort" :min="0"></el-input-number>
</el-form-item>
</el-form> </el-form>
<template slot="footer"> <template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> <el-button @click="visible = false">{{ $t('cancel') }}</el-button>
@ -116,7 +119,8 @@ export default {
mobile: '', mobile: '',
noticeContent: '', noticeContent: '',
allDeptIdsShow: [], allDeptIdsShow: [],
noticeVideoUrl: '' noticeVideoUrl: '',
sort
}, },
value: '', value: '',
loading: false, loading: false,

4
src/views/modules/news/notice.vue

@ -69,6 +69,10 @@
header-align="center" header-align="center"
align="center" align="center"
width="180"></el-table-column> width="180"></el-table-column>
<el-table-column prop="sort"
label="排序"
header-align="center"
align="center"></el-table-column>
<el-table-column :label="$t('handle')" <el-table-column :label="$t('handle')"
fixed="right" fixed="right"
header-align="center" header-align="center"

Loading…
Cancel
Save