Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e2bf37b
authored
Jan 04, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加重置
1 parent
fdd05b09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
20 deletions
src/main.js
src/views/account/index.vue
src/main.js
View file @
4e2bf37
...
...
@@ -23,9 +23,10 @@ VueAMap.initAMapApiLoader({
});
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
Vue
.
prototype
.
size
=
'small'
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_config
=
params
=>
Vue
.
prototype
.
$http_config
(
params
)
...
...
src/views/account/index.vue
View file @
4e2bf37
<
template
>
<div
class=
"scrm-main"
>
<div
class=
"form-header"
v-if=
"$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"
>
<GLButton
@
click=
"handleContact"
icon=
"el-icon-link"
fn=
"门店账户关联企微"
type=
"primary"
size=
"small"
mode=
"el-button"
>
门店账户关联企微
</GLButton>
<div
class=
"form-header"
v-if=
"$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"
>
<GLButton
@
click=
"handleContact"
icon=
"el-icon-link"
fn=
"门店账户关联企微"
type=
"primary"
size=
"small"
mode=
"el-button"
>
门店账户关联企微
</GLButton>
<!--
<el-button
type=
"primary"
@
click=
"handleContact"
size=
"small"
icon=
"el-icon-link"
>
门店账户关联企微
</el-button
>
-->
>
-->
</div>
<div
class=
"follow-form"
>
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"follow-form-item"
label-width=
"90px"
>
<el-row>
<el-form-item
size=
"small"
label=
"关联企微"
>
<el-select
v-model=
"searchForm.isRelevance"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionsContact"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in optionsContact"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
class=
"merchant-row"
size=
"small"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantLoginAccount"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 1"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantLoginAccount"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 1"
>
<el-select
class=
"merchant-row-input"
size=
"small"
v-model=
"searchForm.accountOrPhone"
@
change=
"
...
...
@@ -30,8 +52,15 @@
<el-option
label=
"手机号"
:value=
"2"
></el-option>
</el-select>
</el-input>
<el-input
size=
"small"
v-model=
"searchForm.merchantLegalPersonPhone"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 2"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantLegalPersonPhone"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 2"
>
<el-select
class=
"merchant-row-input"
size=
"small"
v-model=
"searchForm.accountOrPhone"
slot=
"prepend"
...
...
@@ -48,48 +77,98 @@
</el-form-item>
<el-form-item
size=
"small"
label=
"账户状态"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in merchantStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
<el-option
v-for=
"item in merchantStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"账户等级"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantAccountLevel"
placeholder=
"请选择"
>
<el-option
v-for=
"item in accountLevel"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
<el-option
v-for=
"item in accountLevel"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item
class=
"merchant-wx"
size=
"small"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"商户号"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入商户号,仅限11位"
maxlength=
"11"
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.merchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入商户号,仅限11位"
maxlength=
"11"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px"
v-if=
"$globalState.session.accountLevel == 4"
>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px"
v-if=
"$globalState.session.accountLevel == 4"
>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
<el-row
v-if=
"$globalState.session.accountLevel != 4"
>
<el-form-item
size=
"small"
label=
"上级商户号"
>
<el-input
size=
"small"
v-model=
"searchForm.parentMerchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入上级商户号,仅限11位"
maxlength=
"11"
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.parentMerchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入上级商户号,仅限11位"
maxlength=
"11"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px"
>
<el-form-item
:size=
"size"
style=
"float: right; margin-right: 0px"
>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
slot=
"accountTypeNames"
slot-scope=
"scope"
>
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建子商户/门店
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建子商户/门店
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
</
template
>
</GLTable>
</div>
...
...
@@ -248,6 +327,14 @@ export default {
this
.
$refs
.
table
.
setTableHeightFun
()
}
})
},
handleReset
()
{
this
.
searchForm
=
{
accountOrPhone
:
1
,
merchantLegalPersonPhone
:
''
,
merchantLoginAccount
:
''
}
this
.
handleSearch
()
}
},
...
...
@@ -293,6 +380,13 @@ export default {
}
.merchant-row
{
margin-left
:
20px
;
&-input
{
/deep/
{
.el-input__inner
{
width
:
118px
!important
;
}
}
}
/
deep
/
{
.el-form-item__content
{
line-height
:
1
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment