| | |
| | | <template> |
| | | <!--系统集成的系统日志页面--> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | <avue-crud ref="crud" |
| | | :data="data || getList" |
| | | :option="option" |
| | | :page.sync="page" |
| | | ref="crud" |
| | | :table-loading="loading" |
| | | @cell-dblclick="cellDbClick" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search> |
| | | @refresh-change="refreshChange"> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <vci-docking-search ref="dockingSearch" :SearchObject="SearchObject" :formInline="formInline" :page="page" |
| | | :status="status" @getList="dockingGetList"></vci-docking-search> |
| | | </template> |
| | | <template slot="paramString" slot-scope="scope"> |
| | | <avue-text-ellipsis :text="scope.row.paramString" :height="50"> |
| | | <avue-text-ellipsis :height="50" :text="scope.row.paramString"> |
| | | <small slot="more">...</small> |
| | | </avue-text-ellipsis> |
| | | </template> |
| | | <template slot="returnString" slot-scope="scope"> |
| | | <avue-text-ellipsis :text="scope.row.returnString" :height="50"> |
| | | <avue-text-ellipsis :height="50" :text="scope.row.returnString"> |
| | | <small slot="more">...</small> |
| | | </avue-text-ellipsis> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" icon="el-icon-view" size="mini" @click="rowView(scope.row)">查看</el-button> |
| | | <el-button icon="el-icon-view" size="mini" type="text" @click="rowView(scope.row)">查看</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | }; |
| | | } |
| | | }, |
| | | created() { |
| | | this.onLoad(this.page); |
| | | }, |
| | | methods: { |
| | | rowView(row){ |
| | | this.loading = true; |
| | |
| | | }) |
| | | }, |
| | | dockingGetList(val){ |
| | | console.log(val); |
| | | this.data=val.records; |
| | | this.page.pageSize=val.size; |
| | | this.page.currentPage=val.current; |
| | |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | this.$refs.dockingSearch.SaveHandler(); |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | this.$refs.dockingSearch.SaveHandler(); |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page); |
| | | const page = { |
| | | pageSize: 20, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }; |
| | | this.page = page; |
| | | this.formInline = { type: '', cut: '', text: '',Date: '', state: ''} |
| | | this.onLoad(page); |
| | | }, |
| | | onLoad(page, params={}) { |
| | | this.loading = true; |
| | |
| | | width: 10px; |
| | | |
| | | } |
| | | |
| | | // 滚动条的滑块 |
| | | /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | background-color: #ececec; |