|
|
@@ -39,7 +39,7 @@
|
|
|
<div class="bodyRow">
|
|
|
<div class="contentCol1">
|
|
|
<span>发布渠道</span>
|
|
|
- <select name="" id="" v-model="releaseC" @change="chooseChannel">
|
|
|
+ <select name="" v-model="releaseC" @change="chooseChannel">
|
|
|
<option
|
|
|
v-for="(item, index) in releaseChannel"
|
|
|
:key="index"
|
|
|
@@ -141,6 +141,8 @@
|
|
|
<script>
|
|
|
import Datepicker from "vuejs-datepicker";
|
|
|
import { zh } from "vuejs-datepicker/dist/locale";
|
|
|
+import { php_url } from "../config/env";
|
|
|
+import axiosPhp from "axios";
|
|
|
export default {
|
|
|
name: "Modal",
|
|
|
props: {
|
|
|
@@ -172,7 +174,7 @@ export default {
|
|
|
carType: [],
|
|
|
content1: [],
|
|
|
content2: [],
|
|
|
-
|
|
|
+ unifiedUrl: "/lexus_php/api/",
|
|
|
carS: "",
|
|
|
carT: "",
|
|
|
releaseP: "",
|
|
|
@@ -538,26 +540,45 @@ export default {
|
|
|
|
|
|
//下拉选择平台 渠道
|
|
|
chooseChannel: function () {
|
|
|
- this.$http({
|
|
|
- url: "/base/publishPlatformManager/selectPublishPlatformList",
|
|
|
+ axiosPhp({
|
|
|
method: "post",
|
|
|
- data: {},
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.data.code === 200) {
|
|
|
- this.releaseChannel = res.data.data;
|
|
|
- let obj = {};
|
|
|
- let val = this.releaseC;
|
|
|
- obj = this.releaseChannel.find(function (item) {
|
|
|
- return item.platformName === val;
|
|
|
- });
|
|
|
- //传当前渠道 id, 获取发布版块列表
|
|
|
- this.chooseReleasePlate(obj.id);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ url: php_url + this.unifiedUrl +"publish_platform_list.php",
|
|
|
+ data:{
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data && res.data.code === 200) {
|
|
|
+ this.releaseChannel = res.data.data;
|
|
|
+ let obj = {};
|
|
|
+ let val = this.releaseC;
|
|
|
+ obj = this.releaseChannel.find(function (item) {
|
|
|
+ return item.platformName === val;
|
|
|
+ });
|
|
|
+ //传当前渠道 id, 获取发布版块列表
|
|
|
+ this.chooseReleasePlate(obj.id);
|
|
|
+ }
|
|
|
+ }).catch((err) => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ // this.$http({
|
|
|
+ // url: "/base/publishPlatformManager/selectPublishPlatformList",
|
|
|
+ // method: "post",
|
|
|
+ // data: {},
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.data.code === 200) {
|
|
|
+ // this.releaseChannel = res.data.data;
|
|
|
+ // let obj = {};
|
|
|
+ // let val = this.releaseC;
|
|
|
+ // obj = this.releaseChannel.find(function (item) {
|
|
|
+ // return item.platformName === val;
|
|
|
+ // });
|
|
|
+ // //传当前渠道 id, 获取发布版块列表
|
|
|
+ // this.chooseReleasePlate(obj.id);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch((err) => {
|
|
|
+ // console.log(err);
|
|
|
+ // });
|
|
|
},
|
|
|
//发布版块
|
|
|
chooseReleasePlate: function (val) {
|