Commit 37ecd3a8 authored by 黄奎's avatar 黄奎

页面修改

parent 1cd691f0
......@@ -209,6 +209,12 @@
<div class="nav-edit-options">
<el-button type="primary" icon="el-icon-delete" @click="delIcon(index)"
style="top: -6px; right: -31px;"></el-button>
<a v-if="index>0" @click="Move('up',index)" style="color:blue;cursor:pointer;">
上移
</a>
<a v-if="index!=navData.data.navs.length-1" @click="Move('down',index)" style="color:blue;cursor:pointer;">
下移
</a>
</div>
<div flex="dir:left box:first cross:center">
<div>
......@@ -357,6 +363,19 @@
},
methods: {
Move(type, index) {
var currentItem = this.navData.data.navs[index];
if (type == 'up') {
var upItem = this.navData.data.navs[index - 1];
this.$set(this.navData.data.navs, index - 1, currentItem);
this.$set(this.navData.data.navs, index, upItem);
}
if (type == 'down') {
var downItem = this.navData.data.navs[index + 1];
this.$set(this.navData.data.navs, index + 1, currentItem);
this.$set(this.navData.data.navs, index, downItem);
}
},
//选择模板
getCustom(obj) {
if (this.commonIndex > -1) {
......@@ -392,9 +411,9 @@
let obj = {
icon: '',
name: '',
ShowType:0,//0-组件,1-模板
ComponentName:"",//组件名称
url:"",//组件URL
ShowType: 0, //0-组件,1-模板
ComponentName: "", //组件名称
url: "", //组件URL
TemplateId: 0,
TemplateShowName: "",
}
......
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