From e4d9a33eb47eb739e0b537ab44cf61120c79b451 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Wed, 19 Apr 2023 14:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E7=A8=8B=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/common.scss | 47 ++++++ src/components/OrgTable.vue | 82 ++-------- src/components/ProcessChooseTree.vue | 29 ++-- src/main.js | 2 +- .../components/reportDialog.vue | 52 +++++-- .../components/reportTable.vue | 2 + src/views/permissionApplication/launch.vue | 16 +- src/views/userCenter/processCenter.vue | 147 +++++++++++------- 8 files changed, 214 insertions(+), 163 deletions(-) create mode 100644 src/assets/css/common.scss diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss new file mode 100644 index 0000000..3434b9c --- /dev/null +++ b/src/assets/css/common.scss @@ -0,0 +1,47 @@ +.tag-btns { + padding-right: 15px; +} +.search-area { + padding: 0; + + .el-form-item__label { + line-height: 35px; + } + + .el-form-item__content { + line-height: 35px; + + .el-input__inner { + height: 25px; + line-height: 35px; + } + } +} +.search-new { + //width: 100%; + background: #FFF; + padding: 10px 10px 0; + + .el-button + .el-button { + margin-left: 10px; + } + + .el-form--inline .el-form-item { + display: flex; + margin-right: 0; + + input.el-input__inner { + width: 100%; + } + + .el-form-item__content { + //width: 100%; + flex: 1; + + .el-select, + .el-range-editor { + width: 100% !important; + } + } + } +} diff --git a/src/components/OrgTable.vue b/src/components/OrgTable.vue index 18b1688..7bc6db8 100644 --- a/src/components/OrgTable.vue +++ b/src/components/OrgTable.vue @@ -15,20 +15,10 @@ :model="searchForm" inline class="label-input-form" - label-width="100px" @keyup.enter.native="handleSearch"> - - - - - - - - - - + @@ -39,18 +29,25 @@ - - + + + + + + + + + + + 查询 重置 @@ -75,7 +72,7 @@ :cell-class-name="cellClassName" @select="selectionRow" @select-all="selectionRowAll"> - + + + + + 查询 重置 + + @@ -703,19 +712,7 @@ export default { ::v-deep .el-dialog__body { padding: 15px 20px 20px 20px; } - .search-area { - padding: 0; - ::v-deep .el-form-item__label { - line-height: 35px; - } - ::v-deep .el-form-item__content { - line-height: 35px; - .el-input__inner { - height: 35px; - line-height: 35px; - } - } - } + .pagination { position: static; } diff --git a/src/main.js b/src/main.js index 225d93e..c554d5c 100644 --- a/src/main.js +++ b/src/main.js @@ -4,7 +4,7 @@ import router from './router' import store from './store' // 流程公共样式 import './assets/css/process.scss' - +import './assets/css/common.scss' import config from '@/utils/config' // VXETable import 'xe-utils' diff --git a/src/views/permissionApplication/components/reportDialog.vue b/src/views/permissionApplication/components/reportDialog.vue index 8ea0cb6..2cd5dd4 100644 --- a/src/views/permissionApplication/components/reportDialog.vue +++ b/src/views/permissionApplication/components/reportDialog.vue @@ -4,26 +4,31 @@ title="添加报告" :visible.sync="dialogVisible" width="50%" - + class="addreport" :before-close="handleClose"> - +
@@ -63,10 +68,10 @@ export default { total: 0, q: { pageSize: 10, - pageNo: 1, - labelOneId: [], - labelTwoId: [], - labelThreeId: [] + pageNo: 1 + }, + searchForm: { + }, checkIds: [], dialogVisible: false, @@ -143,7 +148,7 @@ export default { }, // 列表 reportList () { - this.$api.report.reportList(this.q).then(({ data }) => { + this.$api.report.reportList({ ...this.q, ...this.searchForm }).then(({ data }) => { this.tableData = data.records this.total = data.total this.q.pageNo = data.current @@ -191,6 +196,19 @@ export default { width: 100%; height: 550px; } +.addreport{ + ::v-deep .el-dialog__header { + padding: 0 20px; + height: 50px; + display: flex; + align-items: center; + border-bottom: 1px solid #ddd; + } + + ::v-deep .el-dialog__body { + padding: 15px 20px 20px 20px; + } +} .done { margin: 30px 20px 10px; text-align: right; diff --git a/src/views/permissionApplication/components/reportTable.vue b/src/views/permissionApplication/components/reportTable.vue index ebf47e1..c2b569e 100644 --- a/src/views/permissionApplication/components/reportTable.vue +++ b/src/views/permissionApplication/components/reportTable.vue @@ -201,10 +201,12 @@ export default { margin-bottom: 20px; } .addbtn{ + border: none; background-color: #8400FF; color: #fff; } .delbtn{ + border: none; background-color: #d9001b; color: #fff; } diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue index f7be0c3..dbc93c0 100644 --- a/src/views/permissionApplication/launch.vue +++ b/src/views/permissionApplication/launch.vue @@ -94,7 +94,7 @@ + }" :workNumFlag="true" :maxSelected="1" @confirm="isTreeOk">
@@ -205,7 +205,7 @@ export default { this.assignForm.name2Id = parts.toString() this.assignForm.name2 = partsName.toString() } - console.log(this.assignForm.name1Id,this.assignForm.name2Id) + console.log(this.assignForm.name1Id, this.assignForm.name2Id) }, // 获取表格列表 吧查询到的值传给子组件 reportList (ids) { @@ -229,7 +229,13 @@ export default { this.$refs.applicationFormRef.validate(m => { if (v && m) { // 过了校验 需要把数据都整合 this.tableData this.applicationForm this.assignForm - + // 表格数据没有不能提交 需要提示 + if (this.tableData.length > 0) { + this.$message.warning('至少需要选择一条报告数据') + } else { + // 调用流程数据 + console.log("发送数据") + } } else { this.$message.warning('请检查表单填写完整') } @@ -240,6 +246,6 @@ export default { } - + diff --git a/src/views/userCenter/processCenter.vue b/src/views/userCenter/processCenter.vue index d9da64b..786f15a 100644 --- a/src/views/userCenter/processCenter.vue +++ b/src/views/userCenter/processCenter.vue @@ -1,21 +1,29 @@