Elements-SY

modify

...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
355 { 355 {
356 required: true, 356 required: true,
357 message: "原始重量(KG)不能为空", 357 message: "原始重量(KG)不能为空",
358 - trigger: "change", 358 + trigger: ["change","blur"],
359 }, 359 },
360 ], 360 ],
361 }, 361 },
......
...@@ -153,11 +153,11 @@ export default { ...@@ -153,11 +153,11 @@ export default {
153 }); 153 });
154 }, 154 },
155 //用户详情 155 //用户详情
156 - userDetail(id) { 156 + userDetail(status, id) {
157 detailUser(id) 157 detailUser(id)
158 .then((res) => { 158 .then((res) => {
159 this.drawer = true; 159 this.drawer = true;
160 - this.drawerTitle = "修改用户"; 160 + this.drawerTitle = status == 0 ? "查看用户" : "修改用户";
161 if (res.code === 200) { 161 if (res.code === 200) {
162 this.userData = res.data; 162 this.userData = res.data;
163 this.userData.portName 163 this.userData.portName
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
180 }, 180 },
181 //查询修改用户 181 //查询修改用户
182 buttonClick(row, status) { 182 buttonClick(row, status) {
183 - this.userDetail(row.row.id); 183 + this.userDetail(status, row.row.id);
184 status == 0 184 status == 0
185 ? (this.userFormDisabled = true) 185 ? (this.userFormDisabled = true)
186 : (this.userFormDisabled = false); 186 : (this.userFormDisabled = false);
......