1.新增马来语ms,修改有商品管理和所有接口返回
This commit is contained in:
@@ -2,6 +2,10 @@ export default {
|
||||
id: 'ID',
|
||||
title: 'Title',
|
||||
description: 'Description',
|
||||
title_en: 'Title (English)',
|
||||
description_en: 'Description (English)',
|
||||
title_ms: 'Title (Malay)',
|
||||
description_ms: 'Description (Malay)',
|
||||
remark: 'Remark',
|
||||
score: 'Points',
|
||||
type: 'Type',
|
||||
|
||||
@@ -2,6 +2,10 @@ export default {
|
||||
id: 'ID',
|
||||
title: '标题',
|
||||
description: '描述',
|
||||
title_en: '标题(英文)',
|
||||
description_en: '描述(英文)',
|
||||
title_ms: '标题(马来语)',
|
||||
description_ms: '描述(马来语)',
|
||||
remark: '备注',
|
||||
score: '兑换积分',
|
||||
type: '类型',
|
||||
|
||||
@@ -58,6 +58,46 @@ const baTable = new baTableClass(
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.title_en'),
|
||||
prop: 'title_en',
|
||||
align: 'center',
|
||||
minWidth: 90,
|
||||
show: false,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.description_en'),
|
||||
prop: 'description_en',
|
||||
align: 'center',
|
||||
minWidth: 90,
|
||||
show: false,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.title_ms'),
|
||||
prop: 'title_ms',
|
||||
align: 'center',
|
||||
minWidth: 90,
|
||||
show: false,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.description_ms'),
|
||||
prop: 'description_ms',
|
||||
align: 'center',
|
||||
minWidth: 90,
|
||||
show: false,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.score'),
|
||||
prop: 'score',
|
||||
@@ -189,6 +229,10 @@ const baTable = new baTableClass(
|
||||
defaultItems: {
|
||||
stock: 0,
|
||||
sort: 100,
|
||||
title_en: '',
|
||||
description_en: '',
|
||||
title_ms: '',
|
||||
description_ms: '',
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@@ -57,6 +57,40 @@
|
||||
@keyup.ctrl.enter="baTable.onSubmit(formRef)"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.description') })"
|
||||
/>
|
||||
<FormItem
|
||||
:label="t('mall.item.title_en')"
|
||||
type="string"
|
||||
v-model="baTable.form.items!.title_en"
|
||||
prop="title_en"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.title_en') })"
|
||||
/>
|
||||
<FormItem
|
||||
:label="t('mall.item.description_en')"
|
||||
type="textarea"
|
||||
v-model="baTable.form.items!.description_en"
|
||||
prop="description_en"
|
||||
:input-attr="{ rows: 3 }"
|
||||
@keyup.enter.stop=""
|
||||
@keyup.ctrl.enter="baTable.onSubmit(formRef)"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.description_en') })"
|
||||
/>
|
||||
<FormItem
|
||||
:label="t('mall.item.title_ms')"
|
||||
type="string"
|
||||
v-model="baTable.form.items!.title_ms"
|
||||
prop="title_ms"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.title_ms') })"
|
||||
/>
|
||||
<FormItem
|
||||
:label="t('mall.item.description_ms')"
|
||||
type="textarea"
|
||||
v-model="baTable.form.items!.description_ms"
|
||||
prop="description_ms"
|
||||
:input-attr="{ rows: 3 }"
|
||||
@keyup.enter.stop=""
|
||||
@keyup.ctrl.enter="baTable.onSubmit(formRef)"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.description_ms') })"
|
||||
/>
|
||||
<FormItem
|
||||
:label="t('mall.item.score')"
|
||||
type="number"
|
||||
|
||||
Reference in New Issue
Block a user