diff --git a/src/utils/dynamicProps.js b/src/utils/dynamicProps.js
index e8c947d3..147f82fb 100644
--- a/src/utils/dynamicProps.js
+++ b/src/utils/dynamicProps.js
@@ -1,3 +1,5 @@
+import moment from 'moment';
+
/**
* 用于动态表结构的 tableProps 生成
* @param {*} nameData
@@ -16,9 +18,9 @@ export function handleNameData(nameData) {
function step1(tree1) {
return Array.from(new Set(tree1.map((item) => item.name)))
.sort()
- .map((item) => ({
- prop: item,
- label: item,
+ .map((time) => ({
+ prop: time,
+ label: moment(time).format('YYYY-MM-DD HH:mm:ss'),
children: [],
}));
}
diff --git a/src/views/quality/base/qualityInspectionBoxBtn/dialogForm.vue b/src/views/quality/base/qualityInspectionBoxBtn/dialogForm.vue
new file mode 100644
index 00000000..141266eb
--- /dev/null
+++ b/src/views/quality/base/qualityInspectionBoxBtn/dialogForm.vue
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/qualityInspectionBoxBtn/index.vue b/src/views/quality/base/qualityInspectionBoxBtn/index.vue
index 1fd5f281..291f84dc 100644
--- a/src/views/quality/base/qualityInspectionBoxBtn/index.vue
+++ b/src/views/quality/base/qualityInspectionBoxBtn/index.vue
@@ -39,7 +39,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
@@ -55,11 +55,12 @@ import {
} from '@/api/base/qualityInspectionBoxBtn';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import moment from 'moment';
+import DialogForm from './dialogForm.vue';
export default {
name: 'QualityInspectionBoxBtn',
mixins: [basicPageMixin],
- components: {},
+ components: { DialogForm },
data() {
return {
rows: [
@@ -114,7 +115,8 @@ export default {
type: 'number',
message: '请输入100以内的整数',
trigger: 'blur',
- transform: (val) => Number(val) <= 100 && Number.isInteger(+val) && Number(val),
+ transform: (val) =>
+ Number(val) <= 100 && Number.isInteger(+val) && Number(val),
},
],
bind: { type: 'number', min: 0, max: 100 },
diff --git a/src/views/quality/monitoring/qualityRecentHours/index.vue b/src/views/quality/monitoring/qualityRecentHours/index.vue
index f4176494..d7ec32e0 100644
--- a/src/views/quality/monitoring/qualityRecentHours/index.vue
+++ b/src/views/quality/monitoring/qualityRecentHours/index.vue
@@ -45,7 +45,6 @@ export default {
pageNo: 1,
pageSize: 10,
},
- // jsondemo: '',
list: [
// {
// inspectionContent: '检测内容1',
@@ -72,16 +71,6 @@ export default {
url: '/monitoring/record-in-one-day/get',
method: 'get',
});
- // console.log(response);
- // const {
- // // data: { nameData },
- // code,
- // } = response;
- // this.jsondemo = hljs.highlight(
- // 'json',
- // JSON.stringify(response, null, 2),
- // true
- // ).value;
const {
data: { data: dyanmicData, nameData },
} = response;