|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div class="main_root">
|
3
|
3
|
<div class="search_header">
|
4
|
4
|
<Input
|
5
|
|
- v-model="searchForm.name"
|
|
5
|
+ v-model="searchForm.regionName"
|
6
|
6
|
placeholder="请输入区域名称"
|
7
|
7
|
search
|
8
|
8
|
@on-search="searchList()"
|
|
@@ -45,19 +45,19 @@
|
45
|
45
|
<Modal
|
46
|
46
|
class="modal1"
|
47
|
47
|
:mask-closable="false"
|
48
|
|
- v-model="areaInfo.show"
|
49
|
|
- :title="areaInfo.id ? '编辑' : '新建'"
|
|
48
|
+ v-model="regionInfo.show"
|
|
49
|
+ title="新建"
|
50
|
50
|
>
|
51
|
51
|
<Form
|
52
|
52
|
ref="addForm"
|
53
|
|
- :model="areaInfo"
|
|
53
|
+ :model="regionInfo"
|
54
|
54
|
:rules="rules"
|
55
|
55
|
:label-width="100"
|
56
|
56
|
inline
|
57
|
57
|
>
|
58
|
|
- <FormItem label="区域名称" prop="areaname" style="width: 100%">
|
|
58
|
+ <FormItem label="区域名称" prop="regionName" style="width: 100%">
|
59
|
59
|
<Input
|
60
|
|
- v-model="areaInfo.areaname"
|
|
60
|
+ v-model="regionInfo.regionName"
|
61
|
61
|
placeholder="请输入区域名称"
|
62
|
62
|
></Input>
|
63
|
63
|
</FormItem>
|
|
@@ -67,7 +67,7 @@
|
67
|
67
|
style="width: calc(50% - 10px)"
|
68
|
68
|
>
|
69
|
69
|
<Input
|
70
|
|
- v-model="areaInfo.admin"
|
|
70
|
+ v-model="regionInfo.admin.aname"
|
71
|
71
|
placeholder="请输入管理员名称"
|
72
|
72
|
></Input>
|
73
|
73
|
</FormItem>
|
|
@@ -77,18 +77,31 @@
|
77
|
77
|
style="width: calc(50% - 10px)"
|
78
|
78
|
>
|
79
|
79
|
<Input
|
80
|
|
- v-model="areaInfo.loginname"
|
|
80
|
+ v-model="regionInfo.admin.loginname"
|
81
|
81
|
placeholder="请输入登录账号"
|
82
|
82
|
></Input>
|
83
|
83
|
</FormItem>
|
84
|
|
- <FormItem label="密码" prop="pwd" style="width: calc(50% - 10px)">
|
85
|
|
- <Input v-model="areaInfo.pwd" placeholder="请输入密码"></Input>
|
|
84
|
+ <FormItem label="密码" prop="loginpwd" style="width: calc(50% - 10px)">
|
|
85
|
+ <Input
|
|
86
|
+ v-model="regionInfo.admin.loginpwd"
|
|
87
|
+ placeholder="请输入密码"
|
|
88
|
+ ></Input>
|
86
|
89
|
</FormItem>
|
87
|
|
- <FormItem label="确认密码" prop="pwd1" style="width: calc(50% - 10px)">
|
88
|
|
- <Input v-model="areaInfo.pwd1" placeholder="请输入确认密码"></Input>
|
|
90
|
+ <FormItem
|
|
91
|
+ label="确认密码"
|
|
92
|
+ prop="loginpwd1"
|
|
93
|
+ style="width: calc(50% - 10px)"
|
|
94
|
+ >
|
|
95
|
+ <Input
|
|
96
|
+ v-model="regionInfo.admin.loginpwd1"
|
|
97
|
+ placeholder="请输入确认密码"
|
|
98
|
+ ></Input>
|
89
|
99
|
</FormItem>
|
90
|
100
|
<FormItem label="手机号码" prop="phone" style="width: calc(50% - 10px)">
|
91
|
|
- <Input v-model="areaInfo.phone" placeholder="请输入手机号码"></Input>
|
|
101
|
+ <Input
|
|
102
|
+ v-model="regionInfo.admin.phone"
|
|
103
|
+ placeholder="请输入手机号码"
|
|
104
|
+ ></Input>
|
92
|
105
|
</FormItem>
|
93
|
106
|
<FormItem
|
94
|
107
|
label="短信验证码"
|
|
@@ -97,14 +110,14 @@
|
97
|
110
|
>
|
98
|
111
|
<Input
|
99
|
112
|
style="width: calc(100% - 102px)"
|
100
|
|
- v-model="areaInfo.code"
|
|
113
|
+ v-model="regionInfo.msgcode"
|
101
|
114
|
placeholder="请输入短信验证码"
|
102
|
115
|
></Input>
|
103
|
116
|
<div class="code_btn disabled">获取验证码</div>
|
104
|
117
|
</FormItem>
|
105
|
118
|
</Form>
|
106
|
119
|
<div slot="footer">
|
107
|
|
- <Button @click="areaInfo.show = false">取消</Button>
|
|
120
|
+ <Button @click="regionInfo.show = false">取消</Button>
|
108
|
121
|
<Button @click="saveAddInfo()" type="primary">保存</Button>
|
109
|
122
|
</div>
|
110
|
123
|
</Modal>
|
|
@@ -135,28 +148,28 @@ export default {
|
135
|
148
|
return {
|
136
|
149
|
date_format,
|
137
|
150
|
searchForm: {
|
138
|
|
- name: "",
|
|
151
|
+ regionName: "",
|
139
|
152
|
page: 1,
|
140
|
153
|
size: 10,
|
141
|
154
|
list: [],
|
142
|
155
|
total: 0
|
143
|
156
|
},
|
144
|
|
- // 新建/编辑
|
145
|
|
- areaInfo: {
|
|
157
|
+ // 新建
|
|
158
|
+ regionInfo: {
|
146
|
159
|
show: false,
|
147
|
|
- id: null,
|
148
|
|
- areaname: "",
|
149
|
|
- admin: "",
|
150
|
|
- loginname: "",
|
151
|
|
- pwd: "",
|
152
|
|
- pwd1: "",
|
153
|
|
- phone: "",
|
154
|
|
- code: ""
|
|
160
|
+ regionName: "",
|
|
161
|
+ admin: {
|
|
162
|
+ aname: "",
|
|
163
|
+ loginname: "",
|
|
164
|
+ loginpwd: "",
|
|
165
|
+ loginpwd1: "",
|
|
166
|
+ phone: ""
|
|
167
|
+ }
|
155
|
168
|
},
|
156
|
169
|
// 查看
|
157
|
170
|
viewInfo: {
|
158
|
171
|
show: false,
|
159
|
|
- areaname: "",
|
|
172
|
+ regionName: "",
|
160
|
173
|
list: [],
|
161
|
174
|
columns: [
|
162
|
175
|
{
|
|
@@ -183,7 +196,7 @@ export default {
|
183
|
196
|
]
|
184
|
197
|
},
|
185
|
198
|
rules: {
|
186
|
|
- areaname: [
|
|
199
|
+ regionName: [
|
187
|
200
|
{
|
188
|
201
|
required: true,
|
189
|
202
|
message: "请输入区域名称",
|
|
@@ -235,7 +248,7 @@ export default {
|
235
|
248
|
},
|
236
|
249
|
{
|
237
|
250
|
title: "区域名称",
|
238
|
|
- key: "areaname",
|
|
251
|
+ key: "regionName",
|
239
|
252
|
align: "center"
|
240
|
253
|
},
|
241
|
254
|
{
|
|
@@ -295,24 +308,24 @@ export default {
|
295
|
308
|
getList() {
|
296
|
309
|
this.searchForm.list = [
|
297
|
310
|
{
|
298
|
|
- id: 1,
|
299
|
|
- areaname: "区域一",
|
|
311
|
+ regionid: 1,
|
|
312
|
+ regionName: "区域一",
|
300
|
313
|
createname: "区域一",
|
301
|
314
|
createtime: 1710838418,
|
302
|
315
|
updatename: "区域一",
|
303
|
316
|
updatetime: 1710838430
|
304
|
317
|
},
|
305
|
318
|
{
|
306
|
|
- id: 2,
|
307
|
|
- areaname: "区域二",
|
|
319
|
+ regionid: 2,
|
|
320
|
+ regionName: "区域二",
|
308
|
321
|
createname: "区域一",
|
309
|
322
|
createtime: 1710838418,
|
310
|
323
|
updatename: "区域一",
|
311
|
324
|
updatetime: 1710838430
|
312
|
325
|
},
|
313
|
326
|
{
|
314
|
|
- id: 3,
|
315
|
|
- areaname: "区域三",
|
|
327
|
+ regionid: 3,
|
|
328
|
+ regionName: "区域三",
|
316
|
329
|
createname: "区域一",
|
317
|
330
|
createtime: 1710838418,
|
318
|
331
|
updatename: "区域一",
|
|
@@ -323,18 +336,18 @@ export default {
|
323
|
336
|
},
|
324
|
337
|
// 新建
|
325
|
338
|
toAdd() {
|
326
|
|
- this.areaInfo.show = true;
|
327
|
|
- this.areaInfo.areaname = "";
|
328
|
|
- this.areaInfo.admin = "";
|
329
|
|
- this.areaInfo.loginname = "";
|
330
|
|
- this.areaInfo.pwd = "";
|
331
|
|
- this.areaInfo.pwd1 = "";
|
332
|
|
- this.areaInfo.phone = "";
|
333
|
|
- this.areaInfo.code = "";
|
|
339
|
+ this.regionInfo.show = true;
|
|
340
|
+ this.regionInfo.regionName = "";
|
|
341
|
+ this.regionInfo.admin = "";
|
|
342
|
+ this.regionInfo.loginname = "";
|
|
343
|
+ this.regionInfo.pwd = "";
|
|
344
|
+ this.regionInfo.pwd1 = "";
|
|
345
|
+ this.regionInfo.phone = "";
|
|
346
|
+ this.regionInfo.code = "";
|
334
|
347
|
},
|
335
|
348
|
// 保存新建
|
336
|
349
|
saveAddInfo() {
|
337
|
|
- this.areaInfo.show = false;
|
|
350
|
+ this.regionInfo.show = false;
|
338
|
351
|
},
|
339
|
352
|
// 进入
|
340
|
353
|
toEnter() {
|
|
@@ -346,7 +359,7 @@ export default {
|
346
|
359
|
// 查看
|
347
|
360
|
toView() {
|
348
|
361
|
this.viewInfo.show = true;
|
349
|
|
- this.viewInfo.areaname = "河南星火燎原软件科技有限公司";
|
|
362
|
+ this.viewInfo.regionName = "河南星火燎原软件科技有限公司";
|
350
|
363
|
this.viewInfo.list = [
|
351
|
364
|
{
|
352
|
365
|
admin: "周文彦",
|
|
@@ -362,8 +375,8 @@ export default {
|
362
|
375
|
},
|
363
|
376
|
// 编辑
|
364
|
377
|
toEdit(row) {
|
365
|
|
- this.areaInfo.show = true;
|
366
|
|
- this.areaInfo.id = row.id;
|
|
378
|
+ this.regionInfo.show = true;
|
|
379
|
+ this.regionInfo.regionid = row.regionid;
|
367
|
380
|
},
|
368
|
381
|
// 删除
|
369
|
382
|
toDel() {
|