Commit 57a7b6b5 authored by 黄奎's avatar 黄奎

组件修改

parent ed75e031
...@@ -2386,6 +2386,7 @@ export const obj = { ...@@ -2386,6 +2386,7 @@ export const obj = {
zicancd: 'Asset Menu', zicancd: 'Asset Menu',
qingsrcd: 'Please enter menu URL', qingsrcd: 'Please enter menu URL',
qingsrcdmc: 'Please enter menu name', qingsrcdmc: 'Please enter menu name',
qingxzcd: 'Select menu',
qingxzcdcj: 'Please select menu level', qingxzcdcj: 'Please select menu level',
qingxzxtcd: 'Please select System menu', qingxzxtcd: 'Please select System menu',
caidanmbnwk: 'Menu names cannot be empty', caidanmbnwk: 'Menu names cannot be empty',
......
...@@ -2386,6 +2386,7 @@ export const obj = { ...@@ -2386,6 +2386,7 @@ export const obj = {
zicancd: '資産メニュー', zicancd: '資産メニュー',
qingsrcd: 'メニューURLを入力してください', qingsrcd: 'メニューURLを入力してください',
qingsrcdmc: 'メニュー名を入力してください', qingsrcdmc: 'メニュー名を入力してください',
qingxzcd: '選択メニュー',
qingxzcdcj: 'メニュー階層を選択してください', qingxzcdcj: 'メニュー階層を選択してください',
qingxzxtcd: 'システムメニューを選択してください', qingxzxtcd: 'システムメニューを選択してください',
caidanmbnwk: 'メニュー名は空ではいけません', caidanmbnwk: 'メニュー名は空ではいけません',
......
...@@ -2386,6 +2386,7 @@ export const obj = { ...@@ -2386,6 +2386,7 @@ export const obj = {
zicancd: '资产菜单', zicancd: '资产菜单',
qingsrcd: '请输入菜单URL', qingsrcd: '请输入菜单URL',
qingsrcdmc: '请输入菜单名称', qingsrcdmc: '请输入菜单名称',
qingxzcd: '选择菜单',
qingxzcdcj: '请选择菜单层级', qingxzcdcj: '请选择菜单层级',
qingxzxtcd: '请选择系统菜单', qingxzxtcd: '请选择系统菜单',
caidanmbnwk: '菜单名不能为空', caidanmbnwk: '菜单名不能为空',
......
...@@ -2386,6 +2386,7 @@ export const obj = { ...@@ -2386,6 +2386,7 @@ export const obj = {
zicancd: '資產菜單', zicancd: '資產菜單',
qingsrcd: '請輸入菜單URL', qingsrcd: '請輸入菜單URL',
qingsrcdmc: '請輸入菜單名稱', qingsrcdmc: '請輸入菜單名稱',
qingxzcd: '選擇菜單',
qingxzcdcj: '請選擇菜單層級', qingxzcdcj: '請選擇菜單層級',
qingxzxtcd: '請選擇系統菜單', qingxzxtcd: '請選擇系統菜單',
caidanmbnwk: '菜單名不能爲空', caidanmbnwk: '菜單名不能爲空',
......
...@@ -216,10 +216,10 @@ ...@@ -216,10 +216,10 @@
</div> </div>
</div> </div>
<div class="WebSite_Left"> <div class="WebSite_Left">
<el-select v-model="countryId" @change="changeCountry" style="margin-bottom:12px;"> <!-- <el-select v-model="countryId" @change="changeCountry" style="margin-bottom:12px;">
<el-option v-for="x in tempCountry" :label="x.name" :value="x.val" :key="x.val"> <el-option v-for="x in tempCountry" :label="x.name" :value="x.val" :key="x.val">
</el-option> </el-option>
</el-select> </el-select> -->
<el-select v-model="templateId" @change="getTemplateDetails()"> <el-select v-model="templateId" @change="getTemplateDetails()">
<el-option :label="$t('pub.pleaseSel')" :value="0" :key="0"> <el-option :label="$t('pub.pleaseSel')" :value="0" :key="0">
</el-option> </el-option>
......
This diff is collapsed.
...@@ -10,14 +10,7 @@ ...@@ -10,14 +10,7 @@
<el-popover trigger="click"> <el-popover trigger="click">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="$t('objFill.v101.myOrdersAllType.zidingyi')+$t('objFill.caidan')" name="1"> <el-tab-pane :label="$t('objFill.v101.myOrdersAllType.zidingyi')+$t('objFill.caidan')" name="1">
<!-- <el-checkbox-group
v-model="checkedCities"
:min="0"
:max="1" class="column"
@change="getUrl">
<el-checkbox v-for="(item,i) in dataDiyList" :label="item.Id" :key="i">
{{item.CategoryName}}</el-checkbox>
</el-checkbox-group> -->
<div class="column"> <div class="column">
<el-checkbox v-model="checked" <el-checkbox v-model="checked"
:true-label="item.Id" :true-label="item.Id"
...@@ -73,9 +66,6 @@ ...@@ -73,9 +66,6 @@
}; };
}, },
created() { created() {
var arr = [ [1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 9, [11, 12, [12, 13, [14] ] ] ], 10]
// console.log(Array.from(new Set(data.arr.flat(Infinity))))
// console.log()
this.getOptions() this.getOptions()
}, },
......
...@@ -27,15 +27,18 @@ ...@@ -27,15 +27,18 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.b2bDialog .webSliderDiv .addIconDiv:hover { .b2bDialog .webSliderDiv .addIconDiv:hover {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
color: #fff; color: #fff;
} }
.b2bDialog .webSliderDiv i { .b2bDialog .webSliderDiv i {
font-size: 50px; font-size: 50px;
color: #d1d1d1; color: #d1d1d1;
cursor: pointer; cursor: pointer;
} }
.b2bDialog .webSliderDiv>div { .b2bDialog .webSliderDiv>div {
height: 100%; height: 100%;
} }
...@@ -50,7 +53,7 @@ ...@@ -50,7 +53,7 @@
height: 310px !important; height: 310px !important;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
margin-left:80px; margin-left: 80px;
} }
.b2b_imgList { .b2b_imgList {
...@@ -67,7 +70,6 @@ ...@@ -67,7 +70,6 @@
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
</style> </style>
<template> <template>
<div class="b2bDialog"> <div class="b2bDialog">
...@@ -82,8 +84,8 @@ ...@@ -82,8 +84,8 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="10"> <el-col :span="10">
<div class="webSliderDiv" @click="clickIndex=index"> <div class="webSliderDiv" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.TripImageUrl" :src="item.TripImageUrl" class="web_imgUrl" alt="" /> <img v-if="item.TripImageUrl" :src="item.TripImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -98,7 +100,8 @@ ...@@ -98,7 +100,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,clickIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,clickIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -125,7 +128,8 @@ ...@@ -125,7 +128,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,clickIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,clickIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -163,13 +167,14 @@ ...@@ -163,13 +167,14 @@
<el-col :span="12" v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-col :span="12" v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<div> <div>
<el-form-item> <el-form-item>
<el-button type="primary" style="margin-left:80px;" size="small" @click="isShowTripDailog=true,clickIndex=index">{{$t('objFill.v101.xuanzhexingc')}} <el-button type="primary" style="margin-left:80px;" size="small"
@click="isShowTripDailog=true,clickIndex=index">{{$t('objFill.v101.xuanzhexingc')}}
</el-button> </el-button>
</el-form-item> </el-form-item>
</div> </div>
<div class="webSliderDiv webImg_radius" @click="clickIndex=index"> <div class="webSliderDiv webImg_radius" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.TripImageUrl" :src="item.TripImageUrl" style="width:auto;" class="web_imgUrl" alt="" /> <img v-if="item.TripImageUrl" :src="item.TripImageUrl" style="width:auto;" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -250,5 +255,4 @@ ...@@ -250,5 +255,4 @@
}, },
mounted() {}, mounted() {},
}; };
</script> </script>
\ No newline at end of file
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item> <el-form-item>
<el-input type="text" v-model="plugData.TripTitle"> <el-input type="text" v-model="plugData.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true">{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.bannerdialog .webSliderDiv { .bannerdialog .webSliderDiv {
line-height: 0; line-height: 0;
height: 115px; height: 115px;
width:400px; width: 400px;
border: 1px solid #ccc; border: 1px solid #ccc;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
...@@ -43,14 +43,14 @@ ...@@ -43,14 +43,14 @@
.bannerdialog .webSliderDiv>div { .bannerdialog .webSliderDiv>div {
height: 100%; height: 100%;
} }
.bannerdialog .sectionImg{
position:absolute; .bannerdialog .sectionImg {
width:100%; position: absolute;
height:100%; width: 100%;
height: 100%;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
</style> </style>
<template> <template>
<div class="bannerdialog"> <div class="bannerdialog">
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
<el-col :span="12" v-for="(item,index) in plugData.Details" :key="index"> <el-col :span="12" v-for="(item,index) in plugData.Details" :key="index">
<el-form-item> <el-form-item>
<div class="webSliderDiv" @click="checkIndex=index"> <div class="webSliderDiv" @click="checkIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div>
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item> <el-form-item>
<div class="webSliderDiv" @click="checkIndex=index"> <div class="webSliderDiv" @click="checkIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div>
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -110,20 +110,36 @@ ...@@ -110,20 +110,36 @@
<el-input type="text" v-model="item.LinkTitle"></el-input> <el-input type="text" v-model="item.LinkTitle"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('objFill.v101.lianjwz')" v-if="plugData.Type==2"> <el-form-item :label="$t('objFill.v101.lianjwz')" v-if="plugData.Type==2">
<el-input type="text" v-model="item.LinkUrl"></el-input> <el-input type="text" v-model="item.LinkUrl">
<el-button slot="append" icon="el-icon-search" @click="ShowMenuDialog(item)"></el-button>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
</el-form> </el-form>
<el-dialog :title="$t('objFill.qingxzcd')" :visible.sync="isShowMenuDialog" width="500px" append-to-body>
<!-- 行程选中 -->
<chooseMenu ref="chooseMenu"></chooseMenu>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowMenuDialog = false" size="small">{{$t('pub.cancelBtn')}}</el-button>
<el-button type="danger" size="small" @click="getMenuChoose()">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseMenu from "../plug-in/choose_menu.vue"
export default { export default {
props: ["plugData"], props: ["plugData"],
components: {
chooseMenu
},
data() { data() {
return { return {
checkIndex: 1, checkIndex: 1,
clickItem: {},
isShowMenuDialog: false, //是否显示菜单弹窗
}; };
}, },
created() {}, created() {},
...@@ -131,17 +147,29 @@ ...@@ -131,17 +147,29 @@
UploadAttachment(file) { UploadAttachment(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.Details[this.checkIndex].ImageUrl=imgUrl; this.plugData.Details[this.checkIndex].ImageUrl = imgUrl;
}); });
},
//显示菜单弹窗
ShowMenuDialog(item) {
this.clickItem = item;
this.isShowMenuDialog = true;
},
//获取选中的菜单数据
getMenuChoose() {
var chooseMenuObj = this.$refs.chooseMenu.getChooseMenu();
this.isShowMenuDialog = false;
if (chooseMenuObj) {
this.clickItem.LinkTitle = chooseMenuObj.MenuName;
this.clickItem.LinkUrl = chooseMenuObj.MenuUrl;
} }
this.$refs.chooseMenu.initMenuCheck();
}, },
mounted() {
}, },
mounted() {},
}; };
</script> </script>
\ No newline at end of file
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
</style> </style>
<template> <template>
<div class="WebSiteimgLink"> <div class="WebSiteimgLink">
...@@ -73,8 +72,8 @@ ...@@ -73,8 +72,8 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item> <el-form-item>
<div class="webSliderDiv" @click="checkindex=1"> <div class="webSliderDiv" @click="checkindex=1">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl1 + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl1 + ')'}"></div>
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -91,7 +90,8 @@ ...@@ -91,7 +90,8 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('objFill.xingchengmc')+' 1'"> <el-form-item :label="$t('objFill.xingchengmc')+' 1'">
<el-input type="text" v-model="plugData.TripTitle1"> <el-input type="text" v-model="plugData.TripTitle1">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=1">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=1">{{$t('objFill.v101.xuanzhexingc')}}
</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item> <el-form-item>
<div class="webSliderDiv" @click="checkindex=2"> <div class="webSliderDiv" @click="checkindex=2">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl2 + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl2 + ')'}"></div>
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -120,7 +120,8 @@ ...@@ -120,7 +120,8 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('objFill.xingchengmc')+' 2'"> <el-form-item :label="$t('objFill.xingchengmc')+' 2'">
<el-input type="text" v-model="plugData.TripTitle2"> <el-input type="text" v-model="plugData.TripTitle2">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=2">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=2">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -204,5 +205,4 @@ ...@@ -204,5 +205,4 @@
}, },
}; };
</script> </script>
\ No newline at end of file
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
.paragraphLink .webSliderDiv>div { .paragraphLink .webSliderDiv>div {
height: 100%; height: 100%;
} }
</style> </style>
<template> <template>
<div class="paragraphLink"> <div class="paragraphLink">
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
<el-row :span="24"> <el-row :span="24">
<el-form-item :label="$t('objFill.xingchengmc')"> <el-form-item :label="$t('objFill.xingchengmc')">
<el-input type="text" v-model="plugData.TripTitle"> <el-input type="text" v-model="plugData.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true">{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -77,8 +76,8 @@ ...@@ -77,8 +76,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item> <el-form-item>
<div class="webSliderDiv"> <div class="webSliderDiv">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="plugData.ImageUrl" :src="plugData.ImageUrl" class="web_imgUrl" alt="" /> <img v-if="plugData.ImageUrl" :src="plugData.ImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -138,6 +137,7 @@ ...@@ -138,6 +137,7 @@
if (item.ImgCover && item.ImgCover.length > 0) { if (item.ImgCover && item.ImgCover.length > 0) {
imgUrl = item.ImgCover[0].Url; imgUrl = item.ImgCover[0].Url;
} }
var LinkUrl = this.$tripUtils.GetB2BUrl(this.getLocalStorage().B2BDomain, item.ConfigId, item.TCID);
var obj = { var obj = {
StartDate: item.StartDate, StartDate: item.StartDate,
imgUrl: imgUrl, imgUrl: imgUrl,
...@@ -149,16 +149,14 @@ ...@@ -149,16 +149,14 @@
}; };
this.plugData.ImageUrl = obj.imgUrl; this.plugData.ImageUrl = obj.imgUrl;
this.plugData.TripTitle = obj.Title; this.plugData.TripTitle = obj.Title;
this.plugData.LinkUrl = LinkUrl;
this.$refs.chooseTrip.clearData(); this.$refs.chooseTrip.clearData();
}); });
} }
}, },
}, },
mounted() { mounted() {
}, },
}; };
</script> </script>
\ No newline at end of file
...@@ -68,10 +68,9 @@ ...@@ -68,10 +68,9 @@
<template v-if="plugData.Type==1||plugData.Type==2||plugData.Type==3"> <template v-if="plugData.Type==1||plugData.Type==2||plugData.Type==3">
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="10"> <el-col :span="10">
<div class="webSliderDiv" @click="clickIndex=index"> <div class="webSliderDiv" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" /> <img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -89,7 +88,8 @@ ...@@ -89,7 +88,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -120,8 +120,8 @@ ...@@ -120,8 +120,8 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="5"> <el-col :span="5">
<div class="webSliderDiv myWebDiv" @click="clickIndex=index"> <div class="webSliderDiv myWebDiv" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" /> <img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -139,7 +139,8 @@ ...@@ -139,7 +139,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -158,8 +159,8 @@ ...@@ -158,8 +159,8 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="10"> <el-col :span="10">
<div class="webSliderDiv" @click="clickIndex=index"> <div class="webSliderDiv" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" /> <img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -175,7 +176,8 @@ ...@@ -175,7 +176,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -199,8 +201,8 @@ ...@@ -199,8 +201,8 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="10"> <el-col :span="10">
<div class="webSliderDiv webImg_radius" @click="clickIndex=index"> <div class="webSliderDiv webImg_radius" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" /> <img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -218,7 +220,8 @@ ...@@ -218,7 +220,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)"> <el-form-item :label="$t('objFill.xingchengmc')+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle"> <el-input type="text" v-model="item.TripTitle">
<el-button slot="append" type="primary" @click="isShowTripDailog=true,checkIndex=index">{{$t('objFill.v101.xuanzhexingc')}}</el-button> <el-button slot="append" @click="isShowTripDailog=true,checkIndex=index">
{{$t('objFill.v101.xuanzhexingc')}}</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -257,8 +260,7 @@ ...@@ -257,8 +260,7 @@
components: { components: {
chooseTrip chooseTrip
}, },
created() { created() {},
},
methods: { methods: {
UploadAttachment(file) { UploadAttachment(file) {
let newArr = []; let newArr = [];
...@@ -289,7 +291,7 @@ ...@@ -289,7 +291,7 @@
TCID: item.TCID, TCID: item.TCID,
Title: item.Title, Title: item.Title,
DayNum: item.DayNum, DayNum: item.DayNum,
Price: item.B2BPrice, Price: item.B2CPrice,
LinkUrl: LinkUrl, LinkUrl: LinkUrl,
}; };
if (this.plugData.Type == 1 || this.plugData.Type == 2 || this.plugData.Type == 3 || this.plugData if (this.plugData.Type == 1 || this.plugData.Type == 2 || this.plugData.Type == 3 || this.plugData
...@@ -314,5 +316,4 @@ ...@@ -314,5 +316,4 @@
}, },
mounted() {}, mounted() {},
}; };
</script> </script>
\ No newline at end of file
...@@ -7,14 +7,17 @@ ...@@ -7,14 +7,17 @@
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
.webSite_qrcode .webSliderDiv .web_imgUrl { .webSite_qrcode .webSliderDiv .web_imgUrl {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.webSite_qrcode .webSliderDiv .el-upload{
width:100%; .webSite_qrcode .webSliderDiv .el-upload {
height:100%; width: 100%;
height: 100%;
} }
.webSite_qrcode .webSliderDiv .addIconDiv { .webSite_qrcode .webSliderDiv .addIconDiv {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -25,16 +28,17 @@ ...@@ -25,16 +28,17 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.webSite_qrcode .webSliderDiv i { .webSite_qrcode .webSliderDiv i {
font-size: 50px; font-size: 50px;
color: #d1d1d1; color: #d1d1d1;
cursor: pointer; cursor: pointer;
} }
.webSliderDiv .addIconDiv:hover { .webSliderDiv .addIconDiv:hover {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
color: #fff; color: #fff;
} }
</style> </style>
<template> <template>
<div class="webSite_qrcode"> <div class="webSite_qrcode">
...@@ -53,7 +57,8 @@ ...@@ -53,7 +57,8 @@
<img v-if="plugData.LinkImg1" :src="plugData.LinkImg1" class="web_imgUrl" alt="" /> <img v-if="plugData.LinkImg1" :src="plugData.LinkImg1" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;" @click.stop="plugData.LinkImg1=''"></i> <i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.LinkImg1=''"></i>
</div> </div>
</el-upload> </el-upload>
</div> </div>
...@@ -76,7 +81,9 @@ ...@@ -76,7 +81,9 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.v101.lianjwz')"> <el-form-item :label="$t('objFill.v101.lianjwz')">
<el-input type="text" v-model="plugData.LinkUrl1"></el-input> <el-input type="text" v-model="plugData.LinkUrl1">
<el-button slot="append" icon="el-icon-search" @click="ShowMenuDialog(1)"></el-button>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -90,7 +97,8 @@ ...@@ -90,7 +97,8 @@
<img v-if="plugData.LinkImg2" :src="plugData.LinkImg2" class="web_imgUrl" alt="" /> <img v-if="plugData.LinkImg2" :src="plugData.LinkImg2" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;" @click.stop="plugData.LinkImg2=''"></i> <i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.LinkImg2=''"></i>
</div> </div>
</el-upload> </el-upload>
</div> </div>
...@@ -113,21 +121,36 @@ ...@@ -113,21 +121,36 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('objFill.v101.lianjwz')"> <el-form-item :label="$t('objFill.v101.lianjwz')">
<el-input type="text" v-model="plugData.LinkUrl2" maxlength="200"></el-input> <el-input type="text" v-model="plugData.LinkUrl2" maxlength="200">
<el-button slot="append" icon="el-icon-search" @click="ShowMenuDialog(2)"></el-button>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-dialog :title="$t('objFill.qingxzcd')" :visible.sync="isShowMenuDialog" width="500px" append-to-body>
<!-- 行程选中 -->
<chooseMenu ref="chooseMenu"></chooseMenu>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowMenuDialog = false" size="small">{{$t('pub.cancelBtn')}}</el-button>
<el-button type="danger" size="small" @click="getMenuChoose()">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseMenu from "../plug-in/choose_menu.vue"
export default { export default {
props: ["plugData"], props: ["plugData"],
components: {
chooseMenu
},
data() { data() {
return { return {
clickIndex:1 clickIndex: 1,
isShowMenuDialog: false, //是否显示菜单弹窗
}; };
}, },
created() {}, created() {},
...@@ -136,21 +159,38 @@ ...@@ -136,21 +159,38 @@
UploadAttachment(file) { UploadAttachment(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + str;
if(this.clickIndex==1){ if (this.clickIndex == 1) {
this.plugData.LinkImg1 = imgUrl; this.plugData.LinkImg1 = imgUrl;
}else{ } else {
this.plugData.LinkImg2 = imgUrl; this.plugData.LinkImg2 = imgUrl;
} }
}); });
},
//显示菜单弹窗
ShowMenuDialog(index) {
this.clickIndex = index;
this.isShowMenuDialog = true;
},
//获取选中的菜单数据
getMenuChoose() {
var chooseMenuObj = this.$refs.chooseMenu.getChooseMenu();
this.isShowMenuDialog = false;
if (chooseMenuObj) {
if (this.clickIndex == 1) {
this.plugData.TripTitle1 = chooseMenuObj.MenuName;
this.plugData.LinkUrl1 = chooseMenuObj.MenuUrl;
} else {
this.plugData.TripTitle2 = chooseMenuObj.MenuName;
this.plugData.LinkUrl2 = chooseMenuObj.MenuUrl;
}
} }
this.$refs.chooseMenu.initMenuCheck();
}, },
mounted() {
}, },
mounted() {},
}; };
</script> </script>
\ No newline at end of file
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
.searchsdialog .webSliderDiv { .searchsdialog .webSliderDiv {
line-height: 0; line-height: 0;
height: 115px; height: 115px;
width:400px; width: 400px;
border: 1px solid #ccc; border: 1px solid #ccc;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
.searchsdialog .webSliderDiv .el-upload { .searchsdialog .webSliderDiv .el-upload {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -37,14 +38,14 @@ ...@@ -37,14 +38,14 @@
.searchsdialog .webSliderDiv>div { .searchsdialog .webSliderDiv>div {
height: 100%; height: 100%;
} }
.searchsdialog .sectionImg{
position:absolute; .searchsdialog .sectionImg {
width:100%; position: absolute;
height:100%; width: 100%;
height: 100%;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
</style> </style>
<template> <template>
<div class="searchsdialog"> <div class="searchsdialog">
...@@ -57,8 +58,8 @@ ...@@ -57,8 +58,8 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item> <el-form-item>
<div class="webSliderDiv" @click="checkIndex=index"> <div class="webSliderDiv" @click="checkIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadAttachment" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + item.ImageUrl + ')'}"></div>
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
...@@ -74,20 +75,36 @@ ...@@ -74,20 +75,36 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('objFill.v101.lianjie')"> <el-form-item :label="$t('objFill.v101.lianjie')">
<el-input type="text" v-model="plugData.LinkUrl"></el-input> <el-input type="text" v-model="item.LinkUrl">
<el-button slot="append" icon="el-icon-search" @click="ShowMenuDialog(item)"></el-button>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
</el-form> </el-form>
<el-dialog :title="$t('objFill.qingxzcd')" :visible.sync="isShowMenuDialog" width="500px" append-to-body>
<!-- 行程选中 -->
<chooseMenu ref="chooseMenu"></chooseMenu>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowMenuDialog = false" size="small">{{$t('pub.cancelBtn')}}</el-button>
<el-button type="danger" size="small" @click="getMenuChoose()">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseMenu from "../plug-in/choose_menu.vue"
export default { export default {
props: ["plugData"], props: ["plugData"],
components: {
chooseMenu
},
data() { data() {
return { return {
checkIndex: 1, checkIndex: 1,
clickItem: {},
isShowMenuDialog: false, //是否显示菜单弹窗
}; };
}, },
created() {}, created() {},
...@@ -95,17 +112,28 @@ ...@@ -95,17 +112,28 @@
UploadAttachment(file) { UploadAttachment(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.Details[this.checkIndex].ImageUrl=imgUrl; this.plugData.Details[this.checkIndex].ImageUrl = imgUrl;
}); });
},
//显示菜单弹窗
ShowMenuDialog(item) {
this.clickItem = item;
this.isShowMenuDialog = true;
},
//获取选中的菜单数据
getMenuChoose() {
var chooseMenuObj = this.$refs.chooseMenu.getChooseMenu();
this.isShowMenuDialog = false;
if (chooseMenuObj) {
this.clickItem.LinkUrl = chooseMenuObj.MenuUrl;
} }
this.$refs.chooseMenu.initMenuCheck();
}, },
mounted() {
}, },
mounted() {},
}; };
</script> </script>
\ No newline at end of file
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.WebSite_slider .webSliderDiv .addIconDiv { .WebSite_slider .webSliderDiv .addIconDiv {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -39,7 +40,6 @@ ...@@ -39,7 +40,6 @@
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
color: #fff; color: #fff;
} }
</style> </style>
<template> <template>
<div class="WebSite_slider"> <div class="WebSite_slider">
...@@ -62,14 +62,15 @@ ...@@ -62,14 +62,15 @@
<tbody v-for="(item,index) in plugData.Details" :key="index"> <tbody v-for="(item,index) in plugData.Details" :key="index">
<tr> <tr>
<td> <td>
<el-form-item > <el-form-item>
<div class="webSliderDiv" @click="clickIndex=index"> <div class="webSliderDiv" @click="clickIndex=index">
<el-upload :http-request="UploadAttachment" :multiple="true" <el-upload :http-request="UploadAttachment" :multiple="true"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="item.LinkImg" :src="item.LinkImg" class="web_imgUrl" alt="" /> <img v-if="item.LinkImg" :src="item.LinkImg" class="web_imgUrl" alt="" />
<div class="addIconDiv"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;" @click.stop="item.LinkImg=''"></i> <i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="item.LinkImg=''"></i>
</div> </div>
</el-upload> </el-upload>
</div> </div>
...@@ -79,21 +80,37 @@ ...@@ -79,21 +80,37 @@
</td> </td>
<td> <td>
<el-form-item :label="$t('objFill.v101.lianjie')+(index+1)"> <el-form-item :label="$t('objFill.v101.lianjie')+(index+1)">
<el-input type="text" v-model="item.LinkUrl" class="w250"></el-input> <el-input type="text" v-model="item.LinkUrl" class="w300">
<el-button slot="append" icon="el-icon-search" @click="ShowMenuDialog(item)"></el-button>
</el-input>
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</el-form> </el-form>
<el-dialog :title="$t('objFill.qingxzcd')" :visible.sync="isShowMenuDialog" width="500px" append-to-body>
<!-- 行程选中 -->
<chooseMenu ref="chooseMenu"></chooseMenu>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowMenuDialog = false" size="small">{{$t('pub.cancelBtn')}}</el-button>
<el-button type="danger" size="small" @click="getMenuChoose()">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseMenu from "../plug-in/choose_menu.vue"
export default { export default {
props: ["plugData"], props: ["plugData"],
components: {
chooseMenu
},
data() { data() {
return { return {
clickIndex: 0, //点击图片索引 clickIndex: 0, //点击图片索引
isShowMenuDialog: false, //是否显示菜单弹窗
clickItem: {},
}; };
}, },
created() { created() {
...@@ -104,7 +121,6 @@ ...@@ -104,7 +121,6 @@
UploadAttachment(file) { UploadAttachment(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
...@@ -112,9 +128,21 @@ ...@@ -112,9 +128,21 @@
this.plugData.Details[this.clickIndex].LinkImg = imgUrl; this.plugData.Details[this.clickIndex].LinkImg = imgUrl;
}); });
}, },
//显示菜单弹窗
ShowMenuDialog(item) {
this.clickItem = item;
this.isShowMenuDialog = true;
},
//获取选中的菜单数据
getMenuChoose() {
var chooseMenuObj = this.$refs.chooseMenu.getChooseMenu();
this.isShowMenuDialog = false;
if (chooseMenuObj) {
this.clickItem.LinkUrl = chooseMenuObj.MenuUrl;
}
this.$refs.chooseMenu.initMenuCheck();
},
}, },
mounted() {} mounted() {}
}; };
</script> </script>
\ No newline at end of file
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