|
|
@@ -67,7 +67,9 @@
|
|
|
<!-- 内容分类 内容分类2 -->
|
|
|
<td>{{ obj.carPlatformName }}</td>
|
|
|
<!-- 车型 -->
|
|
|
- <td>{{ obj.informationName }}</td>
|
|
|
+ <td :class="{ weiFanKui: !obj.id }">
|
|
|
+ {{ obj.id ? "已反馈" : "未反馈" }}
|
|
|
+ </td>
|
|
|
<!-- 反馈状态 未定-->
|
|
|
<td>{{ obj.endDate }}</td>
|
|
|
<!-- 反馈截止日期 -->
|
|
|
@@ -79,7 +81,9 @@
|
|
|
<!-- 链接 -->
|
|
|
|
|
|
<td class="operationStyle" style="cursor: pointer">
|
|
|
- <span @click="toggleModal(index)">编辑</span>
|
|
|
+ <span @click="toggleModal(index)" :class="showItemOperation"
|
|
|
+ >编辑</span
|
|
|
+ >
|
|
|
<span @click="viewHistoryRecord(index)">查看</span>
|
|
|
<!-- <span @click="toggleModal2(index)">删除</span> -->
|
|
|
<!-- 弹窗: 确定删除? -->
|
|
|
@@ -106,9 +110,9 @@
|
|
|
:releaseMedia="releaseMedia"
|
|
|
></Modal>
|
|
|
|
|
|
- <div class="timeLimitStyle">
|
|
|
+ <!-- <div class="timeLimitStyle">
|
|
|
<span>仅可对上传时间为{{ feedbackTimeLimit }}个月内的资料进行反馈</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<div class="pageBottom">
|
|
|
<div class="fileOperation">
|
|
|
@@ -142,7 +146,6 @@
|
|
|
:totalPage="totalPage"
|
|
|
@change_page="changePage"
|
|
|
@jump_page="jumpPage"
|
|
|
- class="tablePageStyle"
|
|
|
></TablePage>
|
|
|
</div>
|
|
|
|
|
|
@@ -282,8 +285,9 @@ export default {
|
|
|
file: "",
|
|
|
dictList: [],
|
|
|
onlineUrl: "http://8.136.230.133:8080",
|
|
|
- firmsDataCount: null,
|
|
|
userId: 254,
|
|
|
+ //截止日期
|
|
|
+ endTime: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -291,12 +295,56 @@ export default {
|
|
|
totalPage() {
|
|
|
return Math.ceil(this.sum / this.pageSize);
|
|
|
},
|
|
|
+
|
|
|
+ showItemOperation: function () {
|
|
|
+ let myDate = new Date();
|
|
|
+ myDate.getTime();
|
|
|
+ let R= "2021-04-15T10:52:13.480";
|
|
|
+ R = R.replace("T", " ").slice(0,-4);
|
|
|
+ console.log(R)
|
|
|
+ let startDateTime = new Date(R.replace(RegExp("-", "g"), "/")).getTime();
|
|
|
+ let time=new Date(R);
|
|
|
+ console.log(startDateTime)
|
|
|
+ console.log(time);
|
|
|
+ //
|
|
|
+ console.log(myDate.getTime());
|
|
|
+
|
|
|
+ let nowDate = this.CurentTime();
|
|
|
+
|
|
|
+ if (!this.endTime) {
|
|
|
+ console.log(nowDate);
|
|
|
+ return { showItemOperationStyle: true };
|
|
|
+ } else {
|
|
|
+ console.log(this.endTime);
|
|
|
+ if (nowDate < this.endTime) {
|
|
|
+ return { showItemOperationStyle: false };
|
|
|
+ } else {
|
|
|
+ return { showItemOperationStyle: true };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
+ CurentTime: function () {
|
|
|
+ var now = new Date();
|
|
|
+ var year = now.getFullYear(); //年
|
|
|
+ var month = now.getMonth() + 1; //月
|
|
|
+ var day = now.getDate(); //日
|
|
|
+ var clock = year + "/";
|
|
|
+
|
|
|
+ if (month < 10) clock += "0";
|
|
|
+ clock += month + "/";
|
|
|
+ if (day < 10) clock += "0";
|
|
|
+ clock += day;
|
|
|
+ return clock;
|
|
|
+ },
|
|
|
/*toggleModal:点击编辑后弹窗; toggleModal2:点击删除后弹窗; toggleModal3:点击导入后弹窗; */
|
|
|
toggleModal: function (i) {
|
|
|
this.showModal = !this.showModal;
|
|
|
this.modalData = this.tableData[i];
|
|
|
+
|
|
|
+ //截止日期判断
|
|
|
+ this.endTime = this.tableData[i].endTime;
|
|
|
},
|
|
|
closeme: function () {
|
|
|
this.showModal = !this.showModal;
|
|
|
@@ -350,7 +398,14 @@ export default {
|
|
|
/* 表格翻页 */
|
|
|
changePage: function (page) {
|
|
|
this.currentPage = page;
|
|
|
- console.log(page);
|
|
|
+ //console.log(page);
|
|
|
+ //分页取数据
|
|
|
+ let config = {
|
|
|
+ Page: this.currentPage,
|
|
|
+ Rows: this.pageSize,
|
|
|
+ agentId: this.userId,
|
|
|
+ };
|
|
|
+ this.getDataList(config);
|
|
|
},
|
|
|
// 点击上一页,下一页,首页,尾页
|
|
|
jumpPage: function (item) {
|
|
|
@@ -369,38 +424,34 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
console.log(this.currentPage);
|
|
|
+ //分页取数据
|
|
|
+ let config = {
|
|
|
+ Page: this.currentPage,
|
|
|
+ Rows: this.pageSize,
|
|
|
+ agentId: this.userId,
|
|
|
+ };
|
|
|
+ this.getDataList(config);
|
|
|
},
|
|
|
//获取资料列表
|
|
|
getDataList: function (config) {
|
|
|
- let date = new Date();
|
|
|
- let m = date.getMonth() + 1;
|
|
|
- let y = date.getFullYear();
|
|
|
- let d = y + "/" + m;
|
|
|
- console.log(config, d);
|
|
|
+ console.log(config);
|
|
|
this.$http({
|
|
|
url: "/firmsLinkUpload",
|
|
|
method: "post",
|
|
|
data: {
|
|
|
- // month: d,
|
|
|
- // publishPlatformId: config,
|
|
|
+ Page: config.Page,
|
|
|
+ Rows: config.Rows,
|
|
|
+ agentId: this.userId,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
- //this.tableData = [];
|
|
|
let data = res.data.data;
|
|
|
- this.firmsDataCount = data.length;
|
|
|
- /* for (
|
|
|
- let i = 0, j = 0;
|
|
|
- i < this.tableData.length && j < data.length;
|
|
|
- i++, j++
|
|
|
- ) {
|
|
|
- this.$set(this.tableData, i, data[j]);
|
|
|
- } */
|
|
|
+ console.log(data);
|
|
|
+ this.sum = res.data.count;
|
|
|
for (let i = 0, j = 0; j < data.length; i++, j++) {
|
|
|
this.$set(this.tableData, i, data[j]);
|
|
|
}
|
|
|
- console.log(this.tableData);
|
|
|
//修改素材时间显示格式
|
|
|
let len = this.tableData.length;
|
|
|
for (let i = 0; i < len; i++) {
|
|
|
@@ -465,8 +516,9 @@ export default {
|
|
|
fileDes.push(item.name);
|
|
|
});
|
|
|
console.log(fileDes);
|
|
|
- let remainCount = this.publishCount - this.firmsDataCount;
|
|
|
- console.log(remainCount, this.publishCount, this.firmsDataCount);
|
|
|
+ //导入文件与限制文件导入数量
|
|
|
+ let remainCount = this.publishCount - this.sum;
|
|
|
+ console.log(remainCount, this.publishCount, this.sum);
|
|
|
if (remainCount >= this.file.length) {
|
|
|
this.submitRequest();
|
|
|
} else if (remainCount < this.file.length) {
|
|
|
@@ -524,7 +576,7 @@ export default {
|
|
|
this.selectedPlatformId = obj.id;
|
|
|
|
|
|
//获取可发布数量
|
|
|
- // this.getReleaseQuantity(obj.id);
|
|
|
+ // this.getReleaseQuantity(obj.id);
|
|
|
|
|
|
//获取发布版块
|
|
|
this.chooseReleasePlate(obj.id);
|
|
|
@@ -650,11 +702,11 @@ export default {
|
|
|
},
|
|
|
viewHistoryRecord: function () {
|
|
|
this.$router.replace({
|
|
|
- path: "/UploadLink/sonUploadLink",
|
|
|
+ path: "uploadLink/sonUploadLink",
|
|
|
});
|
|
|
},
|
|
|
isFather: function () {
|
|
|
- console.log("isfffffff", this.$route.path.length);
|
|
|
+ // console.log("isfffffff", this.$route.path.length);
|
|
|
return this.$route.path.length > 11 ? false : true;
|
|
|
},
|
|
|
},
|
|
|
@@ -667,17 +719,23 @@ export default {
|
|
|
console.log("经销商ID 254");
|
|
|
this.userId = 254;
|
|
|
}
|
|
|
- // this.getPlatform();
|
|
|
- this.getDataList();
|
|
|
+ // this.getPlatform();
|
|
|
+ //分页取数据
|
|
|
+ let config = {
|
|
|
+ Page: this.currentPage,
|
|
|
+ Rows: this.pageSize,
|
|
|
+ agentId: this.userId,
|
|
|
+ };
|
|
|
+ this.getDataList(config);
|
|
|
},
|
|
|
created() {
|
|
|
- this.selectSysDataDictList()
|
|
|
+ /* this.selectSysDataDictList()
|
|
|
.then(() => {
|
|
|
this.getDateList();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
- });
|
|
|
+ }); */
|
|
|
//this.getPlatform();
|
|
|
},
|
|
|
};
|
|
|
@@ -908,10 +966,7 @@ export default {
|
|
|
font-size: 16px;
|
|
|
font-family: Arial;
|
|
|
}
|
|
|
-/* .tablePageStyle{
|
|
|
- position: relative;
|
|
|
- left: 266px;
|
|
|
-} */
|
|
|
+
|
|
|
.pageBottom {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
@@ -923,4 +978,10 @@ export default {
|
|
|
align-items: center;
|
|
|
margin-bottom: 6px;
|
|
|
}
|
|
|
+.weiFanKui {
|
|
|
+ color: red;
|
|
|
+}
|
|
|
+.showItemOperationStyle {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
</style>
|