|
@@ -1,6 +1,25 @@
|
|
<template>
|
|
<template>
|
|
<a-card :body-style="{padding: '24px 32px'}" :bordered="false">
|
|
<a-card :body-style="{padding: '24px 32px'}" :bordered="false">
|
|
<a-form>
|
|
<a-form>
|
|
|
|
+ <a-form-item
|
|
|
|
+ label="选择快手账户"
|
|
|
|
+ :labelCol="{xs: {span: 24},sm: {span: 5}}"
|
|
|
|
+ :wrapperCol="{xs: {span: 24},sm: {span: 16}}">
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="accountId"
|
|
|
|
+ showSearch
|
|
|
|
+ showArrow
|
|
|
|
+ allowClear
|
|
|
|
+ placeholder="选择需创建的快手账户"
|
|
|
|
+ optionFilterProp="children"
|
|
|
|
+ style="width: 500px"
|
|
|
|
+ :filterOption="filterOption"
|
|
|
|
+ >
|
|
|
|
+ <a-select-option v-for="userAccount in accountList" :key="userAccount.accountId"
|
|
|
|
+ :value="userAccount.accountId">{{userAccount.authName}}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
|
|
<a-form-item
|
|
<a-form-item
|
|
label="设备类型"
|
|
label="设备类型"
|
|
@@ -167,6 +186,8 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ accountId: '',
|
|
|
|
+ accountList: {},
|
|
appType: 'android',//设备类型
|
|
appType: 'android',//设备类型
|
|
platform: '1',//应用类型 : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏
|
|
platform: '1',//应用类型 : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏
|
|
uploadType: '1',//上传类型 1 本地上传 2 填写链接
|
|
uploadType: '1',//上传类型 1 本地上传 2 填写链接
|
|
@@ -190,7 +211,8 @@
|
|
form: this.$form.createForm(this),
|
|
form: this.$form.createForm(this),
|
|
url: {
|
|
url: {
|
|
|
|
|
|
- insertTemplateUrl: '/kuaishou/kuaiShouCreateAppTemplate/insert'
|
|
|
|
|
|
+ insertTemplateUrl: '/kuaishou/kuaiShouCreateAppTemplate/insert',
|
|
|
|
+ userAllocationList: '/ctop/userAllocation/list',
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -247,17 +269,23 @@
|
|
if (!err) {
|
|
if (!err) {
|
|
console.log('Received values of form: ', values);
|
|
console.log('Received values of form: ', values);
|
|
let params = {};
|
|
let params = {};
|
|
- if (this.uploadType == '1') {
|
|
|
|
- if (this.file != '') {
|
|
|
|
- params.file = this.file;
|
|
|
|
- }
|
|
|
|
- } else if (this.uploadType == '2') {
|
|
|
|
- params.url = this.downloadUrl;
|
|
|
|
- }
|
|
|
|
|
|
+ params.accountId = this.accountId;
|
|
if (this.imageUrl != '') {
|
|
if (this.imageUrl != '') {
|
|
params.imageUrl = this.imageUrl;
|
|
params.imageUrl = this.imageUrl;
|
|
}
|
|
}
|
|
|
|
+ if (this.platform == '2') {
|
|
|
|
+ params.url = this.downloadUrl;
|
|
|
|
+ } else {
|
|
|
|
+ if (this.uploadType == '1') {
|
|
|
|
+ if (this.file != '') {
|
|
|
|
+ params.file = this.file;
|
|
|
|
+ }
|
|
|
|
+ } else if (this.uploadType == '2') {
|
|
|
|
+ params.url = this.downloadUrl;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
params.platform = this.platform;
|
|
params.platform = this.platform;
|
|
|
|
+ params.uploadType = this.uploadType;
|
|
params.appType = this.appType;
|
|
params.appType = this.appType;
|
|
params.packageName = this.packageName;
|
|
params.packageName = this.packageName;
|
|
params.appName = this.appName;
|
|
params.appName = this.appName;
|
|
@@ -291,8 +319,10 @@
|
|
if (!err) {
|
|
if (!err) {
|
|
console.log('Received values of form: ', values);
|
|
console.log('Received values of form: ', values);
|
|
let params = {};
|
|
let params = {};
|
|
|
|
+ params.accountId = this.accountId;
|
|
params.appType = this.appType;
|
|
params.appType = this.appType;
|
|
params.platform = this.platform;
|
|
params.platform = this.platform;
|
|
|
|
+ params.uploadType = '2';
|
|
params.url = this.downloadUrl;
|
|
params.url = this.downloadUrl;
|
|
params.appName = this.appName;
|
|
params.appName = this.appName;
|
|
params.appVersion = this.appVersion;
|
|
params.appVersion = this.appVersion;
|
|
@@ -316,6 +346,18 @@
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ created: function () {
|
|
|
|
+ let params = {};
|
|
|
|
+ params.pageSize = '1000';
|
|
|
|
+ params.mediaId = '2';
|
|
|
|
+ params.userId = this.userInfo().id;
|
|
|
|
+ getAction(this.url.userAllocationList, params).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.accountList = res.result.records
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|