Commit 8addde87 authored by 刘宇扬's avatar 刘宇扬

太长显示全部

parent e018720b
......@@ -44,27 +44,27 @@
<div class="mb12 font-small-bold">库存管理列表</div>
<el-table v-loading="loading" border :data="equipmentList" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="pn" prop="businessId">
<el-table-column label="pn" prop="businessId" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.pn || '-' }}
</template>
</el-table-column>
<el-table-column label="lot" prop="lot">
<el-table-column label="lot" prop="lot" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.lot || '-' }}
</template>
</el-table-column>
<el-table-column label="plocation" prop="plocation">
<el-table-column label="plocation" prop="plocation" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.plocation || '-' }}
</template>
</el-table-column>
<el-table-column label="厚度" prop="厚度">
<el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.phd || '-' }}
</template>
</el-table-column>
<el-table-column label="操作员" prop="createName">
<el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.createName || '-' }}
</template>
......
......@@ -27,7 +27,8 @@
</el-col>
</el-row>
</el-form>
<el-table border :data="tableData" :gutter="40" style="width: 85%; margin-left: 80px; padding-left: 8.6%;">
<div style="width: 82%; margin-left: 80px; padding-left: 8.6%;">
<el-table border :data="tableData" :gutter="40" >
<el-table-column type="index" label="序号" width="50px"/>
<el-table-column label="pn" prop="businessId">
<template slot-scope="scope">
......@@ -61,6 +62,8 @@
</template>
</el-table-column>
</el-table>
</div>
<el-form ref="form" :model="form" :rules="rule" label-width="80px">
<el-row style="padding-left: 8.6%; padding-top: 1.5%">
<el-col :span="12">
......@@ -257,9 +260,6 @@ export default {
},
// 提交时要调的接口
submitForm() {
const {
plocation
} = this.form
if (this.tableData.length === 0) {
this.$message.warning('请先确定表格数据')
return
......
......@@ -53,34 +53,34 @@
<div class="placeholder" />
<div style="padding:5px 10px">
<div class="mb12 font-small-bold">设备管理列表</div>
<el-table v-loading="loading" border :data="equipmentList" @selection-change="handleSelectionChange">
<el-table v-loading="loading" border :data="equipmentList" @selection-change="handleSelectionChange" >
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="pn" prop="businessId">
<el-table-column label="pn" prop="businessId" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.pn || '-' }}
</template>
</el-table-column>
<el-table-column label="lot" prop="lot">
<el-table-column label="lot" prop="lot" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.lot || '-' }}
</template>
</el-table-column>
<el-table-column label="plocation" prop="plocation">
<el-table-column label="plocation" prop="plocation" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.plocation || '-' }}
</template>
</el-table-column>
<el-table-column label="厚度" prop="厚度">
<el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.phd || '-' }}
</template>
</el-table-column>
<el-table-column label="操作员" prop="createName">
<el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.createName || '-' }}
</template>
</el-table-column>
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="updateDate">
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="updateDate" >
<template slot-scope="scope">
<span>{{ scope.row.updateDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
......@@ -370,6 +370,10 @@ export default {
// });
},
methods: {
getTooltipContent(row) {
// 根据行数据动态生成tooltip的内容
return `pn: ${row.pn}\nlot: ${row.lot}\n厚度: ${row.phd}`
},
// TODO: 获取所选行详情信息操作
handleDetail(row) {
this.singleDetails = this.formReset
......
......@@ -53,27 +53,27 @@
<div class="mb12 font-small-bold">设备管理列表</div>
<el-table v-loading="loading" border :data="equipmentList" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="pn" prop="businessId">
<el-table-column label="pn" prop="pn" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.pn || '-' }}
</template>
</el-table-column>
<el-table-column label="lot" prop="lot">
<el-table-column label="lot" prop="lot" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.lot || '-' }}
</template>
</el-table-column>
<el-table-column label="plocation" prop="plocation">
<el-table-column label="plocation" prop="plocation" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.plocation || '-' }}
</template>
</el-table-column>
<el-table-column label="厚度" prop="厚度">
<el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.phd || '-' }}
</template>
</el-table-column>
<el-table-column label="操作员" prop="createName">
<el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.createName || '-' }}
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment