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
66748ead
Commit
66748ead
authored
Aug 10, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索调整
parent
290255a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
5 deletions
+31
-5
index.vue
src/views/ecw/exchangeRate/index.vue
+31
-5
No files found.
src/views/ecw/exchangeRate/index.vue
View file @
66748ead
...
@@ -4,13 +4,13 @@
...
@@ -4,13 +4,13 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
:label=
"$t('币种1')"
prop=
"sourceCurrencyId"
>
<el-form-item
:label=
"$t('币种1')"
prop=
"sourceCurrencyId"
>
<el-select
v-model=
"query
Params
.sourceCurrencyId"
:placeholder=
"$t('请选择币种')"
clearable
size=
"small"
>
<el-select
v-model=
"query.sourceCurrencyId"
:placeholder=
"$t('请选择币种')"
clearable
size=
"small"
>
<el-option
v-for=
"dict in currencyList"
<el-option
v-for=
"dict in currencyList"
:key=
"dict.id"
:label=
"$l(dict,'title') + dict.fuhao"
:value=
"dict.id"
/>
:key=
"dict.id"
:label=
"$l(dict,'title') + dict.fuhao"
:value=
"dict.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('币种2')"
prop=
"targetCurrencyId"
>
<el-form-item
:label=
"$t('币种2')"
prop=
"targetCurrencyId"
>
<el-select
v-model=
"query
Params
.targetCurrencyId"
:placeholder=
"$t('请选择币种')"
clearable
size=
"small"
>
<el-select
v-model=
"query.targetCurrencyId"
:placeholder=
"$t('请选择币种')"
clearable
size=
"small"
>
<el-option
v-for=
"dict in currencyList"
<el-option
v-for=
"dict in currencyList"
:key=
"dict.id"
:label=
"$l(dict,'title') + dict.fuhao"
:value=
"dict.id"
/>
:key=
"dict.id"
:label=
"$l(dict,'title') + dict.fuhao"
:value=
"dict.id"
/>
</el-select>
</el-select>
...
@@ -178,6 +178,19 @@ export default {
...
@@ -178,6 +178,19 @@ export default {
components
:
{
components
:
{
Template
Template
},
},
watch
:{
'
query.targetCurrencyId
'
(
val
){
if
(
!
val
){
this
.
queryParams
.
targetCurrencyId
=
undefined
}
},
'
query.sourceCurrencyId
'
(
val
){
if
(
!
val
){
this
.
queryParams
.
sourceCurrencyId
=
undefined
}
}
},
data
()
{
data
()
{
return
{
return
{
status
:
0
,
status
:
0
,
...
@@ -207,6 +220,10 @@ export default {
...
@@ -207,6 +220,10 @@ export default {
sourceCurrencyId
:
null
,
sourceCurrencyId
:
null
,
targetCurrencyId
:
null
,
targetCurrencyId
:
null
,
},
},
query
:{
sourceCurrencyId
:
null
,
targetCurrencyId
:
null
,
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
...
@@ -306,16 +323,25 @@ export default {
...
@@ -306,16 +323,25 @@ export default {
};
};
this.resetForm("form");
this.resetForm("form");
},
},
secondarySelection(){
this.queryParams.targetCurrencyId = this.query.targetCurrencyId
this.queryParams.sourceCurrencyId = this.query.sourceCurrencyId
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery() {
handleQuery() {
this.queryParams.page = 1;
this.queryParams.page = 1;
this.secondarySelection()
this.getList();
this.getList();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery() {
resetQuery() {
this.dateRangeCreateTime = [];
// this.dateRangeCreateTime = [];
this.resetForm("queryForm");
// this.resetForm("queryForm");
this.handleQuery();
// this.handleQuery();
this.query.targetCurrencyId = undefined
this.query.sourceCurrencyId = undefined
this.secondarySelection() //清空选中目标
this.getList();
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd() {
handleAdd() {
...
...
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