wip
This commit is contained in:
parent
dda399f1db
commit
9ebe2f604e
|
|
@ -68,6 +68,17 @@
|
||||||
<el-input v-model="dialog.form.password" placeholder="密码"></el-input>
|
<el-input v-model="dialog.form.password" placeholder="密码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="语言">
|
||||||
|
<el-select v-model="dialog.form.locale" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="language in source.languages"
|
||||||
|
:key="language.code"
|
||||||
|
:label="language.name"
|
||||||
|
:value="language.code">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="角色" prop="roles">
|
<el-form-item label="角色" prop="roles">
|
||||||
<el-checkbox-group v-model="dialog.form.roles">
|
<el-checkbox-group v-model="dialog.form.roles">
|
||||||
<el-checkbox v-for="roles, index in source.roles" :label="roles.id">@{{roles.name}}</el-checkbox>
|
<el-checkbox v-for="roles, index in source.roles" :label="roles.id">@{{roles.name}}</el-checkbox>
|
||||||
|
|
@ -93,7 +104,9 @@
|
||||||
|
|
||||||
source: {
|
source: {
|
||||||
all_tax_rates: @json($all_tax_rates ?? []),
|
all_tax_rates: @json($all_tax_rates ?? []),
|
||||||
roles: @json($admin_roles ?? [])
|
roles: @json($admin_roles ?? []),
|
||||||
|
languages: @json($admin_languages ?? []),
|
||||||
|
{{-- language: @json($admin_language ?? 'en'), --}}
|
||||||
},
|
},
|
||||||
|
|
||||||
dialog: {
|
dialog: {
|
||||||
|
|
@ -104,6 +117,7 @@
|
||||||
id: null,
|
id: null,
|
||||||
name: '',
|
name: '',
|
||||||
email: '',
|
email: '',
|
||||||
|
locale: @json($admin_language ?? 'en'),
|
||||||
password: '',
|
password: '',
|
||||||
roles: [],
|
roles: [],
|
||||||
},
|
},
|
||||||
|
|
@ -176,6 +190,7 @@
|
||||||
closeCustomersDialog(form) {
|
closeCustomersDialog(form) {
|
||||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||||
this.dialog.form.roles = [];
|
this.dialog.form.roles = [];
|
||||||
|
this.dialog.form.locale = @json($admin_language ?? 'en');
|
||||||
this.dialog.show = false
|
this.dialog.show = false
|
||||||
this.$refs[form].resetFields();
|
this.$refs[form].resetFields();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
name: @json($customer['name']),
|
name: @json($customer['name']),
|
||||||
email: @json($customer['email']),
|
email: @json($customer['email']),
|
||||||
password: '',
|
password: '',
|
||||||
customer_group_id: 1,
|
customer_group_id: @json($customer['customer_group_id']),
|
||||||
status: @json($customer['status']) * 1,
|
status: @json($customer['status']) * 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue