|
@@ -16,7 +16,7 @@
|
|
|
}
|
|
|
|
|
|
#checkChannel tr {
|
|
|
- height: 20px;
|
|
|
+ height: 26px;
|
|
|
}
|
|
|
|
|
|
#checkChannel thead tr {
|
|
@@ -223,6 +223,25 @@
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ $('.querySelect').on('change', function() {
|
|
|
+ const qualityType = $(this).val();
|
|
|
+ console.log('qualityType', $(this).val());
|
|
|
+ $.get(`index.php?act=refill_analysis&op=provider_data&quality=${qualityType}`, function(data) {
|
|
|
+ console.log('querySelectChangeData', JSON.parse(data));
|
|
|
+ const channeValues = [];
|
|
|
+ JSON.parse(data).map(item => {
|
|
|
+ channeValues.push(item.value)
|
|
|
+ })
|
|
|
+ $('#checkChannelContent tr').css('display', 'none');
|
|
|
+ $(`tr[name = "all"]`).css('display', 'block');
|
|
|
+ channeValues.map(item => {
|
|
|
+ $(`tr[name = "${item}"]`).css('display', 'block');
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
function init_channels(data) {
|
|
|
let result = {};
|
|
|
data.map(item => {
|
|
@@ -257,7 +276,7 @@
|
|
|
if (item.name) {
|
|
|
if (sortType == 'ratio1') {
|
|
|
tableHTML += `
|
|
|
- <tr>
|
|
|
+ <tr name="${item.value}">
|
|
|
<td>
|
|
|
<label>
|
|
|
<input type="checkbox" name="channelValue" ${item.checked?'checked="checked"':''} value="${item.value}" />
|
|
@@ -269,7 +288,7 @@
|
|
|
`;
|
|
|
} else {
|
|
|
tableHTML += `
|
|
|
- <tr>
|
|
|
+ <tr name="${item.value}">
|
|
|
<td>
|
|
|
<label>
|
|
|
<input type="checkbox" name="channelValue" ${item.checked?'checked="checked"':''} value="${item.value}" />
|
|
@@ -334,12 +353,11 @@
|
|
|
return selectStr
|
|
|
}
|
|
|
|
|
|
- function sortQualityTable()
|
|
|
- {
|
|
|
+ function sortQualityTable() {
|
|
|
let headers = []
|
|
|
let others = qualitys
|
|
|
|
|
|
- if(qualitys['all']) {
|
|
|
+ if (qualitys['all']) {
|
|
|
headers.push(qualitys['all'])
|
|
|
delete others['all']
|
|
|
}
|
|
@@ -370,8 +388,7 @@
|
|
|
formatChannelTable([...headers, ...checkedSortQualitys, ...unCheckedSortQualitys]);
|
|
|
}
|
|
|
|
|
|
- function updateQualityTable()
|
|
|
- {
|
|
|
+ function updateQualityTable() {
|
|
|
const allQualityList = JSON.parse(JSON.stringify(qualitys));
|
|
|
Object.keys(allQualityList).map(key => {
|
|
|
allQualityList[key].checked = false;
|
|
@@ -437,8 +454,7 @@
|
|
|
url += '&only_all=' + only_all;
|
|
|
}
|
|
|
|
|
|
- $.get(url, function(data)
|
|
|
- {
|
|
|
+ $.get(url, function(data) {
|
|
|
if (data.state === 'success') {
|
|
|
$('#echart').html(`<img src='data:image/png;base64,${data.img}'/>`)
|
|
|
|