|
@ -1,38 +1,84 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="elementWrap"> |
|
|
<div class="elementWrap"> |
|
|
<!-- 以 ele-item 为类名的这种div、 label 、 h3 仅在此页面进行布局使用,复制时无需复制此元素 --> |
|
|
<!-- 以 ele-item 为类名的这种div、 label 、 h3 仅在此页面进行布局使用,复制时无需复制此元素 --> |
|
|
|
|
|
<el-form :model="form" :rules="rules" class="el-row demo-ruleForm" ref="formRef"> |
|
|
|
|
|
|
|
|
<div class="ele-item"> |
|
|
<div class="ele-item"> |
|
|
|
|
|
<label for="">单选框:</label> |
|
|
|
|
|
<GuipRadio |
|
|
|
|
|
v-model="form.language" |
|
|
|
|
|
:options="languageOptions" |
|
|
|
|
|
label="选择语言" |
|
|
|
|
|
prop="language" |
|
|
|
|
|
@change="radioChange" |
|
|
|
|
|
:rules="rules.language"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="ele-item"> |
|
|
<label for="">下拉框:</label> |
|
|
<label for="">下拉框:</label> |
|
|
<GuipSelect msg="Welcome to Your Vue.js App" :options="options"/> |
|
|
<GuipSelect width="600px" |
|
|
|
|
|
v-model="form.card" label="卡片" prop="card" |
|
|
|
|
|
:options="options" defaultValue="选项1"/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ele-item"> |
|
|
<div class="ele-item"> |
|
|
<label for="">表格:</label> |
|
|
<label for="">表格:</label> |
|
|
<GuipTable msg="Welcome to Your Vue.js App" :tableData="tableData"> |
|
|
<GuipButton type="primary" @click="toggleAllSelection">全选按钮</GuipButton> |
|
|
<el-table-column |
|
|
|
|
|
prop="date" |
|
|
<GuipTable :tableData="tableData" |
|
|
label="日期" |
|
|
ref="multipleTable" |
|
|
width="180"> |
|
|
@selectChange="handleSelectionChange" |
|
|
|
|
|
:multiple="true" |
|
|
|
|
|
autoColumn="true" width="900px"> |
|
|
|
|
|
<template slot="header"> |
|
|
|
|
|
<el-table-column prop="date" label="日期" width="180"></el-table-column> |
|
|
|
|
|
<el-table-column prop="name" label="姓名" width="150"></el-table-column> |
|
|
|
|
|
<el-table-column prop="price" label="价格" width="150"> |
|
|
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
|
|
<span @click="handlePriceClick(scope.row)">{{ scope.row.price }}</span> |
|
|
|
|
|
</template> --> |
|
|
|
|
|
<!-- 气泡弹出框 后期样式自定义--> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-popover trigger="click" placement="top"> |
|
|
|
|
|
<!-- <p>姓名: {{ scope.row.name }}</p> |
|
|
|
|
|
<p>住址: {{ scope.row.address }}</p> --> |
|
|
|
|
|
<input type="text"> |
|
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
|
|
<el-tag size="medium">{{ scope.row.price }}</el-tag> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column prop="address" label="地址"> </el-table-column> |
|
|
prop="name" |
|
|
<el-table-column prop="address1" label="地址测试"></el-table-column> |
|
|
label="姓名" |
|
|
<el-table-column prop="price" label="价格"> |
|
|
width="180"> |
|
|
<!-- 自定义渲染内容 --> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<GuipSelect |
|
|
|
|
|
width="200px" |
|
|
|
|
|
@change="changeSelect(scope.row)" |
|
|
|
|
|
v-model="form.card" prop="card" |
|
|
|
|
|
:options="options" defaultValue="选项1"/> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="address" |
|
|
fixed="right" |
|
|
label="地址"> |
|
|
label="操作" |
|
|
|
|
|
width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div class="flex"> |
|
|
|
|
|
<el-button @click="handleClick(scope.row)" type="text">查看</el-button> |
|
|
|
|
|
<el-button type="text">编辑</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
</template> |
|
|
prop="address1" |
|
|
|
|
|
label="地址测试"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</GuipTable> |
|
|
</GuipTable> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ele-item"> |
|
|
<div class="ele-item"> |
|
|
<label for="">文本域:</label> |
|
|
<label for="">文本域:</label> |
|
|
<GuipTextarea disabled :styleObject="styleObject"/> |
|
|
<GuipTextarea disabled :styleObject="styleObject"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ele-item"> |
|
|
<div class="ele-item"> |
|
|
<label for="">输入框:</label> |
|
|
<label for="">输入框:</label> |
|
|
<GuipInput |
|
|
<GuipInput |
|
@ -127,8 +173,8 @@ |
|
|
<GuipButton type="primary" :btnstyle="btnstyleObj1">随便写的</GuipButton> |
|
|
<GuipButton type="primary" :btnstyle="btnstyleObj1">随便写的</GuipButton> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ele-item"> |
|
|
<div class="ele-item"> |
|
|
<label for="">表单校验:</label> |
|
|
<!-- <label for="">表单校验:</label> --> |
|
|
<el-form :model="form" :rules="rules" ref="myForm"> |
|
|
<!-- <el-form :model="form" :rules="rules" ref="myForm"> |
|
|
<el-form-item label="用户名" prop="username"> |
|
|
<el-form-item label="用户名" prop="username"> |
|
|
<el-input v-model="form.username"></el-input> |
|
|
<el-input v-model="form.username"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -136,61 +182,33 @@ |
|
|
<el-button type="primary" @click="submitForm">提交</el-button> |
|
|
<el-button type="primary" @click="submitForm">提交</el-button> |
|
|
<el-button @click="triggerError">触发错误</el-button> |
|
|
<el-button @click="triggerError">触发错误</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-form> |
|
|
</el-form> --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style="width: 300px;height: 100px;"> |
|
|
<div style="width: 600px;"> |
|
|
<h3>表单左右布局</h3> |
|
|
<h3>表单左右布局(直接使用封装好的input)</h3> |
|
|
<!-- 表单左右布局 --> |
|
|
<!-- 表单左右布局 --> |
|
|
<GuipFormItem |
|
|
<GuipInput |
|
|
label="标题" |
|
|
|
|
|
:required="true" |
|
|
|
|
|
> |
|
|
|
|
|
<GuipInput |
|
|
|
|
|
slot="formDom" |
|
|
|
|
|
ref="GuipInput" |
|
|
|
|
|
width="280px" |
|
|
|
|
|
height="32px" |
|
|
|
|
|
placeholder="这是自定义默认提示语"/> |
|
|
|
|
|
</GuipFormItem> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div style="width: 300px;height: 150px;"> |
|
|
|
|
|
<h3>表单上下布局</h3> |
|
|
|
|
|
<GuipFormItem |
|
|
|
|
|
label="标题" |
|
|
|
|
|
:required="true" |
|
|
|
|
|
column="column" |
|
|
|
|
|
> |
|
|
|
|
|
<GuipInput |
|
|
|
|
|
slot="formDom" |
|
|
|
|
|
ref="GuipInput" |
|
|
ref="GuipInput" |
|
|
width="100%" |
|
|
addClass="w510" |
|
|
height="38px" |
|
|
v-model="form.username" label="Username" prop="username" :rules="usernameRules" |
|
|
placeholder="这是自定义默认提示语"/> |
|
|
placeholder="这是自定义默认提11示语"/> |
|
|
</GuipFormItem> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style="width: 300px;height: 150px;"> |
|
|
<div style="width: 800px;height: 150px;"> |
|
|
<h3>表单上下布局(带右侧文案)</h3> |
|
|
<h3>表单上下布局 (宽度 510 388 用的最多 已有这2种宽度类名设置)</h3> |
|
|
<GuipFormItem |
|
|
|
|
|
label="标题" |
|
|
|
|
|
:required="true" |
|
|
|
|
|
column="column" |
|
|
|
|
|
addClass="w510" |
|
|
|
|
|
> |
|
|
|
|
|
<span class="rightdesc" slot="formRight">这是右侧文案</span> |
|
|
|
|
|
<GuipInput |
|
|
<GuipInput |
|
|
slot="formDom" |
|
|
|
|
|
ref="GuipInput" |
|
|
ref="GuipInput" |
|
|
width="100%" |
|
|
column="column" |
|
|
height="38px" |
|
|
addClass="w510" |
|
|
|
|
|
label="age" |
|
|
|
|
|
desc="这是是右侧文案" |
|
|
|
|
|
v-model="form.age" prop="age" |
|
|
placeholder="这是自定义默认提示语"/> |
|
|
placeholder="这是自定义默认提示语"/> |
|
|
</GuipFormItem> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style="width: 300px;height: 150px;"> |
|
|
<div style="width: 600px;height: 150px;"> |
|
|
<h3>获取手机验证码</h3> |
|
|
<h3>获取手机验证码(布局也可更改,使用插槽自定义展示内容)</h3> |
|
|
<GuipFormItem |
|
|
<GuipFormItem |
|
|
column="column" |
|
|
column="column" |
|
|
addClass="w388" |
|
|
addClass="w388" |
|
@ -203,7 +221,10 @@ |
|
|
<PhoneCode slot="formDom"></PhoneCode> |
|
|
<PhoneCode slot="formDom"></PhoneCode> |
|
|
</GuipFormItem> |
|
|
</GuipFormItem> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-button type="primary" @click="submitForm">表单Submit</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
<div style="width: 100%;margin: 20px 0;height: 20px;background-color: antiquewhite;">--------------------分割线0------------------------------</div> |
|
|
|
|
|
|
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<!-- <GuipButton type="primary" @click="showModal">弹框</GuipButton> |
|
|
<!-- <GuipButton type="primary" @click="showModal">弹框</GuipButton> |
|
@ -215,18 +236,37 @@ |
|
|
<!-- Form 组件--> |
|
|
<!-- Form 组件--> |
|
|
<!-- @headdenForm="headdenForm" --> |
|
|
<!-- @headdenForm="headdenForm" --> |
|
|
<!-- @changeSelect="changeSelect" --> |
|
|
<!-- @changeSelect="changeSelect" --> |
|
|
<GuipForm |
|
|
<!-- <GuipForm |
|
|
:fromItem="fromItem" |
|
|
:fromItem="fromItem" |
|
|
:formNewList="formList" |
|
|
:formNewList="formList" |
|
|
:detail="edit" |
|
|
:detail="edit" |
|
|
:disabled="edit" |
|
|
:disabled="edit" |
|
|
ref="VabForm" |
|
|
ref="VabForm" |
|
|
/> |
|
|
/> |
|
|
<div class="cardfooter"> |
|
|
<div class="cardfooter" style="display: flex;"> |
|
|
<el-button @click="cancellation">取消</el-button> |
|
|
<el-button @click="cancellation">取消</el-button> |
|
|
<el-button @click="save" type="primary">保存</el-button> |
|
|
<el-button @click="save" type="primary">保存</el-button> |
|
|
</div> |
|
|
</div> --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="openDialog">打开弹框</el-button> |
|
|
|
|
|
|
|
|
|
|
|
<GuipDialog |
|
|
|
|
|
:dialogVisible="dialogVisible" |
|
|
|
|
|
title="自定义标题" |
|
|
|
|
|
:show-close-button="showCloseButton" |
|
|
|
|
|
:show-cancel-button="showCancelButton" |
|
|
|
|
|
@confirm="handleConfirm" |
|
|
|
|
|
@cancel="handleCancel" |
|
|
|
|
|
@close="handleClose" |
|
|
|
|
|
@dialogVisibleChange="dialogVisibleChange" |
|
|
|
|
|
> |
|
|
|
|
|
<!-- 自定义内容 --> |
|
|
|
|
|
<div> |
|
|
|
|
|
<p>这是一个自定义内容的弹框。</p> |
|
|
|
|
|
<el-input placeholder="请输入内容"></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
</GuipDialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -235,7 +275,9 @@ |
|
|
import { rules } from "../assets/vabForm"; |
|
|
import { rules } from "../assets/vabForm"; |
|
|
// @ is an alias to /src |
|
|
// @ is an alias to /src |
|
|
import GuipFormItem from '@/components/GuipFormItem.vue'; |
|
|
import GuipFormItem from '@/components/GuipFormItem.vue'; |
|
|
import GuipForm from '@/components/GuipForm.vue'; |
|
|
import GuipDialog from '@/components/GuipDialog.vue'; |
|
|
|
|
|
import GuipRadio from '@/components/GuipRadio.vue'; |
|
|
|
|
|
// import GuipForm from '@/components/GuipForm.vue'; |
|
|
import PhoneCode from '@/components/PhoneCode.vue'; |
|
|
import PhoneCode from '@/components/PhoneCode.vue'; |
|
|
import GuipButton from '@/components/GuipButton.vue'; |
|
|
import GuipButton from '@/components/GuipButton.vue'; |
|
|
// import GuipConfirm from '@/components/GuipConfirm.vue'; |
|
|
// import GuipConfirm from '@/components/GuipConfirm.vue'; |
|
@ -250,8 +292,9 @@ import { rules } from "../assets/vabForm"; |
|
|
components: { |
|
|
components: { |
|
|
GuipTextarea, |
|
|
GuipTextarea, |
|
|
GuipTable, |
|
|
GuipTable, |
|
|
GuipForm, |
|
|
// GuipForm, |
|
|
// GuipRadio, |
|
|
GuipDialog, |
|
|
|
|
|
GuipRadio, |
|
|
GuipFormItem, |
|
|
GuipFormItem, |
|
|
PhoneCode, |
|
|
PhoneCode, |
|
|
GuipButton, |
|
|
GuipButton, |
|
@ -262,14 +305,38 @@ import { rules } from "../assets/vabForm"; |
|
|
}, |
|
|
}, |
|
|
data(){ |
|
|
data(){ |
|
|
return { |
|
|
return { |
|
|
|
|
|
dialogVisible: false,//是否展示弹框 |
|
|
|
|
|
showCancelButton: true, // 控制是否显示取消按钮 |
|
|
|
|
|
showCloseButton: true, // 控制是否显示关闭按钮 |
|
|
|
|
|
// inputValue: '', |
|
|
form: { |
|
|
form: { |
|
|
username: '' |
|
|
username: '', |
|
|
|
|
|
language:'', |
|
|
}, |
|
|
}, |
|
|
|
|
|
languageOptions: [ |
|
|
|
|
|
{ label: 'JavaScript', value: 'js' }, |
|
|
|
|
|
{ label: 'Python', value: 'py' }, |
|
|
|
|
|
{ label: 'Java', value: 'java', disabled: true }, // 禁用选项 |
|
|
|
|
|
{ label: 'Go', value: 'go' }, |
|
|
|
|
|
], |
|
|
rules: { |
|
|
rules: { |
|
|
username: [ |
|
|
username: [ |
|
|
{ required: true, message: '请输入用户名', trigger: 'blur' } |
|
|
{ required: true, message: '请输入用户名', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
card: [ |
|
|
|
|
|
{ required: true, message: '请选择有效信息', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
language: [ |
|
|
|
|
|
{ required: true, message: '请选择语言', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
phone: [ |
|
|
|
|
|
{ required: true, message: '请输入手机号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
age: [ |
|
|
|
|
|
{ required: true, message: '请输入年龄', trigger: 'blur' } |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
|
|
|
usernameRules:[{ required: true, message: 'Username is required', trigger: 'blur' }],//单独自定义rules |
|
|
msg: "测试", |
|
|
msg: "测试", |
|
|
title: "相关附件", |
|
|
title: "相关附件", |
|
|
edit: false, |
|
|
edit: false, |
|
@ -370,22 +437,25 @@ import { rules } from "../assets/vabForm"; |
|
|
height:'40px' |
|
|
height:'40px' |
|
|
}, |
|
|
}, |
|
|
styleObject1:{ |
|
|
styleObject1:{ |
|
|
width:'300px', |
|
|
width:'600px', |
|
|
height:'50px' |
|
|
height:'50px' |
|
|
}, |
|
|
}, |
|
|
plain:false, |
|
|
plain:false, |
|
|
tableData: [{ |
|
|
tableData: [{ |
|
|
date: '2016-05-03', |
|
|
date: '2016-05-03', |
|
|
name: '王小虎', |
|
|
name: '王小虎', |
|
|
address: '上海市普陀区金沙江路 1518 弄' |
|
|
address: '上海市普陀区金沙江路 1518 弄', |
|
|
|
|
|
price:'20', |
|
|
}, { |
|
|
}, { |
|
|
date: '2016-05-02', |
|
|
date: '2016-05-02', |
|
|
name: '王小虎', |
|
|
name: '王小虎', |
|
|
address: '上海市普陀区金沙江路 1518 弄' |
|
|
address: '上海市普陀区金沙江路 1518 弄', |
|
|
|
|
|
price:'10', |
|
|
}, { |
|
|
}, { |
|
|
date: '2016-05-04', |
|
|
date: '2016-05-04', |
|
|
name: '王小虎', |
|
|
name: '王小虎', |
|
|
address: '上海市普陀区金沙江路 1518 弄' |
|
|
address: '上海市普陀区金沙江路 1518 弄', |
|
|
|
|
|
price:'200', |
|
|
}, { |
|
|
}, { |
|
|
date: '2016-05-01', |
|
|
date: '2016-05-01', |
|
|
name: '王小虎', |
|
|
name: '王小虎', |
|
@ -422,8 +492,46 @@ import { rules } from "../assets/vabForm"; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
// 弹框相关方法---start |
|
|
|
|
|
openDialog() { |
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
|
}, |
|
|
|
|
|
// 确认按钮事件 |
|
|
|
|
|
handleConfirm() { |
|
|
|
|
|
this.$message.success('点击了确认按钮'); |
|
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
|
}, |
|
|
|
|
|
// 取消按钮事件 |
|
|
|
|
|
handleCancel() { |
|
|
|
|
|
this.$message.warning('点击了取消按钮'); |
|
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
|
}, |
|
|
|
|
|
// 关闭弹框事件 |
|
|
|
|
|
handleClose() { |
|
|
|
|
|
this.$message.info('弹框已关闭'); |
|
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
|
}, |
|
|
|
|
|
dialogVisibleChange(data){ |
|
|
|
|
|
console.log(data,'data098908090'); |
|
|
|
|
|
}, |
|
|
|
|
|
// 弹框相关方法---end |
|
|
|
|
|
|
|
|
|
|
|
// 选择表格某一项 点击 |
|
|
|
|
|
handlePriceClick(row) { |
|
|
|
|
|
this.currentRow = row; |
|
|
|
|
|
this.editedPrice = row.price; |
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
|
}, |
|
|
|
|
|
// 监听单选框组变化 |
|
|
|
|
|
radioChange(data){ |
|
|
|
|
|
console.log(data,'radio--data'); |
|
|
|
|
|
}, |
|
|
|
|
|
handleClick(row) { |
|
|
|
|
|
console.log(row); |
|
|
|
|
|
}, |
|
|
submitForm() { |
|
|
submitForm() { |
|
|
this.$refs.myForm.validate((valid) => { |
|
|
this.$refs.formRef.validate((valid) => { |
|
|
|
|
|
console.log(this.form,'======formxinxi'); |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
alert('提交成功!'); |
|
|
alert('提交成功!'); |
|
|
} else { |
|
|
} else { |
|
@ -431,8 +539,12 @@ import { rules } from "../assets/vabForm"; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 重置表单 |
|
|
|
|
|
resetForm() { |
|
|
|
|
|
this.$refs.form.resetFields(); |
|
|
|
|
|
}, |
|
|
triggerError() { |
|
|
triggerError() { |
|
|
this.$refs.myForm.validateField('username', (error) => { |
|
|
this.$refs.formRef.validateField('username', (error) => { |
|
|
if (error) { |
|
|
if (error) { |
|
|
console.log('错误信息:', error); |
|
|
console.log('错误信息:', error); |
|
|
} else { |
|
|
} else { |
|
@ -440,10 +552,6 @@ import { rules } from "../assets/vabForm"; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 监听单选框组变化 |
|
|
|
|
|
radioChange() { |
|
|
|
|
|
// console.log(this.radio,'====='); |
|
|
|
|
|
}, |
|
|
|
|
|
getFormdata(){ |
|
|
getFormdata(){ |
|
|
console.log(this.$refs.GuipInput.value); |
|
|
console.log(this.$refs.GuipInput.value); |
|
|
}, |
|
|
}, |
|
@ -467,6 +575,24 @@ import { rules } from "../assets/vabForm"; |
|
|
}); |
|
|
}); |
|
|
this.formList = dataList; |
|
|
this.formList = dataList; |
|
|
}, |
|
|
}, |
|
|
|
|
|
save() { |
|
|
|
|
|
this.$refs.VabForm.submitForm("ruleForm"); |
|
|
|
|
|
}, |
|
|
|
|
|
//取消 |
|
|
|
|
|
cancellation() { |
|
|
|
|
|
this.$refs.VabForm.resetForm("ruleForm"); |
|
|
|
|
|
}, |
|
|
|
|
|
// 表格点击、选择 |
|
|
|
|
|
handleSelectionChange(data){ |
|
|
|
|
|
// 多选模式下的时候 data 为数组格式 |
|
|
|
|
|
// 单选的时候是 对象 |
|
|
|
|
|
console.log(data,'表格行信息'); |
|
|
|
|
|
}, |
|
|
|
|
|
// 全选按钮 |
|
|
|
|
|
toggleAllSelection() { |
|
|
|
|
|
// console.log(this.$refs.multipleTable,'this.$refs.multipleTable'); |
|
|
|
|
|
this.$refs.multipleTable.$refs.guiptable.toggleAllSelection(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.getList(); |
|
|
this.getList(); |
|
@ -492,5 +618,24 @@ import { rules } from "../assets/vabForm"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ScaleBox { |
|
|
|
|
|
width: 1000px; |
|
|
|
|
|
background-size: 100% 100%; |
|
|
|
|
|
-ms-transition: 0.3s; |
|
|
|
|
|
transition: 0.3s; |
|
|
|
|
|
-ms-transform-origin: 0 0; |
|
|
|
|
|
transform-origin: 0 0; |
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
} |
|
|
|
|
|
.cardfooter { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
// position: fixed; |
|
|
|
|
|
bottom: 20px; |
|
|
|
|
|
right: 30px; |
|
|
|
|
|
text-align: right; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|