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

525 lines
14 KiB

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