liuzhihui 2 anos atrás
pai
commit
72b3cf3f76

+ 5 - 0
CallCenterWeb.UI/RMYY/src/views/login/changeDept.vue

@@ -63,6 +63,11 @@
63 63
              this.$parent.$layer.close(this.layerid);
64 64
              this.$parent.$message.success(res.message)
65 65
              this.onchangedept = ""
66
+             this.$store.dispatch("GetInfo").then((res) => {
67
+               // const data = res.data;
68
+               // window.localStorage.setItem("storageUsertx", data.User.F_See);
69
+               // this.$parent.upDataUsertx();
70
+             });
66 71
            }
67 72
          })
68 73
        },

+ 0 - 9
CallCenterWeb.UI/RMYYAPP/pages.json

@@ -289,15 +289,6 @@
289 289
             }
290 290
             
291 291
         }
292
-        ,{
293
-            "path" : "pages/login/changeDept/changeDept",
294
-            "style" :                                                                                    
295
-            {
296
-                "navigationBarTitleText": "",
297
-                "enablePullDownRefresh": false
298
-            }
299
-            
300
-        }
301 292
     ],
302 293
     "globalStyle": {
303 294
         "navigationBarTextStyle": "white",

+ 0 - 112
CallCenterWeb.UI/RMYYAPP/pages/login/changeDept/changeDept.vue

@@ -1,112 +0,0 @@
1
-<template>
2
-	<page-meta :root-font-size="getFontSizeValue"></page-meta>
3
-	<view class="wrapper">
4
-		<view class="form">
5
-			<uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData">
6
-				<table class="equipmentInfo">
7
-					<thead style="background-color: #fafafa;">
8
-						<tr class="trCon">
9
-							<td class="tdCon">耗材名称</td>
10
-							<td class="tdCon">规格型号</td>
11
-						</tr>
12
-					</thead>
13
-					<tbody>
14
-						<tr class="trCon" v-for="item in equipmentCon">
15
-							<td class="tdCon">
16
-								<uni-easyinput v-model="item.F_EquipAmount" placeholder="请输入数量" clear="false" @change="getAllprice(item)"/>
17
-							</td>
18
-							<td class="tdCon">{{item.F_EquipAllPrice}}</td>
19
-						</tr>
20
-					</tbody>
21
-				</table>
22
-			</uni-forms>
23
-			<view class="btnClass">
24
-				<button type="primary" :disabled="disabledButton" @click="submit('valiForm')">提交</button>
25
-			</view>
26
-
27
-		</view>
28
-	</view>
29
-</template>
30
-
31
-<script>
32
-	import upload from '@/pages/components/upload/upload.vue' //upload
33
-	export default {
34
-		components: {
35
-			upload
36
-		},
37
-		data() {
38
-			return {
39
-				showBeforePic: 0,
40
-				getFontSizeValue:'1rem',
41
-				equipmentCon:[]
42
-			}
43
-		},
44
-		onLoad(option) {
45
-			
46
-			// this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
47
-			// this.valiFormData.workorderid = option.wid
48
-			// this.showBeforePic = option.showBeforePic
49
-			// this.getEquipment()
50
-			// this.getExceptionType()
51
-		},
52
-		methods: {
53
-			
54
-		}
55
-	}
56
-</script>
57
-
58
-<style lang="scss">
59
-	@import '@/common/addFormDeep.scss';
60
-	/deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text[data-v-84d5d996] {
61
-		margin-top: -3px !important;
62
-	    line-height: 18px !important;
63
-	}
64
-	/deep/ .uni-data-checklist[data-v-84d5d996] {
65
-		margin-top: 7px !important;
66
-	}
67
-
68
-	.wrapper {
69
-		padding: 10px 15px;
70
-		background-color: #fff;
71
-
72
-		.form {
73
-			.uni-stat__select {
74
-				display: block;
75
-				align-items: center;
76
-				padding: 0px;
77
-				cursor: pointer;
78
-				width: 80%;
79
-			}
80
-			.equipmentInfo{
81
-				width: 100%;
82
-				margin-top: 15px;
83
-				border: 1px solid rgb(229, 229, 229);
84
-				box-shadow: 0px 4px 16px 0px rgba(69, 91, 99, 0.05);
85
-				margin-bottom: 20px;
86
-				border-radius: 5px;
87
-				
88
-				.trCon {
89
-					width: 100%;
90
-					font-size: 14px;
91
-				
92
-					.tdCon {
93
-						display: inline-block;
94
-						padding: 10px 0px;
95
-						color: rgb(102, 102, 102);
96
-						width: 16%;
97
-						padding-right: 5px;
98
-						text-align: center;
99
-					}
100
-				
101
-					.tdCon:nth-child(1) {
102
-						width: 20%;
103
-				
104
-					}
105
-				}
106
-				
107
-			}
108
-		}
109
-
110
-	}
111
-</style>
112
--->

+ 4 - 4
CallCenterWeb.UI/RMYYAPP/pages/myTask/myTask.vue

@@ -134,10 +134,10 @@
134 134
 					deptId:this.onchangedept,
135 135
 					userid:uni.getStorageSync('userId')
136 136
 				}
137
-				this.$http.get('UserAccount/ChangeDeptId', params).then(res=>{
138
-					if(res.state == "success"){
139
-						this.$mHelper.toast(res.message);
140
-						this.$refs.inputDialogs.close()
137
+				this.$mStore.dispatch("GetInfo").then((e)=>{
138
+					if(e.data.Dept){
139
+						uni.setStorageSync('deptId', e.data.Dept.F_DeptId)
140
+						uni.setStorageSync('deptName', e.data.Dept.F_DeptName)
141 141
 					}
142 142
 				})
143 143
 			},

+ 6 - 16
CallCenterWeb.UI/RMYYAPP/pages/setting/setting.vue

@@ -51,22 +51,6 @@
51 51
 								<uni-td align="center">{{ $mHelper.findParents(departList, item.deptid) }}</uni-td>
52 52
 							</uni-tr>
53 53
 						</uni-table>
54
-						<!-- <table class="equipmentInfo">
55
-							<thead style="background-color: #fafafa;">
56
-								<tr class="trCon">
57
-									<td class="tdCon">请选择</td>
58
-									<td class="tdCon">科室</td>
59
-								</tr>
60
-							</thead>
61
-							<tbody>
62
-								<tr class="trCon" v-for="item in allowData">
63
-									<td class="tdCon">
64
-										
65
-									</td>
66
-									<td class="tdCon">{{ $mHelper.findParents(departList, item.deptid)}}</td>
67
-								</tr>
68
-							</tbody>
69
-						</table> -->
70 54
 					</view>
71 55
 				</uni-popup-dialog>
72 56
 			</uni-popup>
@@ -141,6 +125,12 @@
141 125
 					if(res.state == "success"){
142 126
 						this.$mHelper.toast(res.message);
143 127
 						this.$refs.inputDialogs.close()
128
+						this.$mStore.dispatch("GetInfo").then((e)=>{
129
+							if(e.data.Dept){
130
+								uni.setStorageSync('deptId', e.data.Dept.F_DeptId)
131
+								uni.setStorageSync('deptName', e.data.Dept.F_DeptName)
132
+							}
133
+						})
144 134
 					}
145 135
 				})
146 136
 			},