| | |
| | | <CommonSearch :show-add="false" :amount-view="false" placeholder="请输入关键词" @searchClick="onFilterSearch"> |
| | | <template slot="leftButton"> |
| | | <el-button size="small" type="primary" @click="addBtnClick" >新增</el-button> |
| | | <el-button size="small" type="primary" @click="delBtnClick" >删除</el-button> |
| | | <el-button size="small" type="primary" >删除</el-button> |
| | | <el-button size="small" type="primary" @click="addBtnClick" >修改</el-button> |
| | | <el-button size="small" type="primary" @click="refreshClick">刷新</el-button> |
| | | </template> |
| | |
| | | </div> |
| | | <div class="edit-sace-label">{{ isEdit ? "锁定保存" : "界面设计" }}</div> |
| | | </div> --> |
| | | <div> |
| | | <div class="list-view"> |
| | | <SilkTableList |
| | | :detail-enter="isEdit" |
| | | :silk-table-list="silkTableList" |
| | |
| | | > |
| | | </SilkTableList> |
| | | </div> |
| | | <div class="btn-pager"> |
| | | <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import SilkTableList from "@/views/systemSetting/workshopManage/components/silkTableList" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | export default { |
| | | name: "encodeManage", |
| | | props: {}, |
| | | components: { SilkTableList }, |
| | | mixins: [], |
| | | mixins: [pageMixin], |
| | | computed: {}, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | // 删除 |
| | | clearupProject(data, index) { |
| | | console.log(data) |
| | | this.tableData.splice(index, 1) |
| | | }, |
| | | // 保存编辑按钮切换 |
| | |
| | | let propStr = "trends" + this.columnNum |
| | | this.tableColumn.splice(2, 0, { label: "", prop: propStr, inputFloat: true, addColumn: true }) |
| | | this.$set(this.dataObj, propStr, 0) |
| | | console.log(this.tableColumn) |
| | | this.silkTableList.tableColumn = this.tableColumn |
| | | this.columnNum += 1 |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | .list-view { |
| | | height: calc(100% - 60px); |
| | | overflow: hidden; |
| | | } |
| | | .btn-pager { |
| | | display: flex; |
| | | margin-top: 10px; |
| | | .page { |
| | | margin-left: auto; |
| | | } |
| | | } |
| | | </style> |