//组件 var cmpcomponent_en = { template:`
Search
Working hours(h): {{dialog_data.Total_work_time}}
Waiting hours(h): {{dialog_data.Total_wait_time}}
Rig crew leader: {{dialog_data.well_captain}}
Name of safety officer: {{dialog_data.safety_officer_name}}
Phone of safety officer: {{dialog_data.safety_officer_phone}}
Latitude and longitude: {{dialog_data.lon_lat}}
Phone of hospital: {{dialog_data.hosp_phone}}
Phone of fire station: {{dialog_data.fire_phone}}
Phone of police station: {{dialog_data.police_phone}}
Location: {{dialog_data.gl}}
Instrument Management Information:
Instrument series No.: {{item.sid}}   Instrument serial No.: {{item.iid}}   Total working hours(h): {{item.Accrued_work_time}}   Location: {{item.Location}}   Person in charge: {{item.Director}}
Equipment and usage of solid control equipment:
{{dialog_data.well_device}}
Design Data
Wellhead coordinates: (X){{dialog_data.x}}  (Y){{dialog_data.y}}
Magnetic declination(°): {{dialog_data.declination}}
DIP(°): {{dialog_data.DIP}}
MT(μT): {{dialog_data.MT}}
Planned closure azimuth(°): {{dialog_data.CLsA}}
Planned TVD(m): {{dialog_data.TVD}}
Planned measured depth(m): {{dialog_data.design_depth}}
Planned max inclination(°): {{dialog_data.design_deviation}}
Planned horizontal section length(m): {{dialog_data.design_hlength}}
Geological Information
Target layer: {{dialog_data.Target_stratum}}
Reservoir thickness(m): {{dialog_data.Reservoir_thickness}}
Range of gamma(API): {{dialog_data.Gamma_range}}
Formation resistivity(Ω·m): {{dialog_data.CHFR}}
RIH Times{{item.Drilling_num}}
RIH Times{{item.Drilling_num}}
Service staff: {{item.Servicer}}
BHA: {{item.BHA}}
Tool assembly: {{item.ToolCombination}}
Waiting hours(h): {{item.Wait_time}}
In Hole hours(h): {{item.Work_time}}
Reason of POOH: {{item.Reason}}
Depth when tool entry(m): {{item.In_depth}}
Depth when tool outlet(m): {{item.Out_depth}}
Current Total Drilled Footage(m): {{item.Footage}}
Next steps plan: {{item.Next_step}}
Working Condition Information
Time: {{dialog_data.t1}}
Well Depth Max(m): {{dialog_data.Max_depth}}
Time: {{dialog_data.t2}}
Max. TVD(m): {{dialog_data.Max_tvd}}
Time: {{dialog_data.t3}}
Max. Temperature(℃): {{dialog_data.Max_temp}}
Max. Temperature(℉): {{dialog_data.Max_temp}}
Time: {{dialog_data.t4}}
Max. Vibration(g): {{dialog_data.Max_vibrate}}
Daily Input Of Information
{{item.context}}
Next Working Condition
{{dialog_data.next_state}}
Drilling Completion Information
Length of horizontal sections(m): {{dialog_data.Hlength}}
Total working time of the instrument(h): {{dialog_data.Tool_work_time}}
Total Footage(m): {{dialog_data.Total_footage}}
Drilling Rate(%): {{dialog_data.Rate}}
Drilling Completion Summary
{{dialog_data.well_report}}
Reference Information
IP+Port: {{dialog_data.IP}}
area: {{dialog_data.IP_addr}}
RIH Times{{item.Drilling_num}}
Service staff: {{item.Servicer}}
Waiting hours(h): {{item.Wait_time}}
In Hole hours(h): {{item.Work_time}}
File List:
{{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_en', { 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_en',{ 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+"-Construction Management Report.pdf",downUrl); }) .catch(function (error) { console.log(error); }); }, show_pdf(row){ //wellNameSource let _this= this; axios.post('/deescloud/get_cmr_record_en', { 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_en', { 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_en', { 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_en', { 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); }); }, } }