yxw 2023-11-21 18:18:32 +08:00
parent 13520a4b68
commit 77649429e2
1 changed files with 10 additions and 5 deletions

View File

@ -181,8 +181,9 @@
$("input[name='mic1']").on('change', function () { $("input[name='mic1']").on('change', function () {
let $value = $("input[name='mic1']:checked").val() let $value = $("input[name='mic1']:checked").val()
//alert($value) //alert($value)
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=filter_set" let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = { let postData = {
action:'filter_set',
subaction: 'mic1', subaction: 'mic1',
state: $value, state: $value,
module: 'mic1' module: 'mic1'
@ -211,8 +212,9 @@
$("input[name='mic2']").on('change', function () { $("input[name='mic2']").on('change', function () {
let $value = $("input[name='mic2']:checked").val() let $value = $("input[name='mic2']:checked").val()
// alert($value) // alert($value)
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=filter_set" let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = { let postData = {
action:'filter_set',
subaction: 'mic2', subaction: 'mic2',
state: $value, state: $value,
module: 'mic2' module: 'mic2'
@ -239,8 +241,9 @@
$("#mic1-type").on('change', function () { $("#mic1-type").on('change', function () {
// alert($("#mic1-type").val()) // alert($("#mic1-type").val())
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=filter_set" let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = { let postData = {
action:'filter_set',
subaction: 'mic1', subaction: 'mic1',
type: $("#mic1-type").val(), type: $("#mic1-type").val(),
module: 'mic1' module: 'mic1'
@ -267,8 +270,9 @@
$("#mic2-type").on('change', function () { $("#mic2-type").on('change', function () {
// alert($("#mic2-type").val()) // alert($("#mic2-type").val())
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=filter_set" let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = { let postData = {
action:'filter_set',
subaction: 'mic2', subaction: 'mic2',
type: $("#mic2-type").val(), type: $("#mic2-type").val(),
module: 'mic2' module: 'mic2'
@ -296,8 +300,9 @@
function changeInputValue(module, number) { function changeInputValue(module, number) {
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=filter_set" let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = { let postData = {
action:'filter_set',
subaction: module, subaction: module,
audio: number, audio: number,
module: module module: module