shanyunduo.cheng

样式优化

...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
35 }, 35 },
36 data() { 36 data() {
37 return { 37 return {
38 - title: 'FedEx管理系统', 38 + title: 'IMAC管理系统',
39 logo: logoImg 39 logo: logoImg
40 } 40 }
41 } 41 }
......
1 <template> 1 <template>
2 - <div style="margin: 40px"> 2 + <div style="margin: 40px" v-loading="loading">
3 <el-form 3 <el-form
4 ref="form" 4 ref="form"
5 :model="form" 5 :model="form"
...@@ -62,21 +62,25 @@ ...@@ -62,21 +62,25 @@
62 62
63 <el-form-item label="件数"> 63 <el-form-item label="件数">
64 <el-col :span="3"> 64 <el-col :span="3">
65 - <el-input v-model="form.minNumOfPieces"></el-input> 65 + <!-- <el-input v-model="form.minNumOfPieces"></el-input> -->
66 + <el-input-number v-model="form.minNumOfPieces == 0 ? form.minNumOfPieces = undefined : form.minNumOfPieces" :precision="0" :controls="false" style="width:100%"></el-input-number>
66 </el-col> 67 </el-col>
67 <el-col style="text-align: center" :span="1">-</el-col> 68 <el-col style="text-align: center" :span="1">-</el-col>
68 <el-col :span="3"> 69 <el-col :span="3">
69 - <el-input v-model="form.maxNumOfPieces"></el-input> 70 + <!-- <el-input v-model="form.maxNumOfPieces"></el-input> -->
71 + <el-input-number v-model="form.maxNumOfPieces == 0 ? form.maxNumOfPieces = undefined : form.maxNumOfPieces" :precision="0" :controls="false" style="width:100%"></el-input-number>
70 </el-col> 72 </el-col>
71 </el-form-item> 73 </el-form-item>
72 74
73 <el-form-item label="重量"> 75 <el-form-item label="重量">
74 <el-col :span="3"> 76 <el-col :span="3">
75 - <el-input v-model="form.minWeight"></el-input> 77 + <!-- <el-input v-model="form.minWeight"></el-input> -->
78 + <el-input-number v-model="form.minWeight == 0 ? form.minWeight = undefined : form.minWeight" :precision="2" :controls="false" style="width:100%"></el-input-number>
76 </el-col> 79 </el-col>
77 <el-col style="text-align: center" :span="1">-</el-col> 80 <el-col style="text-align: center" :span="1">-</el-col>
78 <el-col :span="3"> 81 <el-col :span="3">
79 - <el-input v-model="form.maxWeight"></el-input> 82 + <!-- <el-input v-model="form.maxWeight"></el-input> -->
83 + <el-input-number v-model="form.maxWeight == 0 ? form.maxWeight = undefined : form.maxWeight" :precision="2" :controls="false" style="width:100%"></el-input-number>
80 </el-col> 84 </el-col>
81 </el-form-item> 85 </el-form-item>
82 86
...@@ -166,6 +170,7 @@ export default { ...@@ -166,6 +170,7 @@ export default {
166 subCategory: [], 170 subCategory: [],
167 disable: false, 171 disable: false,
168 btnLoading: false, 172 btnLoading: false,
173 + loading: true,
169 }; 174 };
170 }, 175 },
171 methods: { 176 methods: {
...@@ -183,11 +188,11 @@ export default { ...@@ -183,11 +188,11 @@ export default {
183 this.formServiceCode = this.form.serviceCode; 188 this.formServiceCode = this.form.serviceCode;
184 this.formSubCategory = this.form.subCategory; 189 this.formSubCategory = this.form.subCategory;
185 updateOrAddFlight(this.form).then((response) => { 190 updateOrAddFlight(this.form).then((response) => {
186 - if (response.code === 200){ 191 + if (response.code === 200) {
187 this.$message({ 192 this.$message({
188 - message: '成功', 193 + message: "成功",
189 - type: 'success' 194 + type: "success",
190 - }); 195 + });
191 } 196 }
192 this.close(); 197 this.close();
193 }); 198 });
...@@ -196,7 +201,6 @@ export default { ...@@ -196,7 +201,6 @@ export default {
196 this.form.serviceCode = this.formServiceCode; 201 this.form.serviceCode = this.formServiceCode;
197 this.form.subCategory = this.formSubCategory; 202 this.form.subCategory = this.formSubCategory;
198 this.btnLoading = false; 203 this.btnLoading = false;
199 -
200 }, 204 },
201 close() { 205 close() {
202 this.$store.state.tagsView.visitedViews.splice( 206 this.$store.state.tagsView.visitedViews.splice(
...@@ -239,7 +243,10 @@ export default { ...@@ -239,7 +243,10 @@ export default {
239 info.serviceCode = info.serviceCode ? info.serviceCode.split(";") : []; 243 info.serviceCode = info.serviceCode ? info.serviceCode.split(";") : [];
240 info.subCategory = info.subCategory ? info.subCategory.split(";") : []; 244 info.subCategory = info.subCategory ? info.subCategory.split(";") : [];
241 this.form = info; 245 this.form = info;
246 + this.loading = false;
242 }); 247 });
248 + } else {
249 + this.loading = false;
243 } 250 }
244 }, 251 },
245 }; 252 };
......
1 <template> 1 <template>
2 <div class="login"> 2 <div class="login">
3 <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> 3 <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
4 - <h3 class="title">FedEx后台管理系统</h3> 4 + <h3 class="title">IMAC后台管理系统</h3>
5 <el-form-item prop="username"> 5 <el-form-item prop="username">
6 <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号"> 6 <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
7 <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" /> 7 <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
......