Commit e70f8f53 authored by zhengke's avatar zhengke

修改

parent 06769073
...@@ -147,15 +147,15 @@ ...@@ -147,15 +147,15 @@
</el-form-item> </el-form-item>
<el-form-item label="热区链接" v-if="isLink"> <el-form-item label="热区链接" v-if="isLink">
<template v-if="chooseType=='rubik'"> <template v-if="chooseType=='rubik'">
<el-input size="small" style="width: 100%;" :disabled="true" <el-input size="small" style="width: 100%;"
v-model="hotspotList[index].link[0].PageName"> v-model="hotspotList[index].link[0].PageUrl">
<template slot="append"> <template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button> <el-button @click="isShowLink=true">选择链接</el-button>
</template> </template>
</el-input> </el-input>
</template> </template>
<template v-else> <template v-else>
<el-input size="small" style="width: 100%;" :disabled="true" v-model="hotspotList[index].link.PageName"> <el-input size="small" style="width: 100%;" v-model="hotspotList[index].link.PageUrl">
<template slot="append"> <template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button> <el-button @click="isShowLink=true">选择链接</el-button>
</template> </template>
......
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<el-form-item label="选择链接"> <el-form-item label="选择链接">
<el-input size="small" v-if="rubData.data.list&&rubData.data.list.length>0 <el-input size="small" v-if="rubData.data.list&&rubData.data.list.length>0
&& rubData.data.list[rubik].link && rubData.data.list[rubik].link.length>0" v-model=" && rubData.data.list[rubik].link && rubData.data.list[rubik].link.length>0" v-model="
rubData.data.list[rubik].link[0].PageName" :disabled="true"> rubData.data.list[rubik].link[0].PageUrl">
<template slot="append"> <template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button> <el-button @click="isShowLink=true">选择链接</el-button>
</template> </template>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
@keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input> @keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0"> <el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0">
<div style="display:flex;"> <div style="display:flex;flex-wrap:wrap;">
<div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList" <div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList"
:key="index" :style="{ backgroundImage: 'url(' + item + ')' }"> :key="index" :style="{ backgroundImage: 'url(' + item + ')' }">
<el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button> <el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
@keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input> @keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0"> <el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0">
<div style="display:flex;"> <div style="display:flex;flex-wrap:wrap;">
<div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList" <div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList"
:key="index" :style="{ backgroundImage: 'url(' + item + ')' }"> :key="index" :style="{ backgroundImage: 'url(' + item + ')' }">
<el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button> <el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button>
......
...@@ -88,10 +88,6 @@ ...@@ -88,10 +88,6 @@
width: 375px; width: 375px;
} }
.registraType .el-radio:last-child {
margin-left: 28px;
}
.tpEdit_header { .tpEdit_header {
padding: 18px; padding: 18px;
background: #fff; background: #fff;
...@@ -332,6 +328,8 @@ ...@@ -332,6 +328,8 @@
:index="index" :dataLeng="addMsg.FormData.length"></imgupform> :index="index" :dataLeng="addMsg.FormData.length"></imgupform>
<videoform v-if="item.CompKey=='VideoUploadComp'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin" <videoform v-if="item.CompKey=='VideoUploadComp'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="addMsg.FormData.length"></videoform> :index="index" :dataLeng="addMsg.FormData.length"></videoform>
<uploadform v-if="item.CompKey=='CommonUploadComp'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="addMsg.FormData.length"></uploadform>
</div> </div>
</div> </div>
</div> </div>
...@@ -349,6 +347,7 @@ ...@@ -349,6 +347,7 @@
import dropdown from '../tradePavilion/plugin/dropdown' import dropdown from '../tradePavilion/plugin/dropdown'
import imgupform from '../tradePavilion/plugin/imgupform' import imgupform from '../tradePavilion/plugin/imgupform'
import videoform from '../tradePavilion/plugin/videoform' import videoform from '../tradePavilion/plugin/videoform'
import uploadform from '../tradePavilion/plugin/uploadform'
export default { export default {
data() { data() {
return { return {
...@@ -377,7 +376,8 @@ ...@@ -377,7 +376,8 @@
multilinetext, multilinetext,
dropdown, dropdown,
imgupform, imgupform,
videoform videoform,
uploadform
}, },
mounted() { mounted() {
...@@ -472,6 +472,7 @@ ...@@ -472,6 +472,7 @@
CompData: { CompData: {
Name: "", //名字 Name: "", //名字
FileCount: '', //上传文件数量 FileCount: '', //上传文件数量
FileType: '',
FileSizeLimit: '', //上传文件大小 FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息 Remark:'',//提示信息
FileList:[],//文件列表 FileList:[],//文件列表
...@@ -487,6 +488,7 @@ ...@@ -487,6 +488,7 @@
CompData: { CompData: {
Name: "", //名字 Name: "", //名字
FileCount: '', //上传文件数量 FileCount: '', //上传文件数量
FileType: '',
FileSizeLimit: '', //上传文件大小 FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息 Remark:'',//提示信息
FileList:[],//文件列表 FileList:[],//文件列表
...@@ -494,6 +496,22 @@ ...@@ -494,6 +496,22 @@
}; };
this.addMsg.FormData.push(videoObj); this.addMsg.FormData.push(videoObj);
break; break;
//文件上传组件
case "CommonUploadComp":
let uploadObj = {
CompKey: "CommonUploadComp",
isCked: false,
CompData: {
Name: "", //名字
FileType:'', //文件类型
FileCount: '', //上传文件数量
FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息
FileList:[],//文件列表
},
};
this.addMsg.FormData.push(uploadObj);
break;
} }
}, },
//获取对应类型 //获取对应类型
......
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