From 41c94eb9b04fba86a9a2d6e43543068f98d77728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=99=AF=E8=BF=9C?= Date: Fri, 20 Oct 2017 00:50:15 +0800 Subject: [PATCH] uploadFile --- bootstrap-table.js | 2 +- bootstrap-table.min.js | 2 +- bower.json | 6 +++--- package.json | 2 +- src/uploadfile.html | 9 +++++---- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/bootstrap-table.js b/bootstrap-table.js index 000f37d..f64df0e 100644 --- a/bootstrap-table.js +++ b/bootstrap-table.js @@ -23,7 +23,7 @@ $templateCache.put("directives/decorators/bootstrap/table/popover-tree.html","\n .popover{\n min-width: 900px;\n width: 900px;\n }\n .title-btn {\n position: absolute;\n right: 2px;\n top: 2px;\n padding: 7px 9px !important;\n border-radius: 100px !important;\n }\n .popover-inner{\n position: relative;\n }\n\n
\n \n \n \n
\n\n\n\n"); $templateCache.put("directives/decorators/bootstrap/table/table-title.html","
\n \n \n

{{form.title}}

\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/table.html","
\n\n\n
\n
\n
\n \n
\n
\n
\n \n \n
\n \n
    \n
  • \n {{col.title}}\n
  • \n
\n
\n
\n \n \n
\n
\n
\n\n
\n \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n \n
\n
\n 该列类型未开发。。。\n
\n
暂无该类数据
\n
\n\n\n\n \n\n \n\n
\n"); -$templateCache.put("directives/decorators/bootstrap/table/uploadfile.html","
\n \n \n
\n"); +$templateCache.put("directives/decorators/bootstrap/table/uploadfile.html","
\n \n
\n
\n \n \n = 0\">\n \n \n 上传成功\n 已上传: {{form.options.fileName}}\n
\n \n
\n 错误: {{$file[form.options.errorMsgKey]}}\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadfiles.html","\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadpic.html","\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadpics.html","\n");}]); diff --git a/bootstrap-table.min.js b/bootstrap-table.min.js index e21c4d9..bba594d 100644 --- a/bootstrap-table.min.js +++ b/bootstrap-table.min.js @@ -1,3 +1,3 @@ angular.module("schemaForm").run(["$templateCache",function(e){e.put("directives/decorators/bootstrap/table/ckeditor.html",'
'),e.put("directives/decorators/bootstrap/table/cutuploadpic.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/cutuploadpics.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/date-range.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-array.html",'
'),e.put("directives/decorators/bootstrap/table/mos-button-group.html",'
'),e.put("directives/decorators/bootstrap/table/mos-color.html",'
'),e.put("directives/decorators/bootstrap/table/mos-commit-info.html",'
'),e.put("directives/decorators/bootstrap/table/mos-default.html",'
{{$$value$$}}
{{$$value$$}}
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-multiselect.html",'
'),e.put("directives/decorators/bootstrap/table/mos-multiselect2.html",'
{{$item[form.map.displayProp]}}
{{$item[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-radio-buttons.html",'
'),e.put("directives/decorators/bootstrap/table/mos-radios.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select2.html",'
{{$select.selected[form.map.displayProp]}}
{{$select.selected[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-template.html",'
'),e.put("directives/decorators/bootstrap/table/mos-textarea.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-tree-grid.html",''),e.put("directives/decorators/bootstrap/table/mos-treemultiselect2.html",'
'),e.put("directives/decorators/bootstrap/table/mos-treeselect2.html",'
'),e.put("directives/decorators/bootstrap/table/ngtree.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/popover-tree.html",'

{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'), -e.put("directives/decorators/bootstrap/table/popover-user.html",'
'),e.put("directives/decorators/bootstrap/table/table-title.html",'

{{form.title}}

'),e.put("directives/decorators/bootstrap/table/table.html",'
该列类型未开发。。。
暂无该类数据
'),e.put("directives/decorators/bootstrap/table/uploadfile.html",'
'),e.put("directives/decorators/bootstrap/table/uploadfiles.html",'
错误: {{$files[$index][form.options.errorMsgKey]}} {{f.substring(f.lastIndexOf(\'/\')+1)}}
批量上传
'),e.put("directives/decorators/bootstrap/table/uploadpic.html",'

上传图片 上传成功
错误: {{$file[form.options.errorMsgKey]}}
'), +e.put("directives/decorators/bootstrap/table/popover-user.html",'
'),e.put("directives/decorators/bootstrap/table/table-title.html",'

{{form.title}}

'),e.put("directives/decorators/bootstrap/table/table.html",'
该列类型未开发。。。
暂无该类数据
'),e.put("directives/decorators/bootstrap/table/uploadfile.html",'
上传成功 已上传: {{form.options.fileName}}
错误: {{$file[form.options.errorMsgKey]}}
'),e.put("directives/decorators/bootstrap/table/uploadfiles.html",'
错误: {{$files[$index][form.options.errorMsgKey]}} {{f.substring(f.lastIndexOf(\'/\')+1)}}
批量上传
'),e.put("directives/decorators/bootstrap/table/uploadpic.html",'

上传图片 上传成功
错误: {{$file[form.options.errorMsgKey]}}
'), e.put("directives/decorators/bootstrap/table/uploadpics.html",'
错误: {{$files[$index][form.options.errorMsgKey]}}
批量上传
')}]),angular.module("schemaForm").config(["schemaFormProvider","schemaFormDecoratorsProvider","sfPathProvider",function(e,t,o){var s="directives/decorators/bootstrap/table/",a=function(t,s,a){if("array"===s.type&&"table"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="table",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(a),t.addMapping("bootstrapDecorator","table",s+"table.html"),t.createDirective("table",s+"table.html");var r=function(t,s,a){if("array"===s.type&&"table-title"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="table-title",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(r),t.addMapping("bootstrapDecorator","table-title",s+"table-title.html"),t.createDirective("table-title",s+"table-title.html");var l=function(t,s,a){if("default"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="default",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(l),t.addMapping("bootstrapDecorator","default",s+"mos-default.html"),t.createDirective("default",s+"mos-default.html");var i=function(t,s,a){if("multi-select"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="multi-select",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(i),t.addMapping("bootstrapDecorator","multi-select",s+"mos-multiselect.html"),t.createDirective("multi-select",s+"mos-multiselect.html");var n=function(t,s,a){if("button-group"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="button-group",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(n),t.addMapping("bootstrapDecorator","button-group",s+"mos-button-group.html"),t.createDirective("button-group",s+"mos-button-group.html");var m=function(t,s,a){if("mos-array"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-array",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(m),t.addMapping("bootstrapDecorator","mos-array",s+"mos-array.html"),t.createDirective("mos-array",s+"mos-array.html");var d=function(t,s,a){if("mos-color"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-color",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(d),t.addMapping("bootstrapDecorator","mos-color",s+"mos-color.html"),t.createDirective("mos-color",s+"mos-color.html");var c=function(t,s,a){if("mos-textarea"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-textarea",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(c),t.addMapping("bootstrapDecorator","mos-textarea",s+"mos-textarea.html"),t.createDirective("mos-textarea",s+"mos-textarea.html");var p=function(t,s,a){if("mos-select2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-select2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(p),t.addMapping("bootstrapDecorator","mos-select2",s+"mos-select2.html"),t.createDirective("mos-select2",s+"mos-select2.html");var f=function(t,s,a){if("mos-multiselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-multiselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(f),t.addMapping("bootstrapDecorator","mos-multiselect2",s+"mos-multiselect2.html"),t.createDirective("mos-multiselect2",s+"mos-multiselect2.html");var u=function(t,s,a){if("mos-treeselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-treeselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(u),t.addMapping("bootstrapDecorator","mos-treeselect2",s+"mos-treeselect2.html"),t.createDirective("mos-treeselect2",s+"mos-treeselect2.html");var g=function(t,s,a){if("mos-treemultiselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-treemultiselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(g),t.addMapping("bootstrapDecorator","mos-treemultiselect2",s+"mos-treemultiselect2.html"),t.createDirective("mos-treemultiselect2",s+"mos-treemultiselect2.html");var h=function(t,s,a){if("mos-template"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-template",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(h),t.addMapping("bootstrapDecorator","mos-template","directives/decorators/bootstrap/table/mos-template.html"),t.createDirective("mos-template","directives/decorators/bootstrap/table/mos-template.html");var b=function(t,s,a){if("uploadpic"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadpic",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(b),t.addMapping("bootstrapDecorator","uploadpic",s+"uploadpic.html"),t.createDirective("uploadpic",s+"uploadpic.html");var v=function(t,s,a){if("uploadpics"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadpics",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(v),t.addMapping("bootstrapDecorator","uploadpics",s+"uploadpics.html"),t.createDirective("uploadpics",s+"uploadpics.html");var $=function(t,s,a){if("cutuploadpic"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="cutuploadpic",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift($),t.addMapping("bootstrapDecorator","cutuploadpic",s+"cutuploadpic.html"),t.createDirective("cutuploadpic",s+"cutuploadpic.html");var y=function(t,s,a){if("cutuploadpics"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="cutuploadpics",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(y),t.addMapping("bootstrapDecorator","cutuploadpics",s+"cutuploadpics.html"),t.createDirective("cutuploadpics",s+"cutuploadpics.html");var k=function(t,s,a){if("uploadfile"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadfile",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(k),t.addMapping("bootstrapDecorator","uploadfile",s+"uploadfile.html"),t.createDirective("uploadfile",s+"uploadfile.html");var w=function(t,s,a){if("uploadfiles"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadfiles",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(w),t.addMapping("bootstrapDecorator","uploadfiles",s+"uploadfiles.html"),t.createDirective("uploadfiles",s+"uploadfiles.html");var x=function(t,s,a){if("ckeditor"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="ckeditor",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(x),t.addMapping("bootstrapDecorator","ckeditor",s+"ckeditor.html"),t.createDirective("ckeditor",s+"ckeditor.html");var S=function(t,s,a){if("ngtree"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="ngtree",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(S),t.addMapping("bootstrapDecorator","ngtree",s+"ngtree.html"),t.createDirective("ngtree",s+"ngtree.html");var C=function(t,s,a){if("popover-tree"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="popover-tree",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(C),t.addMapping("bootstrapDecorator","popover-tree",s+"popover-tree.html"),t.createDirective("popover-tree",s+"popover-tree.html");var _=function(t,s,a){if("date-range"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="date-range",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(_),t.addMapping("bootstrapDecorator","date-range",s+"date-range.html"),t.createDirective("date-range",s+"date-range.html");var O=function(t,s,a){if("mos-radio-buttons"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-radio-buttons",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(O),t.addMapping("bootstrapDecorator","mos-radio-buttons",s+"mos-radio-buttons.html"),t.createDirective("mos-radio-buttons",s+"mos-radio-buttons.html");var D=function(t,s,a){if("popoverUser"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="popoverUser",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(D),t.addMapping("bootstrapDecorator","popoverUser",s+"popover-user.html"),t.createDirective("popoverUser",s+"popover-user.html");var j=function(t,s,a){if("mos-commit-info"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-commit-info",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(j),t.addMapping("bootstrapDecorator","mos-commit-info",s+"mos-commit-info.html"),t.createDirective("mos-commit-info",s+"mos-commit-info.html");var q=function(t,s,a){if("mos-tree-grid"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-tree-grid",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(q),t.addMapping("bootstrapDecorator","mos-tree-grid",s+"mos-tree-grid.html"),t.createDirective("mos-tree-grid",s+"mos-tree-grid.html");var M=function(t,s,a){if("mos-radios"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-radios",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(M),t.addMapping("bootstrapDecorator","mos-radios",s+"mos-radios.html"),t.createDirective("mos-radios",s+"mos-radios.html"),t.createDirectives({"mos-number":s+"mos-default.html",text:s+"mos-default.html",date:s+"mos-default.html",password:s+"mos-default.html",input:s+"mos-default.html","multi-select":s+"mos-multiselect.html","table-title":s+"table-title.html",table:s+"table.html","button-group":s+"mos-button-group.html","mos-array":s+"mos-array.html","mos-color":s+"mos-color.html","mos-textarea":s+"mos-textarea.html","mos-commit-info":s+"mos-commit-info.html","mos-select2":s+"mos-select2.html","mos-multiselect2":s+"mos-multiselect2.html","mos-treeselect2":s+"mos-treeselect2.html","mos-treemultiselect2":s+"mos-treemultiselect2.html","mos-template":s+"mos-template.html",uploadpic:s+"uploadpic.html",uploadpics:s+"uploadpics.html",cutuploadpic:s+"cutuploadpic.html",cutuploadpics:s+"cutuploadpics.html",uploadfile:s+"uploadfile.html",uploadfiles:s+"uploadfiles.html",ckeditor:s+"ckeditor.html",ngtree:s+"ngtree.html","popover-tree":s+"popover-tree.html","date-range":s+"date-range.html","mos-radio-buttons":s+"mos-radio-buttons.html","mos-tree-grid":s+"mos-tree-grid.html",popoverUser:s+"popover-user.html","mos-radios":s+"mos-radios.html",label:s+"mos-default.html"})}]); \ No newline at end of file diff --git a/bower.json b/bower.json index bc9e176..25c5c5a 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { - "name": "join-admin", - "version": "1.0.13", - "description": "join admin project", + "name": "angular-schema-form-table", + "version": "1.0.14", + "description": "table add-on for schema form", "main": "app.js", "keywords": [ "mos" diff --git a/package.json b/package.json index 8c9de48..288e658 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-schema-form-table", - "version": "1.0.13", + "version": "1.0.14", "description": "table add-on for schema form", "scripts": { "test": "rm -fr coverage && ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS karma.conf.js" diff --git a/src/uploadfile.html b/src/uploadfile.html index f25f1dc..bb9ccae 100644 --- a/src/uploadfile.html +++ b/src/uploadfile.html @@ -2,19 +2,20 @@ ng-init="form.options.resultKey='url' ; form.options.progressKey='progress' ; form.options.errorMsgKey='errorMsg'" ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess(), 'has-feedback': form.feedback !== false }">
- 错误: {{$file[form.options.errorMsgKey]}}