mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
45f5a1c041
commit
2025fcdbf1
8
app.js
8
app.js
@ -36,12 +36,12 @@ let opts = {
|
|||||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
|
|
||||||
|
|
||||||
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
|
|
||||||
|
|
||||||
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
||||||
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
||||||
|
|
||||||
//app.listen(3000);
|
//app.listen(3000);
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|||||||
@ -47,6 +47,13 @@
|
|||||||
</option>
|
</option>
|
||||||
</select></div>
|
</select></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-sm-2 col-form-label">计费起始时间</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input v-model="carCreateFeeAddInfo.startTime" type="text" placeholder="必填,请填写计费起始时间"
|
||||||
|
class="form-control carCreateFeeStartTime">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<button class="btn btn-primary float-right" type="button"
|
<button class="btn btn-primary float-right" type="button"
|
||||||
v-on:click="saveCarCreateFeeInfo()"><i class="fa fa-check"></i> 提交
|
v-on:click="saveCarCreateFeeInfo()"><i class="fa fa-check"></i> 提交
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
carState:'SH',
|
carState:'SH',
|
||||||
isMore:false,
|
isMore:false,
|
||||||
locationTypeCdName:'',
|
locationTypeCdName:'',
|
||||||
|
startTime:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function() {
|
_initMethod: function() {
|
||||||
@ -21,6 +22,10 @@
|
|||||||
vc.component.carCreateFeeAddInfo.feeTypeCds = _data;
|
vc.component.carCreateFeeAddInfo.feeTypeCds = _data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
vc.initDateTime('carCreateFeeStartTime',function(_value){
|
||||||
|
$that.carCreateFeeAddInfo.startTime = _value;
|
||||||
|
})
|
||||||
|
|
||||||
vc.component._loadParkingAreas();
|
vc.component._loadParkingAreas();
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -79,7 +84,17 @@
|
|||||||
param: "",
|
param: "",
|
||||||
errInfo: "出账类型不能为空"
|
errInfo: "出账类型不能为空"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
'carCreateFeeAddInfo.startTime': [{
|
||||||
|
limit: "required",
|
||||||
|
param: "",
|
||||||
|
errInfo: "计费起始时间不能为空"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
limit: "datetime",
|
||||||
|
param: "",
|
||||||
|
errInfo: "计费起始时间格式错误 YYYY-MM-DD hh:mm:ss"
|
||||||
|
}]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveCarCreateFeeInfo: function() {
|
saveCarCreateFeeInfo: function() {
|
||||||
|
|||||||
@ -88,6 +88,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-sm-2 col-form-label">计费起始时间</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input v-model="roomCreateFeeAddInfo.startTime" type="text" placeholder="必填,请填写计费起始时间"
|
||||||
|
class="form-control roomCreateFeeStartTime">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<button class="btn btn-primary float-right" type="button"
|
<button class="btn btn-primary float-right" type="button"
|
||||||
v-on:click="saveRoomCreateFeeInfo()"><i class="fa fa-check"></i> 提交
|
v-on:click="saveRoomCreateFeeInfo()"><i class="fa fa-check"></i> 提交
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
roomState: ['2001'],
|
roomState: ['2001'],
|
||||||
isMore: false,
|
isMore: false,
|
||||||
locationTypeCdName: '',
|
locationTypeCdName: '',
|
||||||
|
startTime:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
@ -25,6 +26,10 @@
|
|||||||
vc.component.roomCreateFeeAddInfo.feeTypeCds = _data;
|
vc.component.roomCreateFeeAddInfo.feeTypeCds = _data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
vc.initDateTime('roomCreateFeeStartTime',function(_value){
|
||||||
|
$that.roomCreateFeeAddInfo.startTime = _value;
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('roomCreateFeeAdd', 'openRoomCreateFeeAddModal',
|
vc.on('roomCreateFeeAdd', 'openRoomCreateFeeAddModal',
|
||||||
@ -98,7 +103,17 @@
|
|||||||
param: "",
|
param: "",
|
||||||
errInfo: "房屋状态不能为空"
|
errInfo: "房屋状态不能为空"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
'roomCreateFeeAddInfo.startTime': [{
|
||||||
|
limit: "required",
|
||||||
|
param: "",
|
||||||
|
errInfo: "计费起始时间不能为空"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
limit: "datetime",
|
||||||
|
param: "",
|
||||||
|
errInfo: "计费起始时间格式错误 YYYY-MM-DD hh:mm:ss"
|
||||||
|
}]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveRoomCreateFeeInfo: function () {
|
saveRoomCreateFeeInfo: function () {
|
||||||
@ -174,6 +189,7 @@
|
|||||||
roomState: ['2001'],
|
roomState: ['2001'],
|
||||||
isMore: false,
|
isMore: false,
|
||||||
locationTypeCdName: '',
|
locationTypeCdName: '',
|
||||||
|
startTime:''
|
||||||
};
|
};
|
||||||
|
|
||||||
vc.component.roomCreateFeeAddInfo.feeTypeCds = _feeTypeCds;
|
vc.component.roomCreateFeeAddInfo.feeTypeCds = _feeTypeCds;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user