From 1227a827fc531da057f1f50c967dd79d2a673a3a Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期二, 05 九月 2023 18:24:26 +0800
Subject: [PATCH] 三级保养打印功能
---
src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue | 77 +++++++++++++++++++++-----------------
1 files changed, 43 insertions(+), 34 deletions(-)
diff --git a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
index b4a26f0..c559867 100644
--- a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
+++ b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
@@ -46,7 +46,7 @@
</a-row>-->
<a-row :gutter="24">
- <a-col :span="24">
+ <a-col :span="12">
<a-form-item
label="璁惧鍒嗙被缂栧彿"
:labelCol="labelCol"
@@ -60,9 +60,7 @@
/>
</a-form-item>
</a-col>
- </a-row>
- <a-row :gutter="24" v-if="parentId!='-1'">
- <a-col :span="24">
+ <a-col :span="12" v-if="parentId!='-1'">
<a-form-item
label="璁惧鍒嗙被鍚嶇О"
:labelCol="labelCol"
@@ -76,9 +74,7 @@
/>
</a-form-item>
</a-col>
- </a-row>
- <a-row :gutter="24" v-if="parentId=='-1'">
- <a-col :span="24">
+ <a-col :span="12" v-if="parentId=='-1'">
<a-form-item
label="璁惧鍒嗙被鍚嶇О"
:labelCol="labelCol"
@@ -95,9 +91,8 @@
</a-form-item>
</a-col>
</a-row>
-
- <a-row :gutter="24">
- <a-col :span="24">
+ <a-row :gutter="24">
+ <a-col :span="12">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -113,9 +108,7 @@
/>
</a-form-item>
</a-col>
- </a-row>
- <a-row :gutter="24">
- <a-col :span="24">
+ <a-col :span="12">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -132,8 +125,8 @@
</a-form-item>
</a-col>
</a-row>
- <a-row :gutter="24">
- <a-col :span="24">
+ <a-row :gutter="24">
+ <a-col :span="12">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -148,7 +141,6 @@
</a-form-item>
</a-col>
</a-row>
-
</a-form>
<a-divider v-if="title!='鏂板'" orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 閫夋嫨瀛愯澶囧垎绫讳娇鍏惰窡闅忕埗璁惧鍒嗙被灞炴�� </a-divider>
<a-tabs
@@ -159,7 +151,7 @@
<a-tab-pane
tab='瀛愯澶囧垎绫�'
key='1'
-
+
>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
@@ -176,11 +168,23 @@
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
- :scroll="{ x: true, y: 900 }"
- ></a-table>
+ :scroll="{ x: true}"
+ >
+ <template slot="num" slot-scope="text" >
+ <a-tooltip placement="top" :title="text" trigger="hover">
+ <div>
+ <template slot="title"> </template>
+ <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p>
+ </div>
+ </a-tooltip>
+ </template>
+
+ </a-table>
+
+
</a-tab-pane>
</a-tabs>
-
+
</a-spin>
<template slot="footer">
@@ -235,10 +239,10 @@
parentId: '',
model: {},
labelCol: {
- span:3
+ span:7
},
wrapperCol: {
- span:21
+ span:17
},
confirmLoading: false,
form: this.$form.createForm(this),
@@ -307,7 +311,9 @@
title: '鍒嗙被缂栫爜',
align: "center",
dataIndex: 'num',
- width: 220,
+ scopedSlots: { customRender: 'num' },
+ width: 100,
+ ellipsis: true,
// scopedSlots: {
// customRender: 'num',
// },
@@ -318,7 +324,7 @@
align: "center",
dataIndex: 'name',
- width: 220,
+
// scopedSlots: {
// customRender: 'name',
// },
@@ -333,31 +339,32 @@
// customRender: 'name',
// },
// sorter: true,
- width: 220,
+
},
{
title: '鍒涘缓浜�',
align: "center",
dataIndex: 'createBy',
- width: 220,
- },
- {
- title: '鍒涘缓鏃堕棿',
- align: "center",
- dataIndex: 'createTime',
- width: 220,
+
},
{
title: '淇敼浜�',
align: "center",
dataIndex: 'updateBy',
- width: 220,
+
},
+ {
+ title: '鍒涘缓鏃堕棿',
+ align: "center",
+ dataIndex: 'createTime',
+
+ },
+
{
title: '淇敼鏃堕棿',
align: "center",
dataIndex: 'updateTime',
- width: 220,
+
},
],
//鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴��
@@ -390,6 +397,7 @@
close() {
this.$emit('close');
this.visible = false;
+ this.onClearSelected();
},
onSelectChange(selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys;
@@ -455,6 +463,7 @@
that.confirmLoading = false;
that.$bus.$emit('loadData')
that.close();
+ that.onClearSelected();
})
}
})
--
Gitblit v1.9.3