mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
加入搜素页面
This commit is contained in:
parent
d6beaea6b2
commit
979010dd60
@ -1,32 +1,32 @@
|
||||
(function(vc) {
|
||||
(function (vc) {
|
||||
|
||||
vc.extends({
|
||||
data: {
|
||||
searchCommunityDataInfo: {
|
||||
searchValue:'',
|
||||
rooms:[],
|
||||
owners:[],
|
||||
ownerMembers:[],
|
||||
cars:[],
|
||||
carMembers:[],
|
||||
contracts:[],
|
||||
repairs:[],
|
||||
visits:[],
|
||||
staffs:[],
|
||||
noData:true
|
||||
searchValue: '',
|
||||
rooms: [],
|
||||
owners: [],
|
||||
ownerMembers: [],
|
||||
cars: [],
|
||||
carMembers: [],
|
||||
contracts: [],
|
||||
repairs: [],
|
||||
visits: [],
|
||||
staffs: [],
|
||||
noData: true
|
||||
},
|
||||
},
|
||||
_initMethod: function() {
|
||||
_initMethod: function () {
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('searchCommunityDataModel', '_loadData', function(_param) {
|
||||
_initEvent: function () {
|
||||
vc.on('searchCommunityDataModel', '_loadData', function (_param) {
|
||||
$that._clearSearchCommunityData();
|
||||
//$('#searchCommunityDataModel').modal('show');
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_doSearchCommunityData:function(){
|
||||
_doSearchCommunityData: function () {
|
||||
if (!vc.isNotEmpty($that.searchCommunityDataInfo.searchValue)) {
|
||||
vc.toast('请输入查询条件');
|
||||
return;
|
||||
@ -57,6 +57,12 @@
|
||||
$that.searchCommunityDataInfo.repairs = _ownerJson.repairs;
|
||||
$that.searchCommunityDataInfo.visits = _ownerJson.visitDtos;
|
||||
$that.searchCommunityDataInfo.staffs = _ownerJson.staffs;
|
||||
if (_ownerJson.rooms.length < 1 && _ownerJson.owners.length < 1 && _ownerJson.ownerMembers.length < 1
|
||||
&& _ownerJson.cars.length < 1 && _ownerJson.carMembers.length < 1 && _ownerJson.contracts.length < 1
|
||||
&& _ownerJson.repairs.length < 1 && _ownerJson.visitDtos.length < 1 && _ownerJson.staffs.length < 1
|
||||
) {
|
||||
$that.searchCommunityDataInfo.noData = true;
|
||||
}
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
@ -73,19 +79,19 @@
|
||||
})
|
||||
window.open('/#/pages/property/simplifyAcceptance?tab=业务受理');
|
||||
},
|
||||
_clearSearchCommunityData:function(){
|
||||
$that.searchCommunityDataInfo ={
|
||||
searchValue:'',
|
||||
noData:true,
|
||||
rooms:[],
|
||||
owners:[],
|
||||
ownerMembers:[],
|
||||
cars:[],
|
||||
carMembers:[],
|
||||
contracts:[],
|
||||
repairs:[],
|
||||
visits:[],
|
||||
staffs:[],
|
||||
_clearSearchCommunityData: function () {
|
||||
$that.searchCommunityDataInfo = {
|
||||
searchValue: '',
|
||||
noData: true,
|
||||
rooms: [],
|
||||
owners: [],
|
||||
ownerMembers: [],
|
||||
cars: [],
|
||||
carMembers: [],
|
||||
contracts: [],
|
||||
repairs: [],
|
||||
visits: [],
|
||||
staffs: [],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user