|
|
@@ -12,16 +12,15 @@
|
|
|
<el-card shadow="never">
|
|
|
<!-- 数据表格 -->
|
|
|
|
|
|
+ <user-search @search="reload" />
|
|
|
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
|
:selection.sync="selection"
|
|
|
- row-key="id"
|
|
|
+ row-key="code"
|
|
|
>
|
|
|
-
|
|
|
-
|
|
|
<template v-slot:status="{ row }"> </template>
|
|
|
|
|
|
<template v-slot:textType="{ row }">
|
|
|
@@ -43,34 +42,9 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:type="{ row }">
|
|
|
- {{ getDictValue('质检标准类型', row.type) }}
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 操作列 -->
|
|
|
- <template v-slot:action="{ row }">
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="openEdit(row)"
|
|
|
- >
|
|
|
- 修改
|
|
|
- </el-link>
|
|
|
-
|
|
|
- <el-popconfirm
|
|
|
- class="ele-action"
|
|
|
- title="确定要删除当前质检吗?"
|
|
|
- @confirm="remove(row)"
|
|
|
- >
|
|
|
- <template v-slot:reference>
|
|
|
- <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
- 删除
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
+ <!-- {{ getDictValue('质检标准类型', row.type) }} -->
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
-
|
|
|
</el-card>
|
|
|
|
|
|
<div class="btns">
|
|
|
@@ -81,11 +55,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
import { getList } from '@/api/inspectionProject';
|
|
|
+ import UserSearch from '@/views/inspectionProject/components/user-search.vue';
|
|
|
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ UserSearch
|
|
|
+ },
|
|
|
mixins: [],
|
|
|
|
|
|
data() {
|
|
|
@@ -94,6 +70,13 @@
|
|
|
title: '选择质检项',
|
|
|
|
|
|
columns: [
|
|
|
+ {
|
|
|
+ columnKey: 'selection',
|
|
|
+ type: 'selection',
|
|
|
+ width: 45,
|
|
|
+ align: 'center',
|
|
|
+ reserveSelection: true
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'inspectionCode',
|
|
|
label: '参数编码',
|