shanyunduo.cheng

样式

...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
14 ></el-input> 14 ></el-input>
15 </el-form-item> 15 </el-form-item>
16 <el-form-item label="状态"> 16 <el-form-item label="状态">
17 - <el-select v-model="queryParams.status" placeholder="状态" clearable > 17 + <el-select v-model="queryParams.status" placeholder="状态">
18 <el-option label="有效" value="1"></el-option> 18 <el-option label="有效" value="1"></el-option>
19 <el-option label="停用" value="3"></el-option> 19 <el-option label="停用" value="3"></el-option>
20 </el-select> 20 </el-select>
......
...@@ -12,17 +12,18 @@ ...@@ -12,17 +12,18 @@
12 <el-input 12 <el-input
13 v-model.trim="form.purposeOfFlightNo" 13 v-model.trim="form.purposeOfFlightNo"
14 style="width: 30%" 14 style="width: 30%"
15 + :disabled="nameDisabled"
15 ></el-input> 16 ></el-input>
16 </el-form-item> 17 </el-form-item>
17 18
18 - <el-form-item style="width: 40%"> 19 + <el-form-item >
19 <el-alert 20 <el-alert
20 title="提示:站点之间用回车符分隔" 21 title="提示:站点之间用回车符分隔"
21 type="warning" 22 type="warning"
22 show-icon 23 show-icon
23 size="small" 24 size="small"
24 :closable="false" 25 :closable="false"
25 - style="height: 30px" 26 + style="height: 30px;width:fit-content"
26 > 27 >
27 </el-alert> 28 </el-alert>
28 </el-form-item> 29 </el-form-item>
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
32 <!-- <el-alert title="提示:站点之间用回车符分隔" type="info" show-icon size="small" :closable="false" style="height:30px; margin-buttom"> </el-alert> --> 33 <!-- <el-alert title="提示:站点之间用回车符分隔" type="info" show-icon size="small" :closable="false" style="height:30px; margin-buttom"> </el-alert> -->
33 <el-input 34 <el-input
34 type="textarea" 35 type="textarea"
35 - v-model.trim="form.location" 36 + v-model="form.location"
36 :rows="6" 37 :rows="6"
37 resize="none" 38 resize="none"
38 ></el-input> 39 ></el-input>
...@@ -42,7 +43,7 @@ ...@@ -42,7 +43,7 @@
42 <el-form-item label="站点不包含"> 43 <el-form-item label="站点不包含">
43 <el-input 44 <el-input
44 type="textarea" 45 type="textarea"
45 - v-model.trim="form.notLocation" 46 + v-model="form.notLocation"
46 :rows="6" 47 :rows="6"
47 resize="none" 48 resize="none"
48 ></el-input> 49 ></el-input>
...@@ -50,14 +51,14 @@ ...@@ -50,14 +51,14 @@
50 </el-col> 51 </el-col>
51 </el-row> 52 </el-row>
52 53
53 - <el-form-item style="width: 40%"> 54 + <el-form-item >
54 <el-alert 55 <el-alert
55 title="提示:URSA之间用分号分隔,例:F2;F3;P_" 56 title="提示:URSA之间用分号分隔,例:F2;F3;P_"
56 type="warning" 57 type="warning"
57 show-icon 58 show-icon
58 size="small" 59 size="small"
59 :closable="false" 60 :closable="false"
60 - style="height: 30px" 61 + style="height: 30px;width:fit-content"
61 > 62 >
62 </el-alert> 63 </el-alert>
63 </el-form-item> 64 </el-form-item>
...@@ -247,6 +248,7 @@ export default { ...@@ -247,6 +248,7 @@ export default {
247 serviceCode: [], 248 serviceCode: [],
248 subCategory: [], 249 subCategory: [],
249 disable: false, 250 disable: false,
251 + nameDisabled:false,
250 btnLoading: false, 252 btnLoading: false,
251 loading: true, 253 loading: true,
252 }; 254 };
...@@ -322,7 +324,9 @@ export default { ...@@ -322,7 +324,9 @@ export default {
322 let dict = response.data; 324 let dict = response.data;
323 this.cargoType = dict.cargoType; 325 this.cargoType = dict.cargoType;
324 this.cargoStatus = dict.cargoStatus; 326 this.cargoStatus = dict.cargoStatus;
325 - this.serviceCode = dict.serviceCode.sort((a, b) => a.englishName.localeCompare(b.englishName)); 327 + this.serviceCode = dict.serviceCode.sort((a, b) =>
328 + a.englishName.localeCompare(b.englishName)
329 + );
326 this.subCategory = dict.subCategory; 330 this.subCategory = dict.subCategory;
327 }); 331 });
328 if (handle === "detail") { 332 if (handle === "detail") {
...@@ -330,6 +334,7 @@ export default { ...@@ -330,6 +334,7 @@ export default {
330 } 334 }
331 335
332 if (handle != "add") { 336 if (handle != "add") {
337 + this.nameDisabled = true;
333 let id = this.$route.params.id; 338 let id = this.$route.params.id;
334 339
335 if (isNaN(Number(id))) { 340 if (isNaN(Number(id))) {
...@@ -340,8 +345,7 @@ export default { ...@@ -340,8 +345,7 @@ export default {
340 message: response.msg, 345 message: response.msg,
341 type: "error", 346 type: "error",
342 }); 347 });
343 - reuturn; 348 + } else {
344 - }
345 let info = response.data; 349 let info = response.data;
346 info.typeOfGoods = info.typeOfGoods 350 info.typeOfGoods = info.typeOfGoods
347 ? info.typeOfGoods.split(";") 351 ? info.typeOfGoods.split(";")
...@@ -356,6 +360,7 @@ export default { ...@@ -356,6 +360,7 @@ export default {
356 ? info.subCategory.split(";") 360 ? info.subCategory.split(";")
357 : []; 361 : [];
358 this.form = info; 362 this.form = info;
363 + }
359 this.loading = false; 364 this.loading = false;
360 }); 365 });
361 } else { 366 } else {
...@@ -367,8 +372,7 @@ export default { ...@@ -367,8 +372,7 @@ export default {
367 message: response.msg, 372 message: response.msg,
368 type: "error", 373 type: "error",
369 }); 374 });
370 - reuturn; 375 + } else {
371 - }
372 let info = response.data.list; 376 let info = response.data.list;
373 info.typeOfGoods = info.typeOfGoods 377 info.typeOfGoods = info.typeOfGoods
374 ? info.typeOfGoods.split(";") 378 ? info.typeOfGoods.split(";")
...@@ -383,6 +387,7 @@ export default { ...@@ -383,6 +387,7 @@ export default {
383 ? info.subCategory.split(";") 387 ? info.subCategory.split(";")
384 : []; 388 : [];
385 this.form = info; 389 this.form = info;
390 + }
386 this.loading = false; 391 this.loading = false;
387 }); 392 });
388 } 393 }
......