Ver código fonte

宿舍管理添加多选搜索

娄底高职分支
ndbs 2 anos atrás
pai
commit
7467f186ac
3 arquivos alterados com 14 adições e 6 exclusões
  1. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Dormitory.cshtml
  2. +5
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/FormClass.js
  3. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js

+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Dormitory.cshtml Ver arquivo

@@ -45,6 +45,11 @@
left: 0px;
width: 206px
}
.indSec1T > a {
width: fit-content;
padding-left: 6px;
padding-right: 6px;
}
</style>
</head>
<body>
@@ -98,7 +103,7 @@
<div class="inSec1ImgCon">
<div class="inSec1ImgCon1"><i v-for="count in parseInt(floor.dormitory.Starred>0?floor.dormitory.Starred:0)" class="fa fa-star"></i></div>
<div v-if="floor.dormitory.HasToilet=='1'" class="inSec1ImgCon2"><img src="/Content/images/floor/dorm1-3.png" alt="" /> 独卫</div>
<div v-if="floor.NoStudentNum==0" class="inSec1ImgCon3">满</div>
<div v-if="floor.NoStudentNum==0 && floor.BedNum!=0" class="inSec1ImgCon3">满</div>
</div>
</div>
</div>


+ 5
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/FormClass.js Ver arquivo

@@ -19,12 +19,14 @@ var bootstrap = function ($, learun) {

$('#Class').lrselect({
value: "classno",
text: "classname"
text: "classname",
allowSearch: true
});

$('#Major').lrselect({
value: "majorno",
text: "majorname",
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable',
param: { code: "CdMajorInfo", strWhere: "DeptNo='" + Dept + "'" },
select: function (item) {
@@ -50,7 +52,8 @@ var bootstrap = function ($, learun) {
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, function (data) {
var kv = keyValue.split(',')[0];
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + kv, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js Ver arquivo

@@ -271,7 +271,7 @@ var bootstrap = function ($, learun) {
if (arrDept.some(function (value, index) {
return value != arrDept[0];
})) {
return learun.alert.warning("选中记录包含多种专业的数据,不可批量分配班级!");
return learun.alert.warning("选中记录包含多种的数据,不可批量分配班级!");
}
}
learun.layerForm({
@@ -308,8 +308,8 @@ var bootstrap = function ($, learun) {
id: 'formRoom',
title: '分配宿舍--' + Name,
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/FormRoom?keyValue=' + keyValue + '&Class=' + Class + '&Sex=' + Sex,
width: 600,
height: 400,
width: 800,
height: 600,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}


Carregando…
Cancelar
Salvar