test #47

Merged
gtz217 merged 273 commits from test into master 2023-10-17 08:53:54 +08:00
4 changed files with 11 additions and 46 deletions
Showing only changes of commit 78777d5d24 - Show all commits

View File

@ -77,13 +77,11 @@ import {
} from '@/api/base/qualityInspectionDet'; } from '@/api/base/qualityInspectionDet';
import moment from 'moment'; import moment from 'moment';
import DialogForm from '../../components/dialogForm.vue';
import basicPageMixin from '../../mixin/basicPageMixin'; import basicPageMixin from '../../mixin/basicPageMixin';
export default { export default {
name: 'QualityInspectionDet', name: 'QualityInspectionDet',
components: { DialogForm },
mixins: [basicPageMixin], mixins: [basicPageMixin],
data() { data() {
return { return {
@ -175,7 +173,7 @@ export default {
content: null, content: null,
createTime: [], createTime: [],
}, },
// keys // keys, queryParams pageNo, pageSize key
searchBarKeys: ['content', 'createTime'], searchBarKeys: ['content', 'createTime'],
form: { form: {
id: undefined, id: undefined,
@ -212,11 +210,6 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
/** 取消按钮 */
cancel() {
this.open = false;
this.reset();
},
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
this.form = { this.form = {

View File

@ -61,7 +61,6 @@
<script> <script>
import moment from 'moment'; import moment from 'moment';
import DialogForm from '../../components/dialogForm.vue';
import { import {
createQualityInspectionType, createQualityInspectionType,
@ -71,10 +70,11 @@ import {
getQualityInspectionTypePage, getQualityInspectionTypePage,
exportQualityInspectionTypeExcel, exportQualityInspectionTypeExcel,
} from '@/api/base/qualityInspectionType'; } from '@/api/base/qualityInspectionType';
import basicPageMixin from '../../mixin/basicPageMixin';
export default { export default {
name: 'QualityInspectionType', name: 'QualityInspectionType',
components: { DialogForm }, mixins: [basicPageMixin],
data() { data() {
return { return {
tableBtn: [ tableBtn: [
@ -91,7 +91,6 @@ export default {
} }
: undefined, : undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [],
tableProps: [ tableProps: [
{ {
prop: 'createTime', prop: 'createTime',
@ -192,18 +191,6 @@ export default {
// [{ input: true, label: '', prop: 'code' }], // [{ input: true, label: '', prop: 'code' }],
// [{ input: true, label: '', prop: 'remark' }], // [{ input: true, label: '', prop: 'remark' }],
// ], // ],
//
loading: true,
//
exportLoading: false,
//
showSearch: true,
//
total: 0,
//
list: [],
//
title: '',
// //
open: false, open: false,
// //
@ -261,7 +248,6 @@ export default {
break; break;
} }
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -272,11 +258,6 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
/** 取消按钮 */
cancel() {
this.open = false;
this.reset();
},
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
this.form = { this.form = {
@ -287,25 +268,12 @@ export default {
}; };
this.resetForm('form'); this.resetForm('form');
}, },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNo = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm('queryForm');
this.handleQuery();
},
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = '添加质量检测类型基础'; this.title = '添加质量检测类型基础';
}, },
handleEmitFun(val) {
console.log('emit unf', val);
},
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();

View File

@ -90,10 +90,6 @@ export default {
get() { get() {
return this.dataForm; return this.dataForm;
}, },
// set(val) {
// console.log('set form', val);
// // this.$emit('update', val);
// },
}, },
}, },
mounted() { mounted() {

View File

@ -1,4 +1,7 @@
import DialogForm from '../components/dialogForm.vue';
export default { export default {
components: { DialogForm },
data() { data() {
return { return {
// 遮罩层 // 遮罩层
@ -85,5 +88,10 @@ export default {
this.resetForm('queryForm'); this.resetForm('queryForm');
this.handleQuery(); this.handleQuery();
}, },
/** 取消按钮 */
cancel() {
this.open = false;
this.reset();
},
}, },
}; };