|
|
@@ -223,8 +223,6 @@ export default {
|
|
|
let d = y + "/" + m;
|
|
|
|
|
|
let config = {
|
|
|
- //url: "/dealerFeedback",
|
|
|
- // url: "/updateDealerFeedback",
|
|
|
url: "",
|
|
|
data: {
|
|
|
id: "", //主键值
|
|
|
@@ -251,16 +249,71 @@ export default {
|
|
|
};
|
|
|
|
|
|
if (this.LinkData.id) {
|
|
|
+ //编辑
|
|
|
config.url = "/updateDealerFeedback";
|
|
|
config.data.id = this.LinkData.id;
|
|
|
console.log(config.url);
|
|
|
} else {
|
|
|
+ //新增
|
|
|
config.url = "/dealerFeedback";
|
|
|
}
|
|
|
|
|
|
this.$emit("update", config);
|
|
|
this.$emit("closeme");
|
|
|
},
|
|
|
+ addInfo: function () {
|
|
|
+ let obj = {};
|
|
|
+ //获取资料名
|
|
|
+ let idVal = this.ziliaoId;
|
|
|
+ obj = this.dataName.find(function (item) {
|
|
|
+ return item.id === idVal;
|
|
|
+ });
|
|
|
+ this.ziliaoName = obj.informationName;
|
|
|
+ //获取车系 id
|
|
|
+ let nameCarS = this.carS;
|
|
|
+ obj = this.carSeries.find(function (item) {
|
|
|
+ return item.typeName === nameCarS;
|
|
|
+ });
|
|
|
+ console.log("chexi ", obj);
|
|
|
+ //carTypeId 表示车系 id
|
|
|
+ this.carTypeId = obj.id;
|
|
|
+ //获取车型名 this.carT
|
|
|
+ //获取平台名 this.selectedPlatform,
|
|
|
+
|
|
|
+ //当前月份
|
|
|
+ let date = new Date();
|
|
|
+ let m = date.getMonth() + 1;
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let d = y + "/" + m;
|
|
|
+
|
|
|
+ let config = {
|
|
|
+ url: "/dealerFeedback",
|
|
|
+ data: {
|
|
|
+ // id: "", //主键值
|
|
|
+ month: d,
|
|
|
+ dealerId: "254",
|
|
|
+ dataId: this.ziliaoId,
|
|
|
+ informationName: this.ziliaoName,
|
|
|
+ releaseTime: this.ziliaoTime,
|
|
|
+ carService: this.carS,
|
|
|
+ carType: this.carT,
|
|
|
+ //releasePlate: this.selectedPlatform,
|
|
|
+ //releaseMedia: this.releaseP,
|
|
|
+ //发布板块
|
|
|
+ releasePlate: this.releaseP,
|
|
|
+ //发布平台
|
|
|
+ releaseMedia: this.selectedPlatform,
|
|
|
+ draftGenre: this.contentName1,
|
|
|
+
|
|
|
+ //内容分类2?
|
|
|
+ contentClass: this.contentName2,
|
|
|
+ articleTitle: this.mediaTitle,
|
|
|
+ articleLink: this.mediaUrl,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ this.$emit("update", config);
|
|
|
+ this.$emit("closeme");
|
|
|
+ },
|
|
|
//资料名称列表
|
|
|
chooseDataName: function () {
|
|
|
this.$http({
|