MaterialMarkaKO
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
|
||||||
dist
|
dist
|
||||||
|
node_modules
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
|
|||||||
1
dist/css/chunk-734bbfda.dc406172.css
vendored
1
dist/css/chunk-734bbfda.dc406172.css
vendored
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link href=css/chunk-099daac5.5dcf9551.css rel=prefetch><link href=css/chunk-187a5f3f.baf9390a.css rel=prefetch><link href=css/chunk-1b4ec2a7.2c0b98f5.css rel=prefetch><link href=css/chunk-28dc4aef.92e08859.css rel=prefetch><link href=css/chunk-2ae756f5.e2bb5296.css rel=prefetch><link href=css/chunk-2f415156.4cbfaa5e.css rel=prefetch><link href=css/chunk-33abae75.277a91b1.css rel=prefetch><link href=css/chunk-36308615.a37667a3.css rel=prefetch><link href=css/chunk-366d1341.185d52b1.css rel=prefetch><link href=css/chunk-39ed1a08.e2bb5296.css rel=prefetch><link href=css/chunk-3ac51e83.2f72ae9f.css rel=prefetch><link href=css/chunk-4348ccc7.e2bb5296.css rel=prefetch><link href=css/chunk-461f6ae6.57820d02.css rel=prefetch><link href=css/chunk-56216674.8d45942f.css rel=prefetch><link href=css/chunk-5e54c849.e828f278.css rel=prefetch><link href=css/chunk-732e6f1b.d2b8d2dd.css rel=prefetch><link href=css/chunk-734bbfda.dc406172.css rel=prefetch><link href=css/chunk-75bd6bd9.e2bb5296.css rel=prefetch><link href=css/chunk-dfddc2f4.205ff549.css rel=prefetch><link href=css/chunk-e2532de8.f6480a73.css rel=prefetch><link href=css/chunk-fecca1e4.727f9d74.css rel=prefetch><link href=css/index.a7e181f8.css rel=prefetch><link href=js/chunk-099daac5.c28109f0.js rel=prefetch><link href=js/chunk-187a5f3f.ee7cdd2d.js rel=prefetch><link href=js/chunk-1b4ec2a7.b7f134e1.js rel=prefetch><link href=js/chunk-28dc4aef.cc37e5bd.js rel=prefetch><link href=js/chunk-2ae756f5.91f0a819.js rel=prefetch><link href=js/chunk-2f415156.f4b6eefa.js rel=prefetch><link href=js/chunk-33abae75.368c0797.js rel=prefetch><link href=js/chunk-36308615.be588984.js rel=prefetch><link href=js/chunk-366d1341.60ad46d2.js rel=prefetch><link href=js/chunk-39ed1a08.6b3cc6ce.js rel=prefetch><link href=js/chunk-3ac51e83.c08ba508.js rel=prefetch><link href=js/chunk-4348ccc7.eb526444.js rel=prefetch><link href=js/chunk-461f6ae6.5efb84dc.js rel=prefetch><link href=js/chunk-56216674.5f78e65f.js rel=prefetch><link href=js/chunk-5cee169e.c118c4b3.js rel=prefetch><link href=js/chunk-5e54c849.c683cc4a.js rel=prefetch><link href=js/chunk-732e6f1b.a7b23949.js rel=prefetch><link href=js/chunk-734bbfda.c59614dc.js rel=prefetch><link href=js/chunk-75bd6bd9.c2951c11.js rel=prefetch><link href=js/chunk-dfddc2f4.c193d093.js rel=prefetch><link href=js/chunk-e2532de8.bf4beafa.js rel=prefetch><link href=js/chunk-fecca1e4.d65cf610.js rel=prefetch><link href=js/index.45537b27.js rel=prefetch><link href=css/app.3a8b8736.css rel=preload as=style><link href=css/chunk-vendors.90b8a054.css rel=preload as=style><link href=js/app.55390a2c.js rel=preload as=script><link href=js/chunk-vendors.da4d4d19.js rel=preload as=script><link href=css/chunk-vendors.90b8a054.css rel=stylesheet><link href=css/app.3a8b8736.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.da4d4d19.js></script><script src=js/app.55390a2c.js></script></body></html>
|
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link href=css/chunk-099daac5.5dcf9551.css rel=prefetch><link href=css/chunk-187a5f3f.baf9390a.css rel=prefetch><link href=css/chunk-1b4ec2a7.2c0b98f5.css rel=prefetch><link href=css/chunk-28dc4aef.92e08859.css rel=prefetch><link href=css/chunk-2ae756f5.e2bb5296.css rel=prefetch><link href=css/chunk-2f415156.4cbfaa5e.css rel=prefetch><link href=css/chunk-33abae75.277a91b1.css rel=prefetch><link href=css/chunk-36308615.a37667a3.css rel=prefetch><link href=css/chunk-366d1341.185d52b1.css rel=prefetch><link href=css/chunk-39ed1a08.e2bb5296.css rel=prefetch><link href=css/chunk-3ac51e83.2f72ae9f.css rel=prefetch><link href=css/chunk-4348ccc7.e2bb5296.css rel=prefetch><link href=css/chunk-461f6ae6.57820d02.css rel=prefetch><link href=css/chunk-56216674.8d45942f.css rel=prefetch><link href=css/chunk-5e54c849.e828f278.css rel=prefetch><link href=css/chunk-732e6f1b.d2b8d2dd.css rel=prefetch><link href=css/chunk-75bd6bd9.e2bb5296.css rel=prefetch><link href=css/chunk-dfddc2f4.205ff549.css rel=prefetch><link href=css/chunk-e2532de8.f6480a73.css rel=prefetch><link href=css/chunk-f0d4497c.c2340273.css rel=prefetch><link href=css/chunk-fecca1e4.727f9d74.css rel=prefetch><link href=css/index.a7e181f8.css rel=prefetch><link href=js/chunk-099daac5.6421b5ec.js rel=prefetch><link href=js/chunk-187a5f3f.56f58655.js rel=prefetch><link href=js/chunk-1b4ec2a7.7931f673.js rel=prefetch><link href=js/chunk-28dc4aef.41cf2e7e.js rel=prefetch><link href=js/chunk-2ae756f5.9d885529.js rel=prefetch><link href=js/chunk-2f415156.896b00cd.js rel=prefetch><link href=js/chunk-33abae75.170389c0.js rel=prefetch><link href=js/chunk-36308615.f133b706.js rel=prefetch><link href=js/chunk-366d1341.72f79ed1.js rel=prefetch><link href=js/chunk-39ed1a08.c09d2747.js rel=prefetch><link href=js/chunk-3ac51e83.80a082ff.js rel=prefetch><link href=js/chunk-4348ccc7.17b88bfc.js rel=prefetch><link href=js/chunk-461f6ae6.ea2428b8.js rel=prefetch><link href=js/chunk-56216674.1a520d59.js rel=prefetch><link href=js/chunk-5cee169e.561da2d4.js rel=prefetch><link href=js/chunk-5e54c849.2cb297ec.js rel=prefetch><link href=js/chunk-732e6f1b.1b4bff45.js rel=prefetch><link href=js/chunk-75bd6bd9.61c63953.js rel=prefetch><link href=js/chunk-dfddc2f4.712bffac.js rel=prefetch><link href=js/chunk-e2532de8.70432684.js rel=prefetch><link href=js/chunk-f0d4497c.16468f63.js rel=prefetch><link href=js/chunk-fecca1e4.3e539e1b.js rel=prefetch><link href=js/index.2f360c48.js rel=prefetch><link href=css/app.3a8b8736.css rel=preload as=style><link href=css/chunk-vendors.90b8a054.css rel=preload as=style><link href=js/app.66b09407.js rel=preload as=script><link href=js/chunk-vendors.d1d6d26b.js rel=preload as=script><link href=css/chunk-vendors.90b8a054.css rel=stylesheet><link href=css/app.3a8b8736.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.d1d6d26b.js></script><script src=js/app.66b09407.js></script></body></html>
|
||||||
23
dist/js/app.55390a2c.js
vendored
23
dist/js/app.55390a2c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-099daac5.c28109f0.js
vendored
1
dist/js/chunk-099daac5.c28109f0.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-099daac5"],{"01a6":function(t,e,a){"use strict";a.r(e);var s=a("99d9"),i=a("62ad"),n=a("a523"),d=a("8fea"),l=a("2e4b"),r=a("ce7e"),c=a("e449"),o=a("0fd9"),u=a("2fa4"),h=a("8654"),m=(a("ac1f"),function(){var t=this,e=t._self._c;return e(n["a"],{attrs:{fluid:"",id:"HM_DC"}},[e(s["b"],{staticClass:"text-center headline black--text"},[t._v("Баланс чугуна (Доменный цех) за период "+t._s(t.computedDateFormatted))]),e(r["a"],{staticClass:"mx-0"}),e(o["a"],[e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(c["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(h["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(l["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(u["a"]),e(i["a"],{attrs:{cols:"12",sm:"2",md:"2",lg:"2",xl:"2"}},[e(h["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(d["a"],{attrs:{"item-key":"id",headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,"disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick}},[e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"font-weight-bold"},[e("th",{staticClass:"text-right divider d-sm-table-cell",attrs:{colspan:6}},[t._v("Сумма:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Вес"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:12}})]):t._e()]),e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"font-weight-bold"},[e("th",{staticClass:"text-right divider d-sm-table-cell",attrs:{colspan:6}},[t._v("Среднее:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Вес"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:12}})]):t._e()])],2)],1)}),p=[],f=a("2f62");let g=new Date;var b={data:()=>({value:[],search:"",dates:[new Date(g.getFullYear(),g.getMonth(),g.getDate()+1).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(f["c"])("HM_DC",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"id"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(f["b"])("HM_DC",{getData:"getData"}),rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},v=b,D=(a("50d7"),a("ec86"),a("2877")),x=Object(D["a"])(v,m,p,!1,null,null,null);e["default"]=x.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"50d7":function(t,e,a){"use strict";a("d6ab")},"67e4":function(t,e,a){},d6ab:function(t,e,a){},ec86:function(t,e,a){"use strict";a("67e4")}}]);
|
|
||||||
1
dist/js/chunk-187a5f3f.ee7cdd2d.js
vendored
1
dist/js/chunk-187a5f3f.ee7cdd2d.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-1b4ec2a7.b7f134e1.js
vendored
1
dist/js/chunk-1b4ec2a7.b7f134e1.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b4ec2a7"],{"33eb":function(t,e,a){},"3e69":function(t,e,a){"use strict";a.r(e);var i=a("8336"),n=a("b0af"),s=a("99d9"),d=a("62ad"),r=a("a523"),o=a("8fea"),l=a("2e4b"),u=a("132d"),c=a("e449"),h=a("0fd9"),p=a("9e88"),f=a("1f4f"),m=a("8654"),v=function(){var t=this,e=t._self._c;return e(r["a"],{attrs:{fluid:"",id:"myContainer"}},[e(h["a"],{attrs:{justify:"center"}},[e(d["a"],{attrs:{cols:"12",md:"10",sm:"8",lg:"8",xl:"6"}},[e(n["a"],{attrs:{outlined:"",tile:""}},[e(s["c"],[e(u["a"],{attrs:{large:"",left:""}},[t._v("mdi-database")]),e("span",[t._v(t._s("Замеры температуры промковша МНЛЗ 1"))]),e(d["a"],{staticClass:"mx-4",staticStyle:{"min-width":"290px","max-width":"260px"},attrs:{cols:"12"}},[e(c["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(m["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"","hide-details":"",disabled:t.loading,filled:"",rounded:"",dense:""},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(l["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1)],1),e(o["a"],{attrs:{headers:t.heatHeaders,items:t.data.tundishHeats.items,loading:t.loading,"single-expand":!1,"item-key":"HEAT_NAME","show-expand":""},scopedSlots:t._u([{key:"item.data-table-expand",fn:function({item:a,expand:n,isExpanded:s}){return[!s&&t.needExpand(a.HEAT_NAME)?e(i["a"],{attrs:{small:"",icon:""},on:{click:function(t){return n(!0)}}},[e(u["a"],[t._v("mdi-chevron-down")])],1):s?e(i["a"],{attrs:{small:"",icon:""},on:{click:function(t){return n(!1)}}},[e(u["a"],[t._v("mdi-chevron-up")])],1):e(u["a"],[t._v("mdi-lock")])]}},t.data.tundishHeats.items.length?{key:"expanded-item",fn:function({headers:a,item:i}){return[e("td",{staticClass:"pa-5",attrs:{colspan:5}},[e(f["a"],{staticStyle:{display:"inline-grid"},attrs:{id:"mySimpleTable",dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",[e("tr",{staticClass:"v-data-table-header"},t._l(t.tundishHeaders,(function(a,i){return e("th",{key:i,class:[a.visibility,a.divider]},[t._v(t._s(a.text))])})),0)]),t._l(t.data.tundishValues.items,(function(a,n){return e("tbody",{key:n},[a.HEAT_NAME===i.HEAT_NAME?e("tr",t._l(t.tundishHeaders,(function(i,n){return e("td",{key:n,class:[i.visibility,i.divider]},[1==n?e(p["a"],{attrs:{ripple:!1,value:0!==a.button_all}}):e("tr",[t._v(t._s(a[i.value]))])],1)})),0):t._e()])}))]},proxy:!0}],null,!0)})],1)]}}:null],null,!0)})],1)],1)],1)],1)},b=[],_=(a("ac1f"),a("2f62"));const k={data(){return{breakpoint:0,top:0,footer:0}},methods:{smartHeight(t){return this.footer=this.$vuetify.application.footer,this.breakpoint=this.$vuetify.breakpoint.height,this.breakpoint-this.top-this.footer-t}}};var g=a("f2ef"),x={mixins:[k],data:()=>({dates:[(new Date).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(_["c"])("tundishSample",{loading:"loading",data:"data"}),heatHeaders(){return this.data.tundishHeats.headers},tundishHeaders(){return this.data.tundishValues.headers.forEach(t=>{"HEAT_NAME"===t.text&&(t.visibility="d-none"),"button_all"===t.value&&(t.text="Кнопка: да/нет"),"opc_T_sample_value"===t.value&&(t.text="Температура"),"count"===t.value&&(t.text="Счетчик"),"datetime"===t.value&&(t.text="Дата/время")}),this.data.tundishValues.headers},computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")}},methods:{...Object(_["b"])("tundishSample",{getData:"getData"}),needExpand(t){return g["a"].where(this.data.tundishValues.items,{HEAT_NAME:t}).length},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,i]=t.split("-");return`${i}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},y=x,D=(a("a8a4"),a("2877")),E=Object(D["a"])(y,v,b,!1,null,null,null);e["default"]=E.exports},a8a4:function(t,e,a){"use strict";a("33eb")}}]);
|
|
||||||
1
dist/js/chunk-28dc4aef.cc37e5bd.js
vendored
1
dist/js/chunk-28dc4aef.cc37e5bd.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28dc4aef"],{"31e9":function(t,e,a){"use strict";a("e910")},6045:function(t,e,a){"use strict";a.r(e);var n=a("b0af"),s=a("99d9"),i=a("62ad"),r=a("a523"),o=a("8fea"),d=a("2e4b"),c=a("132d"),l=a("e449"),u=a("0fd9"),h=a("8654"),f=function(){var t=this,e=t._self._c;return e(r["a"],{attrs:{id:"myContainer"}},[e(u["a"],{attrs:{justify:"center"}},[e(i["a"],{attrs:{cols:"12",sm:"8"}},[e(n["a"],{attrs:{outlined:"",tile:""}},[e(s["c"],[e(c["a"],{attrs:{color:"primary",large:"",left:""}},[t._v("mdi-thermometer")]),e("span",[t._v(t._s("Среднестатистическая температура окружающей среды"))])],1),e(u["a"],{attrs:{justify:"end"}},[e(i["a"],{staticClass:"mx-4",staticStyle:{"min-width":"290px","max-width":"260px"},attrs:{cols:"12"}},[e(l["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(h["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"","hide-details":"",disabled:t.loading,filled:"",rounded:"",dense:""},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1)],1),e(o["a"],{attrs:{headers:t.headers,items:t.data.temperature,loading:t.loading}})],1)],1)],1)],1)},m=[],p=(a("ac1f"),a("2f62")),g={data:()=>({headers:[{text:"Дата",sortable:!0,align:"center",value:"dt"},{text:"Средняя температура °С",align:"center",sortable:!0,value:"value"}],dates:[(new Date).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(p["c"])("weatherAvg",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")}},methods:{...Object(p["b"])("weatherAvg",{getData:"getData"}),input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,n]=t.split("-");return`${n}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},D=g,b=(a("31e9"),a("2877")),k=Object(b["a"])(D,f,m,!1,null,null,null);e["default"]=k.exports},e910:function(t,e,a){}}]);
|
|
||||||
1
dist/js/chunk-2ae756f5.91f0a819.js
vendored
1
dist/js/chunk-2ae756f5.91f0a819.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-2f415156.f4b6eefa.js
vendored
1
dist/js/chunk-2f415156.f4b6eefa.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f415156"],{"05e5":function(t,e,a){"use strict";a("3a16")},2703:function(t,e,a){"use strict";a.r(e);var s=a("8336"),i=a("99d9"),n=a("62ad"),o=a("a523"),d=a("8fea"),r=a("2e4b"),c=a("ce7e"),l=a("132d"),u=a("e449"),m=a("8e36"),h=a("0fd9"),f=a("b974"),p=a("2fa4"),g=a("8654"),x=(a("ac1f"),function(){var t=this,e=t._self._c;return e(o["a"],{attrs:{fluid:"",id:"BOFMainUseConfig"}},[e(i["b"],{staticClass:"text-center headline black--text"},[t._v("Ежесуточный отчет по основным эксплуатационным характеристикам конверторов АМК "+t._s(t.computedDateFormatted))]),e(c["a"],{staticClass:"mx-0"}),e(h["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(g["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(r["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(c["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticStyle:{"min-width":"180px","max-width":"180px"},attrs:{cols:"12"}},[e(f["a"],{attrs:{items:t.items,"persistent-hint":"",density:"compact",disabled:t.loading,active:""},on:{change:function(e){return t.dataFilter(e)}},scopedSlots:t._u([{key:"selection",fn:function({index:a}){return[0===a?e("span",[t._v(t._s("№ конвертера: "+t.model))]):t._e()]}}]),model:{value:t.model,callback:function(e){t.model=e},expression:"model"}})],1),e(c["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(l["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(p["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(g["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(d["a"],{attrs:{headers:t.headers,items:t.data.items,search:t.search,"item-key":"Дата","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[t.loading?e(m["a"],{attrs:{indeterminate:""}}):t._e()]},proxy:!0}])},[t._v(" > ")])],1)}),b=[],D=a("2f62");let k=new Date;var v={data:()=>({search:"",items:[1,2],model:1,dates:[new Date(k.getFullYear(),k.getMonth(),k.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(D["c"])("BOFMainUseConfig",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,"Дата"==t.text&&(t.width=1e3)}),this.data.headers}},methods:{...Object(D["d"])("BOFMainUseConfig",{getExcel:"getExcel"}),...Object(D["b"])("BOFMainUseConfig",{getData:"getData"}),dataFilter(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},w=v,_=(a("05e5"),a("2877")),y=Object(_["a"])(w,x,b,!1,null,null,null);e["default"]=y.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"3a16":function(t,e,a){}}]);
|
|
||||||
1
dist/js/chunk-33abae75.368c0797.js
vendored
1
dist/js/chunk-33abae75.368c0797.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-36308615.be588984.js
vendored
1
dist/js/chunk-36308615.be588984.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-366d1341.60ad46d2.js
vendored
1
dist/js/chunk-366d1341.60ad46d2.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-366d1341"],{1247:function(t,e,a){"use strict";a.r(e);var s=a("99d9"),n=a("62ad"),i=a("a523"),r=a("8fea"),c=a("2e4b"),d=a("ce7e"),l=a("e449"),o=a("8e36"),u=a("0fd9"),h=a("2fa4"),f=a("8654"),g=(a("ac1f"),function(){var t=this,e=t._self._c;return e(i["a"],{attrs:{id:"crewAggregateWeight"}},[e(s["b"],{staticClass:"text-center headline black--text"},[t._v("Вес стали по агрегатам за период "+t._s(t.computedDateFormatted))]),e(d["a"],{staticClass:"mx-0"}),e(u["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(l["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(f["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(c["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(h["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(f["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(r["a"],{attrs:{headers:t.headers,items:t.data.items,search:t.search,"item-key":"crew","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[t.loading?e(o["a"],{attrs:{indeterminate:""}}):t._e()]},proxy:!0},t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:1}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("К1")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("К2")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("Печь-ковш")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("МНЛЗ-1")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("МНЛЗ-2")])])])]},proxy:!0}:null],null,!0)})],1)}),m=[],p=a("2f62");let b=new Date;var v={data:()=>({search:"",dates:[new Date(b.getFullYear(),b.getMonth(),b.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(p["c"])("crewAggregateWeight",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,t.align="center"}),this.data.headers}},methods:{...Object(p["d"])("LadleUse",{getExcel:"getExcel"}),...Object(p["b"])("crewAggregateWeight",{getData:"getData"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},x=v,k=(a("5637"),a("2877")),D=Object(k["a"])(x,g,m,!1,null,null,null);e["default"]=D.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},5637:function(t,e,a){"use strict";a("7f04")},"7f04":function(t,e,a){}}]);
|
|
||||||
1
dist/js/chunk-39ed1a08.6b3cc6ce.js
vendored
1
dist/js/chunk-39ed1a08.6b3cc6ce.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-3ac51e83.c08ba508.js
vendored
1
dist/js/chunk-3ac51e83.c08ba508.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-4348ccc7.eb526444.js
vendored
1
dist/js/chunk-4348ccc7.eb526444.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-461f6ae6.5efb84dc.js
vendored
1
dist/js/chunk-461f6ae6.5efb84dc.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-56216674.5f78e65f.js
vendored
1
dist/js/chunk-56216674.5f78e65f.js
vendored
File diff suppressed because one or more lines are too long
22
dist/js/chunk-5cee169e.c118c4b3.js
vendored
22
dist/js/chunk-5cee169e.c118c4b3.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-5e54c849.c683cc4a.js
vendored
1
dist/js/chunk-5e54c849.c683cc4a.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e54c849"],{"0830":function(t,e,a){},"0b0d":function(t,e,a){"use strict";a("0830")},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"7b3c":function(t,e,a){"use strict";a.r(e);var s=a("8336"),i=a("99d9"),n=a("62ad"),c=a("a523"),r=a("8fea"),d=a("2e4b"),o=a("ce7e"),l=a("132d"),u=a("e449"),h=a("8e36"),f=a("0fd9"),m=a("2fa4"),p=a("8654"),g=(a("ac1f"),function(){var t=this,e=t._self._c;return e(c["a"],{attrs:{id:"ladleUse"}},[e(i["b"],{staticClass:"text-center headline black--text"},[t._v("Данные по эксплуатации стальковшей за период "+t._s(t.computedDateFormatted))]),e(o["a"],{staticClass:"mx-0"}),e(f["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(p["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(o["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(l["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(m["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(p["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(r["a"],{attrs:{headers:t.headers,items:t.data.items,search:t.search,"item-key":"№ плавки",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[t.loading?e(h["a"],{attrs:{indeterminate:""}}):t._e()]},proxy:!0}])})],1)}),b=[],x=a("2f62");let k=new Date;var D={data:()=>({search:"",dates:[new Date(k.getFullYear(),k.getMonth(),k.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(x["c"])("LadleUse",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,t.align="center"}),this.data.headers}},methods:{...Object(x["d"])("LadleUse",{getExcel:"getExcel"}),...Object(x["b"])("LadleUse",{getData:"getData"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},v=D,w=(a("0b0d"),a("2877")),y=Object(w["a"])(v,g,b,!1,null,null,null);e["default"]=y.exports}}]);
|
|
||||||
1
dist/js/chunk-732e6f1b.a7b23949.js
vendored
1
dist/js/chunk-732e6f1b.a7b23949.js
vendored
@@ -1 +0,0 @@
|
|||||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-732e6f1b"],{"2f4f":function(t,a,e){"use strict";e("9ff0")},"7e0a":function(t,a,e){"use strict";e.r(a);var s=e("8336"),i=e("b0af"),n=e("99d9"),o=e("a523"),d=e("8fea"),f=e("ce7e"),l=e("132d"),r=e("8860"),c=e("8e36"),h=function(){var t=this,a=t._self._c;return a(o["a"],{attrs:{id:"stat","fill-height":""}},[a(i["a"],{staticClass:"mx-auto",attrs:{tile:"",elevation:"5"}},[a(s["a"],{attrs:{icon:"",to:{path:"/"}}},[a(l["a"],[t._v("mdi-arrow-left")])],1),a(n["c"],[t.data.statInfo.length?a("span",{staticClass:"font-weight-black"},[t._v(t._s(t.$router.props)+" - "+t._s(t.data.statInfo.length)+" visits")]):t._e()]),t.loading?a(c["a"],{attrs:{indeterminate:""}}):t._e(),a(f["a"]),a(r["a"],{staticClass:"overflow-y-auto",attrs:{"two-line":"",id:"scrolling-techniques-7",height:"500",width:"1000","max-height":"500","max-width":"1000"}},[a(d["a"],{attrs:{headers:t.data.headers,items:t.data.statInfo,"disable-pagination":"","hide-default-footer":""}})],1)],1)],1)},u=[],g=e("2f62"),p={data:()=>({}),computed:{...Object(g["c"])("stat",{loading:"loading",data:"data"})},methods:{...Object(g["b"])("stat",{getData:"getDataInfo"})},mounted(){this.getData(this.$router.props).then(()=>{})}},w=p,b=(e("2f4f"),e("2877")),m=Object(b["a"])(w,h,u,!1,null,null,null);a["default"]=m.exports},"9ff0":function(t,a,e){}}]);
|
|
||||||
1
dist/js/chunk-734bbfda.c59614dc.js
vendored
1
dist/js/chunk-734bbfda.c59614dc.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-75bd6bd9.c2951c11.js
vendored
1
dist/js/chunk-75bd6bd9.c2951c11.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-dfddc2f4.c193d093.js
vendored
1
dist/js/chunk-dfddc2f4.c193d093.js
vendored
File diff suppressed because one or more lines are too long
289
dist/js/chunk-e2532de8.bf4beafa.js
vendored
289
dist/js/chunk-e2532de8.bf4beafa.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-fecca1e4.d65cf610.js
vendored
1
dist/js/chunk-fecca1e4.d65cf610.js
vendored
File diff suppressed because one or more lines are too long
18
dist/js/chunk-vendors.da4d4d19.js
vendored
18
dist/js/chunk-vendors.da4d4d19.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/index.45537b27.js
vendored
1
dist/js/index.45537b27.js
vendored
File diff suppressed because one or more lines are too long
169
src/components/MaterialMarkaKO.vue
Normal file
169
src/components/MaterialMarkaKO.vue
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
<template>
|
||||||
|
<v-container fluid id="HM_DC">
|
||||||
|
<v-card-text class="text-center headline black--text">Материалы КО по маркам стали за период
|
||||||
|
{{ computedDateFormatted }}</v-card-text>
|
||||||
|
<v-divider class="mx-0"></v-divider>
|
||||||
|
|
||||||
|
<v-row>
|
||||||
|
<v-col style="min-width:250px; max-width:250px;" cols="12">
|
||||||
|
<v-menu v-model="datePickerMenu" :close-on-content-click="false" :nudge-right="40" :nudge-top="-5"
|
||||||
|
transition="scale-transition" offset-y min-width="290px">
|
||||||
|
<template v-slot:activator="{ on }">
|
||||||
|
<v-text-field id="datePicker" class="datePicker" v-model="computedDateFormatted" prepend-icon="event"
|
||||||
|
readonly v-on="on" single-line :disabled="loading" />
|
||||||
|
</template>
|
||||||
|
<v-date-picker no-title scrollable popover-align="center" v-model="dates"
|
||||||
|
@input="input($event) && datePickerMenu" @change="refreshData()" range></v-date-picker>
|
||||||
|
</v-menu>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-col cols="12" sm="2" md="2" lg="2" xl="2">
|
||||||
|
<v-text-field v-model="search" append-icon="mdi-magnify" label="Поиск" single-line hide-details clearable
|
||||||
|
:disabled="loading"></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-data-table item-key="MATERIAL_NAME" :headers="headers" :items="data.items" :loading="loading" :search="search"
|
||||||
|
@click:row="rowClick" disable-pagination hide-default-footer dense>
|
||||||
|
</v-data-table>
|
||||||
|
</v-container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.datePicker input {
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let jsDate = new Date();
|
||||||
|
import { mapGetters, mapActions, } from "vuex";
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
value: [],
|
||||||
|
search: "",
|
||||||
|
dates: [
|
||||||
|
new Date(jsDate.getFullYear(), jsDate.getMonth(), jsDate.getDate())
|
||||||
|
.toISOString()
|
||||||
|
.substr(0, 10),
|
||||||
|
new Date().toISOString().substr(0, 10)
|
||||||
|
],
|
||||||
|
datePickerMenu: false
|
||||||
|
}),
|
||||||
|
computed: {
|
||||||
|
...mapGetters("MaterialMarkaKO", {
|
||||||
|
loading: "loading",
|
||||||
|
data: "data"
|
||||||
|
}),
|
||||||
|
computedDateFormatted() {
|
||||||
|
let formatDates = [];
|
||||||
|
formatDates.push(this.formatDate(this.dates[0]));
|
||||||
|
formatDates.push(this.formatDate(this.dates[1]));
|
||||||
|
return formatDates.join(" ~ ");
|
||||||
|
},
|
||||||
|
headers() {
|
||||||
|
|
||||||
|
var canvas = document.createElement("canvas");
|
||||||
|
var ctx = canvas.getContext("2d");
|
||||||
|
ctx.font = "12px Roboto, sans-serif";
|
||||||
|
|
||||||
|
|
||||||
|
this.data.headers.forEach(element => {
|
||||||
|
var metrics = ctx.measureText(element.text);
|
||||||
|
var cellWidth = metrics.width;
|
||||||
|
element.width = cellWidth + 65;
|
||||||
|
element.align = "center";
|
||||||
|
element.divider = true;
|
||||||
|
if (element.value === "id") {
|
||||||
|
element.align = " d-none";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return this.data.headers;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapActions("MaterialMarkaKO", {
|
||||||
|
getData: "getData",
|
||||||
|
|
||||||
|
}),
|
||||||
|
rowClick: function (item, row) {
|
||||||
|
let selectState = row.isSelected ? false : true;
|
||||||
|
row.select(selectState);
|
||||||
|
},
|
||||||
|
input(e) {
|
||||||
|
if (e.length == 2) {
|
||||||
|
this.datePickerMenu = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatDate(date) {
|
||||||
|
if (!date) return null;
|
||||||
|
const [year, month, day] = date.split("-");
|
||||||
|
return `${day}.${month}.${year}`;
|
||||||
|
},
|
||||||
|
refreshData() {
|
||||||
|
this.getData([
|
||||||
|
this.formatDate(this.dates[0]),
|
||||||
|
this.formatDate(this.dates[1])
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getData([
|
||||||
|
this.formatDate(this.dates[0]),
|
||||||
|
this.formatDate(this.dates[1])
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.datePicker input {
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#HM_DC .v-data-table-header {
|
||||||
|
background-color: #fafafa !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#HM_DC .spacer {
|
||||||
|
margin-top: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#HM_DC .divider {
|
||||||
|
border-right: rgba(0, 0, 0, 0.12) solid 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#HM_DC .v-data-table {
|
||||||
|
border-left: thin solid rgba(0, 0, 0, 0.12);
|
||||||
|
border-top: thin solid rgba(0, 0, 0, 0.12);
|
||||||
|
border-bottom: thin solid rgba(0, 0, 0, 0.12);
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#HM_DC .v-data-table table>tbody>tr>td {
|
||||||
|
border-right: thin solid rgba(0, 0, 0, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
#HM_DC #datePicker {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme--light.v-data-table tbody tr.v-data-table__selected {
|
||||||
|
background: #f5c17d70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme--dark.v-data-table tbody tr.v-data-table__selected {
|
||||||
|
background: #a17b4970 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme--dark.v-data-table tbody tr.v-data-table__selected:hover {
|
||||||
|
background: #a17b49c2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme--light.v-data-table tbody tr.v-data-table__selected:hover {
|
||||||
|
background: #ffd296d2 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -195,8 +195,8 @@ export default {
|
|||||||
dateFormatted: vm.formatDate(new Date().toISOString().substr(0, 10)),
|
dateFormatted: vm.formatDate(new Date().toISOString().substr(0, 10)),
|
||||||
datePickerMenu: false,
|
datePickerMenu: false,
|
||||||
extensionsList: [
|
extensionsList: [
|
||||||
{ value: "mdi-file-excel", extension: ['xlsx'] },
|
{ value: "mdi-file-excel", extension: ['xlsx', 'xls'] },
|
||||||
{ value: "mdi-file-word", extension: ['docx'] },
|
{ value: "mdi-file-word", extension: ['docx', 'doc'] },
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -144,6 +144,11 @@ const routes = [
|
|||||||
name: "PRB_FileControl",
|
name: "PRB_FileControl",
|
||||||
component: () => import("./components/PRB_FileControl.vue"),
|
component: () => import("./components/PRB_FileControl.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/MaterialMarkaKO",
|
||||||
|
name: "MaterialMarkaKO",
|
||||||
|
component: () => import("./components/MaterialMarkaKO.vue"),
|
||||||
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// path: "/GazTrends/BofGazTrend",
|
// path: "/GazTrends/BofGazTrend",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import HM_DC from "./modules/HM_DC";
|
|||||||
import crewAggregateWeight from "./modules/crewAggregateWeight";
|
import crewAggregateWeight from "./modules/crewAggregateWeight";
|
||||||
import BOFHeatPhase from "./modules/BOFHeatPhase";
|
import BOFHeatPhase from "./modules/BOFHeatPhase";
|
||||||
import PRB_FileControl from "./modules/PRB_FileControl";
|
import PRB_FileControl from "./modules/PRB_FileControl";
|
||||||
|
import MaterialMarkaKO from "./modules/MaterialMarkaKO";
|
||||||
|
|
||||||
export const store = new Vuex.Store({
|
export const store = new Vuex.Store({
|
||||||
modules: {
|
modules: {
|
||||||
@@ -42,6 +42,7 @@ export const store = new Vuex.Store({
|
|||||||
crewAggregateWeight,
|
crewAggregateWeight,
|
||||||
BOFHeatPhase,
|
BOFHeatPhase,
|
||||||
PRB_FileControl,
|
PRB_FileControl,
|
||||||
|
MaterialMarkaKO,
|
||||||
|
|
||||||
},
|
},
|
||||||
strict: process.env.NODE_ENV !== "production",
|
strict: process.env.NODE_ENV !== "production",
|
||||||
|
|||||||
87
src/store/modules/MaterialMarkaKO.js
Normal file
87
src/store/modules/MaterialMarkaKO.js
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
import axios from "axios";
|
||||||
|
import * as utils from "../utils.js";
|
||||||
|
|
||||||
|
const initialState = {
|
||||||
|
data: {
|
||||||
|
headers: [],
|
||||||
|
items: [],
|
||||||
|
avgData: [],
|
||||||
|
sumData: [],
|
||||||
|
},
|
||||||
|
loading: false,
|
||||||
|
};
|
||||||
|
const state = JSON.parse(JSON.stringify(initialState));
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
namespaced: true,
|
||||||
|
state,
|
||||||
|
getters: {
|
||||||
|
data: (state) => {
|
||||||
|
return state.data;
|
||||||
|
},
|
||||||
|
loading: (state) => {
|
||||||
|
return state.loading;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mutations: {
|
||||||
|
|
||||||
|
set_data(state, payload) {
|
||||||
|
state.data.items = payload[0];
|
||||||
|
state.data.headers = utils.getHeaders(state.data.items);
|
||||||
|
state.data.headers.forEach((element) => {
|
||||||
|
switch (element.text) {
|
||||||
|
case "MATERIAL_NAME":
|
||||||
|
element.text = "Марка";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(state.data.headers)
|
||||||
|
},
|
||||||
|
set_loading(state, payload) {
|
||||||
|
state.loading = payload;
|
||||||
|
},
|
||||||
|
resetState(state) {
|
||||||
|
Object.assign(state, JSON.parse(JSON.stringify(initialState)));
|
||||||
|
},
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
getData({ commit }, date) {
|
||||||
|
commit("set_loading", true);
|
||||||
|
const allItems = axios({
|
||||||
|
data: {
|
||||||
|
params: {
|
||||||
|
flag: "getData",
|
||||||
|
dateStart: date[0],
|
||||||
|
dateEnd: date[1],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return axios
|
||||||
|
.all([
|
||||||
|
allItems,
|
||||||
|
])
|
||||||
|
.then(
|
||||||
|
axios.spread((...responses) => {
|
||||||
|
const allItems = responses[0].data;
|
||||||
|
if (allItems.length !== 0) {
|
||||||
|
commit("set_data", [
|
||||||
|
allItems,
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
commit("resetState");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.catch((error) => {
|
||||||
|
commit("set_loading", false);
|
||||||
|
commit("resetState");
|
||||||
|
console.log(error);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
commit("set_loading", false);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user