+
+ 查看
-
-
- 查看
-
-
- 忽略
-
+
+ 忽略
+
-
-
- 修改初始密码
-
+
+
+ 修改初始密码
+
-
-
-
+
+
+
-
-
-
-
\ No newline at end of file
+
+
+
+
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
index 5ffa7cc..02141b2 100644
--- a/src/app/pages/home/home.component.ts
+++ b/src/app/pages/home/home.component.ts
@@ -94,10 +94,10 @@ export class HomeComponent implements OnInit {
}
- if(sessionStorage.getItem('isDefaultPassword') == 'true'){
+ if (sessionStorage.getItem('isDefaultPassword') == 'true' || sessionStorage.getItem('isPasswordExpired') == 'true') {
this.changePasswordPopup()
}
-
+
}
//初次登陆修改密码弹窗
@@ -113,6 +113,8 @@ export class HomeComponent implements OnInit {
} else {
if (this.passwordValidateForm.value.newpassword != this.passwordValidateForm.value.affirmpassword) {
this.message.create('warning', '两次密码输入不一致!');
+ } else if (this.passwordValidateForm.value.newpassword == this.passwordValidateForm.value.oldpassword) {
+ this.message.create('warning', '旧密码和新密码不能相同!');
} else {
this.isConfirmLoading = true;
let body = {
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 0c116c0..a8685d7 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -114,6 +114,7 @@ export class LoginComponent implements OnInit {
sessionStorage.setItem('userdata', JSON.stringify(data.result.user))
sessionStorage.setItem('userdataOfgasstation', JSON.stringify(data.result.user))
sessionStorage.setItem('isDefaultPassword', JSON.stringify(data.result.user.isDefaultPassword))
+ sessionStorage.setItem('isPasswordExpired', JSON.stringify(data.result.user.isPasswordExpired))
this.isLoading = false;
//记住密码
this.rememberInfo()
diff --git a/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts b/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts
index f954c94..d4a2b56 100644
--- a/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts
+++ b/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts
@@ -662,6 +662,28 @@ export class OilUnloadingProcessListComponent implements OnInit {
});
}
look(item) {
+
+ // console.log(item)
+ let arr = []
+ let arr1 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆进场' });
+ let arr2 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '设置卸油隔离区' });
+ let arr3 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油连接静电接地' });
+ let arr4 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油设置消防器材' });
+ let arr5 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '连接卸油管' });
+ let arr6 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油中无人监卸' });
+ let arr7 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '拆除卸油管' });
+ let arr8 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆离场' || item.nodeName == '车辆离厂' || item.nodeName == '车辆出厂' });
+ // console.log(1, arr1)
+ // console.log(2, arr2)
+ // console.log(3, arr3)
+ // console.log(4, arr4)
+ // console.log(5, arr5)
+ // console.log(6, arr6)
+ // console.log(7, arr7)
+ // console.log(8, arr8)
+ arr = [arr1, arr2, arr3, arr4, arr5, arr6, arr7, arr8]
+ console.log('卸油流程', arr)
+
const modal = this.modal.create({
nzContent: OilUnloadingProcessComponent,
nzViewContainerRef: this.viewContainerRef,
@@ -674,7 +696,7 @@ export class OilUnloadingProcessListComponent implements OnInit {
'background': '#000D21',
},
nzComponentParams: {
- data: item
+ data: arr
},
nzFooter: null,
nzOnOk: async () => {
diff --git a/src/app/pages/oil-unloading-process/oil-unloading-process.component.html b/src/app/pages/oil-unloading-process/oil-unloading-process.component.html
index 14dc51f..4954387 100644
--- a/src/app/pages/oil-unloading-process/oil-unloading-process.component.html
+++ b/src/app/pages/oil-unloading-process/oil-unloading-process.component.html
@@ -14,28 +14,28 @@