mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
3a7720c481
commit
0a1e1be130
4
app.js
4
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,
|
||||
|
||||
BIN
public/.DS_Store
vendored
BIN
public/.DS_Store
vendored
Binary file not shown.
BIN
public/components/.DS_Store
vendored
BIN
public/components/.DS_Store
vendored
Binary file not shown.
122
public/components/frame/editSystemInfo/editSystemInfo.html
Normal file
122
public/components/frame/editSystemInfo/editSystemInfo.html
Normal file
@ -0,0 +1,122 @@
|
||||
<div id="editSystemInfoModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<h3 class="m-t-none m-b ">
|
||||
<span>
|
||||
<vc:i18n name="修改" namespace="editSystemInfo"></vc:i18n>
|
||||
</span>
|
||||
</h3>
|
||||
<div class="ibox-content">
|
||||
<div>
|
||||
<div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='标题名称' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.systemTitle" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写标题名称','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='副标题' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.subSystemTitle" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写副标题','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='公司名称' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.companyName" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写公司名称','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='logo地址' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.logoUrl" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写logo地址','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='静态url' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.imgUrl" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写静态url','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='默认小区编号' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.defaultCommunityId" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写默认小区编号','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='业主标题' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.ownerTitle" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写业主标题','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='物业手机标题' namespace='editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.propertyTitle" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写物业手机标题','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='qq地图key' namespace='editSystemInfo'></vc:i18n>
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.qqMapKey" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写qq地图key','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span>
|
||||
<vc:i18n name='商城地址' namespace=' editSystemInfo'></vc:i18n>
|
||||
</span> </label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editSystemInfoInfo.mallUrl" type="text"
|
||||
:placeholder="vc.i18n('必填,请填写商城地址','editSystemInfo')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="editSystemInfo()"><i
|
||||
class="fa fa-check"></i> <span>
|
||||
<vc:i18n name="保存"></vc:i18n>
|
||||
</span></button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
||||
data-dismiss="modal"><span>
|
||||
<vc:i18n name="取消"></vc:i18n>
|
||||
</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
227
public/components/frame/editSystemInfo/editSystemInfo.js
Normal file
227
public/components/frame/editSystemInfo/editSystemInfo.js
Normal file
@ -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);
|
||||
121
public/components/frame/viewSystemInfo/viewSystemInfo.html
Normal file
121
public/components/frame/viewSystemInfo/viewSystemInfo.html
Normal file
@ -0,0 +1,121 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5><span>
|
||||
<vc:i18n name="系统配置" namespace="viewSystemInfo"></vc:i18n>
|
||||
</span></h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openEditSystemInfoInfoModel()">
|
||||
<span>
|
||||
<vc:i18n name="修改" namespace="viewSystemInfo"></vc:i18n>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='id' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.systemId}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='标题名称' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.systemTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='副标题' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.subSystemTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='公司名称' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.companyName}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='logo地址' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.logoUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='静态url' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.imgUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='默认小区编号' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.defaultCommunityId}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='业主标题' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.ownerTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='物业手机标题' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.propertyTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='qq地图key' namespace='viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.qqMapKey}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
<vc:i18n name='商城地址'' namespace=' viewSystemInfo'></vc:i18n>
|
||||
</span>:</label>
|
||||
<label class="">{{viewSystemInfoInfo.mallUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<vc:create path="frame/editSystemInfo"></vc:create>
|
||||
|
||||
|
||||
</div>
|
||||
60
public/components/frame/viewSystemInfo/viewSystemInfo.js
Normal file
60
public/components/frame/viewSystemInfo/viewSystemInfo.js
Normal file
@ -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);
|
||||
BIN
public/pages/.DS_Store
vendored
BIN
public/pages/.DS_Store
vendored
Binary file not shown.
109
public/pages/frame/systemInfoManage/systemInfoManage.html
Normal file
109
public/pages/frame/systemInfoManage/systemInfoManage.html
Normal file
@ -0,0 +1,109 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5><span>系统配置</span></h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openEditSystemInfoInfoModel()">
|
||||
<span>修改</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
标题名称
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.systemTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
副标题
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.subSystemTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
商城地址
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.mallUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
公司名称
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.companyName}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
logo地址
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.logoUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
静态url
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.imgUrl}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
默认小区编号
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.defaultCommunityId}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
业主标题
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.ownerTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
物业手机标题
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.propertyTitle}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label"> <span>
|
||||
qq地图key
|
||||
</span>:</label>
|
||||
<label class="">{{systemInfoManageInfo.qqMapKey}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<vc:create path="frame/editSystemInfo"></vc:create>
|
||||
|
||||
|
||||
</div>
|
||||
60
public/pages/frame/systemInfoManage/systemInfoManage.js
Normal file
60
public/pages/frame/systemInfoManage/systemInfoManage.js
Normal file
@ -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);
|
||||
BIN
public/pages/property/.DS_Store
vendored
BIN
public/pages/property/.DS_Store
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user