|
@@ -1,21 +1,16 @@
|
|
|
<template>
|
|
<template>
|
|
|
<d2-container>
|
|
<d2-container>
|
|
|
- <template slot="header"
|
|
|
|
|
- style="padding: 5px;">
|
|
|
|
|
- <img class="page_logo"
|
|
|
|
|
- src="././image/logo_nmg.png"
|
|
|
|
|
- width="100%"
|
|
|
|
|
- height="115"
|
|
|
|
|
- style="margin:0px">
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <img class="page_logo"
|
|
|
|
|
+ src="././image/logo_nmg.png"
|
|
|
|
|
+ width="100%">
|
|
|
<el-table ref="multipleTable"
|
|
<el-table ref="multipleTable"
|
|
|
:data="activities"
|
|
:data="activities"
|
|
|
border
|
|
border
|
|
|
fit
|
|
fit
|
|
|
tooltip-effect="dark"
|
|
tooltip-effect="dark"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- @sort-change="orderby"
|
|
|
|
|
- height="100%">
|
|
|
|
|
|
|
+ @sort-change="orderby">
|
|
|
<!-- <el-table-column label="操作"
|
|
<!-- <el-table-column label="操作"
|
|
|
width="160px"
|
|
width="160px"
|
|
|
align="center"
|
|
align="center"
|
|
@@ -135,8 +130,8 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
formatStatus (row, column) {
|
|
formatStatus (row, column) {
|
|
|
for (var i = 0; i < this.status.length; i++) {
|
|
for (var i = 0; i < this.status.length; i++) {
|
|
|
- if (this.status[i].value == row.status) {
|
|
|
|
|
- return this.status[i].key;
|
|
|
|
|
|
|
+ if (this.status[i].value === row.status) {
|
|
|
|
|
+ return this.status[i].key
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -144,10 +139,10 @@ export default {
|
|
|
this.search = {
|
|
this.search = {
|
|
|
Title: '',
|
|
Title: '',
|
|
|
Status: -1,
|
|
Status: -1,
|
|
|
- Content: '',
|
|
|
|
|
|
|
+ Content: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- //初始化分页分页对象
|
|
|
|
|
|
|
+ // 初始化分页分页对象
|
|
|
initPageInfo () {
|
|
initPageInfo () {
|
|
|
this.search.page = {
|
|
this.search.page = {
|
|
|
total: 0,
|
|
total: 0,
|
|
@@ -170,7 +165,7 @@ export default {
|
|
|
this.$refs.informationDialog.dialogvisible = false
|
|
this.$refs.informationDialog.dialogvisible = false
|
|
|
this.initPageInfo()
|
|
this.initPageInfo()
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
- console.log("handleClose informationId" + this.informationId)
|
|
|
|
|
|
|
+ console.log('handleClose informationId' + this.informationId)
|
|
|
},
|
|
},
|
|
|
publish (information) {
|
|
publish (information) {
|
|
|
information.status = 1
|
|
information.status = 1
|
|
@@ -194,7 +189,6 @@ export default {
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
deleteinformation (val) {
|
|
deleteinformation (val) {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let params = {
|
|
let params = {
|