commit
This commit is contained in:
+5
-1
@@ -33,6 +33,7 @@ import org.nutz.dao.Dao;
|
||||
import org.nutz.ioc.aop.Aop;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.lang.Lang;
|
||||
import org.nutz.lang.random.R;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -258,7 +259,10 @@ public class TeacherCongressSessionServiceImpl extends BaseServiceImpl<Teacher_c
|
||||
* @param children 子集
|
||||
*/
|
||||
private void insertInstitution(String sessionId, String parentId, List<Tree<String>> children) {
|
||||
for (Tree<String> child : children) {
|
||||
if(Lang.isEmpty(children)) {
|
||||
return;
|
||||
}
|
||||
for (Tree<String> child : children) {
|
||||
Teacher_congress_institution newInstitution = new Teacher_congress_institution();
|
||||
newInstitution.setId(null);
|
||||
newInstitution.setSessionId(sessionId);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
:before-upload="beforeUpload"
|
||||
:limit="upload_number"
|
||||
:accept="fileAccept"
|
||||
:multiple="true"
|
||||
>
|
||||
<el-button :size="upload_button_size" type="primary">
|
||||
{{ upload_text }}
|
||||
@@ -31,6 +32,7 @@
|
||||
:on-exceed="handleExceed"
|
||||
:limit="upload_number"
|
||||
:accept="fileAccept"
|
||||
:multiple="true"
|
||||
list-type="picture-card"
|
||||
>
|
||||
<i class="el-icon-plus"></i>
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ layout("/layouts/platform.html"){
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="文件" prop="files">
|
||||
<file-upload :upload_number="5" :upload_size="1024 * 1024 * 1" :value.sync="formData.files" complete_result upload_result_category="array"></file-upload>
|
||||
<file-upload :upload_number="5" :upload_size="1024 * 1024 * 5" :value.sync="formData.files" complete_result upload_result_category="array"></file-upload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="dialog-footer" slot="footer">
|
||||
|
||||
Reference in New Issue
Block a user