diff --git a/.DS_Store b/.DS_Store index 15cd25b7d..e3b892126 100755 Binary files a/.DS_Store and b/.DS_Store differ 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 667c1aa7b..db321bf67 100755 Binary files a/public/.DS_Store and b/public/.DS_Store differ diff --git a/public/components/.DS_Store b/public/components/.DS_Store index 983cb134a..7203ea334 100644 Binary files a/public/components/.DS_Store and b/public/components/.DS_Store differ 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 ec9ce3622..6faa00f78 100755 Binary files a/public/pages/.DS_Store and b/public/pages/.DS_Store differ 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 3e37a2307..cbfe02c99 100755 Binary files a/public/pages/property/.DS_Store and b/public/pages/property/.DS_Store differ