From 702e178d9df2f6ff227e267f6a591b7f78468840 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Mon, 21 Jul 2025 16:08:01 +0800 Subject: [PATCH] =?UTF-8?q?switch=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9-chan?= =?UTF-8?q?ge=E4=BA=8B=E4=BB=B6=E6=B2=A1=E6=9C=89=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=91=E5=AE=9A=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GuipSwitch.vue | 115 +++++++++++++++++++++++------------------- src/views/elementGroups.vue | 35 ++++++++++--- 2 files changed, 91 insertions(+), 59 deletions(-) diff --git a/src/components/GuipSwitch.vue b/src/components/GuipSwitch.vue index b418828..c2ea171 100644 --- a/src/components/GuipSwitch.vue +++ b/src/components/GuipSwitch.vue @@ -1,13 +1,14 @@ - - - + \ No newline at end of file diff --git a/src/views/elementGroups.vue b/src/views/elementGroups.vue index c2be0a3..dbe769e 100644 --- a/src/views/elementGroups.vue +++ b/src/views/elementGroups.vue @@ -133,9 +133,11 @@ - + @@ -373,7 +375,7 @@ - @@ -386,12 +388,13 @@
- - +

当前值switchValue2:{{ this.form.switchValue2 }}

@@ -691,6 +694,7 @@ export default { timer: null, date1: '', switchValue: true, + switchValue3: true, switchValue1: 1, switchValue2: '0', dialogVisible1: false, @@ -701,6 +705,8 @@ export default { form: { username: '', language: '', + switchValue3:true, + switchValue2: '0', domain_set: '', domainSuffix: '11', domainSuffix1: '.chachongz.com', @@ -775,6 +781,7 @@ export default { address: '上海市普陀区金沙江路 1518 弄', price: '20', age: 20, + statu:1, // 在支持修改的项目中,需要主动保留一份原始数据 edit_name: '王小虎', edit_address: '上海市普陀区金沙江路 1518 弄' }, { @@ -783,6 +790,8 @@ export default { address: '上海市普陀区金沙江路 151811 弄', price: '10', age: 30, + statu:1, + edit_name: '王小虎11', edit_address: '上海市普陀区金沙江路 151811 弄' }, { @@ -790,6 +799,7 @@ export default { name: '王小虎', address: '上海市普陀区金沙江路 1518 弄', price: '200', + statu:0, }, { date: '2016-05-01', name: '王小虎', @@ -978,6 +988,10 @@ export default { } }, methods: { + switchChange(value){ + console.log(value,'====value'); + console.log(this.switchValue1,'===uuuu'); + }, handleEvent(data){ console.log(data,'data') }, @@ -1124,10 +1138,17 @@ export default { return randomNumber }, onSwitchChange(value) { - console.log('Switch 状态变化:', this.switchValue, value); + console.log('Switch/ 状态变化:',this.switchValue, value); + // console.log('Switch 状态变化:',this.form.switchValue2,this.form.switchValue3, value); + }, + onSwitchChange1(value) { + // 操作表格内的 看一下是否同步修改了 + // console.log(this.tableData2,value,'this.tableData2==='); + console.log('Switch/ 状态变化:', value.statu); }, // 弹框相关方法---start openDialog() { + console.log(this.switchValue1,'switchValue1'); this.dialogVisible = true; }, openDialog1() { @@ -1188,7 +1209,7 @@ export default { console.log(data, 'radio--data'); }, selectChangeTest(val){ - console.log(val,'select-----选中的'); + console.log(val,'select-----选中的',this.form.card,this.form.card1); }, handleClick(row) { console.log(row);