|
@@ -22,17 +22,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
|
|
|
- <el-card class="box-card">
|
|
|
|
|
- <div slot="header" class="clearfix">
|
|
|
|
|
- <span>站点公告</span>
|
|
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="handleUpdateNotice">更新</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="text item">
|
|
|
|
|
- {{ siteNotice }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </el-card>
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="movie-list">
|
|
<el-row class="movie-list">
|
|
|
<el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
<el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
@@ -68,37 +57,6 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
- <el-dialog
|
|
|
|
|
- append-to-body
|
|
|
|
|
- :visible.sync="updateDialog"
|
|
|
|
|
- width="30%"
|
|
|
|
|
- center
|
|
|
|
|
- >
|
|
|
|
|
- <el-row style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px; text-align: center">
|
|
|
|
|
- <el-form ref="form" :model="updateForm" label-width="100px">
|
|
|
|
|
- <el-form-item label="新公告" label-width="90px">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="updateForm.content"
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- maxlength="200"
|
|
|
|
|
- :rows="3"
|
|
|
|
|
- placeholder="请输入新公告"
|
|
|
|
|
- style="padding: 5px"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item>
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click.native="onUpdateNotice"
|
|
|
|
|
- >更新</el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click.native="updateDialog = false"
|
|
|
|
|
- >取消</el-button>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-form>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
append-to-body
|
|
append-to-body
|
|
|
:visible.sync="addCategoryDialog"
|
|
:visible.sync="addCategoryDialog"
|
|
@@ -137,7 +95,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { userMixin } from 'assets/js/mixin'
|
|
import { userMixin } from 'assets/js/mixin'
|
|
|
-import { getSiteNotice, getVipPlan, updateSiteNotice } from '@/api/admin'
|
|
|
|
|
|
|
+import { getVipPlan } from '@/api/admin'
|
|
|
import { videoCategories } from '@/api/vod'
|
|
import { videoCategories } from '@/api/vod'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -151,11 +109,6 @@ export default {
|
|
|
label: 'label',
|
|
label: 'label',
|
|
|
value: 'value'
|
|
value: 'value'
|
|
|
},
|
|
},
|
|
|
- siteNotice: null,
|
|
|
|
|
- updateDialog: false,
|
|
|
|
|
- updateForm: {
|
|
|
|
|
- content: null
|
|
|
|
|
- },
|
|
|
|
|
addCategoryDialog: false,
|
|
addCategoryDialog: false,
|
|
|
categoryForm: {
|
|
categoryForm: {
|
|
|
pid: null,
|
|
pid: null,
|
|
@@ -189,34 +142,11 @@ export default {
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
|
this.$message.error(error.message)
|
|
this.$message.error(error.message)
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
- getSiteNotice().then(resp => {
|
|
|
|
|
- if (resp.code === 0) {
|
|
|
|
|
- this.siteNotice = resp.data
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.warning(resp.msg)
|
|
|
|
|
- }
|
|
|
|
|
- }).catch(error => {
|
|
|
|
|
- this.$message.error(error.message)
|
|
|
|
|
- })
|
|
|
|
|
},
|
|
},
|
|
|
// ****************************************************************************************************************
|
|
// ****************************************************************************************************************
|
|
|
handleNodeClick() {
|
|
handleNodeClick() {
|
|
|
this.$message.info('handleNodeClick')
|
|
this.$message.info('handleNodeClick')
|
|
|
},
|
|
},
|
|
|
- handleUpdateNotice() {
|
|
|
|
|
- this.updateDialog = true
|
|
|
|
|
- },
|
|
|
|
|
- onUpdateNotice() {
|
|
|
|
|
- updateSiteNotice(this.updateForm).then(resp => {
|
|
|
|
|
- if (resp.code === 0) {
|
|
|
|
|
- this.$message.warning(resp.msg)
|
|
|
|
|
- this.updateDialog = false
|
|
|
|
|
- }
|
|
|
|
|
- }).catch(error => {
|
|
|
|
|
- this.$message.error(error.message)
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
onAddCategory() {
|
|
onAddCategory() {
|
|
|
this.addCategoryDialog = true
|
|
this.addCategoryDialog = true
|
|
|
},
|
|
},
|