update 质量类型

Cette révision appartient à :
lb 2023-08-01 14:02:36 +08:00
Parent 6fdc9b2826
révision 63931b883c
3 fichiers modifiés avec 70 ajouts et 6 suppressions

Voir le fichier

@ -58,6 +58,7 @@
"js-beautify": "1.13.0",
"jsencrypt": "3.3.1",
"min-dash": "3.5.2",
"moment": "^2.29.4",
"nprogress": "0.2.0",
"qrcode.vue": "^1.7.0",
"quill": "1.3.7",

Voir le fichier

@ -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();

Voir le fichier

@ -6842,6 +6842,11 @@ moddle@^5.0.2:
dependencies:
min-dash "^3.0.0"
moment@^2.29.4:
version "2.29.4"
resolved "https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==
move-concurrently@^1.0.1:
version "1.0.1"
resolved "https://registry.npmmirror.com/move-concurrently/-/move-concurrently-1.0.1.tgz"