|
|
@@ -315,6 +315,33 @@ export default {
|
|
|
if (res.data.code === 200) {
|
|
|
this.tableData = res.data.data;
|
|
|
this.sum = res.data.count;
|
|
|
+ //修改素材时间显示格式
|
|
|
+ if (this.tableData[0].filePulishTime.length >= 7) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].filePulishTime;
|
|
|
+ newValue = temp.slice(0, 4) + "/" + temp.slice(5, 7); //+ "/" + temp.slice(8,10)
|
|
|
+ this.$set(this.tableData[i], "filePulishTime", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //修改上传时间显示格式
|
|
|
+ if (this.tableData[0].fileUploadDate.length >= 10) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].fileUploadDate;
|
|
|
+ newValue =
|
|
|
+ temp.slice(0, 4) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(5, 7) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(8, 10) +
|
|
|
+ " " +
|
|
|
+ temp.slice(11, 19);
|
|
|
+ this.$set(this.tableData[i], "fileUploadDate", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -336,6 +363,33 @@ export default {
|
|
|
console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
this.tableData = res.data.data;
|
|
|
+ //修改素材时间显示格式
|
|
|
+ if (this.tableData[0].filePulishTime.length >= 7) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].filePulishTime;
|
|
|
+ newValue = temp.slice(0, 4) + "/" + temp.slice(5, 7); //+ "/" + temp.slice(8,10)
|
|
|
+ this.$set(this.tableData[i], "filePulishTime", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //修改上传时间显示格式
|
|
|
+ if (this.tableData[0].fileUploadDate.length >= 10) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].fileUploadDate;
|
|
|
+ newValue =
|
|
|
+ temp.slice(0, 4) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(5, 7) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(8, 10) +
|
|
|
+ " " +
|
|
|
+ temp.slice(11, 19);
|
|
|
+ this.$set(this.tableData[i], "fileUploadDate", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -355,6 +409,33 @@ export default {
|
|
|
if (res.data.code === 200) {
|
|
|
this.tableData = res.data.data;
|
|
|
this.sum = res.data.count;
|
|
|
+ //修改素材时间显示格式
|
|
|
+ if (this.tableData[0].filePulishTime.length >= 7) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].filePulishTime;
|
|
|
+ newValue = temp.slice(0, 4) + "/" + temp.slice(5, 7); //+ "/" + temp.slice(8,10)
|
|
|
+ this.$set(this.tableData[i], "filePulishTime", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //修改上传时间显示格式
|
|
|
+ if (this.tableData[0].fileUploadDate.length >= 10) {
|
|
|
+ let len = this.tableData.length;
|
|
|
+ for (let i = 0; i < len; i++) {
|
|
|
+ let newValue = "";
|
|
|
+ let temp = this.tableData[i].fileUploadDate;
|
|
|
+ newValue =
|
|
|
+ temp.slice(0, 4) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(5, 7) +
|
|
|
+ "/" +
|
|
|
+ temp.slice(8, 10) +
|
|
|
+ " " +
|
|
|
+ temp.slice(11, 19);
|
|
|
+ this.$set(this.tableData[i], "fileUploadDate", newValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -367,6 +448,13 @@ export default {
|
|
|
let searchName = this.searchName;
|
|
|
let data = {
|
|
|
informationName: searchName,
|
|
|
+ Page: 1,
|
|
|
+ Rows: this.pageSize,
|
|
|
+ agentId: this.userId,
|
|
|
+ //搜索重置条件
|
|
|
+ asc: false,
|
|
|
+ report: '',
|
|
|
+ download: '',
|
|
|
};
|
|
|
this.newGetDataList(data);
|
|
|
},
|