From 047229b9b2305fa22d2506e292f1ca61e2c6ea6f Mon Sep 17 00:00:00 2001
From: kun <1422840143@qq.com>
Date: Wed, 22 May 2024 15:33:24 +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/account.js | 1 +
src/assets/js/http.js | 2 +-
src/store/index.js | 8 +-
.../projectFront/aiAnalysis/warningList.vue | 2 +-
.../safeWorkManage/safeWorkRules.vue | 114 +++++----
.../progressManagementAg/progressApproval.vue | 1 +
.../componentsModule/dataInfoFormData.vue | 218 ++++++++++++++++++
src/views/userCenter/userCenter/index.vue | 14 +-
8 files changed, 306 insertions(+), 54 deletions(-)
create mode 100644 src/views/userCenter/userCenter/componentsModule/dataInfoFormData.vue
diff --git a/src/assets/js/api/account.js b/src/assets/js/api/account.js
index 677260ea..9832bb2a 100644
--- a/src/assets/js/api/account.js
+++ b/src/assets/js/api/account.js
@@ -5,6 +5,7 @@ import {get,post} from '../http'
export const addSystemUserApi = data => post('xmgl/systemUser/add', data); //添加账号信息
export const editSystemUserApi = data => post('xmgl/systemUser/edit', data); //编辑账号信息
+export const getSystemUserInfoApi = data => post('xmgl/systemUser/queryById', data); //查询账号信息
export const deleteSystemUserApi = data => post('xmgl/systemUser/delete', data); //删除账号信息
export const getSystemUserBySnApi = data => post('xmgl/systemUser/getSystemUserBySn', data); //查找账号列表
export const getSystemUserBySnPageApi = data => post('xmgl/systemUser/getSystemUserBySnPage', data); //查找账号分页列表
diff --git a/src/assets/js/http.js b/src/assets/js/http.js
index 9ff3342f..bb3911a4 100644
--- a/src/assets/js/http.js
+++ b/src/assets/js/http.js
@@ -87,7 +87,7 @@ if (process.env.NODE_ENV == 'development') {
axios.defaults.baseURL ='http://192.168.34.221:19111/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
- axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
+ // axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
// axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目
diff --git a/src/store/index.js b/src/store/index.js
index cc275b4b..4804dff3 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -50,11 +50,11 @@ export default new Vuex.Store({
// FILEURL:' http://101.43.164.214:11111/image/',// 百色
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',
// FILEURL:'http://182.90.224.237:51234/image/',
- // UPLOADURL:'http://192.168.34.221:9111/upload/image/',// 郭圣雄本地
- // FILEURL:'http://192.168.34.221:9111/image/',//郭圣雄本地
- UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
- FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
+ UPLOADURL:'http://192.168.34.221:9111/upload/image/',// 郭圣雄本地
+ FILEURL:'http://192.168.34.221:9111/image/',//郭圣雄本地
WORKFLOWURL: 'http://192.168.34.138:88/#/workspace/forms',//坤工作流地址(本地)
+ // UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
+ // FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
// UPLOADURL:'http://jxj.zhgdyun.com:15551/upload/image',//测试
// FILEURL:'http://jxj.zhgdyun.com:15551/image/',//测试
diff --git a/src/views/projectFront/aiAnalysis/warningList.vue b/src/views/projectFront/aiAnalysis/warningList.vue
index b3bf3a66..38648ba7 100644
--- a/src/views/projectFront/aiAnalysis/warningList.vue
+++ b/src/views/projectFront/aiAnalysis/warningList.vue
@@ -413,7 +413,7 @@ export default {
// 打开处置弹窗
openDialog(item) {
this.addEditForm = JSON.parse(JSON.stringify(item))
- this.addEditForm.deductScore = item.aiDeductRule.deductScore
+ this.addEditForm.deductScore = item.aiDeductRule?item.aiDeductRule.deductScore:0
this.getPersonDetail(item.id)
this.recordShow = true
console.log('打开处置弹窗', item)
diff --git a/src/views/projectFront/laborManage/safeWorkManage/safeWorkRules.vue b/src/views/projectFront/laborManage/safeWorkManage/safeWorkRules.vue
index abefdacb..cf9c9cd6 100644
--- a/src/views/projectFront/laborManage/safeWorkManage/safeWorkRules.vue
+++ b/src/views/projectFront/laborManage/safeWorkManage/safeWorkRules.vue
@@ -3,8 +3,8 @@
+ >
+
+ {{ scope.row.type | typeText(rulesTypeList) }}
+
+
-
+ > -->
+
+
+
-
+
enterpriseChange(e,$index)"
+ @change="(e) => enterpriseChange(e, $index)"
>
删除
@@ -264,6 +276,12 @@ import {
export default {
data() {
return {
+ rulesTypeList: [
+ { name: "人员日常考勤", value: 1 },
+ { name: "每个项目自检任务", value: 2 },
+ { name: "一个月内缺勤超过", value: 3 },
+ { name: "一个月内迟到超过", value: 4 },
+ ],
pageInfo: {
total: 0,
pageNo: 1,
@@ -305,8 +323,14 @@ export default {
this.getDataList();
this.getProjectDetailFn();
},
+ filters: {
+ typeText(val, list) {
+ let findItem = list.find((item) => val == item.value);
+ return findItem ? findItem.name : "";
+ },
+ },
methods: {
- enterpriseChange(e,index) {
+ enterpriseChange(e, index) {
this.getPersonListFn(e);
this.dialogPushList[index].userId = [];
},
@@ -353,34 +377,38 @@ export default {
this.getEnterpriseListFn();
},
// 删除弹窗数据
- deleteDialogItem(obj) {
- this.$confirm("请确认是否删除?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- SafeWatchManagerDeleteApi({ id: obj.id }).then((res) => {
- if (res.success) {
- this.getDialogDataList();
- this.$message({
- type: "success",
- message: "删除成功!",
- });
- } else {
- this.$message({
- type: "error",
- message: res.message,
- });
- }
- });
+ deleteDialogItem(obj,index) {
+ if(obj.id){
+ this.$confirm("请确认是否删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
})
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消删除",
+ .then(() => {
+ SafeWatchManagerDeleteApi({ id: obj.id }).then((res) => {
+ if (res.success) {
+ this.getDialogDataList();
+ this.$message({
+ type: "success",
+ message: "删除成功!",
+ });
+ } else {
+ this.$message({
+ type: "error",
+ message: res.message,
+ });
+ }
+ });
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消删除",
+ });
});
- });
+ } else {
+ this.dialogPushList.splice(index,1)
+ }
},
// 切换弹窗保存
saveDialogForm(obj, index) {
@@ -407,7 +435,7 @@ export default {
},
// 切换弹窗编辑
editDialogForm(index) {
- console.log(this.dialogPushList[index])
+ console.log(this.dialogPushList[index]);
this.getPersonListFn(this.dialogPushList[index].enterpriseId);
if (this.dialogPushList[index].userId) {
this.dialogPushList[index].userId =
@@ -466,7 +494,7 @@ export default {
let reqeustData = {
projectSn: this.$store.state.projectSn,
enableWorkerSafeWatch: this.radioVal,
- workerSafeWatchTime: this.alarmTime
+ workerSafeWatchTime: this.alarmTime,
};
editProjectInfo(reqeustData).then((res) => {
if (res.success) {
@@ -497,9 +525,9 @@ export default {
// }
SafeWatchManagerListApi(requestData).then((res) => {
that.dialogPushList = [];
- res.result.map(item => {
- that.dialogPushList.push({...item,isEdit: false})
- })
+ res.result.map((item) => {
+ that.dialogPushList.push({ ...item, isEdit: false });
+ });
});
},
getDataList() {
@@ -516,9 +544,9 @@ export default {
SafeWatchConfigPageApi(requestData).then((res) => {
let responseData = [...res.result.records];
that.rulesList = [];
- responseData.map(item => {
- that.rulesList.push({...item,isEdit: false})
- })
+ responseData.map((item) => {
+ that.rulesList.push({ ...item, isEdit: false });
+ });
that.pageInfo.total = res.result.total;
});
},
diff --git a/src/views/projectFront/progressManagementAg/progressApproval.vue b/src/views/projectFront/progressManagementAg/progressApproval.vue
index 1dca580b..cf823ad6 100644
--- a/src/views/projectFront/progressManagementAg/progressApproval.vue
+++ b/src/views/projectFront/progressManagementAg/progressApproval.vue
@@ -140,6 +140,7 @@
prop="rejectReason"
align="center"
label="驳回原因"
+ show-overflow-tooltip
>
diff --git a/src/views/userCenter/userCenter/componentsModule/dataInfoFormData.vue b/src/views/userCenter/userCenter/componentsModule/dataInfoFormData.vue
new file mode 100644
index 00000000..2006b381
--- /dev/null
+++ b/src/views/userCenter/userCenter/componentsModule/dataInfoFormData.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+ {{
+ $store.state.userInfo.account
+ }}
+
+
+
+
+
+
+ 上传头像
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/userCenter/index.vue b/src/views/userCenter/userCenter/index.vue
index 8763d0f0..e1ec0dab 100644
--- a/src/views/userCenter/userCenter/index.vue
+++ b/src/views/userCenter/userCenter/index.vue
@@ -16,25 +16,29 @@
-
-
+
+
+