-
{{floor.dormitory.Name}}
{{floor.dormitory.Sex | filter_sex}}
+
+ {{floor.dormitory.Name}}
+ @*
{{floor.dormitory.Sex | filter_sex}}
*@
+
{{floor.UnitNum}}单元 {{floor.floorNum}}层 {{floor.RoomNum}}间
@@ -131,7 +133,7 @@
}.bind(this), 1000);
},
filter_Dept: function (value) {
- var result;
+ var result = '';
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
@@ -144,7 +146,7 @@
return result;
},
filter_Major: function (value) {
- var result;
+ var result = '';
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
@@ -195,7 +197,7 @@
},
addFloor: function () {
var url = "";
- url = top.$.rootUrl + '/LogisticsManagement/Accommodation/Form';
+ url = top.$.rootUrl + '/LogisticsManagement/Accommodation/FormClassify';
top.learun.layerForm({
id: 'form',
title: '新增',
@@ -212,7 +214,7 @@
top.learun.layerForm({
id: 'form',
title: '编辑',
- url: top.$.rootUrl + '/LogisticsManagement/Accommodation/Form?keyValue=' + id,
+ url: top.$.rootUrl + '/LogisticsManagement/Accommodation/FormClassify?keyValue=' + id,
width: 600,
height: 400,
callBack: function (id) {
@@ -234,7 +236,10 @@
var echarts1;
//圆形图
var i = 0;
- var g = (floor.HasStudentNum / floor.BedNum) * 100 + "%";
+ var g = "0%";
+ if (!!floor.HasStudentNum && !!floor.BedNum && floor.HasStudentNum != 0 && floor.BedNum != 0) {
+ g = ((floor.HasStudentNum / floor.BedNum) * 100).toFixed(2) + "%";
+ }
layer.open({
type: 1,
closeBtn: 2,
@@ -243,7 +248,8 @@
'
' +
'
' +
'
' +
- '
' + floor.dormitory.Name + this.filter_sex(floor.dormitory.Sex) +
+ '
' + floor.dormitory.Name +
+ '' + this.filter_sex(floor.dormitory.Sex) + '' +
'
' +
'
' +
'
负 责 人' + floor.dormitory.Functionary + '
负责人电话' + floor.dormitory.Phone + '
' +
@@ -254,15 +260,15 @@
'
' +
'
' +
'- 编 号' + floor.dormitory.Name + '
' +
- '- 价 格' + floor.dormitory.Price + ' 元
' +
+ '- 价 格' + (floor.dormitory.Price == null ? '' : floor.dormitory.Price) + ' 元
' +
'- 单 元' + floor.UnitNum + ' 个
' +
'- 入 住' + floor.HasStudentNum + ' 人
' +
'- 楼 层' + floor.floorNum + ' 层
' +
'- 空 床' + floor.NoStudentNum + ' 床
' +
'- 房 间' + floor.RoomNum + ' 间
' +
- '- 涉及院系' + this.filter_Dept(floor.dormitory.Dept) + '
' +
+ //'- 涉及院系' + this.filter_Dept(floor.dormitory.Dept) + '
' +
'- 床 位' + floor.UnitNum + ' 个
' +
- '- 涉及专业' + this.filter_Major(floor.dormitory.Major) + '
' +
+ // '- 涉及专业' + this.filter_Major(floor.dormitory.Major) + '
' +
'
' +
'
' +
//'
' +