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
f57b806d
Commit
f57b806d
authored
Jan 31, 2023
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户等级设置、客户信用等级设置支持国际化
https://zentao.test.jdshangmen.com/task-view-1388.html
信用等级规则设置
parent
b2670c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
index.vue
src/views/customer/creditRule/index.vue
+16
-2
No files found.
src/views/customer/creditRule/index.vue
View file @
f57b806d
...
...
@@ -38,7 +38,11 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<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"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.CUSTOMER_CREDIT_RULE_TYPE"
:value=
"scope.row.type"
/>
...
...
@@ -66,10 +70,13 @@
<!-- 对话框(添加 / 修改) -->
<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-input
v-model=
"form.name"
:placeholder=
"$t('请输入规则名称')"
/>
</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-select
v-model=
"form.type"
:placeholder=
"$t('请选择规则分类')"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.CUSTOMER_CREDIT_RULE_TYPE)"
...
...
@@ -130,6 +137,7 @@ export default {
// 表单校验
rules
:
{
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则名称不能为空
'
),
trigger
:
"
blur
"
}],
nameEn
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则英文名称不能为空
'
),
trigger
:
"
blur
"
}],
type
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则分类不能为空
'
),
trigger
:
"
change
"
}],
score
:
[{
required
:
true
,
message
:
this
.
$t
(
'
规则得分不能为空
'
),
trigger
:
"
blur
"
}],
}
...
...
@@ -244,6 +252,12 @@ export default {
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
'
zh_CN
'
},
}
};
</
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