Commit ac040861 authored by 黄奎's avatar 黄奎

新增选择链接公共组件

parent fef2e9ed
......@@ -49,7 +49,9 @@
</div>
</el-form-item>
<el-form-item label="底部版权链接">
<el-input style="width:250px" size="small" maxlength="200" v-model="copyRightMsg.CopyRightLink">
<el-input style="width:250px" size="small" maxlength="200" :disabled="true"
v-model="copyRightMsg.CopyRightLink" class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="isShowLink=true"></el-button>
</el-input>
</el-form-item>
</el-form>
......@@ -57,13 +59,24 @@
<el-button size="small" type="primary" @click="UpdateCopyRight()">确 定</el-button>
</span>
</div>
<!--v-on:childHotel="childHotelList"-->
<el-dialog title="选择链接" :visible.sync="isShowLink" width="800px">
<chooseMeun ref="chooseMeun">
</chooseMeun>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowLink=false">取 消</el-button>
<el-button size="small" type="danger" @click="getMenu()">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import chooseMeun from "../common/chooseMeun.vue";
export default {
data() {
return {
//是否线下链接弹窗
isShowLink: false,
//修改版权MSG
copyRightMsg: {
MallBaseId: 0, //小程序Id
......@@ -74,10 +87,19 @@
},
};
},
components: {
chooseMeun
},
created() {
},
methods: {
getMenu() {
//调用子组件方法
var obj = this.$refs.chooseMeun.getChooseMenu();
this.copyRightMsg.CopyRightLink=obj.PageUrl;
this.isShowLink=false;
},
//选择图片
UploadImage(file) {
this.UploadFileToTencent(this.FileType().UserImg, file.file, res => {
......
......@@ -492,7 +492,6 @@
this.clearAddmsg();
}
this.isShowDialog = false;
} else {
return false;
}
......
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