Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
rex
portalhtml
Commits
f84e43c8
Commit
f84e43c8
authored
Oct 14, 2021
by
qinj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://120.25.63.219:6088/rex/portalhtml
into dev
parents
32ffa065
f64b5c9a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
316 additions
and
15 deletions
+316
-15
lov-data.js
src/api/lov-data.js
+7
-4
customers.js
src/router/modules/customers.js
+10
-5
index.vue
src/views/customers/customers-add/index.vue
+3
-3
index.vue
src/views/customers/customers-overview/index.vue
+7
-2
constant.js
src/views/customers/municipal-agentList/constant.js
+79
-0
index.vue
src/views/customers/municipal-agentList/index.vue
+64
-0
constant.js
src/views/customers/provincial-agentList/constant.js
+79
-0
index.vue
src/views/customers/provincial-agentList/index.vue
+65
-0
index.vue
src/views/login/index.vue
+2
-1
No files found.
src/api/lov-data.js
View file @
f84e43c8
...
@@ -181,22 +181,25 @@ export default {
...
@@ -181,22 +181,25 @@ export default {
Status
:
{
Status
:
{
label
:
'状态'
,
label
:
'状态'
,
type
:
'input'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
},
Name
:
{
Name
:
{
label
:
'公司名称'
,
label
:
'公司名称'
,
type
:
'input'
,
type
:
'input'
,
layout
:
1
2
layout
:
1
4
},
},
OperName
:
{
OperName
:
{
label
:
'法人'
,
label
:
'法人'
,
type
:
'input'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
},
CreditCode
:
{
CreditCode
:
{
label
:
'社会统一信用代码'
,
label
:
'社会统一信用代码'
,
type
:
'input'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
},
}
}
}
}
...
...
src/router/modules/customers.js
View file @
f84e43c8
...
@@ -48,12 +48,17 @@ const customersRouter = {
...
@@ -48,12 +48,17 @@ const customersRouter = {
hidden
:
true
,
hidden
:
true
,
},
},
{
{
path
:
'/regular'
,
path
:
'/Provincial-agentList'
,
component
:
()
=>
import
(
'@/views/customers/regular-customers'
),
component
:
()
=>
import
(
'@/views/customers/provincial-agentList'
),
name
:
'RegularCustomers'
,
name
:
'ProvincialAgentList'
,
meta
:
{
title
:
'regularCustomers'
}
meta
:
{
title
:
'省级代理商'
}
},
{
path
:
'/Municipal-agentList'
,
component
:
()
=>
import
(
'@/views/customers/municipal-agentList'
),
name
:
'MunicipalAgentList'
,
meta
:
{
title
:
'市级代理商'
}
},
},
// {
// {
// path: 'resource',
// path: 'resource',
// meta: { title: '资源池管理' },
// meta: { title: '资源池管理' },
...
...
src/views/customers/customers-add/index.vue
View file @
f84e43c8
...
@@ -229,16 +229,16 @@ export default {
...
@@ -229,16 +229,16 @@ export default {
'formData.ExtSocialUnifiedCreditCode_SDK'
:
{
'formData.ExtSocialUnifiedCreditCode_SDK'
:
{
handler
(
newValue
)
{
handler
(
newValue
)
{
console
.
log
(
"单个属性监听"
,
newValue
)
console
.
log
(
"单个属性监听"
,
newValue
)
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
qccGetOne
({
searchKey
:
newValue
}).
then
(
res
=>
{
qccGetOne
({
searchKey
:
newValue
}).
then
(
res
=>
{
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
res
.
results
.
Result
.
RegistCapi
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
res
.
results
.
Result
.
RegistCapi
console
.
log
(
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
)
})
})
}
}
}
}
},
},
methods
:
{
methods
:
{
handleSubmit
(
data
)
{
handleSubmit
(
data
)
{
data
.
extCustomerType_SDK
=
'1
0
1'
data
.
extCustomerType_SDK
=
'1
2
1'
// this.addBtnStart = true
// this.addBtnStart = true
customerCreate
(
this
.
paramsToFormData
(
data
)).
then
(
res
=>
{
customerCreate
(
this
.
paramsToFormData
(
data
)).
then
(
res
=>
{
this
.
addBtnStart
=
true
this
.
addBtnStart
=
true
...
...
src/views/customers/customers-overview/index.vue
View file @
f84e43c8
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
v-bind=
"tableConfig"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:expand-params=
"expandParams"
:listeners=
"tableListeners"
:listeners=
"tableListeners"
:initialParams=
"initialParams"
@
handleSelectionChange=
"handleSelectionChange"
@
handleSelectionChange=
"handleSelectionChange"
/>
/>
</div>
</div>
...
@@ -38,7 +39,10 @@ export default {
...
@@ -38,7 +39,10 @@ export default {
return
{
return
{
expandParams
:
{},
// 筛选条件
expandParams
:
{},
// 筛选条件
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableConfig
:
constant
tableConfig
:
constant
,
initialParams
:
{
extCustomerType_SDK
:
"121"
}
}
}
},
},
created
()
{
created
()
{
...
@@ -57,7 +61,8 @@ export default {
...
@@ -57,7 +61,8 @@ export default {
// 添加
// 添加
handleAdd
()
{
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
this
.
$router
.
push
({
path
:
'/customersAdd'
})
}
},
handleSelectionChange
()
{}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/customers/municipal-agentList/constant.js
0 → 100644
View file @
f84e43c8
import
i18n
from
'@/lang'
import
{
customer
}
from
'@/api/customers'
const
tableConfig
=
{
url
:
customer
.
searchUrl
,
defaultColumns
:
{
minWidth
:
120
,
showOverflowTooltip
:
true
,
align
:
'center'
},
columns
:
{
ExtCustomerID_SDK
:
{
label
:
'代理商编码'
,
type
:
'input'
},
Name
:
{
label
:
'公司名称'
,
type
:
'input'
,
showInSearch
:
true
,
},
ExtCorporateName_SDK
:
{
label
:
'法定人代表'
,
type
:
'input'
},
ExtSocialUnifiedCreditCode_SDK
:
{
label
:
'统一社会信用代码'
,
type
:
'input'
},
CreationOn
:
{
label
:
'注册时间'
,
type
:
'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle
:
{
label
:
'操作'
,
fixed
:
'right'
,
minWidth
:
100
,
hideInFilter
:
true
,
renderItem
:
(
h
,
scope
,
listeners
)
=>
{
return
h
(
'div'
,
[
h
(
'el-button'
,
{
on
:
{
click
:
(
e
)
=>
listeners
.
handleEdit
(
scope
.
row
,
'edit'
)
},
props
:
{
icon
:
'el-icon-edit-outline'
,
type
:
'text'
}
},
i18n
.
t
(
'table.edit'
)),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export
default
tableConfig
src/views/customers/municipal-agentList/index.vue
0 → 100644
View file @
f84e43c8
<
template
>
<div
class=
"app-container"
>
<ele-search
:columns=
"tableConfig.columns"
@
handleSearch=
"handleSearch"
@
handleReset=
"handleReset"
@
handleFilter=
"handleFilter"
/>
<div
class=
"table-container"
>
<ele-table
ref=
"eleTable"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:listeners=
"tableListeners"
:initialParams=
"initialParams"
@
handleSelectionChange=
"handleSelectionChange"
/>
</div>
</div>
</
template
>
<
script
>
import
constant
from
'./constant'
import
tableMixin
from
'@/mixins/table'
export
default
{
mixins
:
[
tableMixin
],
inject
:
[
'reload'
],
data
()
{
return
{
expandParams
:
{},
// 筛选条件
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableConfig
:
constant
,
initialParams
:
{
extCustomerType_SDK
:
'111'
}
}
},
created
()
{
this
.
tableListeners
=
{
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit
:
this
.
handleEdit
,
// 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods
:
{
// 编辑
handleEdit
()
{
console
.
log
(
"编辑"
)
},
// 添加
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
},
handleSelectionChange
()
{
}
}
}
</
script
>
<
style
>
</
style
>
src/views/customers/provincial-agentList/constant.js
0 → 100644
View file @
f84e43c8
import
i18n
from
'@/lang'
import
{
customer
}
from
'@/api/customers'
const
tableConfig
=
{
url
:
customer
.
searchUrl
,
defaultColumns
:
{
minWidth
:
120
,
showOverflowTooltip
:
true
,
align
:
'center'
},
columns
:
{
ExtCustomerID_SDK
:
{
label
:
'代理商编码'
,
type
:
'input'
},
Name
:
{
label
:
'公司名称'
,
type
:
'input'
,
showInSearch
:
true
,
},
ExtCorporateName_SDK
:
{
label
:
'法定人代表'
,
type
:
'input'
},
ExtSocialUnifiedCreditCode_SDK
:
{
label
:
'统一社会信用代码'
,
type
:
'input'
},
CreationOn
:
{
label
:
'注册时间'
,
type
:
'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle
:
{
label
:
'操作'
,
fixed
:
'right'
,
minWidth
:
100
,
hideInFilter
:
true
,
renderItem
:
(
h
,
scope
,
listeners
)
=>
{
return
h
(
'div'
,
[
h
(
'el-button'
,
{
on
:
{
click
:
(
e
)
=>
listeners
.
handleEdit
(
scope
.
row
,
'edit'
)
},
props
:
{
icon
:
'el-icon-edit-outline'
,
type
:
'text'
}
},
i18n
.
t
(
'table.edit'
)),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export
default
tableConfig
src/views/customers/provincial-agentList/index.vue
0 → 100644
View file @
f84e43c8
<
template
>
<div
class=
"app-container"
>
<ele-search
:columns=
"tableConfig.columns"
@
handleSearch=
"handleSearch"
@
handleReset=
"handleReset"
@
handleFilter=
"handleFilter"
/>
<div
class=
"table-container"
>
<ele-table
ref=
"eleTable"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:listeners=
"tableListeners"
:initialParams=
"initialParams"
@
handleSelectionChange=
"handleSelectionChange"
/>
</div>
</div>
</
template
>
<
script
>
import
constant
from
'./constant'
import
tableMixin
from
'@/mixins/table'
export
default
{
mixins
:
[
tableMixin
],
inject
:
[
'reload'
],
data
()
{
return
{
expandParams
:
{},
// 筛选条件
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableConfig
:
constant
,
initialParams
:
{
extCustomerType_SDK
:
'101'
}
}
},
created
()
{
this
.
tableListeners
=
{
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit
:
this
.
handleEdit
,
// 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods
:
{
// 编辑
handleEdit
()
{
console
.
log
(
"编辑"
)
},
// 添加
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
},
handleSelectionChange
()
{
}
}
}
</
script
>
<
style
>
</
style
>
src/views/login/index.vue
View file @
f84e43c8
...
@@ -180,9 +180,10 @@ export default {
...
@@ -180,9 +180,10 @@ export default {
extPassword_SDK
:
this
.
loginForm
.
password
extPassword_SDK
:
this
.
loginForm
.
password
}
}
this
.
$store
.
dispatch
(
'user/login'
,
params
)
this
.
$store
.
dispatch
(
'user/login'
,
params
)
.
then
(
()
=>
{
.
then
(
res
=>
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
'/'
,
query
:
this
.
otherQuery
})
this
.
$router
.
push
({
path
:
this
.
redirect
||
'/'
,
query
:
this
.
otherQuery
})
this
.
loading
=
false
this
.
loading
=
false
console
.
log
(
res
)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
...
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