You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<template>
|
|
|
|
|
<basic-container>
|
|
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
|
|
|
|
|
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
|
|
|
|
|
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
|
|
|
|
|
</avue-crud>
|
|
|
|
|
</basic-container>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
loading: false,
|
|
|
|
|
form: {},
|
|
|
|
|
data: [],
|
|
|
|
|
page: {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
total: 0,
|
|
|
|
|
},
|
|
|
|
|
option: {
|
|
|
|
|
columnSort: true,
|
|
|
|
|
tip: false,
|
|
|
|
|
height: "auto",
|
|
|
|
|
align: "center",
|
|
|
|
|
calcHeight: 32,
|
|
|
|
|
simplePage: false,
|
|
|
|
|
searchShow: true,
|
|
|
|
|
searchMenuSpan: 6,
|
|
|
|
|
searchIcon: true,
|
|
|
|
|
searchIndex: 3,
|
|
|
|
|
tree: false,
|
|
|
|
|
border: true,
|
|
|
|
|
index: false,
|
|
|
|
|
selection: false,
|
|
|
|
|
viewBtn: false,
|
|
|
|
|
delBtn: false,
|
|
|
|
|
editBtn: false,
|
|
|
|
|
delBtnIcon: " ",
|
|
|
|
|
addBtn: false,
|
|
|
|
|
labelWidth: 120,
|
|
|
|
|
searchLabelWidth: 120,
|
|
|
|
|
menu: false,
|
|
|
|
|
menuWidth: 200,
|
|
|
|
|
dialogWidth: 600,
|
|
|
|
|
dialogClickModal: false,
|
|
|
|
|
searchEnter: true,
|
|
|
|
|
excelBtn: true,
|
|
|
|
|
gridBtn: false,
|
|
|
|
|
searchShowBtn: false,
|
|
|
|
|
showOverflowTooltip: true,
|
|
|
|
|
searchLabelPosition: "left",
|
|
|
|
|
searchGutter: 24,
|
|
|
|
|
searchSpan: 6,
|
|
|
|
|
menuAlign: "left",
|
|
|
|
|
gridBtn: false,
|
|
|
|
|
searchMenuPosition: "right",
|
|
|
|
|
addBtnIcon: " ",
|
|
|
|
|
viewBtnIcon: " ",
|
|
|
|
|
delBtnIcon: " ",
|
|
|
|
|
editBtnIcon: " ",
|
|
|
|
|
|
|
|
|
|
column: [
|
|
|
|
|
{
|
|
|
|
|
label: "作业中心",
|
|
|
|
|
prop: "workCenterName",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: true,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入作业中心",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "日期",
|
|
|
|
|
prop: "createTime",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: true,
|
|
|
|
|
type: "date",
|
|
|
|
|
searchRange: true,
|
|
|
|
|
startPlaceholder: "开始时间",
|
|
|
|
|
endPlaceholder: "结束时间",
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入日期",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "加工面积(dm²)",
|
|
|
|
|
prop: "workArea",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入加工面积(dm²)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "定额单位自来水用水量(L/dm²)",
|
|
|
|
|
prop: "quoTapUee",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 280,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入定额单位自来水用水量(L/dm²)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "实际单位自来水用水量(L/dm²)",
|
|
|
|
|
prop: "reaTapUse",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 280,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入实际单位自来水用水量(L/dm²)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "实际总自来水用水量(t)",
|
|
|
|
|
prop: "reaTapUse",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入实际总自来水用水量(t)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "定额单位纯水用水量(L/dm²)",
|
|
|
|
|
prop: "quoPureUee",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 240,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入定额单位纯水用水量(L/dm²)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "实际单位纯水用水量(L/dm²)",
|
|
|
|
|
prop: "reaPureUse",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入实际单位纯水用水量(L/dm²)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "实际总纯水用水量(t)",
|
|
|
|
|
prop: "reaPureUse",
|
|
|
|
|
span: 24,
|
|
|
|
|
width: 200,
|
|
|
|
|
overflow: true,
|
|
|
|
|
search: false,
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入实际总纯水用水量(t)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '是否大屏显示',
|
|
|
|
|
prop: 'switch',
|
|
|
|
|
type: 'switch',
|
|
|
|
|
cell: true,
|
|
|
|
|
activeValue: true,
|
|
|
|
|
inactiveValue: false,
|
|
|
|
|
activeText: '显示',
|
|
|
|
|
inactiveText: '不显示',
|
|
|
|
|
change: ({ value, row }) => {
|
|
|
|
|
// 开关状态变化时的回调函数
|
|
|
|
|
console.log(`大屏显示状态变更为: ${value ? '开启' : '关闭'}, 数据:`, row);
|
|
|
|
|
// 可以在这里添加API调用或其他逻辑
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style></style>
|