|
|
@@ -53,7 +53,7 @@
|
|
|
<div class="contentCol2">
|
|
|
<span>平台版块</span>
|
|
|
<div v-if="releaseC !== '其它'">
|
|
|
- <select name="" id="" v-model="releaseP">
|
|
|
+ <select name="" v-model="releaseP">
|
|
|
<option v-for="(item, index) in releasePlate" :key="index">
|
|
|
{{ item.platformName || "-" }}
|
|
|
</option>
|
|
|
@@ -130,6 +130,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",
|
|
|
components: {
|
|
|
@@ -176,6 +178,7 @@ export default {
|
|
|
noEditFlag: false,
|
|
|
content1Param:{},
|
|
|
content2Param:{},
|
|
|
+ unifiedUrl: "/lexus_php/api/",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -333,25 +336,51 @@ export default {
|
|
|
console.log(err);
|
|
|
});
|
|
|
},
|
|
|
- channelType: function (data) {
|
|
|
+ channelType: function (dataObj) {
|
|
|
+ let dataParam;
|
|
|
+ if(dataObj){
|
|
|
+ dataParam = {
|
|
|
+ parentId:dataObj.parentId
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ dataParam = {}
|
|
|
+ }
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- this.$http({
|
|
|
- url: "/base/publishPlatformManager/selectPublishPlatformPage",
|
|
|
+ // this.$http({
|
|
|
+ // url: "/base/publishPlatformManager/selectPublishPlatformPage",
|
|
|
+ // method: "post",
|
|
|
+ // data,
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // this.releasePlate = [];
|
|
|
+ // if (res.data.code === 200) {
|
|
|
+ // if (!data) {
|
|
|
+ // this.releaseChannel = res.data.data;
|
|
|
+ // } else {
|
|
|
+ // this.releasePlate = res.data.data;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // resolve();
|
|
|
+ // })
|
|
|
+ // .catch((err) => {
|
|
|
+ // console.log(err);
|
|
|
+ // reject();
|
|
|
+ // });
|
|
|
+ axiosPhp({
|
|
|
method: "post",
|
|
|
- data,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
+ url: php_url + this.unifiedUrl +"publish_platform_list.php",
|
|
|
+ data:dataParam
|
|
|
+ }).then((res) => {
|
|
|
this.releasePlate = [];
|
|
|
if (res.data.code === 200) {
|
|
|
- if (!data) {
|
|
|
+ if (!dataObj) {
|
|
|
this.releaseChannel = res.data.data;
|
|
|
} else {
|
|
|
this.releasePlate = res.data.data;
|
|
|
}
|
|
|
}
|
|
|
resolve();
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
+ }).catch((err) => {
|
|
|
console.log(err);
|
|
|
reject();
|
|
|
});
|