Commit 198e2e50 authored by zhengke's avatar zhengke

修改

parent 028d5c26
......@@ -607,7 +607,7 @@
<div class="LastMenu_Second">{{item.MenuName}}</div>
<div class="LastMenu_Third">
<el-tooltip class="item" effect="dark" content="编辑" placement="top-start">
<el-button circle type="primary" size="mini" icon="el-icon-edit" @click="upDateMsg(item,4)">
<el-button circle type="primary" size="mini" icon="el-icon-edit" @click="upDateMsg(item,4),comCheckIndex=index">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top-start">
......@@ -636,7 +636,7 @@
<el-form-item label="图标">
<div>
<el-tooltip class="item" effect="dark" :content="SuggestSize" placement="top-start">
<el-button size="small">选择文件</el-button>
<el-button size="small" @click="choicImg=true">选择文件</el-button>
</el-tooltip>
</div>
<div class="UserUpImg">
......@@ -658,15 +658,23 @@
<el-button size="small" type="danger" @click="getMenu()">确 定</el-button>
</span>
</el-dialog>
<!-- 选择图片文件 -->
<el-dialog title="选择文件" :visible.sync="choicImg" width="1240px">
<ChooseImg @SelectId="SelectId"></ChooseImg>
</el-dialog>
</div>
</template>
<script>
import chooseMenu from "../common/chooseMenu.vue";
import ChooseImg from "@/components/global/ChooseImg.vue";
import draggable from "vuedraggable"
export default {
data() {
return {
comCheckIndex:-1,
//图片选择弹窗
choicImg:false,
//是否显示链接弹窗
isShowLink: false,
commonEditTitle: '',
......@@ -765,12 +773,18 @@
},
components: {
chooseMenu,
draggable
draggable,
ChooseImg
},
created() {
this.getMenuList();
},
methods: {
//选择图片
SelectId(msg) {
this.modifyMsg.image=this.getIconLink(msg.url);
this.choicImg = false;
},
getMenu() {
//调用子组件方法
var obj = this.$refs.chooseMenu.getChooseMenu();
......@@ -786,6 +800,8 @@
},
//修改确定
updateInfo() {
this.postMsg.SelfMenuList[this.comCheckIndex].MenuName=this.modifyMsg.name;
this.postMsg.SelfMenuList[this.comCheckIndex].MenuIcon=this.modifyMsg.image;
this.isShowDialog = 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