|
|
@ -133,9 +133,11 @@ |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name2" label="姓名" width="150"></el-table-column> |
|
|
|
<el-table-column prop="price" label="价格" width="150"> |
|
|
|
<el-table-column prop="statu" label="价格" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span @click="handlePriceClick(scope.row)">{{ scope.row.price }}元</span> |
|
|
|
<GuipSwitch v-model="scope.row.statu" activeText="默认类型boolean" inactiveText="关闭" :active-value="1" :inactive-value="0" |
|
|
|
@change="onSwitchChange1(scope.row)"> |
|
|
|
</GuipSwitch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="address" label="地址1" width="150"> </el-table-column> |
|
|
@ -373,7 +375,7 @@ |
|
|
|
<label for="">开关L</label> |
|
|
|
<!-- active-value 开启状态的值 --> |
|
|
|
<!-- inactive-value 关闭状态的值 --> |
|
|
|
<GuipSwitch :modelValue="switchValue" activeText="默认类型boolean" inactiveText="关闭" |
|
|
|
<GuipSwitch v-model="form.switchValue3" activeText="默认类型boolean" inactiveText="关闭" :active-value="true" :inactive-value="false" |
|
|
|
@change="onSwitchChange"> |
|
|
|
</GuipSwitch> |
|
|
|
</div> |
|
|
@ -386,12 +388,13 @@ |
|
|
|
</div> |
|
|
|
<div class="ele-item"> |
|
|
|
<label for="">开关L</label> |
|
|
|
<GuipSwitch :modelValue="switchValue1" :active-value="1" :inactive-value="0" activeText="number" |
|
|
|
<GuipSwitch v-model="switchValue1" :active-value="1" :inactive-value="0" activeText="number" |
|
|
|
@change="onSwitchChange"> |
|
|
|
</GuipSwitch> |
|
|
|
<GuipSwitch :modelValue="switchValue2" active-value="0" inactive-value="1" activeText="string" |
|
|
|
<GuipSwitch v-model="form.switchValue2" active-value="0" inactive-value="1" activeText="string" |
|
|
|
@change="onSwitchChange"> |
|
|
|
</GuipSwitch> |
|
|
|
<p>当前值switchValue2:{{ this.form.switchValue2 }}</p> |
|
|
|
</div> |
|
|
|
<div class="flex ele-item"> |
|
|
|
<label for="">input、drop组合使用(默认使用)</label> |
|
|
@ -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); |
|
|
|