|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="modal-backdrop">
|
|
|
<div class="modal">
|
|
|
<div class="modal-header">
|
|
|
- <span>编辑</span>
|
|
|
+ <span>{{ modalTitle }}</span>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="bodyRow">
|
|
|
@@ -53,16 +53,21 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="contentCol2">
|
|
|
- <span>平台版块</span
|
|
|
- ><select name="" id="" v-model="releaseP">
|
|
|
- <option
|
|
|
- v-for="(item, index) in releasePlate"
|
|
|
- :key="index"
|
|
|
- :value="item.platformName"
|
|
|
- >
|
|
|
- {{ item.platformName }}
|
|
|
- </option>
|
|
|
- </select>
|
|
|
+ <span>平台版块</span>
|
|
|
+ <div v-if="releaseC !== '其它'">
|
|
|
+ <select name="" id="" v-model="releaseP">
|
|
|
+ <option
|
|
|
+ v-for="(item, index) in releasePlate"
|
|
|
+ :key="index"
|
|
|
+ :value="item.platformName"
|
|
|
+ >
|
|
|
+ {{ item.platformName }}
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <input type="text" v-model="releaseP">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bodyRow">
|
|
|
@@ -150,6 +155,10 @@ export default {
|
|
|
type: String,
|
|
|
default: "",
|
|
|
},
|
|
|
+ modalTitle: {
|
|
|
+ type: String,
|
|
|
+ default: "编辑",
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -207,9 +216,7 @@ export default {
|
|
|
} else {
|
|
|
month = month + "";
|
|
|
}
|
|
|
- //this.localMonth = year + "-" + month;
|
|
|
this.localDay = year + "-" + month + "-" + day;
|
|
|
- console.log(this.localDay);
|
|
|
},
|
|
|
edit: function () {
|
|
|
let obj = {};
|
|
|
@@ -233,7 +240,6 @@ export default {
|
|
|
let m = date.getMonth() + 1;
|
|
|
let y = date.getFullYear();
|
|
|
let d = y + "/" + m;
|
|
|
-console.log(this.ziliaoId)
|
|
|
let config = {
|
|
|
url: "",
|
|
|
data: {
|
|
|
@@ -241,7 +247,6 @@ console.log(this.ziliaoId)
|
|
|
month: d,
|
|
|
dealerId: this.userId,
|
|
|
dataId: this.ziliaoId,
|
|
|
- //dataId: "1386025423408103425",
|
|
|
informationName: this.ziliaoName,
|
|
|
releaseTime: this.ziliaoTime,
|
|
|
carService: this.carS,
|
|
|
@@ -270,11 +275,9 @@ console.log(this.ziliaoId)
|
|
|
//编辑
|
|
|
config.url = "/updateDealerFeedback";
|
|
|
config.data.id = this.LinkData.id;
|
|
|
- console.log(config.url);
|
|
|
} else {
|
|
|
//新增
|
|
|
config.url = "/dealerFeedback";
|
|
|
- console.log("新增", 222);
|
|
|
}
|
|
|
|
|
|
this.$emit("update", config);
|
|
|
@@ -294,7 +297,6 @@ console.log(this.ziliaoId)
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.dataName = res.data.data;
|
|
|
- console.log(this.dataName);
|
|
|
//获取资料名
|
|
|
let obj = {};
|
|
|
let idVal = this.ziliaoId;
|
|
|
@@ -316,7 +318,6 @@ console.log(this.ziliaoId)
|
|
|
data: {},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(res, 2222222222222222);
|
|
|
if (res.data.code === 200) {
|
|
|
this.carType = res.data.data;
|
|
|
this.chooseCarType();
|
|
|
@@ -335,14 +336,13 @@ console.log(this.ziliaoId)
|
|
|
obj = this.carSeries.find(function (item) {
|
|
|
return item.typeName === nameCarS;
|
|
|
});
|
|
|
- console.log(this.carSeries, obj);
|
|
|
this.carTypeId = obj.id;
|
|
|
|
|
|
this.$http({
|
|
|
url: "/base/carTypeManager/selectCarTypeList",
|
|
|
method: "post",
|
|
|
data: {
|
|
|
- parentId: this.carTypeId || -1,
|
|
|
+ parentId: this.carTypeId || '-',
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
@@ -370,7 +370,6 @@ console.log(this.ziliaoId)
|
|
|
this.content1Id = res.data.data[0].id;
|
|
|
this.secondContent1Classify();
|
|
|
}
|
|
|
- console.log("contentClassify1", res.data.data[0].id);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
@@ -388,7 +387,6 @@ console.log(this.ziliaoId)
|
|
|
if (res.data.code === 200) {
|
|
|
this.content1 = res.data.data;
|
|
|
}
|
|
|
- console.log("second contentClassify1", res.data.data);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
@@ -408,7 +406,6 @@ console.log(this.ziliaoId)
|
|
|
this.content2Id = res.data.data[0].id;
|
|
|
this.secondContent2Classify();
|
|
|
}
|
|
|
- console.log("contentClassify2", res.data.data[0].id);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
@@ -426,7 +423,6 @@ console.log(this.ziliaoId)
|
|
|
if (res.data.code === 200) {
|
|
|
this.content2 = res.data.data;
|
|
|
}
|
|
|
- console.log("second contentClassify2", res.data.data);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
@@ -434,7 +430,6 @@ console.log(this.ziliaoId)
|
|
|
},
|
|
|
|
|
|
initialData: function () {
|
|
|
- console.log(this.fileName, this.$route.query.informationName);
|
|
|
this.ziliaoName = this.fileName;
|
|
|
if(this.LinkData.informationId) this.ziliaoId = this.LinkData.informationId;
|
|
|
else{
|
|
|
@@ -473,7 +468,6 @@ console.log(this.ziliaoId)
|
|
|
testUrl: function () {
|
|
|
var regex = /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?$/;
|
|
|
let flag = regex.test(this.mediaUrl);
|
|
|
- // console.log(flag, regex);
|
|
|
if (flag) {
|
|
|
if (flag) {
|
|
|
this.edit();
|
|
|
@@ -505,7 +499,6 @@ this.readCount&&this.goodCount&& this.bbsCount&& this.lookingCount */
|
|
|
obj = this.releaseChannel.find(function (item) {
|
|
|
return item.platformName === val;
|
|
|
});
|
|
|
- console.log(this.releaseC, obj);
|
|
|
//传当前渠道 id, 获取发布版块列表
|
|
|
this.chooseReleasePlate(obj.id);
|
|
|
}
|
|
|
@@ -524,10 +517,8 @@ this.readCount&&this.goodCount&& this.bbsCount&& this.lookingCount */
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
this.releasePlate = res.data.data;
|
|
|
- console.log("发布版块", this.releasePlate);
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -538,10 +529,8 @@ this.readCount&&this.goodCount&& this.bbsCount&& this.lookingCount */
|
|
|
mounted() {
|
|
|
let localUserId = localStorage.getItem("userId");
|
|
|
if (localUserId) {
|
|
|
- console.log("经销商ID", localUserId);
|
|
|
this.userId = localUserId;
|
|
|
} else {
|
|
|
- console.log("经销商ID '-");
|
|
|
this.userId = "";
|
|
|
}
|
|
|
this.getLocalMonth();
|