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

太长显示全部

parent e018720b
...@@ -44,27 +44,27 @@ ...@@ -44,27 +44,27 @@
<div class="mb12 font-small-bold">库存管理列表</div> <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 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"> <template slot-scope="scope">
{{ scope.row.pn || '-' }} {{ scope.row.pn || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.lot || '-' }} {{ scope.row.lot || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.plocation || '-' }} {{ scope.row.plocation || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="厚度" prop="厚度"> <el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.phd || '-' }} {{ scope.row.phd || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createName"> <el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createName || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
......
...@@ -27,40 +27,43 @@ ...@@ -27,40 +27,43 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </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-column type="index" label="序号" width="50px"/> <el-table border :data="tableData" :gutter="40" >
<el-table-column label="pn" prop="businessId"> <el-table-column type="index" label="序号" width="50px"/>
<template slot-scope="scope"> <el-table-column label="pn" prop="businessId">
{{ scope.row.pn || '-' }} <template slot-scope="scope">
</template> {{ scope.row.pn || '-' }}
</el-table-column> </template>
<el-table-column label="lot" prop="lot"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="lot" prop="lot">
{{ scope.row.lot || '-' }} <template slot-scope="scope">
</template> {{ scope.row.lot || '-' }}
</el-table-column> </template>
<el-table-column label="厚度" prop="phd"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="厚度" prop="phd">
{{ scope.row.phd || '-' }} <template slot-scope="scope">
</template> {{ scope.row.phd || '-' }}
</el-table-column> </template>
<el-table-column label="操作" class-name="small-padding fixed-width"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" class-name="small-padding fixed-width">
<el-button <template slot-scope="scope">
size="mini" <el-button
type="text" size="mini"
style="color: #49cec9" type="text"
@click="handleUpdate(scope.row)" style="color: #49cec9"
>修改</el-button> @click="handleUpdate(scope.row)"
<el-button >修改</el-button>
size="mini" <el-button
type="text" size="mini"
icon="el-icon-delete" type="text"
@click="handleDelete(scope.row)" icon="el-icon-delete"
>删除</el-button> @click="handleDelete(scope.row)"
</template> >删除</el-button>
</el-table-column> </template>
</el-table> </el-table-column>
</el-table>
</div>
<el-form ref="form" :model="form" :rules="rule" label-width="80px"> <el-form ref="form" :model="form" :rules="rule" label-width="80px">
<el-row style="padding-left: 8.6%; padding-top: 1.5%"> <el-row style="padding-left: 8.6%; padding-top: 1.5%">
<el-col :span="12"> <el-col :span="12">
...@@ -257,9 +260,6 @@ export default { ...@@ -257,9 +260,6 @@ export default {
}, },
// 提交时要调的接口 // 提交时要调的接口
submitForm() { submitForm() {
const {
plocation
} = this.form
if (this.tableData.length === 0) { if (this.tableData.length === 0) {
this.$message.warning('请先确定表格数据') this.$message.warning('请先确定表格数据')
return return
......
...@@ -53,34 +53,34 @@ ...@@ -53,34 +53,34 @@
<div class="placeholder" /> <div class="placeholder" />
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="mb12 font-small-bold">设备管理列表</div> <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 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"> <template slot-scope="scope">
{{ scope.row.pn || '-' }} {{ scope.row.pn || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.lot || '-' }} {{ scope.row.lot || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.plocation || '-' }} {{ scope.row.plocation || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="厚度" prop="厚度"> <el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.phd || '-' }} {{ scope.row.phd || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createName"> <el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createName || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
<span>{{ scope.row.updateDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span> <span>{{ scope.row.updateDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template> </template>
...@@ -370,6 +370,10 @@ export default { ...@@ -370,6 +370,10 @@ export default {
// }); // });
}, },
methods: { methods: {
getTooltipContent(row) {
// 根据行数据动态生成tooltip的内容
return `pn: ${row.pn}\nlot: ${row.lot}\n厚度: ${row.phd}`
},
// TODO: 获取所选行详情信息操作 // TODO: 获取所选行详情信息操作
handleDetail(row) { handleDetail(row) {
this.singleDetails = this.formReset this.singleDetails = this.formReset
......
...@@ -53,27 +53,27 @@ ...@@ -53,27 +53,27 @@
<div class="mb12 font-small-bold">设备管理列表</div> <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 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"> <template slot-scope="scope">
{{ scope.row.pn || '-' }} {{ scope.row.pn || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.lot || '-' }} {{ scope.row.lot || '-' }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.plocation || '-' }} {{ scope.row.plocation || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="厚度" prop="厚度"> <el-table-column label="厚度" prop="厚度" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.phd || '-' }} {{ scope.row.phd || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createName"> <el-table-column label="操作员" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createName || '-' }} {{ scope.row.createName || '-' }}
</template> </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