Commit 1df177de authored by youjie's avatar youjie

no message

parent abf26ffe
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<el-col :span="8"> <el-col :span="8">
<div class="MyEditForm-item label-pad-left"> <div class="MyEditForm-item label-pad-left">
<el-form-item label="平台" prop="PlatformType"> <el-form-item label="平台" prop="PlatformType">
<el-select v-model="form.PlatformType" placeholder="请选择平台"> <el-select v-model="form.PlatformType" placeholder="请选择平台" @change="clickChange">
<el-option v-for="item in PlatformTypeList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in PlatformTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -571,18 +571,12 @@ ...@@ -571,18 +571,12 @@
dialogTableVisible: false, dialogTableVisible: false,
loadingText:'', loadingText:'',
downloadUrl: "", downloadUrl: "",
dialogTableVisibleEdit: false dialogTableVisibleEdit: false,
fileUrl: 'http://crm.oytour.com'
}; };
}, },
mounted() { mounted() {
var fileUrl = "http://crm.oytour.com" this.GetDanUrl()
if (this.msg.PlatformType == 1) {
this.downloadUrl = fileUrl + "/ExportFile/小红书导入模板.xlsx";
} if (this.msg.PlatformType == 2) {
this.downloadUrl = fileUrl + "/static/微博导入模板.xlsx";
} if (this.msg.PlatformType == 3) {
this.downloadUrl = fileUrl + "/static/抖音导入模板.xlsx";
}
this.getEnumerate() this.getEnumerate()
}, },
...@@ -590,13 +584,25 @@ ...@@ -590,13 +584,25 @@
clickActive(item){ clickActive(item){
this.msg.PlatformType = item.Id this.msg.PlatformType = item.Id
this.init() this.init()
var fileUrl = "http://crm.oytour.com" this.GetDanUrl()
},
clickChange(){
if (this.form.PlatformType == 1) {
this.downloadUrl = this.fileUrl + "/ExportFile/小红书导入模板.xlsx";
} if (this.form.PlatformType == 2) {
this.downloadUrl = this.fileUrl + "/static/微博导入模板.xlsx";
} if (this.msg.PlatformType == 3) {
this.downloadUrl = this.fileUrl + "/static/抖音导入模板.xlsx";
}
},
// 导入模版地址
GetDanUrl(){
if (this.msg.PlatformType == 1) { if (this.msg.PlatformType == 1) {
this.downloadUrl = fileUrl + "/ExportFile/小红书导入模板.xlsx"; this.downloadUrl = this.fileUrl + "/ExportFile/小红书导入模板.xlsx";
} if (this.msg.PlatformType == 2) { } if (this.msg.PlatformType == 2) {
this.downloadUrl = fileUrl + "/static/微博导入模板.xlsx"; this.downloadUrl = this.fileUrl + "/static/微博导入模板.xlsx";
} if (this.msg.PlatformType == 3) { } if (this.msg.PlatformType == 3) {
this.downloadUrl = fileUrl + "/static/抖音导入模板.xlsx"; this.downloadUrl = this.fileUrl + "/static/抖音导入模板.xlsx";
} }
}, },
delAccount(row){ delAccount(row){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment