|
|
@@ -19,7 +19,8 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="bodyRow timeWidth">
|
|
|
- <span>发布时间</span><input type="date" placeholder="选择时间" />
|
|
|
+ <span>发布时间</span
|
|
|
+ ><input type="date" placeholder="选择时间" v-model="ziliaoTime" />
|
|
|
</div>
|
|
|
<div class="bodyRow">
|
|
|
<div class="contentCol1">
|
|
|
@@ -36,7 +37,7 @@
|
|
|
</div>
|
|
|
<div class="contentCol2">
|
|
|
<span>车型</span
|
|
|
- ><select>
|
|
|
+ ><select v-model="carT">
|
|
|
<option
|
|
|
v-for="(item, index) in carType"
|
|
|
:key="index"
|
|
|
@@ -54,11 +55,11 @@
|
|
|
</div>
|
|
|
<div class="contentCol2">
|
|
|
<span>发布板块</span
|
|
|
- ><select name="" id="">
|
|
|
+ ><select name="" id="" v-model="releaseP">
|
|
|
<option
|
|
|
v-for="(item, index) in releasePlate"
|
|
|
:key="index"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.platformName"
|
|
|
>
|
|
|
{{ item.platformName }}
|
|
|
</option>
|
|
|
@@ -74,11 +75,11 @@
|
|
|
<div class="bodyRow">
|
|
|
<div class="contentCol1">
|
|
|
<span>内容分类1</span
|
|
|
- ><select name="" id="">
|
|
|
+ ><select name="" id="" v-model="contentName1" >
|
|
|
<option
|
|
|
v-for="(item, index) in content1"
|
|
|
:key="index"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.dictName"
|
|
|
>
|
|
|
{{ item.dictName }}
|
|
|
</option>
|
|
|
@@ -86,11 +87,11 @@
|
|
|
</div>
|
|
|
<div class="contentCol2">
|
|
|
<span>内容分类2</span
|
|
|
- ><select name="" id="">
|
|
|
+ ><select name="" id="" v-model="contentName2">
|
|
|
<option
|
|
|
v-for="(item, index) in content2"
|
|
|
:key="index"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.dictName"
|
|
|
>
|
|
|
{{ item.dictName }}
|
|
|
</option>
|
|
|
@@ -134,12 +135,12 @@ export default {
|
|
|
return "";
|
|
|
},
|
|
|
},
|
|
|
- sonPlatformId: {
|
|
|
+ /* sonPlatformId: {
|
|
|
type: String,
|
|
|
default: () => {
|
|
|
return "";
|
|
|
},
|
|
|
- },
|
|
|
+ }, */
|
|
|
releasePlate: {
|
|
|
type: Array,
|
|
|
default: () => {
|
|
|
@@ -154,9 +155,11 @@ export default {
|
|
|
carType: [],
|
|
|
content1: [],
|
|
|
content2: [],
|
|
|
- // releasePlate: [],
|
|
|
+ // releasePlate: [],
|
|
|
|
|
|
carS: "",
|
|
|
+ carT: "",
|
|
|
+ releaseP: "",
|
|
|
ziliaoId: "",
|
|
|
content1Id: "",
|
|
|
content2Id: "",
|
|
|
@@ -169,26 +172,87 @@ export default {
|
|
|
projectTypeName: "",
|
|
|
publishDate: "",
|
|
|
publishSourceName: "",
|
|
|
+
|
|
|
+ ziliaoName: "",
|
|
|
+ ziliaoTime: "",
|
|
|
+ contentName1: "",
|
|
|
+ contentName2: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
closeSelf() {
|
|
|
this.$emit("closeme");
|
|
|
},
|
|
|
+ /* getAllFileInfo: function () {
|
|
|
+ let obj = {};
|
|
|
+ //获取资料名
|
|
|
+ obj = this.dataName.find(function (item) {
|
|
|
+ return item.id === this.ziliaoId;
|
|
|
+ });
|
|
|
+ this.ziliaoName = obj.informationName;
|
|
|
+ //获取车系
|
|
|
+ obj = this.carSeries.find(function (item) {
|
|
|
+ return item.id === this.ziliaoId;
|
|
|
+ });
|
|
|
+ this.carTypeName = obj.typeName;
|
|
|
+ //获取车型 this.carT
|
|
|
+ //获取平台 this.selectedPlatform,
|
|
|
+ let info = {
|
|
|
+ informationName: this.ziliaoName,
|
|
|
+ releaseTime: this.ziliaoTime,
|
|
|
+ carService: this.carTypeName,
|
|
|
+ carType: this.carT,
|
|
|
+ releasePlate: this.selectedPlatform,
|
|
|
+ releaseMedia: this.releaseP,
|
|
|
+ contentClass: "",
|
|
|
+ articleTitle: this.mediaTitle,
|
|
|
+ articleLink: this.mediaUrl,
|
|
|
+ };
|
|
|
+ console.log(info);
|
|
|
+ }, */
|
|
|
//message: "没有找到经销商信息"// url: "/importDealerFeedback",
|
|
|
- //message: "没有要导入的文件" accountId agentName agentId dlrName dlrCode dealerId dataId
|
|
|
+ //message: "没有要导入的文件"
|
|
|
edit: function () {
|
|
|
+ let obj = {};
|
|
|
+ //获取资料名
|
|
|
+ let idVal = this.ziliaoId;
|
|
|
+ obj = this.dataName.find(function (item) {
|
|
|
+ return item.id === idVal;
|
|
|
+ });
|
|
|
+ this.ziliaoName = obj.informationName;
|
|
|
+ //获取车系名
|
|
|
+ let idCarS = this.carS;
|
|
|
+ obj = this.carSeries.find(function (item) {
|
|
|
+ return item.id === idCarS;
|
|
|
+ });
|
|
|
+ this.carTypeName = obj.typeName;
|
|
|
+ //获取车型名 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: {
|
|
|
- dealerId: "L0210_MM",
|
|
|
- //id: '1377835162976477186',
|
|
|
- dataId: "1377835162976477186",
|
|
|
- Title: this.mediaTitle,
|
|
|
- Url: this.mediaUrl,
|
|
|
+ month: d,
|
|
|
+ dealerId: "254",
|
|
|
+ dataId: this.ziliaoId,
|
|
|
+ informationName: this.ziliaoName,
|
|
|
+ releaseTime: this.ziliaoTime,
|
|
|
+ carService: this.carTypeName,
|
|
|
+ carType: this.carT,
|
|
|
+ releasePlate: this.selectedPlatform,
|
|
|
+ releaseMedia: this.releaseP,
|
|
|
+ draftGenre: this.contentName1,
|
|
|
+ contentClass: this.contentName1,
|
|
|
+ articleTitle: this.mediaTitle,
|
|
|
+ articleLink: this.mediaUrl,
|
|
|
},
|
|
|
};
|
|
|
- console.log("edit2:", config);
|
|
|
+ // console.log("edit2:", config);
|
|
|
this.$emit("update", config);
|
|
|
},
|
|
|
//资料名称列表
|
|
|
@@ -208,7 +272,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//发布版块
|
|
|
- /* chooseReleasePlate: function () {
|
|
|
+ /* chooseReleasePlate: function () {
|
|
|
console.log(this.sonPlatformId)
|
|
|
this.$http({
|
|
|
url: "/base/publishPlatformManager/selectPublishPlatformList",
|
|
|
@@ -228,7 +292,6 @@ export default {
|
|
|
});
|
|
|
}, */
|
|
|
|
|
|
-
|
|
|
//不分页查询车系车型信息
|
|
|
chooseCarSeries: function () {
|
|
|
this.$http({
|