| | |
| | | </template> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" |
| | | :pageSizes="pageSizes" @pagination="getList" /> |
| | | :pageSizes="pageSizes" @pagination="handleQuery" /> |
| | | <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body> |
| | | <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" /> |
| | | </el-dialog> |
| | |
| | | created() { |
| | | // this.fetchData() |
| | | this.riqiChange(); |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | this.rowHideShow = false; |
| | | this.tableShow = true; |
| | | this.openRowHide = val; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | riqiChange() { |
| | | const end = new Date(); |
| | |
| | | this.pageSize = 50; |
| | | this.tableShow = false; |
| | | this.loading = true; |
| | | if (this.sTime) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'"; |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"; |
| | | } |
| | | |
| | | if (this.pageSize == 0) { |
| | | this.pageSize = 50; |
| | | } |
| | |
| | | if (this.sTime) { |
| | | this.sTime = moment(this.sTime).format("YYYY-MM-DD"); |
| | | this.eTime = moment(this.eTime).format("YYYY-MM-DD"); |
| | | console.log(this.sTime, this.eTime); |
| | | this.sWhere += |
| | | " and CONVERT(varchar(100),日期, 23) >= '" + |
| | | this.sTime + |
| | |
| | | }; |
| | | this.riqiChange(); |
| | | this.resetForm("queryForm"); |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | //退出 |
| | |
| | | this.tableShow = true; |
| | | this.openEdit = false; |
| | | this.editShow = false; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | //打开新增组件弹窗 |
| | | handleAddEdit() { |
| | |
| | | this.open = val; |
| | | this.editShow = false; |
| | | this.openEdit = val; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | |
| | | }, |
| | | }).then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |