mupload抽公共代码
This commit is contained in:
parent
efb49da458
commit
3848ecd2ee
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
.van-pagination[data-v-18765676]{position:fixed;bottom:0;width:100%;z-index:999;background:#fff}.box[data-v-18765676]{display:flex;flex-direction:column;height:100%;font-size:.42667rem}.box .add[data-v-18765676]{width:2.13333rem;height:2.13333rem;position:fixed;right:.32rem;bottom:20%}.box[data-v-18765676] .van-tab.van-tab--active{font-size:.42667rem;font-weight:800}.box .tab-contain[data-v-18765676]{padding:.32rem}.box .tab-contain .tab-contain-list .tab-contain-list-box[data-v-18765676]{display:flex;align-items:center;justify-content:space-between;padding:.42667rem;background-color:#fff;margin-bottom:.26667rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left[data-v-18765676]{flex:1;display:flex;align-items:center}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left .logo[data-v-18765676]{width:1.06667rem;height:1.06667rem;margin-right:.4rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left h2[data-v-18765676]{font-size:.42667rem;color:#333;margin-bottom:.26667rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left p[data-v-18765676]{font-size:.32rem;color:#cbcbcb}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-right[data-v-18765676]{flex:0 0 2.13333rem;font-size:.32rem;display:flex;align-items:center;text-align:center}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-right span[data-v-18765676]{color:#1989fa}
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
.van-pagination[data-v-11df69e6]{position:fixed;bottom:0;width:100%;z-index:999;background:#fff}.box[data-v-11df69e6]{display:flex;flex-direction:column;height:100%;font-size:.42667rem}.box .add[data-v-11df69e6]{width:2.13333rem;height:2.13333rem;position:fixed;right:.32rem;bottom:20%}.box[data-v-11df69e6] .van-tab.van-tab--active{font-size:.42667rem;font-weight:800}.box .tab-contain[data-v-11df69e6]{padding:.32rem}.box .tab-contain .tab-contain-list .tab-contain-list-box[data-v-11df69e6]{display:flex;align-items:center;justify-content:space-between;padding:.42667rem;background-color:#fff;margin-bottom:.26667rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left[data-v-11df69e6]{flex:1;display:flex;align-items:center}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left .logo[data-v-11df69e6]{width:1.06667rem;height:1.06667rem;margin-right:.4rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left h2[data-v-11df69e6]{font-size:.42667rem;color:#333;margin-bottom:.26667rem}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-left p[data-v-11df69e6]{font-size:.32rem;color:#cbcbcb}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-right[data-v-11df69e6]{flex:0 0 2.13333rem;font-size:.32rem;display:flex;align-items:center;text-align:center}.box .tab-contain .tab-contain-list .tab-contain-list-box .tab-contain-list-box-right span[data-v-11df69e6]{color:#1989fa}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,10 @@
|
|||
<%
|
||||
var name = name;
|
||||
%>
|
||||
|
||||
var ${name}Arr = new Array();
|
||||
$.each($(".${name}"), function (i, n) {
|
||||
var val = $(n).data("val");
|
||||
${name}Arr.push(val)
|
||||
});
|
||||
$("[name='${name}ArrStr']").val(JSON.stringify(${name}Arr));
|
|
@ -0,0 +1,10 @@
|
|||
<%
|
||||
var name = name;
|
||||
%>
|
||||
|
||||
var ${name}IdsArr = [];
|
||||
var ${name}Data = ${name}roleGrid.dataGrid('getRowData');
|
||||
${name}Data.map(data => {
|
||||
${name}IdsArr.push(data.userId);
|
||||
});
|
||||
$("[name='${name}Ids']").val(${name}IdsArr.join(","));
|
|
@ -50,8 +50,7 @@
|
|||
|
||||
<div class="form-unit">履职信息</div>
|
||||
<act:title title="" fields="4"/>
|
||||
<act:input text="履职上传时间" as="date" format="yyyy-MM-dd HH:mm:ss" view="datetime" name="performUploadAt"
|
||||
col="1"/>
|
||||
<act:input text="履职上传时间" as="date" format="yyyy-MM-dd HH:mm:ss" view="datetime" name="performUploadAt" col="1"/>
|
||||
</div>
|
||||
<act:mupload text="履职附件" name="performAttachment" listStr="${performAttachmentListStr!}"/>
|
||||
<act:person text="打分人员" router="appoint_user" id="${appoint.id!}" name="performUser"
|
||||
|
@ -82,47 +81,13 @@
|
|||
<script>
|
||||
|
||||
function before() {
|
||||
var proposeAttachmentArr = new Array();
|
||||
$.each($(".proposeAttachment"), function (i, n) {
|
||||
var val = $(n).data("val");
|
||||
proposeAttachmentArr.push(val)
|
||||
});
|
||||
$("[name='proposeAttachmentArrStr']").val(JSON.stringify(proposeAttachmentArr));
|
||||
<act:mupload_before name="proposeAttachment"/>
|
||||
<act:mupload_before name="conferenceAttachment"/>
|
||||
<act:mupload_before name="performAttachment"/>
|
||||
|
||||
var conferenceAttachmentArr = new Array();
|
||||
$.each($(".conferenceAttachment"), function (i, n) {
|
||||
var val = $(n).data("val");
|
||||
conferenceAttachmentArr.push(val)
|
||||
});
|
||||
$("[name='conferenceAttachmentArrStr']").val(JSON.stringify(conferenceAttachmentArr));
|
||||
|
||||
var performAttachmentArr = new Array();
|
||||
$.each($(".performAttachment"), function (i, n) {
|
||||
var val = $(n).data("val");
|
||||
performAttachmentArr.push(val)
|
||||
});
|
||||
$("[name='performAttachmentArrStr']").val(JSON.stringify(performAttachmentArr));
|
||||
|
||||
var conferenceUserIdsArr = [];
|
||||
var conferenceUserData = conferenceUserroleGrid.dataGrid('getRowData');
|
||||
conferenceUserData.map(data => {
|
||||
conferenceUserIdsArr.push(data.userId);
|
||||
});
|
||||
$("[name='conferenceUserIds']").val(conferenceUserIdsArr.join(","));
|
||||
|
||||
var voteUserIdsArr = [];
|
||||
var voteUserData = voteUserroleGrid.dataGrid('getRowData');
|
||||
voteUserData.map(data => {
|
||||
voteUserIdsArr.push(data.userId);
|
||||
});
|
||||
$("[name='voteUserIds']").val(voteUserIdsArr.join(","));
|
||||
|
||||
var performUserIdsArr = [];
|
||||
var performUserData = performUserroleGrid.dataGrid('getRowData');
|
||||
performUserData.map(data => {
|
||||
performUserIdsArr.push(data.userId);
|
||||
});
|
||||
$("[name='performUserIds']").val(performUserIdsArr.join(","));
|
||||
<act:person_before name="conferenceUser"/>
|
||||
<act:person_before name="voteUser"/>
|
||||
<act:person_before name="performUser"/>
|
||||
|
||||
//当设置了第一个,而没有设置后面的人员,自动加过去
|
||||
if (conferenceUserIdsArr.length > 0 && voteUserIdsArr.length == 0 && performUserIdsArr.length == 0) {
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
|
||||
function before() {
|
||||
var surveyAttachmentArr = new Array();
|
||||
$.each($(".surveyAttachment"), function (i, n) {
|
||||
|
@ -97,7 +98,7 @@
|
|||
researchAttachmentArr.push(val)
|
||||
});
|
||||
$("[name='researchAttachmentArrStr']").val(JSON.stringify(researchAttachmentArr));
|
||||
|
||||
|
||||
var evaluateAttachmentArr = new Array();
|
||||
$.each($(".evaluateAttachment"), function (i, n) {
|
||||
var val = $(n).data("val");
|
||||
|
@ -116,6 +117,7 @@
|
|||
return true
|
||||
}
|
||||
|
||||
|
||||
function updateResult(resp) {
|
||||
if (resp.state === 1) {
|
||||
act.closeCurrentTabPage(function (win) {
|
||||
|
|
Loading…
Reference in New Issue