Commit 21d75ed24563013526ebc11b403cc32a35f5a89d

Authored by wuxw
1 parent 266b99a2

v1.9 解决张峰提出的问题

src/components/system/EditSystemInfo.vue
1 1 <template>
2   - <el-dialog :title="$t('systemInfo.editTitle')" :visible="visible" width="70%" :close-on-click-modal="false">
  2 + <el-dialog :title="$t('systemInfo.editTitle')" :visible="visible" width="70%" :close-on-click-modal="true" @close="close">
3 3 <el-form ref="form" :model="formData" label-width="150px" :rules="rules">
4 4 <el-row :gutter="20">
5 5 <el-col :span="12">
... ... @@ -64,14 +64,12 @@
64 64 <el-row :gutter="20">
65 65 <el-col :span="12">
66 66 <el-form-item :label="$t('systemInfo.propertyTitle')" prop="propertyTitle">
67   - <el-input v-model="formData.propertyTitle"
68   - />
  67 + <el-input v-model="formData.propertyTitle" />
69 68 </el-form-item>
70 69 </el-col>
71 70 <el-col :span="12">
72 71 <el-form-item :label="$t('systemInfo.qqMapKey')" prop="qqMapKey">
73   - <el-input v-model="formData.qqMapKey"
74   - />
  72 + <el-input v-model="formData.qqMapKey" />
75 73 </el-form-item>
76 74 </el-col>
77 75 </el-row>
... ... @@ -79,8 +77,7 @@
79 77 <el-row :gutter="20">
80 78 <el-col :span="12">
81 79 <el-form-item :label="$t('systemInfo.mallUrl')" prop="mallUrl">
82   - <el-input v-model="formData.mallUrl"
83   - />
  80 + <el-input v-model="formData.mallUrl" />
84 81 </el-form-item>
85 82 </el-col>
86 83 </el-row>
... ... @@ -88,7 +85,7 @@
88 85  
89 86 <div slot="footer" class="dialog-footer">
90 87 <el-button @click="visible = false">{{ $t('common.cancel') }}</el-button>
91   - <el-button type="primary" @click="submitForm">{{$t('common.save')}}</el-button>
  88 + <el-button type="primary" @click="submitForm">{{ $t('common.save') }}</el-button>
92 89  
93 90 </div>
94 91 </el-dialog>
... ... @@ -164,6 +161,9 @@ export default {
164 161 }
165 162 }
166 163 })
  164 + },
  165 + close() {
  166 + this.visible = false
167 167 }
168 168 }
169 169 }
... ...
src/router/index.js
... ... @@ -655,6 +655,10 @@ const routes = [
655 655 }
656 656 },
657 657 {
  658 + path: '/login',
  659 + redirect: '/views/user/login'
  660 + },
  661 + {
658 662 path: '/views/resource/printEquipmentAccountLabel',
659 663 name: '/views/resource/printEquipmentAccountLabel',
660 664 component: printEquipmentAccountLabel
... ...
src/views/layout/layout.vue
... ... @@ -315,6 +315,10 @@ export default {
315 315 },
316 316 _toIndex(){
317 317 location.href = '/'
  318 + },
  319 + _closeSubMenu(){
  320 + this.subMenus = []
  321 + this.curMenuName = ''
318 322 }
319 323  
320 324 }
... ...
src/views/system/systemInfoManageList.vue
... ... @@ -9,7 +9,7 @@
9 9 {{ $t('common.edit') }}
10 10 </el-button>
11 11 </div>
12   -
  12 +
13 13 <el-row :gutter="20">
14 14 <el-col :span="8">
15 15 <div class="info-item">
... ... @@ -91,11 +91,7 @@
91 91 </el-col>
92 92 </el-row>
93 93  
94   - <edit-system-info
95   - ref="editSystemInfoRef"
96   - :form-data="systemInfo"
97   - @success="handleEditSuccess"
98   - />
  94 + <edit-system-info ref="editSystemInfoRef" :form-data="systemInfo" @success="handleEditSuccess" />
99 95 </div>
100 96 </template>
101 97  
... ... @@ -160,16 +156,16 @@ export default {
160 156 <style lang="scss" scoped>
161 157 .system-info-manage-container {
162 158 padding: 20px;
163   -
  159 +
164 160 .info-item {
165 161 margin-bottom: 20px;
166 162 text-align: left;
167   -
  163 +
168 164 label {
169 165 margin-right: 10px;
170 166 }
171 167 }
172   -
  168 +
173 169 .float-right {
174 170 float: right;
175 171 }
... ...