|
@@ -44,8 +44,11 @@
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
border
|
|
border
|
|
|
size="small"
|
|
size="small"
|
|
|
- style="width: 100%"
|
|
|
|
|
- :height="340"
|
|
|
|
|
|
|
+ style="width: 100%; height: 28vh"
|
|
|
|
|
+ :row-style="{ height: '20px' }"
|
|
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :header-row-style="{ height: '20px' }"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
@@ -59,7 +62,7 @@
|
|
|
<el-table-column align="center" label="创建时间" prop="Sys_rq" width="160" />
|
|
<el-table-column align="center" label="创建时间" prop="Sys_rq" width="160" />
|
|
|
<el-table-column align="center" label="修改时间" prop="mod_rq" width="160" />
|
|
<el-table-column align="center" label="修改时间" prop="mod_rq" width="160" />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <div class="gva-pagination">
|
|
|
|
|
|
|
+ <div class="gva-pagination">
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
v-model:current-page="page"
|
|
v-model:current-page="page"
|
|
|
v-model:page-size="pageSize"
|
|
v-model:page-size="pageSize"
|
|
@@ -73,15 +76,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="product-detail-block">
|
|
|
|
|
- <div v-if="!selectedRow" class="detail-empty">请在上方列表中点击一行产品,查看部件资料与工艺资料</div>
|
|
|
|
|
- <el-tabs v-else v-model="detailTab" type="border-card" class="product-detail-tabs">
|
|
|
|
|
- <el-tab-pane label="部件资料" name="part">
|
|
|
|
|
|
|
+ <!-- 部件资料和工艺资料 -->
|
|
|
|
|
+ <el-tabs v-model="detailTab" @tab-click="handleTabClick">
|
|
|
|
|
+ <el-tab-pane label="部件资料" name="part">
|
|
|
|
|
+ <div class="gva-table-box">
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="partList"
|
|
:data="partList"
|
|
|
border
|
|
border
|
|
|
size="small"
|
|
size="small"
|
|
|
- max-height="260"
|
|
|
|
|
|
|
+ style="width: 100%; height: 36vh"
|
|
|
|
|
+ :row-style="{ height: '20px' }"
|
|
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :header-row-style="{ height: '20px' }"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
>
|
|
@@ -93,26 +100,32 @@
|
|
|
<el-table-column align="center" label="创建时间" prop="Sys_rq" width="160" />
|
|
<el-table-column align="center" label="创建时间" prop="Sys_rq" width="160" />
|
|
|
<el-table-column align="center" label="修改时间" prop="mod_rq" width="160" />
|
|
<el-table-column align="center" label="修改时间" prop="mod_rq" width="160" />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <div class="gva-pagination detail-pagination">
|
|
|
|
|
|
|
+ <div class="gva-pagination">
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
v-model:current-page="partPage"
|
|
v-model:current-page="partPage"
|
|
|
v-model:page-size="partPageSize"
|
|
v-model:page-size="partPageSize"
|
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
|
:total="partTotal"
|
|
:total="partTotal"
|
|
|
- small
|
|
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
background
|
|
background
|
|
|
- layout="total, sizes, prev, pager, next"
|
|
|
|
|
|
|
+ small
|
|
|
@current-change="fetchPartList"
|
|
@current-change="fetchPartList"
|
|
|
@size-change="onPartPageSizeChange"
|
|
@size-change="onPartPageSizeChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- </el-tab-pane>
|
|
|
|
|
- <el-tab-pane label="工艺资料" name="gy">
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="工艺资料" name="gy">
|
|
|
|
|
+ <div class="gva-table-box">
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="gyList"
|
|
:data="gyList"
|
|
|
border
|
|
border
|
|
|
size="small"
|
|
size="small"
|
|
|
- max-height="260"
|
|
|
|
|
|
|
+ style="width: 100%; height: 36vh"
|
|
|
|
|
+ :row-style="{ height: '20px' }"
|
|
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :header-row-style="{ height: '20px' }"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
>
|
|
@@ -125,22 +138,22 @@
|
|
|
<el-table-column align="center" label="创建时间" prop="createtime" width="160" />
|
|
<el-table-column align="center" label="创建时间" prop="createtime" width="160" />
|
|
|
<el-table-column align="center" label="更新时间" prop="updatetime" width="160" />
|
|
<el-table-column align="center" label="更新时间" prop="updatetime" width="160" />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <div class="gva-pagination detail-pagination">
|
|
|
|
|
|
|
+ <div class="gva-pagination">
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
v-model:current-page="gyPage"
|
|
v-model:current-page="gyPage"
|
|
|
v-model:page-size="gyPageSize"
|
|
v-model:page-size="gyPageSize"
|
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
|
:total="gyTotal"
|
|
:total="gyTotal"
|
|
|
- small
|
|
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
background
|
|
background
|
|
|
- layout="total, sizes, prev, pager, next"
|
|
|
|
|
|
|
+ small
|
|
|
@current-change="fetchGyList"
|
|
@current-change="fetchGyList"
|
|
|
@size-change="onGyPageSizeChange"
|
|
@size-change="onGyPageSizeChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- </el-tab-pane>
|
|
|
|
|
- </el-tabs>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ </el-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</layout-content>
|
|
</layout-content>
|
|
@@ -366,6 +379,14 @@ const onGyPageSizeChange = () => {
|
|
|
fetchGyList()
|
|
fetchGyList()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const handleTabClick = (tab) => {
|
|
|
|
|
+ if (tab.props.name === 'part' && selectedRow.value) {
|
|
|
|
|
+ fetchPartList()
|
|
|
|
|
+ } else if (tab.props.name === 'gy' && selectedRow.value) {
|
|
|
|
|
+ fetchGyList()
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
await loadMenu()
|
|
await loadMenu()
|
|
|
menuFilter.value = null
|
|
menuFilter.value = null
|
|
@@ -406,7 +427,7 @@ onMounted(async () => {
|
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
|
}
|
|
}
|
|
|
.gva-pagination {
|
|
.gva-pagination {
|
|
|
- margin-top: 12px;
|
|
|
|
|
|
|
+ margin-top: 5px;
|
|
|
}
|
|
}
|
|
|
.product-main {
|
|
.product-main {
|
|
|
padding-bottom: 8px;
|
|
padding-bottom: 8px;
|
|
@@ -420,28 +441,18 @@ onMounted(async () => {
|
|
|
.product-list-block {
|
|
.product-list-block {
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
-.product-detail-block {
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- min-height: 200px;
|
|
|
|
|
-}
|
|
|
|
|
-.detail-empty {
|
|
|
|
|
- padding: 24px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- color: #909399;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- background: #fafafa;
|
|
|
|
|
- border: 1px dashed #dcdfe6;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
-}
|
|
|
|
|
-.product-detail-tabs {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
-}
|
|
|
|
|
-.product-detail-tabs :deep(.el-tabs__content) {
|
|
|
|
|
- padding-top: 8px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+.gva-table-box {
|
|
|
|
|
+ margin-top: 0;
|
|
|
}
|
|
}
|
|
|
-.detail-pagination {
|
|
|
|
|
- margin-top: 10px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+.gva-pagination {
|
|
|
|
|
+ margin-top: 5px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+:deep(.el-tabs__content) {
|
|
|
|
|
+ padding-top: 0 !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|