Procházet zdrojové kódy

update

pull/9/head
lb před 1 rokem
rodič
revize
78777d5d24
4 změnil soubory, kde provedl 11 přidání a 46 odebrání
  1. +1
    -8
      src/views/quality/base/qualityInspectionDet/index.vue
  2. +2
    -34
      src/views/quality/base/qualityInspectionType/index.vue
  3. +0
    -4
      src/views/quality/components/dialogForm.vue
  4. +8
    -0
      src/views/quality/mixin/basicPageMixin.js

+ 1
- 8
src/views/quality/base/qualityInspectionDet/index.vue Zobrazit soubor

@@ -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 = {


+ 2
- 34
src/views/quality/base/qualityInspectionType/index.vue Zobrazit soubor

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


+ 0
- 4
src/views/quality/components/dialogForm.vue Zobrazit soubor

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


+ 8
- 0
src/views/quality/mixin/basicPageMixin.js Zobrazit soubor

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

Načítá se…
Zrušit
Uložit