From 12a04fe3fabd0253969d4b18c548e3be7a3446e8 Mon Sep 17 00:00:00 2001
From: cjp <3096114695@qq.com>
Date: Fri, 19 Jan 2024 10:36:41 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/js/api/pressureTestMachine.js | 3 +
.../electricBox/deviceManage.vue | 236 ++++++------------
.../edgeProtection/edgequtManagement.vue | 48 ++--
.../engineerArchives/workingDraw.vue | 2 +-
.../pressureTestMachine/productData.vue | 127 +++++-----
.../partyMemberManagementSyhy.vue | 8 +-
.../smokeAlarmSystem/smokeManagement.vue | 48 ++--
.../toxicGasDetection/gasEqtManagement.vue | 48 ++--
8 files changed, 233 insertions(+), 287 deletions(-)
diff --git a/src/assets/js/api/pressureTestMachine.js b/src/assets/js/api/pressureTestMachine.js
index 6019f0f8..fe0ec0fb 100644
--- a/src/assets/js/api/pressureTestMachine.js
+++ b/src/assets/js/api/pressureTestMachine.js
@@ -18,3 +18,6 @@ export const pressureTestMachineManagePage = data => get('xmgl/pressureTestMachi
// 查询压力试验机-试块信息
export const pressureBlockNumberList = data => get('xmgl/pressureTestMachineManageBlockNumber/list', data) //查询列表数据
export const pressureTestMachineManageEdit = data => post('xmgl/pressureTestMachineManage/edit', data) //编辑试块信息
+
+// 查询压力试验机-试块数值曲线
+export const pressureBlockDataList = data => get('xmgl/pressureTestMachineManageBlockData/list', data) //查询列表数据
\ No newline at end of file
diff --git a/src/views/equipmentCenter/electricBox/deviceManage.vue b/src/views/equipmentCenter/electricBox/deviceManage.vue
index b7775b87..da29b6a2 100644
--- a/src/views/equipmentCenter/electricBox/deviceManage.vue
+++ b/src/views/equipmentCenter/electricBox/deviceManage.vue
@@ -2,48 +2,21 @@
- {{
- $t('message.deviceManage.refresh')
- }}
- {{
- $t('message.deviceManage.add')
- }}
+ {{ $t('message.deviceManage.refresh') }}
+ {{ $t('message.deviceManage.add') }}
-
-
-
- {{
- scope.row.isClosed == 1 ? '在线' : '离线'
- }}
+
+
+
+ {{ scope.row.isClosed == 1 ? '在线' : '离线' }}
-
-
+
+
-

+
{{ $t('message.deviceManage.edit') }}
-

+
{{ $t('message.deviceManage.delete') }}
@@ -88,14 +53,8 @@
label-width="120px"
class="dialogFormBox"
>
-
-
+
+
-
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
+
@@ -165,28 +97,14 @@
filterable
:placeholder="$t('message.deviceManage.placeholder_select')"
>
-
-
+
@@ -207,8 +125,8 @@ import {
export default {
mounted() {
- this.getList();
- this.getLaborManagementList();
+ this.getList()
+ this.getLaborManagementList()
},
data() {
return {
@@ -217,13 +135,15 @@ export default {
},
addEditRules: {
devName: [
- { required: true, message: this.$t('message.deviceManage.rules.devName'), trigger: "blur" },
- { required: true, message: this.$t('message.deviceManage.rules.devName'), trigger: "change" }
- ], installAddrType: [
- { required: true, message: this.$t('message.deviceManage.message2'), trigger: "change" } // 请选择安装位置
- ], installAddress: [
- { required: true, message: this.$t('message.deviceManage.message3'), trigger: "blur" } // 请输入安装地址
- ]
+ { required: true, message: this.$t('message.deviceManage.rules.devName'), trigger: 'blur' },
+ { required: true, message: this.$t('message.deviceManage.rules.devName'), trigger: 'change' }
+ ],
+ // installAddrType: [
+ // { required: true, message: this.$t('message.deviceManage.message2'), trigger: 'change' } // 请选择安装位置
+ // ],
+ // installAddress: [
+ // { required: true, message: this.$t('message.deviceManage.message3'), trigger: 'blur' } // 请输入安装地址
+ // ]
},
options: [
/*{realName: "曾祥万", value: 1},
@@ -244,7 +164,11 @@ export default {
show: false
},
// '生活区','施工现场','配电房'
- addressArr: [this.$t('message.deviceManage.addressArr[0]'), this.$t('message.deviceManage.addressArr[1]'), this.$t('message.deviceManage.addressArr[2]')]
+ addressArr: [
+ this.$t('message.deviceManage.addressArr[0]'),
+ this.$t('message.deviceManage.addressArr[1]'),
+ this.$t('message.deviceManage.addressArr[2]')
+ ]
}
},
methods: {
@@ -252,99 +176,103 @@ export default {
// 配电箱对接协议
window.open('/doc/' + this.$t('message.deviceManage.disBoxAgreement') + '.docx')
},
- handle(type, show) {//打开弹窗前的统一处理
+ handle(type, show) {
+ //打开弹窗前的统一处理
this.Popup = {
type: type,
show: show
}
},
- Change() {
- },
+ Change() {},
add() {
this.close()
- this.handle('add', true);
+ this.handle('add', true)
},
edit(obj) {
- console.log('编辑', obj);
- this.addEditForm = JSON.parse(JSON.stringify(obj));
+ console.log('编辑', obj)
+ this.addEditForm = JSON.parse(JSON.stringify(obj))
if (typeof obj.alarmPushWorkerId === 'string' && obj.alarmPushWorkerId != '') {
this.addEditForm.alarmPushWorkerId = obj.alarmPushWorkerId.split(',')
}
- this.handle('edit', true);
+ this.handle('edit', true)
},
deleteDev(obj) {
- console.log('删除', obj);
- this.$confirm(this.$t('message.personnelPosition.beaconManage.table.confirmText') + "【" + obj.devName + "】?", this.$t('message.personnelPosition.beaconManage.table.Tips'), {
- confirmButtonText: this.$t('message.personnelPosition.confirmButtonText'),
- cancelButtonText: this.$t('message.personnelPosition.cancelButtonText'),
- type: "warning",
- }).then(() => {
- electricalDevDelete({ id: obj.id }).then(result => {
- if (result.success) {
- this.$message.success(result.message);
- this.getList();
- }
+ console.log('删除', obj)
+ this.$confirm(
+ this.$t('message.personnelPosition.beaconManage.table.confirmText') + '【' + obj.devName + '】?',
+ this.$t('message.personnelPosition.beaconManage.table.Tips'),
+ {
+ confirmButtonText: this.$t('message.personnelPosition.confirmButtonText'),
+ cancelButtonText: this.$t('message.personnelPosition.cancelButtonText'),
+ type: 'warning'
+ }
+ )
+ .then(() => {
+ electricalDevDelete({ id: obj.id }).then(result => {
+ if (result.success) {
+ this.$message.success(result.message)
+ this.getList()
+ }
+ })
})
- }).catch(() => {
- });
+ .catch(() => {})
},
submit() {
- let params = JSON.parse(JSON.stringify(this.addEditForm));
+ let params = JSON.parse(JSON.stringify(this.addEditForm))
if (this.addEditForm.alarmPushWorkerId) {
- params.alarmPushWorkerId = this.addEditForm.alarmPushWorkerId.join(',');
+ params.alarmPushWorkerId = this.addEditForm.alarmPushWorkerId.join(',')
}
- params.projectSn = this.$store.state.projectSn;
+ params.projectSn = this.$store.state.projectSn
params.lockFactory = 1
- this.$refs.addEditForm.validate((valid) => {
+ this.$refs.addEditForm.validate(valid => {
if (valid) {
if (this.Popup.type === 'add') {
electricalDevAdd(params).then(result => {
if (result.success) {
- this.$message.success(result.message);
- this.getList();
+ this.$message.success(result.message)
+ this.getList()
}
})
} else if (this.Popup.type === 'edit') {
console.log('编辑信息', this.addEditForm)
electricalDevEdit(params).then(result => {
if (result.success) {
- this.$message.success(result.message);
- this.getList();
+ this.$message.success(result.message)
+ this.getList()
}
})
}
- this.Popup.show = false;
+ this.Popup.show = false
} else {
- return false;
+ return false
}
- });
+ })
},
refresh() {
- this.getList();
+ this.getList()
},
getList() {
electricalDevList({ projectSn: this.$store.state.projectSn }).then(result => {
if (result.success) {
- this.List = result.result;
- console.log('列表', result);
+ this.List = result.result
+ console.log('列表', result)
}
})
},
getLaborManagementList() {
getCrewListDataApi({ projectSn: this.$store.state.projectSn, workerName: '' }).then(result => {
if (result.success) {
- console.log('劳务人员', result);
- this.options = result.result;
+ console.log('劳务人员', result)
+ this.options = result.result
}
})
},
close() {
this.$nextTick(() => {
- this.$refs.addEditForm.clearValidate();
- this.addEditForm = {};
+ this.$refs.addEditForm.clearValidate()
+ this.addEditForm = {}
})
-
}
}
}
diff --git a/src/views/projectFront/edgeProtection/edgequtManagement.vue b/src/views/projectFront/edgeProtection/edgequtManagement.vue
index 03554839..7d66f593 100644
--- a/src/views/projectFront/edgeProtection/edgequtManagement.vue
+++ b/src/views/projectFront/edgeProtection/edgequtManagement.vue
@@ -277,31 +277,31 @@ export default {
trigger: 'change'
}
],
- location: [
- {
- required: true,
- message: '必填',
- trigger: 'blur'
- },
- {
- required: true,
- message: '必填',
- trigger: 'change'
- }
- ],
+ // location: [
+ // {
+ // required: true,
+ // message: '必填',
+ // trigger: 'blur'
+ // },
+ // {
+ // required: true,
+ // message: '必填',
+ // trigger: 'change'
+ // }
+ // ],
- dutyTeamInfoId: [
- {
- required: true,
- message: '必填',
- trigger: 'blur'
- },
- {
- required: true,
- message: '必填',
- trigger: 'change'
- }
- ],
+ // dutyTeamInfoId: [
+ // {
+ // required: true,
+ // message: '必填',
+ // trigger: 'blur'
+ // },
+ // {
+ // required: true,
+ // message: '必填',
+ // trigger: 'change'
+ // }
+ // ],
},
options: [],
diff --git a/src/views/projectFront/engineerArchives/workingDraw.vue b/src/views/projectFront/engineerArchives/workingDraw.vue
index 729deba9..21e9b4dc 100644
--- a/src/views/projectFront/engineerArchives/workingDraw.vue
+++ b/src/views/projectFront/engineerArchives/workingDraw.vue
@@ -3,7 +3,7 @@
-
+
diff --git a/src/views/projectFront/pressureTestMachine/productData.vue b/src/views/projectFront/pressureTestMachine/productData.vue
index a0b9862b..d3c639e3 100644
--- a/src/views/projectFront/pressureTestMachine/productData.vue
+++ b/src/views/projectFront/pressureTestMachine/productData.vue
@@ -199,17 +199,17 @@
-
+
-
-
{{ 'item.tendonNumber' }}
-
{{ 'item.groutDirection' }}
-
{{ 'item.tendonNumber' }}
+
+
{{ item.tendonNumber }}
+
{{ item.loadForceValue }}
+
{{ item.flexuralAndCompressiveStrength }}
@@ -220,7 +220,13 @@