From 0a1e1be130ee54dca106ebafeeac47c9c5dcf50c Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 17 Aug 2022 01:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 8196 -> 8196 bytes app.js | 4 +- public/.DS_Store | Bin 10244 -> 10244 bytes public/components/.DS_Store | Bin 6148 -> 8196 bytes .../frame/editSystemInfo/editSystemInfo.html | 122 ++++++++++ .../frame/editSystemInfo/editSystemInfo.js | 227 ++++++++++++++++++ .../frame/viewSystemInfo/viewSystemInfo.html | 121 ++++++++++ .../frame/viewSystemInfo/viewSystemInfo.js | 60 +++++ public/pages/.DS_Store | Bin 10244 -> 10244 bytes .../systemInfoManage/systemInfoManage.html | 109 +++++++++ .../systemInfoManage/systemInfoManage.js | 60 +++++ public/pages/property/.DS_Store | Bin 12292 -> 12292 bytes 12 files changed, 701 insertions(+), 2 deletions(-) create mode 100644 public/components/frame/editSystemInfo/editSystemInfo.html create mode 100644 public/components/frame/editSystemInfo/editSystemInfo.js create mode 100644 public/components/frame/viewSystemInfo/viewSystemInfo.html create mode 100644 public/components/frame/viewSystemInfo/viewSystemInfo.js create mode 100644 public/pages/frame/systemInfoManage/systemInfoManage.html create mode 100644 public/pages/frame/systemInfoManage/systemInfoManage.js diff --git a/.DS_Store b/.DS_Store index 15cd25b7dc7951f12433d60c1fe0dd622e10f2f2..e3b8921262a6bf8fdce76406134f09a25d540a40 100755 GIT binary patch delta 245 zcmZp1XmQxELx^$Tb1F zU<}F2&r1cW3V?_xJ9tA?aWH5zI5Gq?#4r>xG%!qOSj@1M;UL2~hQ|zF8U8c!GKw)O zF={jFFq$%&GdeJOGI}xkFa|OPF-Al5Gckf_5g?X@2*60jl+8IJ6PP!%OMGM5{7HnJ F833%0GP?i( delta 240 zcmZp1XmQxELx^$nVZpBEObS9Su!G?!!!3q44Br@87{wTs7_}Kq z7;PEt89f+18NC?;7y}uDAi9|tp{B?{X-+837`?e%WCHWV2JX%565m)hbBO+Dn%KYr E0O6@KivR!s diff --git a/app.js b/app.js index 9ff513fc8..112518e87 100755 --- a/app.js +++ b/app.js @@ -32,8 +32,8 @@ let opts = { } -app.use('/callComponent', proxy('http://192.168.100.108:8088', opts)); -app.use('/app', proxy('http://192.168.100.108:8088', opts)); +app.use('/callComponent', proxy('http://192.168.100.108:8008', opts)); +app.use('/app', proxy('http://192.168.100.108:8008', opts)); app.use('/ws', createProxyMiddleware({ target: 'http://192.168.100.108:8008', changeOrigin: true, diff --git a/public/.DS_Store b/public/.DS_Store index 667c1aa7b654203f4702cf01838748e3d6ef5d2e..db321bf671de0795b1bb926b57d9101b999a9560 100755 GIT binary patch delta 116 zcmZn(XbG6$XEU^hRb=4Kv&%Zx%MhL$=CMiz#(Itta6Mg}?xCYwJBo@bO~V#r`H z^~}jnPRhwoVqjnpU|?Y0$iTqJw|T2@Gt1;?!4@o9Cw~+)-^?s|k8Lx%!Y`K1cSV?) E0YBIu@&Et; delta 118 zcmZn(XbG6$ÄU^hRb#%3OY%Zx(Ch6Xwc=7zO83e|>&MutH4=8uBs88<%>u3%w2 zK3P_zL0zo68mPv|!W5*)(g?^lF*d8M<>U}oHMI3i$gQlZuBok?KKYo4JmZYbYLXAx SCN`*TW>@&dvRPG>nHc~{vm`)F~) zLK1@Zz^x}vh)SG#>WSVewNj` zem{Gk7XUD~T($v*0l=Utw0VHUHbsn!+EzM}o`a;3`~iZz&r3z07u#%ghekjnpb^jr zXaqC@djkP_XNzL&@ZMLWT51F|0v{v-;`v}v71~L3U1|B~AR$u#(p}Uo3$-Z^kUmzT zokZ7_maa6X${sLr#U#Z*OGS7GgJEj&g1| zFRrHC_+~L_Pjl`!+ir2jW2=ki;6)z9t{1RSI(ubCCJWzsL7A`S_;OH=F%A zvuF-)Y)sf^N3HQQ_U5Ryadv!c)S9r*Y;Il=4A?>?mCP{HK+1%2we zDSx6?3JkBbk{l8LY#i~0X*Ld-={az)_fVhNKXABzuzzUi$kE}UV*|%OS~L$A-O{Z} zD7Jf%`#j9~%WTo?iwJ;xi3d|5TcN|w#_V=n@YZQ)pvB=DD}TS$HN93No58IPIqBt) zv0%OudgaNbrHI9|srH;$trT+KpW=}hdpww1kgLb6nh%yZttfUdSrbFi3=1RDZ9cPe zZWy{jh2_?+`)-l>lR=KhF|W>gbPBO^xn!Z{mb{>nJ^xApnaMhzsg?=Z2DVw}-mkK4 zm^dBqfRWXd8q7LhB~}KUpl~n10{j4VcmO|BK>r0#;UD-H-e4~t!B6l6j^gKd8Xe5z z75o~n;x(LC{vD0`Dgr!JuuK=J`?^vH1D^*K>J=Ua)F}KpNk%$`wH6Y*CYv+?+wAuk z6;9a{{--4qYbmBxE{HTBhTqn|~Nm+agop<0QJSH1$yV-#-M1AH@3oFR{-$`u#6~ H_yEO!qsLue delta 116 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{Mvv5r;6q~50$jGrVU^g=($7CLXm6LY~3vQk* zEXlZel2|F@#D>j_**Q1_nSrW-K!6)axPmlpEd0(qnP0{eWDEln#7K}W44dP5<}d>Q D3NsZ1 diff --git a/public/components/frame/editSystemInfo/editSystemInfo.html b/public/components/frame/editSystemInfo/editSystemInfo.html new file mode 100644 index 000000000..11d356f45 --- /dev/null +++ b/public/components/frame/editSystemInfo/editSystemInfo.html @@ -0,0 +1,122 @@ + \ No newline at end of file diff --git a/public/components/frame/editSystemInfo/editSystemInfo.js b/public/components/frame/editSystemInfo/editSystemInfo.js new file mode 100644 index 000000000..e970a2108 --- /dev/null +++ b/public/components/frame/editSystemInfo/editSystemInfo.js @@ -0,0 +1,227 @@ +(function (vc, vm) { + + vc.extends({ + data: { + editSystemInfoInfo: { + systemId: '', + systemId: '', + systemTitle: '', + subSystemTitle: '', + companyName: '', + logoUrl: '', + imgUrl: '', + defaultCommunityId: '', + ownerTitle: '', + propertyTitle: '', + qqMapKey: '', + mallUrl: '', + + } + }, + _initMethod: function () { + + }, + _initEvent: function () { + vc.on('editSystemInfo', 'openEditSystemInfoModal', function (_params) { + vc.component.refreshEditSystemInfoInfo(); + $('#editSystemInfoModel').modal('show'); + vc.copyObject(_params, vc.component.editSystemInfoInfo); + vc.component.editSystemInfoInfo.communityId = vc.getCurrentCommunity().communityId; + }); + }, + methods: { + editSystemInfoValidate: function () { + return vc.validate.validate({ + editSystemInfoInfo: vc.component.editSystemInfoInfo + }, { + 'editSystemInfoInfo.systemId': [ + { + limit: "required", + param: "", + errInfo: "id不能为空" + }, + { + limit: "maxLength", + param: "11", + errInfo: "id不能超过11" + }, + ], + 'editSystemInfoInfo.systemTitle': [ + { + limit: "required", + param: "", + errInfo: "标题名称不能为空" + }, + { + limit: "maxLength", + param: "64", + errInfo: "标题名称不能超过64" + }, + ], + 'editSystemInfoInfo.subSystemTitle': [ + { + limit: "required", + param: "", + errInfo: "副标题不能为空" + }, + { + limit: "maxLength", + param: "64", + errInfo: "副标题不能超过64" + }, + ], + 'editSystemInfoInfo.companyName': [ + { + limit: "required", + param: "", + errInfo: "公司名称不能为空" + }, + { + limit: "maxLength", + param: "128", + errInfo: "公司名称不能超过128" + }, + ], + 'editSystemInfoInfo.logoUrl': [ + { + limit: "required", + param: "", + errInfo: "logo地址不能为空" + }, + { + limit: "maxLength", + param: "200", + errInfo: "logo地址不能超过200" + }, + ], + 'editSystemInfoInfo.imgUrl': [ + { + limit: "required", + param: "", + errInfo: "静态url不能为空" + }, + { + limit: "maxLength", + param: "512", + errInfo: "静态url不能超过512" + }, + ], + 'editSystemInfoInfo.defaultCommunityId': [ + { + limit: "required", + param: "", + errInfo: "默认小区编号不能为空" + }, + { + limit: "maxLength", + param: "8", + errInfo: "默认小区编号不能超过8" + }, + ], + 'editSystemInfoInfo.ownerTitle': [ + { + limit: "required", + param: "", + errInfo: "业主标题不能为空" + }, + { + limit: "maxLength", + param: "64", + errInfo: "业主标题不能超过64" + }, + ], + 'editSystemInfoInfo.propertyTitle': [ + { + limit: "required", + param: "", + errInfo: "物业手机标题不能为空" + }, + { + limit: "maxLength", + param: "64", + errInfo: "物业手机标题不能超过64" + }, + ], + 'editSystemInfoInfo.qqMapKey': [ + { + limit: "required", + param: "", + errInfo: "qq地图key不能为空" + }, + { + limit: "maxLength", + param: "64", + errInfo: "qq地图key不能超过64" + }, + ], + 'editSystemInfoInfo.mallUrl': [ + { + limit: "required", + param: "", + errInfo: "商城地址'不能为空" + }, + { + limit: "maxLength", + param: "128", + errInfo: "商城地址'不能超过128" + }, + ], + 'editSystemInfoInfo.systemId': [ + { + limit: "required", + param: "", + errInfo: "编号不能为空" + }] + + }); + }, + editSystemInfo: function () { + if (!vc.component.editSystemInfoValidate()) { + vc.toast(vc.validate.errInfo); + return; + } + + vc.http.apiPost( + '/system.updateSystemInfo', + JSON.stringify(vc.component.editSystemInfoInfo), + { + emulateJSON: true + }, + function (json, res) { + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + let _json = JSON.parse(json); + if (_json.code == 0) { + //关闭model + $('#editSystemInfoModel').modal('hide'); + vc.emit('viewSystemInfo', 'load', {}); + return; + } + vc.message(_json.msg); + }, + function (errInfo, error) { + console.log('请求失败处理'); + + vc.message(errInfo); + }); + }, + refreshEditSystemInfoInfo: function () { + vc.component.editSystemInfoInfo = { + systemId: '', + systemId: '', + systemTitle: '', + subSystemTitle: '', + companyName: '', + logoUrl: '', + imgUrl: '', + defaultCommunityId: '', + ownerTitle: '', + propertyTitle: '', + qqMapKey: '', + mallUrl: '', + + } + } + } + }); + +})(window.vc, window.vc.component); diff --git a/public/components/frame/viewSystemInfo/viewSystemInfo.html b/public/components/frame/viewSystemInfo/viewSystemInfo.html new file mode 100644 index 000000000..8108143e9 --- /dev/null +++ b/public/components/frame/viewSystemInfo/viewSystemInfo.html @@ -0,0 +1,121 @@ +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + + + +
\ No newline at end of file diff --git a/public/components/frame/viewSystemInfo/viewSystemInfo.js b/public/components/frame/viewSystemInfo/viewSystemInfo.js new file mode 100644 index 000000000..7348284d6 --- /dev/null +++ b/public/components/frame/viewSystemInfo/viewSystemInfo.js @@ -0,0 +1,60 @@ +/** + 系统配置 组件 +**/ +(function (vc) { + + vc.extends({ + data: { + viewSystemInfoInfo: { + index: 0, + flowComponent: 'viewSystemInfoInfo', + systemId: '', + systemTitle: '', + subSystemTitle: '', + companyName: '', + logoUrl: '', + imgUrl: '', + defaultCommunityId: '', + ownerTitle: '', + propertyTitle: '', + qqMapKey: '', + mallUrl: '', + + } + }, + _initMethod: function () { + //根据请求参数查询 查询 业主信息 + vc.component._listSystemInfos(); + }, + _initEvent: function () { + vc.on('viewSystemInfo', 'load', function () { + vc.component._listSystemInfos(); + }); + }, + methods: { + _openEditSystemInfoInfoModel() { + vc.emit('editSystemInfo', 'openEditSystemInfoModal', $that.viewSystemInfoInfo); + }, + _listSystemInfos: function () { + let param = { + params: { + page:1, + row:1 + } + }; + + //发送get请求 + vc.http.apiGet('/system.listSystemInfo', + param, + function (json, res) { + let _systemInfoManageInfo = JSON.parse(json); + vc.copyObject(_systemInfoManageInfo.data[0],$that.viewSystemInfoInfo); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + } + }); + +})(window.vc); diff --git a/public/pages/.DS_Store b/public/pages/.DS_Store index ec9ce362200cc8a8c4d90223861a282d9dafbd05..6faa00f78b994f8fcb5695d7563467d5b7f1d486 100755 GIT binary patch delta 49 zcmZn(XbISGUubfbV2hB6p{0(3k%eKcjzYDik%5ka$z%Z`^UbS-qj@&7EBs>F{9lBb F832rN4@m$3 delta 26 icmZn(XbISGUud$8$mz{%grj*jvnu>y*~~1;%nSgPcnNv{ diff --git a/public/pages/frame/systemInfoManage/systemInfoManage.html b/public/pages/frame/systemInfoManage/systemInfoManage.html new file mode 100644 index 000000000..842d6e67c --- /dev/null +++ b/public/pages/frame/systemInfoManage/systemInfoManage.html @@ -0,0 +1,109 @@ +
+
+
+
+
系统配置
+
+ +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+ +
+
+
+ + + + +
\ No newline at end of file diff --git a/public/pages/frame/systemInfoManage/systemInfoManage.js b/public/pages/frame/systemInfoManage/systemInfoManage.js new file mode 100644 index 000000000..c404693c7 --- /dev/null +++ b/public/pages/frame/systemInfoManage/systemInfoManage.js @@ -0,0 +1,60 @@ +/** + 系统配置 组件 +**/ +(function (vc) { + + vc.extends({ + data: { + systemInfoManageInfo: { + index: 0, + flowComponent: 'systemInfoManageInfo', + systemId: '', + systemTitle: '', + subSystemTitle: '', + companyName: '', + logoUrl: '', + imgUrl: '', + defaultCommunityId: '', + ownerTitle: '', + propertyTitle: '', + qqMapKey: '', + mallUrl: '', + + } + }, + _initMethod: function () { + //根据请求参数查询 查询 业主信息 + vc.component._listSystemInfos(); + }, + _initEvent: function () { + vc.on('viewSystemInfo', 'load', function () { + vc.component._listSystemInfos(); + }); + }, + methods: { + _openEditSystemInfoInfoModel() { + vc.emit('editSystemInfo', 'openEditSystemInfoModal', $that.systemInfoManageInfo); + }, + _listSystemInfos: function () { + let param = { + params: { + page:1, + row:1 + } + }; + + //发送get请求 + vc.http.apiGet('/system.listSystemInfo', + param, + function (json, res) { + let _systemInfoManageInfo = JSON.parse(json); + vc.copyObject(_systemInfoManageInfo.data[0],$that.systemInfoManageInfo); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + } + }); + +})(window.vc); diff --git a/public/pages/property/.DS_Store b/public/pages/property/.DS_Store index 3e37a230753517a2305e03dc979e0fad93397ac9..cbfe02c997a98396380b2c3c9a505ea247ff25dd 100755 GIT binary patch delta 90 zcmZokXi1ph<5aU^hRb?PeZ<`>g7`40#Os3?&Sy3dNq#lCS)R$$cH%&l;TeX^pM!e(}j2Ox$l0C;f@ A(*OVf