Переработал виджеты

This commit is contained in:
zakhy 2024-05-29 09:24:22 +07:00
parent bac7c34478
commit 44b4b347ce
3 changed files with 607 additions and 726 deletions

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,10 @@ td {
}
.row-separator > * {
border-right: 1px solid var(--gray);
border-bottom: 1px solid var(--gray);
}
.row-separator:last-child {
border-bottom: none;
}
::-webkit-scrollbar {

View File

@ -1,6 +1,6 @@
// Время работы фабрики
(function () {
(function () {
let options = {
chart: {
@ -83,7 +83,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
position: 'right',
position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@ -104,7 +104,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
position: 'right',
position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@ -125,7 +125,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
position: 'right',
position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@ -202,6 +202,150 @@
})();
})();
// Показания весов
(function () {
(function () {
var options = {
series: [{
name: 'Текущая смена',
data: [1092, 424, 1892, 0, 0]
}, {
name: 'Предыдущая смена',
data: [2527, 1185, 4794, 168, 49]
}],
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
chart: {
type: 'bar',
height: 350,
stacked: true,
toolbar: {
show: true
},
zoom: {
enabled: true
}
},
responsive: [{
breakpoint: 480,
options: {
legend: {
position: 'bottom',
offsetX: -10,
offsetY: 0
}
}
}],
plotOptions: {
bar: {
horizontal: false,
dataLabels: {
total: {
enabled: true,
style: {
fontSize: '13px',
fontWeight: 900
}
}
}
},
},
xaxis: {
type: 'category',
categories: ['Поз. 22', 'Поз. 13', 'Поз. 4', 'Поз 22,2', 'Поз 22, 3'],
},
legend: {
position: 'top',
},
fill: {
opacity: 1
},
title: {
text: 'тонн за сутки'
}
};
let chart = new ApexCharts(document.querySelector("#dailyScales"), options);
chart.render();
})();
(function () {
var options = {
series: [{
name: 'Месяц',
data: [2527, 1185, 4794, 168, 49]
}],
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
chart: {
type: 'bar',
height: 350,
stacked: true,
toolbar: {
show: true
},
zoom: {
enabled: true
}
},
responsive: [{
breakpoint: 480,
options: {
legend: {
position: 'bottom',
offsetX: -10,
offsetY: 0
}
}
}],
plotOptions: {
bar: {
horizontal: false,
dataLabels: {
total: {
enabled: true,
style: {
fontSize: '13px',
fontWeight: 900
}
}
}
},
},
xaxis: {
type: 'category',
categories: ['Поз. 22', 'Поз. 13', 'Поз. 4', 'Поз 22,2', 'Поз 22, 3'],
},
legend: {
position: 'top',
},
fill: {
opacity: 1
},
title: {
text: 'тонн за месяц'
}
};
let chart = new ApexCharts(document.querySelector("#monthlyScales"), options);
chart.render();
})();
(function f() {
var options = {
chart: {
type: 'pie'
},
series: [54, 23],
labels: ['% к-та', '% отсева'],
title: {
text: 'Процентные показатели'
}
}
var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();
})()
})()
// <script>
// {#const height = 'auto'#}
// {#const labelColor = '#9d9d9d'#}
@ -310,4 +454,157 @@
// {#const chart = new ApexCharts(document.querySelector("#kt_apexcharts_1"), options);#}
// {##}
// {#chart.render();#}
// </script>
// </script>
{/*<table>*/
}
{/* <thead>*/
}
{/* <tr>*/
}
{/* <th rowSpan="2">Весовой контроль</th>*/
}
{/* <th colSpan="2">поз. 22</th>*/
}
{/* <th colSpan="2">поз. 13</th>*/
}
{/* <th colSpan="2">поз. 4</th>*/
}
{/* <th rowSpan="2">к-та %</th>*/
}
{/* <th rowSpan="2">отсева %</th>*/
}
{/* <th rowSpan="2">поз. 22,2</th>*/
}
{/* <th rowSpan="2">поз. 22,3</th>*/
}
{/* </tr>*/
}
{/* <tr>*/
}
{/* <th>т/ч</th>*/
}
{/* <th>т</th>*/
}
{/* <th>т/ч</th>*/
}
{/* <th>т</th>*/
}
{/* <th>т/ч</th>*/
}
{/* <th>т</th>*/
}
{/* </tr>*/
}
{/* </thead>*/
}
{/* <tbody>*/
}
{/* <tr>*/
}
{/* <th>текущая смена</th>*/
}
{/* <td>299</td>*/
}
{/* <td>579</td>*/
}
{/* <td>70</td>*/
}
{/* <td>56</td>*/
}
{/* <td>460</td>*/
}
{/* <td>768</td>*/
}
{/* <td>65</td>*/
}
{/* <td>15</td>*/
}
{/* <td>144</td>*/
}
{/* <td>35</td>*/
}
{/* </tr>*/
}
{/* <tr>*/
}
{/* <th>пред. смена</th>*/
}
{/* <td>391</td>*/
}
{/* <td>4686</td>*/
}
{/* <td>78</td>*/
}
{/* <td>902</td>*/
}
{/* <td>565</td>*/
}
{/* <td>6453</td>*/
}
{/* <td>69</td>*/
}
{/* <td>14</td>*/
}
{/* <td>144</td>*/
}
{/* <td>35</td>*/
}
{/* </tr>*/
}
{/* <tr>*/
}
{/* <th>сутки, т</th>*/
}
{/* <td>579</td>*/
}
{/* <td>579</td>*/
}
{/* <td>56</td>*/
}
{/* <td>56</td>*/
}
{/* <td>768</td>*/
}
{/* <td>768</td>*/
}
{/* <td>75</td>*/
}
{/* <td>7</td>*/
}
{/* <td>0</td>*/
}
{/* <td>0</td>*/
}
{/* </tr>*/
}
{/* <tr>*/
}
{/* <th>месяц, т</th>*/
}
{/* <td>142357</td>*/
}
{/* <td>142357</td>*/
}
{/* <td>57976</td>*/
}
{/* <td>57976</td>*/
}
{/* <td>230952</td>*/
}
{/* <td>230952</td>*/
}
{/* <td>62</td>*/
}
{/* <td>25</td>*/
}
{/* <td>9</td>*/
}
{/* <td>-1</td>*/
}
{/* </tr>*/
}
{/* </tbody>*/
}
{/* </table>*/
}