File tree Expand file tree Collapse file tree 20 files changed +64
-71
lines changed Expand file tree Collapse file tree 20 files changed +64
-71
lines changed Original file line number Diff line number Diff line change 31
31
</template >
32
32
33
33
<script >
34
- import * as Demo01ContactApi from ' @/api/infra/demo01'
34
+ import * as Demo01ContactApi from ' @/api/infra/demo01' ;
35
35
import ImageUpload from ' @/components/ImageUpload' ;
36
36
import Editor from ' @/components/Editor' ;
37
37
export default {
@@ -104,8 +104,7 @@ export default {
104
104
this .$modal .msgSuccess (" 新增成功" );
105
105
this .dialogVisible = false ;
106
106
this .$emit (' success' );
107
- // TODO @puhui999:少了一个空格
108
- }finally {
107
+ } finally {
109
108
this .formLoading = false ;
110
109
}
111
110
},
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" app-container" >
3
-
4
3
<!-- 搜索工作栏 -->
5
4
<el-form :model =" queryParams" ref =" queryForm" size =" small" :inline =" true" v-show =" showSearch" label-width =" 68px" >
6
5
<el-form-item label =" 名字" prop =" name" >
@@ -149,7 +148,7 @@ export default {
149
148
await this .$modal .confirm (' 是否确认删除示例联系人编号为"' + id + ' "的数据项?' )
150
149
try {
151
150
await Demo01ContactApi .deleteDemo01Contact (id);
152
- this .getList ();
151
+ await this .getList ();
153
152
this .$modal .msgSuccess (" 删除成功" );
154
153
} catch {}
155
154
},
Original file line number Diff line number Diff line change 7
7
<el-input v-model =" formData.name" placeholder =" 请输入名字" />
8
8
</el-form-item >
9
9
<el-form-item label =" 父级编号" prop =" parentId" >
10
- <!-- TODO puhui999:这里下面应该是 2 个空格 -->
11
10
<TreeSelect
12
- v-model =" formData.parentId"
13
- :options =" demo02CategoryTree"
14
- :normalizer =" normalizer"
15
- placeholder =" 请选择父级编号"
11
+ v-model =" formData.parentId"
12
+ :options =" demo02CategoryTree"
13
+ :normalizer =" normalizer"
14
+ placeholder =" 请选择父级编号"
16
15
/>
17
16
</el-form-item >
18
17
</el-form >
25
24
</template >
26
25
27
26
<script >
28
- import * as Demo02CategoryApi from ' @/api/infra/demo02'
27
+ import * as Demo02CategoryApi from ' @/api/infra/demo02' ;
29
28
import TreeSelect from " @riophae/vue-treeselect" ;
30
29
import " @riophae/vue-treeselect/dist/vue-treeselect.css" ;
31
30
export default {
@@ -72,8 +71,7 @@ export default {
72
71
}
73
72
}
74
73
this .title = " 新增示例分类" ;
75
- // TODO @puhui999:这里少了一个 await
76
- this .getDemo02CategoryTree ();
74
+ await this .getDemo02CategoryTree ();
77
75
},
78
76
/** 提交按钮 */
79
77
async submitForm () {
@@ -95,7 +93,7 @@ export default {
95
93
this .$modal .msgSuccess (" 新增成功" );
96
94
this .dialogVisible = false ;
97
95
this .$emit (' success' );
98
- }finally {
96
+ } finally {
99
97
this .formLoading = false ;
100
98
}
101
99
},
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" app-container" >
3
-
4
3
<!-- 搜索工作栏 -->
5
4
<el-form :model =" queryParams" ref =" queryForm" size =" small" :inline =" true" v-show =" showSearch" label-width =" 68px" >
6
5
<el-form-item label =" 名字" prop =" name" >
37
36
<right-toolbar :showSearch.sync =" showSearch" @queryTable =" getList" ></right-toolbar >
38
37
</el-row >
39
38
40
- <!-- TODO puhui999:这里下面应该是 2 个空格 -->
41
39
<el-table
42
40
v-loading =" loading"
43
41
:data =" list"
@@ -136,7 +134,7 @@ export default {
136
134
await this .$modal .confirm (' 是否确认删除示例分类编号为"' + id + ' "的数据项?' )
137
135
try {
138
136
await Demo02CategoryApi .deleteDemo02Category (id);
139
- this .getList ();
137
+ await this .getList ();
140
138
this .$modal .msgSuccess (" 删除成功" );
141
139
} catch {}
142
140
},
Original file line number Diff line number Diff line change 29
29
</template >
30
30
31
31
<script >
32
- import * as Demo03StudentApi from ' @/api/infra/demo03-erp'
32
+ import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
33
33
import Editor from ' @/components/Editor' ;
34
34
export default {
35
35
name: " Demo03StudentForm" ,
@@ -99,7 +99,7 @@ export default {
99
99
this .$modal .msgSuccess (" 新增成功" );
100
100
this .dialogVisible = false ;
101
101
this .$emit (' success' );
102
- }finally {
102
+ } finally {
103
103
this .formLoading = false ;
104
104
}
105
105
},
Original file line number Diff line number Diff line change 19
19
</template >
20
20
21
21
<script >
22
- import * as Demo03StudentApi from ' @/api/infra/demo03-erp'
22
+ import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
23
23
export default {
24
24
name: " Demo03CourseForm" ,
25
25
components: {
Original file line number Diff line number Diff line change 34
34
</template >
35
35
36
36
<script >
37
- import * as Demo03StudentApi from ' @/api/infra/demo03-erp'
38
- import Demo03CourseForm from ' ./Demo03CourseForm.vue'
37
+ import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
38
+ import Demo03CourseForm from ' ./Demo03CourseForm.vue' ;
39
39
export default {
40
40
name: " Demo03CourseList" ,
41
41
components: {
Original file line number Diff line number Diff line change 19
19
</template >
20
20
21
21
<script >
22
- import * as Demo03StudentApi from ' @/api/infra/demo03-erp'
22
+ import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
23
23
export default {
24
24
name: " Demo03GradeForm" ,
25
25
components: {
Original file line number Diff line number Diff line change 34
34
</template >
35
35
36
36
<script >
37
- import * as Demo03StudentApi from ' @/api/infra/demo03-erp'
38
- import Demo03GradeForm from ' ./Demo03GradeForm.vue'
37
+ import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
38
+ import Demo03GradeForm from ' ./Demo03GradeForm.vue' ;
39
39
export default {
40
40
name: " Demo03GradeList" ,
41
41
components: {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" app-container" >
3
-
4
3
<!-- 搜索工作栏 -->
5
4
<el-form :model =" queryParams" ref =" queryForm" size =" small" :inline =" true" v-show =" showSearch" label-width =" 68px" >
6
5
<el-form-item label =" 名字" prop =" name" >
93
92
<script >
94
93
import * as Demo03StudentApi from ' @/api/infra/demo03-erp' ;
95
94
import Demo03StudentForm from ' ./Demo03StudentForm.vue' ;
96
- import Demo03CourseList from ' ./components/Demo03CourseList.vue'
97
- import Demo03GradeList from ' ./components/Demo03GradeList.vue'
95
+ import Demo03CourseList from ' ./components/Demo03CourseList.vue' ;
96
+ import Demo03GradeList from ' ./components/Demo03GradeList.vue' ;
98
97
export default {
99
98
name: " Demo03Student" ,
100
99
components: {
@@ -169,7 +168,7 @@ export default {
169
168
await this .$modal .confirm (' 是否确认删除学生编号为"' + id + ' "的数据项?' )
170
169
try {
171
170
await Demo03StudentApi .deleteDemo03Student (id);
172
- this .getList ();
171
+ await this .getList ();
173
172
this .$modal .msgSuccess (" 删除成功" );
174
173
} catch {}
175
174
},
You can’t perform that action at this time.
0 commit comments