中航光电热表web
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.

522 lines
14 KiB

<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"
>
<template #menu-left>
5 months ago
<el-button type="danger" icon="el-icon-delete" @click="handleDelete">删除 </el-button>
</template>
<template #menu-right>
5 months ago
<el-button type="primary" icon="el-icon-printer" @click="handleDelete">打印 </el-button>
<el-button type="primary" icon="el-icon-upload" @click="handleImport">导入 </el-button>
</template>
</avue-crud>
5 months ago
<!-- 导入 -->
<basic-import
v-if="isShowImport"
title="导入"
:isShow="isShowImport"
templateUrl="/blade-desk/QA/CycleTestItem/download-excel-template"
templateName="试验项目模板.xlsx"
importUrl="/blade-desk/QA/CycleTestItem/import-excel"
@closeDialog="closeDialog"
></basic-import>
</basic-container>
</template>
<script>
5 months ago
import basicImport from '@/components/basic-import/main.vue';
export default {
5 months ago
components: {
basicImport,
},
data() {
return {
5 months ago
isShowImport: false,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
data: [],
option: {
5 months ago
height: 'auto',
calcHeight: 32,
tip: false,
5 months ago
size: 'medium',
simplePage: true,
searchShow: true,
searchMenuSpan: 6,
searchIcon: true,
searchIndex: 3,
tree: false,
border: true,
index: true,
selection: true,
viewBtn: false,
delBtn: false,
editBtn: true,
5 months ago
editBtnText: '修改',
addBtnIcon: ' ',
viewBtnIcon: ' ',
delBtnIcon: ' ',
editBtnIcon: ' ',
labelWidth: 120,
menuWidth: 150,
dialogWidth: 600,
dialogClickModal: false,
searchEnter: true,
excelBtn: false,
filterBtn: true,
searchShowBtn: false,
columnSort: true,
excelBtn: true,
columnSort: true,
index: false,
showOverflowTooltip: true,
5 months ago
searchLabelPosition: 'left',
searchGutter: 24,
searchSpan: 6,
5 months ago
menuAlign: 'left',
gridBtn: false,
5 months ago
searchMenuPosition: 'right',
align: 'center',
column: [
{
5 months ago
label: '巡检点编号',
prop: 'patrolRegister',
sortable: true,
filter: true,
span: 24,
search: true,
searchLabelWidth: 90,
rules: [
{
required: false,
5 months ago
message: '请输入巡检点编号',
trigger: 'blur',
},
],
},
{
5 months ago
label: '巡检点位置',
prop: 'insSpot',
sortable: true,
filter: true,
span: 24,
search: true,
searchLabelWidth: 90,
rules: [
{
required: false,
5 months ago
message: '请输入巡检点位置',
trigger: 'blur',
},
],
},
// {
// label: '巡检点类型',
// prop: 'insSpotType',
// sortable: true,
// filter: true,
// span: 24,
// search: true,
// searchLabelWidth: 90,
// rules: [
// {
// required: false,
// message: '请输入巡检点位置',
// trigger: 'blur',
// },
// ],
// },
{
5 months ago
label: '上次检验日期',
prop: 'lastInsCycle',
sortable: true,
filter: true,
span: 24,
search: false,
display: false,
searchLabelWidth: 100,
},
{
5 months ago
label: '备注',
prop: 'memo',
sortable: true,
filter: true,
span: 24,
search: false,
5 months ago
type: 'textarea',
searchLabelWidth: 90,
rows: 3,
rules: [
{
required: false,
5 months ago
message: '请输入备注',
trigger: 'blur',
},
],
},
],
},
};
},
methods: {
5 months ago
// 点击导入按钮
handleImport() {
this.isShowImport = true
},
onLoad() {
this.loading = true;
this.data = [
{
5 months ago
insSpotType: '设备',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '纯水站配电室',
ipId: 21,
keyValue: 21,
lastInsCycle: null,
5 months ago
memo: '配电柜上方有无漏水(平时不关)',
patrolRegister: '1',
updateTime: '2023-03-13 09:20:24',
},
{
5 months ago
insSpotType: '废水',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '水处理鼓风机房',
ipId: 22,
keyValue: 22,
lastInsCycle: null,
5 months ago
memo: '电机运行情况,下班时是否关闭',
patrolRegister: '2',
updateTime: '2023-03-13 09:20:24',
},
{
5 months ago
insSpotType: '废气',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '水处理储药间',
ipId: 23,
keyValue: 23,
lastInsCycle: null,
5 months ago
memo: '配电柜、污泥干化设备运行情况,下班时是否关闭',
patrolRegister: '3',
updateTime: '2023-03-13 09:20:24',
},
{
5 months ago
insSpotType: '设备',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '水处理中控室',
ipId: 24,
keyValue: 24,
lastInsCycle: null,
5 months ago
memo: '有无异常报警,配电柜/控制柜、室内门窗电器下班时是否关闭',
patrolRegister: '4',
updateTime: '2023-03-13 09:20:24',
},
{
5 months ago
insSpotType: '废水',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '西厂房二层南监控室',
ipId: 25,
keyValue: 25,
lastInsCycle: null,
5 months ago
memo: '有无异常报警,配电柜/控制柜、室内门窗电器下班时是否关闭',
patrolRegister: '5',
updateTime: '2023-03-13 09:20:24',
},
{
5 months ago
insSpotType: '设备',
createMan: {
accountId: null,
card: null,
5 months ago
createTime: '2023-02-06',
curStatus: 1,
deleted: false,
deptName: null,
dimissionTime: null,
factoryId: 41,
head: 0,
5 months ago
jobName: '实施',
keyValue: 89,
5 months ago
ldapName: 'hak',
mail: null,
mobile: null,
pfDepartment: {
appLink: null,
5 months ago
createTime: '2022-08-31',
deleted: false,
5 months ago
deptCode: '001',
deptId: 1,
5 months ago
deptName: 'MES开发部',
deptType: 1,
5 months ago
deptTypeTitle: '厂',
keyValue: 1,
memo: null,
5 months ago
orders: '00',
parentDeptId: null,
parentPath: null,
ucDeptId: null,
5 months ago
updateTime: '2022-08-31 16:32:46',
},
5 months ago
pinyinIndex: 'HAK,HAK',
ucUserId: null,
5 months ago
updateTime: '2023-02-06 17:20:33',
userCode: 'hak',
userId: 89,
5 months ago
userName: 'hak',
userSex: 1,
5 months ago
userSources: 'hak',
userString: '89:A:hak',
userType: 'A',
},
5 months ago
createTime: '2023-03-13 09:20:24',
insSpot: '铜件化学镍槽',
ipId: 26,
keyValue: 26,
lastInsCycle: null,
5 months ago
memo: '加热槽液位是否加满、剧毒品槽位是否落锁,水电气是否关闭',
patrolRegister: '6',
updateTime: '2023-03-13 09:20:24',
},
];
this.page.total = this.data.length;
this.loading = false;
setTimeout(() => {
this.selectionClear();
}, 500);
},
},
};
</script>
<style></style>