Commit ac040861 authored by 黄奎's avatar 黄奎

新增选择链接公共组件

parent fef2e9ed
...@@ -49,7 +49,9 @@ ...@@ -49,7 +49,9 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="底部版权链接"> <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-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -57,13 +59,24 @@ ...@@ -57,13 +59,24 @@
<el-button size="small" type="primary" @click="UpdateCopyRight()">确 定</el-button> <el-button size="small" type="primary" @click="UpdateCopyRight()">确 定</el-button>
</span> </span>
</div> </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> </div>
</template> </template>
<script> <script>
import chooseMeun from "../common/chooseMeun.vue";
export default { export default {
data() { data() {
return { return {
//是否线下链接弹窗
isShowLink: false,
//修改版权MSG //修改版权MSG
copyRightMsg: { copyRightMsg: {
MallBaseId: 0, //小程序Id MallBaseId: 0, //小程序Id
...@@ -74,10 +87,19 @@ ...@@ -74,10 +87,19 @@
}, },
}; };
}, },
components: {
chooseMeun
},
created() { created() {
}, },
methods: { methods: {
getMenu() {
//调用子组件方法
var obj = this.$refs.chooseMeun.getChooseMenu();
this.copyRightMsg.CopyRightLink=obj.PageUrl;
this.isShowLink=false;
},
//选择图片 //选择图片
UploadImage(file) { UploadImage(file) {
this.UploadFileToTencent(this.FileType().UserImg, file.file, res => { this.UploadFileToTencent(this.FileType().UserImg, file.file, res => {
......
...@@ -492,7 +492,6 @@ ...@@ -492,7 +492,6 @@
this.clearAddmsg(); this.clearAddmsg();
} }
this.isShowDialog = false; this.isShowDialog = false;
} else { } else {
return false; 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