+
-
-
+
+
{{ scope.$index + 1 }}
@@ -28,9 +49,11 @@
-
- 编辑
- 删除
+
+
+ 编辑
+
+ 删除
@@ -112,7 +135,6 @@
@@ -511,27 +519,27 @@ export default {
}
}
}
-/deep/ .el-table__header-wrapper{
- thead{
- tr{
- th{
- background: #F5F7FA;
+/deep/ .el-table__header-wrapper {
+ thead {
+ tr {
+ th {
+ background: #f5f7fa;
color: #333333;
}
}
}
}
-/deep/ .el-dialog--center{
+/deep/ .el-dialog--center {
border-radius: 8px;
- .el-dialog__title{
+ .el-dialog__title {
font-weight: bold;
}
}
-/deep/ .el-button--primary{
- background: #2671E2 !important;
- border: 1px solid #2671E2 !important;
+/deep/ .el-button--primary {
+ background: #2671e2 !important;
+ border: 1px solid #2671e2 !important;
}
-/deep/ .el-button--text{
- color: #2671E2;
+/deep/ .el-button--text {
+ color: #2671e2;
}
diff --git a/src/views/contentManage/updateRecord/list.vue b/src/views/contentManage/updateRecord/list.vue
index a27bb62..d7865af 100644
--- a/src/views/contentManage/updateRecord/list.vue
+++ b/src/views/contentManage/updateRecord/list.vue
@@ -48,7 +48,26 @@
-
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
@@ -85,6 +104,16 @@ export default {
name: "updateList",
data() {
return {
+ tableIdName: "contentManageUpdateRecordList", // 当前页面需要的变量
+ tableOption: this.$tableOption.contentManageUpdateRecordList, // 当前table配置项
+ tableLoading: false, // 监听的显示列的变量
+ showColumn: [], // 监听的显示列的变量
+ page: {
+ total: 0, // 总页数
+ currentPage: 1, // 当前页数
+ pageSize: 10, // 每页显示多少条
+ },
+
current: 1,
size:10,
total:0,
@@ -97,8 +126,18 @@ export default {
computed: {
...mapGetters(["permissions"]),
},
- watch: {},
+ watch: {
+ showColumn(nowV) {
+ let params = {
+ tableIdName: this.tableIdName,
+ optionData: nowV,
+ };
+ this.$db.upDate(params);
+ },
+ },
created() {
+ // 获取显隐的列表
+ this.setTableOption();
this.con_list_add = this.permissions["con_list_add"];
this.con_list_modify = this.permissions["con_list_modify"];
this.con_list_del = this.permissions["con_list_del"];
@@ -110,21 +149,33 @@ export default {
this.selValue = "1"
}
let data = {
- current:1,
- size:10,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
}
if (data.orgType == 3) data.messageType = 3
this.filefindByPage(data)
},
methods: {
+
+ // 获取当前页面的显隐
+ setTableOption() {
+ this.$db.getDataByKey(this.tableIdName).then((res) => {
+ console.log(res, "获取存储的res");
+ if (res.tableIdName == this.tableIdName) {
+ this.showColumn = res.optionData;
+ }
+ });
+ },
selChange() {
let data = {
- current:1,
- size:10,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
- startTime:this.time[0],
- endTime:this.time[1],
+ }
+ if (this.time) {
+ data.startTime = this.time[0]
+ data.endTime = this.time[1]
}
if (data.orgType == 3) data.messageType = 3
this.filefindByPage(data)
@@ -137,8 +188,8 @@ export default {
},
noempty() {
let data = {
- current:1,
- size:10,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
startTime:this.time[0],
endTime:this.time[1]
@@ -148,8 +199,8 @@ export default {
},
empty() {
let data = {
- current:1,
- size:10,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
startTime:"",
endTime:"",
@@ -177,20 +228,23 @@ export default {
}
});
},
+ // 分页数量改变
handleSizeChange(val) {
- this.size=val;
+ this.page.pageSize = val;
let data = {
- current:1,
- size:val,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
}
this.filefindByPage(data)
},
+
+ // 翻页
handleCurrentChange(val) {
- this.current = val;
+ this.page.currentPage = val;
let data = {
- current:val,
- size:10,
+ current: this.page.currentPage,
+ size: this.page.pageSize,
orgType:this.selValue,
}
this.filefindByPage(data)
diff --git a/src/views/contentManage/updateRecord/table.js b/src/views/contentManage/updateRecord/table.js
new file mode 100644
index 0000000..3212891
--- /dev/null
+++ b/src/views/contentManage/updateRecord/table.js
@@ -0,0 +1,39 @@
+export default {
+ contentManageUpdateRecordList: {
+ border: true,
+ index: false,
+ height: 572,
+ indexLabel: "序号",
+ stripe: true,
+ menuAlign: "center",
+ menuWidth: 146,
+ menu: true,
+ align: "center",
+ refreshBtn: false,
+ searchSize: "mini",
+ searchMenuSpan: 9,
+ delBtn: false,
+ addBtn: false,
+ editBtn: false,
+ viewBtn: false,
+ size: "small",
+ column: [
+ {
+ label: "标题",
+ prop: "title",
+ },
+ {
+ label: "阅读数",
+ prop: "pageView",
+ },
+ {
+ label: "发布人",
+ prop: "createUser",
+ },
+ {
+ label: "发布时间",
+ prop: "createTime",
+ },
+ ]
+ }
+}
\ No newline at end of file