From f4b1244495eb0b3d64cba24f5e102f19f905ad89 Mon Sep 17 00:00:00 2001 From: qinjie Date: Tue, 24 Aug 2021 10:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/lazy_use.js | 4 +- src/views/project/ProjectList.vue | 195 ++++++++++-------------------- 2 files changed, 66 insertions(+), 133 deletions(-) diff --git a/src/core/lazy_use.js b/src/core/lazy_use.js index c06e94a..709faa4 100644 --- a/src/core/lazy_use.js +++ b/src/core/lazy_use.js @@ -44,7 +44,8 @@ import { Statistic, Descriptions, message, - notification + notification, + space } from 'ant-design-vue' import Viser from 'viser-vue' @@ -97,6 +98,7 @@ Vue.use(PageHeader) Vue.use(Result) Vue.use(Statistic) Vue.use(Descriptions) +Vue.use(space) Vue.prototype.$confirm = Modal.confirm Vue.prototype.$message = message diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue index 8dad88a..d1cba82 100644 --- a/src/views/project/ProjectList.vue +++ b/src/views/project/ProjectList.vue @@ -1,133 +1,68 @@ @@ -205,12 +140,8 @@ export default { // 加载数据方法 必须为 Promise 对象 loadData: parameter => { - return getProjectList(Object.assign(parameter, this.queryParam)) - .then(res => { - return res - }) + return getProjectList(Object.assign(parameter, this.queryParam)).then(res => { return res; }) }, - selectedRowKeys: [], selectedRows: [], @@ -262,7 +193,7 @@ export default { handleEdit(record) { this.$emit('onEdit', record) }, - handleOk() {}, + handleOk() { }, onSelectChange(selectedRowKeys, selectedRows) { this.selectedRowKeys = selectedRowKeys