提交 19bfd9a5 编写于 作者: zhentian.jia's avatar zhentian.jia

入口列表,新建入口

上级 a315b490
......@@ -566,6 +566,20 @@ export default {
vm.visibleName = false;
}
},
tagDrop() {
this.$nextTick(function() {
if(vm.tagsProject.length > 0) {
const ele = document.querySelector('.check-project .el-col-10');
// console.log('ele',ele);
Sortable.create(ele, {
onEnd({ newIndex, oldIndex }) {
const currRow = vm.tagsProject.splice(oldIndex, 1)[0]
vm.tagsProject.splice(newIndex, 0, currRow)
}
})
}
});
},
changeValue(value) {
this.tagsProject = [];
let len = 0;
......@@ -580,7 +594,7 @@ export default {
}
}
}
// vm.tagDrop();
vm.tagDrop();
},
handleCloseProject(tag) {
if (tag.disabled == true) {
......@@ -593,7 +607,7 @@ export default {
}
},
complete(type) {
console.log('type:'+type);
console.log("type:" + type);
if (type == 1) {
//完成
} else {
......@@ -701,6 +715,12 @@ export default {
height: 350px;
min-width: 280px;
overflow-y: scroll;
.el-tag {
margin-top: 5px;
display: table;
background-color: #e6f1fc;
color: #389efe;
}
.tags-project-online {
color: #9aceff;
background-color: #f3f8fe;
......
......@@ -9,10 +9,10 @@
</el-form-item>
</el-col>
<el-col :span="2"></el-col>
<el-col :span="2">
<el-col :span="12">
<el-button type="primary" size="small">查询</el-button>
</el-col>
<el-col :span="6" style="padding:0;text-align:right;padding-right:10px;">
<el-col :span="4" style="padding:0;text-align:right;padding-right:10px;">
<el-button type="primary" size="small">新建入口</el-button>
</el-col>
</el-form>
......@@ -27,9 +27,12 @@
<el-table-column fixed="right" label="状态" align="center">
<template slot-scope="scope">{{ scope.row.status | shieldStatus }}</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="150" align="center">
<el-table-column fixed="right" label="操作" width="350" align="center">
<template slot-scope="scope">
<el-button type="text" size="small">编辑</el-button>
<el-button type="primary" size="small">编辑</el-button>
<el-button type="primary" size="small">上架</el-button>
<el-button type="primary" size="small">下架</el-button>
<el-button type="primary" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册