Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
fdd615ae
Commit
fdd615ae
authored
Jan 30, 2023
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户等级设置、客户信用等级设置支持国际化
https://zentao.test.jdshangmen.com/task-view-1388.html
parent
6a2085fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
index.vue
src/views/customer/levelRule/index.vue
+16
-2
No files found.
src/views/customer/levelRule/index.vue
View file @
fdd615ae
...
@@ -38,7 +38,11 @@
...
@@ -38,7 +38,11 @@
<!-- 列表 -->
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
:label=
"$t('主键')"
align=
"center"
prop=
"id"
/>
<el-table-column
:label=
"$t('主键')"
align=
"center"
prop=
"id"
/>
<el-table-column
:label=
"$t('规则名称')"
align=
"center"
prop=
"name"
/>
<el-table-column
:label=
"$t('规则名称')"
align=
"center"
prop=
"name"
>
<template
slot-scope=
"scope"
>
{{
isChinese
?
scope
.
row
.
name
:
scope
.
row
.
nameEn
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('规则分类')"
align=
"center"
prop=
"type"
>
<el-table-column
:label=
"$t('规则分类')"
align=
"center"
prop=
"type"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.CUSTOMER_LEVEL_RULE_TYPE"
:value=
"scope.row.type"
/>
<dict-tag
:type=
"DICT_TYPE.CUSTOMER_LEVEL_RULE_TYPE"
:value=
"scope.row.type"
/>
...
@@ -66,10 +70,13 @@
...
@@ -66,10 +70,13 @@
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
12
0px"
>
<el-form-item
:label=
"$t('规则名称')"
prop=
"name"
>
<el-form-item
:label=
"$t('规则名称')"
prop=
"name"
>
<el-input
v-model=
"form.name"
:placeholder=
"$t('请输入规则名称')"
/>
<el-input
v-model=
"form.name"
:placeholder=
"$t('请输入规则名称')"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('规则英文名称')"
prop=
"nameEn"
>
<el-input
v-model=
"form.nameEn"
:placeholder=
"$t('请输入规则英文名称')"
/>
</el-form-item>
<el-form-item
:label=
"$t('规则分类')"
prop=
"type"
>
<el-form-item
:label=
"$t('规则分类')"
prop=
"type"
>
<el-select
v-model=
"form.type"
:placeholder=
"$t('请选择规则分类')"
>
<el-select
v-model=
"form.type"
:placeholder=
"$t('请选择规则分类')"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.CUSTOMER_LEVEL_RULE_TYPE)"
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.CUSTOMER_LEVEL_RULE_TYPE)"
...
@@ -130,6 +137,7 @@ export default {
...
@@ -130,6 +137,7 @@ export default {
// 表单校验
// 表单校验
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则名称不能为空
'
),
trigger
:
"
blur
"
}],
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则名称不能为空
'
),
trigger
:
"
blur
"
}],
nameEn
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则英文名称不能为空
'
),
trigger
:
"
blur
"
}],
type
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则分类不能为空
'
),
trigger
:
"
change
"
}],
type
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则分类不能为空
'
),
trigger
:
"
change
"
}],
score
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则得分不能为空
'
),
trigger
:
"
blur
"
}],
score
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则得分不能为空
'
),
trigger
:
"
blur
"
}],
}
}
...
@@ -244,6 +252,12 @@ export default {
...
@@ -244,6 +252,12 @@ export default {
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
'
zh_CN
'
},
}
}
};
};
</
script
>
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment