From 0056eb58b4f9e2910439f8e8bdc4cc6312da424b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Mon, 21 Jun 2021 10:22:00 +0800
Subject: [PATCH 01/20] =?UTF-8?q?update=20=E5=A4=8D=E6=9D=82=E7=9A=84form?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web-react/src/assets/style/lib/form-page.less | 3 +-
.../src/assets/style/lib/width-height.less | 21 +-
.../pages/business/house/code/form/index.jsx | 50 +-
.../house/info/form/base/building.jsx | 698 ++++++++++--------
.../business/house/info/form/base/index.jsx | 118 ++-
.../pages/business/house/info/form/index.jsx | 185 +++--
.../src/pages/business/house/task/index.jsx | 265 +++++++
7 files changed, 873 insertions(+), 467 deletions(-)
create mode 100644 web-react/src/pages/business/house/task/index.jsx
diff --git a/web-react/src/assets/style/lib/form-page.less b/web-react/src/assets/style/lib/form-page.less
index 5446b96..ae47a95 100644
--- a/web-react/src/assets/style/lib/form-page.less
+++ b/web-react/src/assets/style/lib/form-page.less
@@ -12,8 +12,9 @@
height: 100%;
>.ant-tabs {
- >.ant-tabs-bar {
+ >.ant-tabs-nav {
margin-bottom: 0;
+ padding: 0 @padding-md;
background-color: @white;
diff --git a/web-react/src/assets/style/lib/width-height.less b/web-react/src/assets/style/lib/width-height.less
index ecf56c9..ae39ddc 100644
--- a/web-react/src/assets/style/lib/width-height.less
+++ b/web-react/src/assets/style/lib/width-height.less
@@ -3,13 +3,30 @@
.width-height (@i) when (@i <=20) {
@n : @i * 50;
+ @px : @n * 1px;
.w-@{n} {
- width: @n * 1px !important;
+ width: @px !important;
+ }
+
+ .w-@{n}-min {
+ min-width: @px !important;
+ }
+
+ .w-@{n}-max {
+ max-width: @px !important;
}
.h-@{n} {
- height: @n * 1px !important;
+ height: @px !important;
+ }
+
+ .h-@{n}-min {
+ min-height: @px !important;
+ }
+
+ .h-@{n}-max {
+ max-height: @px !important;
}
.w-@{n}-p {
diff --git a/web-react/src/pages/business/house/code/form/index.jsx b/web-react/src/pages/business/house/code/form/index.jsx
index 865b1b1..c6028dc 100644
--- a/web-react/src/pages/business/house/code/form/index.jsx
+++ b/web-react/src/pages/business/house/code/form/index.jsx
@@ -4,14 +4,15 @@ import { ComponentDynamic, Container } from 'components'
import { isEqual } from 'lodash'
import { api } from 'common/api'
-const parts = [{
- component: () => import('./part')
-}]
+const parts = [
+ {
+ component: () => import('./part'),
+ },
+]
export default class index extends Component {
-
state = {
- saving: false
+ saving: false,
}
children = []
@@ -28,10 +29,10 @@ export default class index extends Component {
const data = await child.getData()
this.formData = {
...this.formData,
- ...data
+ ...data,
}
- } catch {
- return
+ } catch (e) {
+ return e
}
}
@@ -44,12 +45,10 @@ export default class index extends Component {
Message.success('保存成功')
Modal.confirm({
content: '已添加成功,是否继续添加?',
- onOk: () => {
-
- },
+ onOk: () => {},
onCancel: () => {
window.closeContentWindow()
- }
+ },
})
}
} finally {
@@ -69,7 +68,6 @@ export default class index extends Component {
}
render() {
-
const { id, param } = this.props
return (
@@ -78,14 +76,16 @@ export default class index extends Component {
Loading
+上次登录时间:{user.lastLoginTime}
+ {user.adminType === 1 && ( +