提交 d40e8188 编写于 作者: ping zhang's avatar ping zhang

kol 新功能 col

上级 9472ba32
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="8">
<el-form-item label="入口文案" prop="name"> <el-form-item label="入口文案" prop="name">
<el-input v-model="ruleForm.name" placeholder="请输入入口文案,最长6个字"></el-input> <el-input v-model="ruleForm.name" placeholder="请输入入口文案,最长6个字"></el-input>
</el-form-item> </el-form-item>
...@@ -18,12 +18,14 @@ ...@@ -18,12 +18,14 @@
</el-row> </el-row>
<el-row> <el-row>
<el-button type="primary">添加</el-button> <el-button type="primary">添加</el-button>
<span class="des">*说明:添加和移除kol后,需点击页面的保存按钮,方可生效</span>
</el-row> </el-row>
</el-form> </el-form>
<el-row class="table-content"> <el-row class="table-content">
<el-table <el-table
:data="tableData" :data="tableData"
border border
id="kolTable"
style="width: 100%" style="width: 100%"
> >
<el-table-column <el-table-column
...@@ -48,7 +50,7 @@ ...@@ -48,7 +50,7 @@
<script> <script>
import Sortable from 'sortablejs'; import Sortable from 'sortablejs';
import kolCol from './util/common'; import { kolCol } from './util/common';
export default { export default {
components: { components: {
...@@ -69,7 +71,7 @@ export default { ...@@ -69,7 +71,7 @@ export default {
{ max: 6, message: '入口文案长度不能多于6个字符', trigger: 'blur' } { max: 6, message: '入口文案长度不能多于6个字符', trigger: 'blur' }
] ]
}, },
kolCol, col: kolCol,
tableData: [ tableData: [
{ {
index: 1 index: 1
...@@ -93,9 +95,8 @@ export default { ...@@ -93,9 +95,8 @@ export default {
}, },
methods: { methods: {
rowDrop() { rowDrop() {
const tbody = document.querySelector('.el-table__body-wrapper tbody'); const tbody = document.querySelector('#kolTable tbody');
debugger
Sortable.create(tbody); Sortable.create(tbody);
} }
}, },
...@@ -103,6 +104,11 @@ export default { ...@@ -103,6 +104,11 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.des {
font-size: 12px;
color: #777;
margin-left: 40px;
}
.table-content { .table-content {
margin-top: 15px; margin-top: 15px;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册