This commit is contained in:
lb 2023-08-03 13:37:24 +08:00
förälder c357ab8005
incheckning 78777d5d24
4 ändrade filer med 11 tillägg och 46 borttagningar

Visa fil

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

Visa fil

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

Visa fil

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

Visa fil

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