@@ -19,13 +19,13 @@ | |||||
<div id="MajorNo"></div> | <div id="MajorNo"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">班级</div> | |||||
<div id="ClassNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">年级</div> | <div class="lr-form-item-title">年级</div> | ||||
<div id="Grade"></div> | <div id="Grade"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">班级</div> | |||||
<div id="ClassNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">姓名</div> | <div class="lr-form-item-title">姓名</div> | ||||
<input id="StuName" type="text" class="form-control" /> | <input id="StuName" type="text" class="form-control" /> | ||||
@@ -41,7 +41,7 @@ var bootstrap = function ($, learun) { | |||||
param: { strWhere: "1=1 AND CheckMark=1" }, | param: { strWhere: "1=1 AND CheckMark=1" }, | ||||
select: function (item) { | select: function (item) { | ||||
var Grades = $("#Grade").lrselectGet(); | var Grades = $("#Grade").lrselectGet(); | ||||
if (Grades) { | |||||
if (Grades != null && Grades != "" && Grades != "undefined") { | |||||
if (item) { | if (item) { | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
allowSearch: true, | allowSearch: true, | ||||
@@ -78,12 +78,14 @@ var bootstrap = function ($, learun) { | |||||
text: "text", | text: "text", | ||||
select: function (item) { | select: function (item) { | ||||
var MajorNos = $("#MajorNo").lrselectGet(); | var MajorNos = $("#MajorNo").lrselectGet(); | ||||
if (MajorNos) { | |||||
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { | |||||
if (item) { | if (item) { | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | ||||
param: { strWhere: "majorno='" + item.MajorNos + "' AND CheckMark=1 AND Grade='" + item + "' order by classno desc" } | |||||
param: { | |||||
strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" | |||||
} | |||||
}); | }); | ||||
} else { | } else { | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
@@ -97,7 +99,9 @@ var bootstrap = function ($, learun) { | |||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | ||||
param: { strWhere: " CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } | |||||
param: { | |||||
strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" | |||||
} | |||||
}); | }); | ||||
} else { | } else { | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
@@ -106,7 +110,8 @@ var bootstrap = function ($, learun) { | |||||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | ||||
}); | }); | ||||
} | } | ||||
} | |||||
} | |||||
} | } | ||||
}); | }); | ||||
$('#ClassNo').lrselect({ | $('#ClassNo').lrselect({ | ||||
@@ -67,7 +67,7 @@ export default { | |||||
let values = this.value.split(",") | let values = this.value.split(",") | ||||
if(values.length>1){ | if(values.length>1){ | ||||
const orgItems = values.map(t=>list[t].name).toString() | |||||
const orgItems = values.map(t=>list[t]?list[t].name:'').toString() | |||||
return orgItems | return orgItems | ||||
} | } | ||||
@@ -111,7 +111,7 @@ export default { | |||||
// } | // } | ||||
// }) | // }) | ||||
uni.chooseImage({ | |||||
uni.chooseFile({ | |||||
count: Number(this.number), | count: Number(this.number), | ||||
sizeType: ['original', 'compressed'], | sizeType: ['original', 'compressed'], | ||||
sourceType: ['album', 'camera'], | sourceType: ['album', 'camera'], | ||||
@@ -106,13 +106,13 @@ | |||||
title="会议地点" | title="会议地点" | ||||
placeholder="按会议地点查询" | placeholder="按会议地点查询" | ||||
/> | /> | ||||
<l-organize-picker | |||||
<!-- <l-organize-picker | |||||
v-model="queryData.CreateUser" | v-model="queryData.CreateUser" | ||||
@change="searchChange" | @change="searchChange" | ||||
type="user" | type="user" | ||||
title="申请人" | title="申请人" | ||||
placeholder="按申请人查询" | placeholder="按申请人查询" | ||||
/> | |||||
/> --> | |||||
<!-- 重置查询条件按钮 --> | <!-- 重置查询条件按钮 --> | ||||
<view class="padding-tb"> | <view class="padding-tb"> | ||||
@@ -51,7 +51,7 @@ | |||||
:readonly="!edit" | :readonly="!edit" | ||||
type="user" | type="user" | ||||
title="参会人员" | title="参会人员" | ||||
multiple | |||||
:multiple="true" | |||||
/> | /> | ||||
<l-organize-picker | <l-organize-picker | ||||
@input="setValue('MeetingManagement.RecordPerson', $event)" | @input="setValue('MeetingManagement.RecordPerson', $event)" | ||||
@@ -188,11 +188,10 @@ export default { | |||||
async fetchForm() { | async fetchForm() { | ||||
if (this.mode === 'create') { | if (this.mode === 'create') { | ||||
this.origin = await this.getDefaultForm() | this.origin = await this.getDefaultForm() | ||||
console.log(this.origin) | |||||
} else { | } else { | ||||
const result = await this.HTTP_GET('learun/adms/PersonnelManagement/MeetingManagement/form', this.id) | const result = await this.HTTP_GET('learun/adms/PersonnelManagement/MeetingManagement/form', this.id) | ||||
this.origin = await this.formatFormData(result) | this.origin = await this.formatFormData(result) | ||||
console.log(this.origin) | |||||
console.log(this.origin,this.origin.prototype) | |||||
} | } | ||||
this.current = this.COPY(this.origin) | this.current = this.COPY(this.origin) | ||||
}, | }, | ||||
@@ -7,7 +7,7 @@ | |||||
<!-- </view> --> | <!-- </view> --> | ||||
<view> | <view> | ||||
<view class="pearson"> | <view class="pearson"> | ||||
已选择人员:{{names||'暂无'}} | |||||
已选择:{{names||'暂无'}} | |||||
</view> | </view> | ||||
<view style="display: flex;justify-content: center;"> | <view style="display: flex;justify-content: center;"> | ||||
<view class="cu-btn sm line-red" @tap="itemClear" style="font-size: 16px;margin: 4px;"> | <view class="cu-btn sm line-red" @tap="itemClear" style="font-size: 16px;margin: 4px;"> | ||||
@@ -64,8 +64,8 @@ export default { | |||||
let arr = this.ids.split(",") | let arr = this.ids.split(",") | ||||
let items = [] | let items = [] | ||||
for (let s of arr) { | for (let s of arr) { | ||||
if(this.GET_GLOBAL("user")[s]){ | |||||
items.push({...this.GET_GLOBAL("user")[s],id:s}) | |||||
if(this.GET_GLOBAL(type)[s]){ | |||||
items.push({...this.GET_GLOBAL(type)[s],id:s}) | |||||
} | } | ||||
} | } | ||||
this.items = items | this.items = items | ||||
@@ -82,7 +82,7 @@ export default { | |||||
this.type = type || 'user' | this.type = type || 'user' | ||||
const selectType = { user: '职员', department: '部门', company: '公司' }[type] | const selectType = { user: '职员', department: '部门', company: '公司' }[type] | ||||
this.SET_TITLE(`请选择一个${selectType}`) | |||||
this.SET_TITLE(`请选择${selectType}`) | |||||
}, | }, | ||||
findItem(arr,item){ | findItem(arr,item){ | ||||