From a8a8da215210c0e18de9ab8efa4d16e08ba70c96 Mon Sep 17 00:00:00 2001
From: unknown <280848880@qq.com>
Date: 星期一, 23 十月 2023 14:25:58 +0800
Subject: [PATCH] 苏州web:单位工程bug修改
---
web/src/views/SecureManage/SmartHelmet/TrackBack.vue | 12 ++----
web/src/views/ProjectManage/SectionManage.vue | 99 ++++++++++++++++++++++++-------------------------
2 files changed, 53 insertions(+), 58 deletions(-)
diff --git a/web/src/views/ProjectManage/SectionManage.vue b/web/src/views/ProjectManage/SectionManage.vue
index dbae05b..62948e6 100644
--- a/web/src/views/ProjectManage/SectionManage.vue
+++ b/web/src/views/ProjectManage/SectionManage.vue
@@ -31,8 +31,8 @@
<!-- dialog -->
<el-dialog class="prop_dialog" v-if="isRender" :title="dialogTitle" :visible.sync="asyncVisible" width="660px"
@close="closeForm">
-
- <cpnForm :form-config="formConfig"></cpnForm>
+ <!-- form组件未开发完 -->
+ <!-- <cpnForm :form-config="formConfig"></cpnForm> -->
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="auto" class="rule_form">
<el-form-item label="项目名称:" prop="proId">
@@ -113,7 +113,7 @@
<script>
import {throttle} from '../../plugins/public'; // 导入节流、动态切换组件尺寸方法
import cpnTable from '@/components/element/Table'
-import cpnForm from '@/components/element/Form'
+// import cpnForm from '@/components/element/Form'
export default {
data() {
return {
@@ -197,58 +197,57 @@
}
]
},
+ // formConfig: {
+ // formModels: {
+ // proId: '', // 项目名称id
+ // mileage: '', // 起讫里程
+ // unitProjectName: '', // 单位工程名称
+ // segmentAdmin: '', // 需求负责人
+ // shieldEnp: '', // 盾构单位
+ // startTime: null, // 开始时间
+ // endTime: null, // 结束时间
+ // duration: '', // 工期
+ // station: '', // 站点
+ // segmentList: [], // 标段需求
+ // },
+ // formItems: [
+ // {
+ // type: 'input', label: '用户id'
+ // },
+ // {
+ // type: 'input', label: '用户名'
+ // },
- formConfig: {
- formModels: {
- proId: '', // 项目名称id
- mileage: '', // 起讫里程
- unitProjectName: '', // 单位工程名称
- segmentAdmin: '', // 需求负责人
- shieldEnp: '', // 盾构单位
- startTime: null, // 开始时间
- endTime: null, // 结束时间
- duration: '', // 工期
- station: '', // 站点
- segmentList: [], // 标段需求
- },
- formItems: [
- {
- type: 'input', label: '用户id'
- },
- {
- type: 'input', label: '用户名'
- },
-
- {
- type: 'input', label: '真实姓名'
- },
- {
- type: 'input', label: '电话号码'
- },
- {
- type: 'select', label: '用户状态', options: [
- {label: '禁用', value: 0},
- {label: '启用', value: 1}
- ]
- },
- {
- type: 'datepicker', label: '创建时间', otherOptions: {
- startPlaceholder: '开始时间',
- endPlaceholder: '结束时间',
- type: 'daterange',
- 'unlink-panels': true
- }
- }
- ],
- itemColLayout: {
- span: 8
- }
- }
+ // {
+ // type: 'input', label: '真实姓名'
+ // },
+ // {
+ // type: 'input', label: '电话号码'
+ // },
+ // {
+ // type: 'select', label: '用户状态', options: [
+ // {label: '禁用', value: 0},
+ // {label: '启用', value: 1}
+ // ]
+ // },
+ // {
+ // type: 'datepicker', label: '创建时间', otherOptions: {
+ // startPlaceholder: '开始时间',
+ // endPlaceholder: '结束时间',
+ // type: 'daterange',
+ // 'unlink-panels': true
+ // }
+ // }
+ // ],
+ // itemColLayout: {
+ // span: 8
+ // }
+ // }
}
},
components: {
cpnTable,
- cpnForm
+ // cpnForm
},
computed: {
isUpdate() {
diff --git a/web/src/views/SecureManage/SmartHelmet/TrackBack.vue b/web/src/views/SecureManage/SmartHelmet/TrackBack.vue
index a943fa9..f058bec 100644
--- a/web/src/views/SecureManage/SmartHelmet/TrackBack.vue
+++ b/web/src/views/SecureManage/SmartHelmet/TrackBack.vue
@@ -152,10 +152,8 @@
let out = {}
const params = {
userId: this.userId,
- // strTime: this.chart.date?.[0],
- // endTime: this.chart.date?.[1],
- strTime: '2023-06-01',
- endTime: '2023-06-31',
+ strTime: this.chart.date?.[0],
+ endTime: this.chart.date?.[1],
}
const {data, statusMsg} = await this.$http.getOnlineTime(params)
if (statusMsg === 'ok') {
@@ -174,10 +172,8 @@
}
const params = {
userId: this.userId,
- // strTime: this.chart.date?.[0],
- // endTime: this.chart.date?.[1],
- strTime: '2023-06-01',
- endTime: '2023-06-31',
+ strTime: this.chart.date?.[0],
+ endTime: this.chart.date?.[1],
}
const {data, statusMsg} = await this.$http.getTrackLists(params)
if (statusMsg === 'ok') {
--
Gitblit v1.9.3