| 
注册时间2020-9-22最后登录2021-5-20阅读权限10积分79精华0帖子17
 
 
 | 
| 点击上传后怎么让上传按钮不能再次点击呢,等结果返回后才可以再次点击按钮,data只是传递过来的数据。现在是上传20秒后才会返回结果,所以需要设置
 function optRenderer(e) {
 var record = e.record;
 var uid = record._uid;
 var babh = record.data;
 var row = e.row;
 
 return '<a class="mini-button" id="icon-ok"font-size: 9.8pt; color: rgb(255, 198, 109);">updateRow(\'' + babh + '\')">修改</a>' + ' ' +        '<a class="mini-button" id="icon-add"color: rgb(255, 198, 109);">doUpload(\'' + babh + '\')">上传</a>' + ' ' ;
 
 
 }/**
 * 上传
 */
 function doUpload(data) {
 if (data != null) {
 $.ajax({
 url: "${webRoot}archivalControl.html?doUpload&data=" + data,
 type: "post",
 success: function (text) {
 if (text.success) {
 mini.alert("已上传")
 } else {
 var msg = text.errors[0].error;
 mini.alert(msg);
 }
 }
 });
 }
 }
 
 | 
 |