説明なし

oss.html 7.3KB

    <!DOCTYPE html> <html> <head> <title>文件上传</title> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="../../css/bootstrap.min.css"> <link rel="stylesheet" href="../../css/font-awesome.min.css"> <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css"> <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css"> <link rel="stylesheet" href="../../css/main.css"> <script src="../../libs/jquery.min.js"></script> <script src="../../plugins/layer/layer.js"></script> <script src="../../libs/bootstrap.min.js"></script> <script src="../../libs/vue.min.js"></script> <script src="../../plugins/jqgrid/grid.locale-cn.js"></script> <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script> <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script> <script src="../../js/common.js"></script> <script src="../../libs/ajaxupload.js"></script> </head> <body> <div id="rrapp" v-cloak> <div v-show="showList"> <div class="grid-btn"> <a class="btn btn-danger" @click="addConfig"><i class="fa fa-sun-o"></i>&nbsp;云存储配置</a> <a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传文件</a> <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a> </div> <table id="jqGrid"></table> <div id="jqGridPager"></div> </div> <div v-show="!showList" class="panel panel-default"> <div class="panel-heading">{{title}}</div> <form class="form-horizontal"> <div class="form-group"> <div class="col-sm-2 control-label">存储类型</div> <label class="radio-inline"> <input type="radio" name="type" v-model="config.type" value="1"/> 七牛 </label> <label class="radio-inline"> <input type="radio" name="type" v-model="config.type" value="2"/> 阿里云 </label> <label class="radio-inline"> <input type="radio" name="type" v-model="config.type" value="3"/> 腾讯云 </label> </div> <div v-show="config.type == 1"> <div class="form-group"> <div class="col-sm-2 control-label">&nbsp;</div> <p class="form-control-static"><a href="http://www.renren.io/open/qiniu.html" target="_blank">免费申请(七牛)10GB储存空间</a></p> </div> <div class="form-group"> <div class="col-sm-2 control-label">域名</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qiniuDomain" placeholder="七牛绑定的域名"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">路径前缀</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qiniuPrefix" placeholder="不设置默认为空"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">AccessKey</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qiniuAccessKey" placeholder="七牛AccessKey"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">SecretKey</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qiniuSecretKey" placeholder="七牛SecretKey"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">空间名</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qiniuBucketName" placeholder="七牛存储空间名"/> </div> </div> </div> <div v-show="config.type == 2"> <div class="form-group"> <div class="col-sm-2 control-label">域名</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunDomain" placeholder="阿里云绑定的域名"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">路径前缀</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunPrefix" placeholder="不设置默认为空"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">EndPoint</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunEndPoint" placeholder="阿里云EndPoint"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">AccessKeyId</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunAccessKeyId" placeholder="阿里云AccessKeyId"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">AccessKeySecret</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunAccessKeySecret" placeholder="阿里云AccessKeySecret"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">BucketName</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.aliyunBucketName" placeholder="阿里云BucketName"/> </div> </div> </div> <div v-show="config.type == 3"> <div class="form-group"> <div class="col-sm-2 control-label">域名</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudDomain" placeholder="腾讯云绑定的域名"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">路径前缀</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudPrefix" placeholder="不设置默认为空"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">AppId</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudAppId" placeholder="腾讯云AppId"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">SecretId</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudSecretId" placeholder="腾讯云SecretId"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">SecretKey</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudSecretKey" placeholder="腾讯云SecretKey"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">BucketName</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudBucketName" placeholder="腾讯云BucketName"/> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label">Bucket所属地区</div> <div class="col-sm-10"> <input type="text" class="form-control" v-model="config.qcloudRegion" placeholder="如:sh(可选值 ,华南:gz 华北:tj 华东:sh)"/> </div> </div> </div> <div class="form-group"> <div class="col-sm-2 control-label"></div> <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/> &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/> </div> </form> </div> </div> <script src="../../js/modules/oss/oss.js"></script> </body> </html>