重构系统附件字段逻辑

修改各模块附件功能
This commit is contained in:
2021-03-21 05:07:01 +08:00
parent fb37c7110b
commit decaabd448
45 changed files with 656 additions and 1513 deletions
+2 -2
View File
@@ -400,8 +400,8 @@ jQuery(function() {
uploader.on('uploadSuccess', function(file, res) {
res.fileId = file.id;
res.size = WebUploader.formatSize(res.size);
var html = template('uploader-item-tpl', res);
$('#fileDraft_' + res.key.replace('.','_')).append(html);
var html = template('upload-item-tpl', res);
$('#fileDraft_' + res.table + '_' + res.field).append(html);
});
uploader.on('all', function(type) {