| | |
| | | <thead>
|
| | | <tr>
|
| | | <th>图片预览</th>
|
| | | <th>文件名</th>
|
| | | <th>大小</th>
|
| | | <th lay-data="{fixed: 'right', sort: true, minWidth: 100, align: 'center'}">操作</th>
|
| | | </tr>
|
| | |
| | | data: "json="+temp,
|
| | | dataType: 'json',
|
| | | success:function(data) {
|
| | | console.info(data);
|
| | | //console.info(data);
|
| | | data = JSON.parse(data.result);
|
| | | if(data.code==1){
|
| | | layer.msg("申请验收成功!3秒后关闭面板");
|
| | |
| | | setTimeout(function() { |
| | | var lng = $('#lng').val(); // 经度
|
| | | var lat = $('#lat').val(); // 纬度
|
| | | console.log(lng+'***'+lat);
|
| | | //console.log(lng+'***'+lat);
|
| | | var point = new BMap.Point(lng, lat);
|
| | | delMkByLabel('新机房');
|
| | | var mk = new BMap.Marker(point);
|
| | |
| | |
|
| | | // 给mk点添加移动事件
|
| | | mk.addEventListener('dragend', function(e) { |
| | | console.log(e.point);
|
| | | //console.log(e.point);
|
| | | var lat = e.point.lat;
|
| | | var lng = e.point.lng;
|
| | |
|
| | |
| | | ,choose: function(obj) {
|
| | |
|
| | | var files = this.files = obj.pushFile();
|
| | | console.log(obj.pushFile());
|
| | | //console.log(obj.pushFile());
|
| | | videoInfoTbl.text('');
|
| | | // 遍历
|
| | | Object.keys(files).forEach(function(key) {
|
| | |
| | | });
|
| | | }
|
| | | ,progress: function(e , percent) {
|
| | | console.log(percent);
|
| | | //console.log(percent);
|
| | | element.progress('uploadProgress',percent + '%');
|
| | | }
|
| | | ,done: function(res, index, upload) {
|
| | |
| | | obj.preview(function(index, file, result){
|
| | | var tr = $(['<tr id="upload-'+ index +'">'
|
| | | ,'<td><img src="'+result+'">'
|
| | | ,'<td>'+ file.name +'</td>'
|
| | | ,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>'
|
| | | ,'<td>'
|
| | | ,'<button class="layui-btn layui-btn-xs imgs-reload layui-hide">重传</button>'
|
| | |
| | | });
|
| | | }
|
| | | ,before:function(obj) {
|
| | | uploadImgsLoad = layer.load(1);
|
| | | // 设置提交的参数
|
| | | this.data.json = JSON.stringify({
|
| | | StationId: homeInfo.homeId
|