update 质量类型

This commit is contained in:
lb
2023-08-01 14:02:36 +08:00
parent 6fdc9b2826
commit 63931b883c
3 changed files with 70 additions and 6 deletions

View File

@@ -7,12 +7,16 @@
ref="search-bar"
@headBtnClick="handleSearchBarBtnClick" />
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"></right-toolbar>
</el-row>
<div
class="st"
style="border: 1px solid #ccc; padding: 12px; margin: 12px 0">
<base-table
:table-props="tableProps"
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
@emit-fun="handleEmitFun" />
</div>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
@@ -88,6 +92,8 @@
</template>
<script>
import moment from 'moment';
import {
createQualityInspectionType,
updateQualityInspectionType,
@@ -102,6 +108,55 @@ export default {
components: {},
data() {
return {
tableData: [],
tableProps: [
{
prop: 'createTime',
label: '添加时间',
fixed: true,
width: 180,
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
},
{ prop: 'name', label: '检测类型名称', align: 'center' },
{ prop: 'code', label: '检测类型编码', align: 'center' },
{ prop: 'remark', label: '备注', align: 'center' },
{
label: '操作',
alignt: 'center',
subcomponent: {
render: function (h) {
return h(
'div',
null,
[
h(
'el-button',
{
props: {
icon: 'el-icon-edit',
size: 'mini',
type: 'text',
},
},
' 修改'
),
h(
'el-button',
{
props: {
icon: 'el-icon-edit',
size: 'mini',
type: 'text',
},
},
' 修改'
),
]
);
},
},
},
],
// 遮罩层
loading: true,
// 导出遮罩层
@@ -240,6 +295,9 @@ export default {
this.open = true;
this.title = '添加质量检测类型基础';
},
handleEmitFun(val) {
console.log('emit unf', val);
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();