From 0b53c32300a93868a3e278e43267862114939d6d Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 12 Jul 2023 14:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/models/report.js | 10 ++++++++++ api/log/development.log | 3 +++ scripts/1.2.3/schema/2.update_report.sql | 2 ++ weapp/src/packages/components/inputPicker/index.jsx | 2 +- web/client/src/sections/quanju/containers/example.js | 5 +---- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 scripts/1.2.3/schema/2.update_report.sql diff --git a/api/app/lib/models/report.js b/api/app/lib/models/report.js index 71512652..2349c5a4 100644 --- a/api/app/lib/models/report.js +++ b/api/app/lib/models/report.js @@ -186,6 +186,16 @@ module.exports = dc => { field: "handle_state", autoIncrement: false }, + codeRoad: { + index: 19, + type: DataTypes.STRING, + allowNull: true, + defaultValue: "", + // comment: "路线代码", + primaryKey: false, + field: "code_road", + autoIncrement: false + }, }, { tableName: "report", comment: "", diff --git a/api/log/development.log b/api/log/development.log index 43963241..ba01abc1 100644 --- a/api/log/development.log +++ b/api/log/development.log @@ -11218,3 +11218,6 @@ headers: {} 2023-06-27 20:02:06.352 - debug: [FS-LOGGER] Init. 2023-06-27 20:02:06.794 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2023-06-27 20:02:06.795 - info: [FS-AUTH] Inject auth and api mv into router. +2023-07-12 14:02:42.806 - debug: [FS-LOGGER] Init. +2023-07-12 14:02:45.494 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2023-07-12 14:02:45.494 - info: [FS-AUTH] Inject auth and api mv into router. diff --git a/scripts/1.2.3/schema/2.update_report.sql b/scripts/1.2.3/schema/2.update_report.sql new file mode 100644 index 00000000..e39c3ed4 --- /dev/null +++ b/scripts/1.2.3/schema/2.update_report.sql @@ -0,0 +1,2 @@ +alter table report + add code_road varchar(512); \ No newline at end of file diff --git a/weapp/src/packages/components/inputPicker/index.jsx b/weapp/src/packages/components/inputPicker/index.jsx index 24d06ded..f367bd4d 100644 --- a/weapp/src/packages/components/inputPicker/index.jsx +++ b/weapp/src/packages/components/inputPicker/index.jsx @@ -30,7 +30,7 @@ export default function InputPicker (props) { const handlePickerChange = (e) => { onInput(curSelector[e.detail.value]) } -console.log(onlySelect); + return ( diff --git a/web/client/src/sections/quanju/containers/example.js b/web/client/src/sections/quanju/containers/example.js index c7439221..666d30af 100644 --- a/web/client/src/sections/quanju/containers/example.js +++ b/web/client/src/sections/quanju/containers/example.js @@ -30,16 +30,13 @@ const Example = (props) => { document.body.clientHeight / 1080 )})`, */ }}> -
- + {/* */}
- )