//组件 var cmpcomponent = { template:`
搜索
工作时长(h): {{dialog_data.Total_work_time}}
等待时长(h): {{dialog_data.Total_wait_time}}
井队长: {{dialog_data.well_captain}}
安全员姓名: {{dialog_data.safety_officer_name}}
安全员电话: {{dialog_data.safety_officer_phone}}
经纬度: {{dialog_data.lon_lat}}
医院电话: {{dialog_data.hosp_phone}}
消防电话: {{dialog_data.fire_phone}}
民警电话: {{dialog_data.police_phone}}
地理位置: {{dialog_data.gl}}
仪器管理信息:
仪器系列号: {{item.sid}}   仪器编码: {{item.iid}}   出厂累计工时(h): {{item.Accrued_work_time}}   所在地: {{item.Location}}   负责人: {{item.Director}}
井队固控设备配备和使用情况:
{{dialog_data.well_device}}
设计数据
井口坐标: (X){{dialog_data.x}}  (Y){{dialog_data.y}}
磁偏角(°): {{dialog_data.declination}}
磁倾角(°): {{dialog_data.DIP}}
磁场强度(μT): {{dialog_data.MT}}
设计闭合方位(°): {{dialog_data.CLsA}}
设计垂深(m): {{dialog_data.TVD}}
设计井深(m): {{dialog_data.design_depth}}
设计最大井斜(°): {{dialog_data.design_deviation}}
设计水平段长度(m): {{dialog_data.design_hlength}}
地质信息
目的层: {{dialog_data.Target_stratum}}
储层厚度(m): {{dialog_data.Reservoir_thickness}}
伽马范围(API): {{dialog_data.Gamma_range}}
地层电阻率(Ω·m): {{dialog_data.CHFR}}
钻次{{item.Drilling_num}}
钻次{{item.Drilling_num}}
人工: {{item.Servicer}}
钻具组合: {{item.BHA}}
仪器组合: {{item.ToolCombination}}
等待时长(h): {{item.Wait_time}}
入井时长(h): {{item.Work_time}}
起钻原因: {{item.Reason}}
入井井深(m): {{item.In_depth}}
出井井深(m): {{item.Out_depth}}
本钻次进尺(m): {{item.Footage}}
下步计划: {{item.Next_step}}
工况信息
时间: {{dialog_data.t1}}
最大井深(m): {{dialog_data.Max_depth}}
时间: {{dialog_data.t2}}
最大垂深(m): {{dialog_data.Max_tvd}}
时间: {{dialog_data.t3}}
最高温度(℃): {{dialog_data.Max_temp}}
最高温度(℉): {{dialog_data.Max_temp}}
时间: {{dialog_data.t4}}
最大振动(g): {{dialog_data.Max_vibrate}}
每日录入信息
{{item.context}}
下步工况
{{dialog_data.next_state}}
完钻/完工信息
实际水平段长度(m): {{dialog_data.Hlength}}
仪器总工时(h): {{dialog_data.Tool_work_time}}
累计进尺(m): {{dialog_data.Total_footage}}
钻遇率(%): {{dialog_data.Rate}}
完钻总结
{{dialog_data.well_report}}
参考信息
IP+端口: {{dialog_data.IP}}
地区: {{dialog_data.IP_addr}}
钻次{{item.Drilling_num}}
人工: {{item.Servicer}}
等待时长(h): {{item.Wait_time}}
入井时长(h): {{item.Work_time}}
文件列表:
{{item.filename}}
`, data(){ // 获取当前屏幕的分辨率 let screenW = window.screen.width; let screenH = window.innerHeight; console.log("screen width:",screenW); console.log("screen height:",screenH); return { tHeight:screenH-192, tableData: Array(0), input:'', currentPage: 1, pagesize:50, recordTotal:0, pdf_visible:false, dialog_data:{ Device_data:[], Drilling_data:[], Refer_Drilling_data:[], }, dialog_data1:{}, file_visible:false, file_data:[], checked:false, if_show_t:true, } }, mounted() { this.$data.dialog_data.h=234; var _this = this; axios.post('/deescloud/get_page_setting', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), }) .then(function (response) { if(response.data.r1=="2"){ //_this.$data.if_show_m=false; } if(response.data.r2 =="2"){ _this.$data.if_show_t=false; } }) .catch(function (error) { console.log(error); }); var objs; axios.post('/deescloud/get_well_cmp', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), index: this.$data.currentPage, count: this.$data.pagesize, checked:this.$data.checked }) .then(function (response) { console.log(response.data); objs = response.data.data; rcnt = response.data.total; _this.$data.tableData = objs; _this.$data.recordTotal = rcnt; }) .catch(function (error) { console.log(error); }); }, methods: { down_file(file){ console.log(file); var downUrl = '/deescloud/download_file'+"?id="+file.id; downloadUrl(file.filename,downUrl); }, show_file(row){ //wellNameSource let _this= this; axios.post('/deescloud/get_well_files', { Wellname: row.wellNameSource }) .then(function (response) { console.log(response.data); _this.$data.file_data = response.data.data; _this.$data.file_visible =true; }) .catch(function (error) { console.log(error); }); }, export_pdf(row){ var _this = this; axios.post('deescloud/get_cmr_pdf',{ opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), wellname: row.wellNameSource }, ).then(function (response) { console.log(response.data); var fileid = response.data.fileId; var downUrl = 'file/'+fileid; downloadUrl(row.wellNameSource+"-施工管理报告.pdf",downUrl); }) .catch(function (error) { console.log(error); }); }, show_pdf(row){ //wellNameSource let _this= this; axios.post('/deescloud/get_cmr_record', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), Wellname: row.wellNameSource }) .then(function (response) { console.log(response.data); _this.$data.dialog_data1 = response.data.data; }) .catch(function (error) { console.log(error); }); axios.post('/deescloud/get_cmr', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), Wellname: row.wellNameSource }) .then(function (response) { console.log(response.data); _this.$data.dialog_data = response.data.data; _this.$data.pdf_visible =true; }) .catch(function (error) { console.log(error); }); }, getWell(_search_name){ document.getElementById("bt_serach").blur(); this.$data.currentPage=1; var _this = this; var objs; axios.post('/deescloud/get_well_cmp', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), Wellname: _search_name, index: this.$data.currentPage, count: this.$data.pagesize, checked:this.$data.checked }) .then(function (response) { console.log(response.data); objs = response.data.data; rcnt = response.data.total; _this.$data.tableData = objs; _this.$data.recordTotal = rcnt; }) .catch(function (error) { console.log(error); }); }, handleSizeChange(val) { //console.log(`每页 ${val} 条`); this.$data.pagesize = val; var _this = this; var objs; axios.post('/deescloud/get_well_cmp', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), Wellname: this.$data.input, index: this.$data.currentPage, count: this.$data.pagesize, checked:this.$data.checked }) .then(function (response) { console.log(response.data); objs = response.data.data; rcnt = response.data.total; _this.$data.tableData = objs; _this.$data.recordTotal = rcnt; }) .catch(function (error) { console.log(error); }); }, handleCurrentChange(val) { //console.log(`当前页: ${val}`); this.$data.currentPage = val; var _this = this; var objs; axios.post('/deescloud/get_well_cmp', { opuser:localStorage.getItem("online_user"), opuser_uuid:localStorage.getItem("uuid"), Wellname: this.$data.input, index: this.$data.currentPage, count: this.$data.pagesize, checked:this.$data.checked }) .then(function (response) { console.log(response.data); objs = response.data.data; rcnt = response.data.total; _this.$data.tableData = objs; _this.$data.recordTotal = rcnt; }) .catch(function (error) { console.log(error); }); }, } }