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
fe334527
Commit
fe334527
authored
Oct 19, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select组件
parent
b79a7d8a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1175 additions
and
1150 deletions
+1175
-1150
EleForm.vue
src/components/EleForm/EleForm.vue
+1116
-1108
EleFormSelect.vue
src/components/EleForm/components/EleFormSelect.vue
+24
-24
permission.js
src/store/modules/permission.js
+1
-1
index.vue
src/views/customers/customers-add/index.vue
+16
-4
area.vue
src/views/customers/customers-details/area.vue
+17
-13
index.vue
...ers/personal-customers/conponents/personal-info/index.vue
+1
-0
No files found.
src/components/EleForm/EleForm.vue
View file @
fe334527
...
...
@@ -605,6 +605,12 @@ export default {
Object
.
keys
(
val
).
forEach
(
key
=>
{
this
.
$set
(
this
.
formData
,
key
,
val
[
key
])
})
}
else
if
(
this
.
formDescData
[
field
].
type
===
'select'
&&
Object
.
prototype
.
toString
.
call
(
val
)
===
'[object Object]'
)
{
this
.
$set
(
this
.
formData
,
field
,
val
.
value
)
var
text
=
this
.
formDescData
[
field
].
value
if
(
text
)
{
this
.
$set
(
this
.
formData
,
text
,
val
.
text
)
}
}
else
{
this
.
$set
(
this
.
formData
,
field
,
val
)
}
...
...
@@ -656,9 +662,11 @@ export default {
// 保存现在的数据作为老数据
this
.
formDescData
[
field
].
_oldValue
[
'type-'
+
formItem
.
_type
]
=
formData
[
field
]
const
val
=
{
value
:
newVal
}
// 类型改变, 则删除原数据
this
.
handleChange
(
field
,
newVal
)
this
.
handleChange
(
field
,
val
)
this
.
setDefaultvalue
(
this
.
formDescData
[
field
],
field
)
}
...
...
src/components/EleForm/components/EleFormSelect.vue
View file @
fe334527
...
...
@@ -68,30 +68,30 @@ export default {
},
methods
:
{
// 变化处理
//
handleChange(value) {
//
var result = {}
//
if (!this.attrs.multiple) {
//
this.options.forEach(item => {
//
if (item.value === value) {
// result = item.value
//
}
//
})
//
} else {
//
result = {
//
value: [],
//
text: []
//
}
//
this.options.forEach(item => {
//
value.forEach(jtem => {
//
if (item.value === jtem) {
//
result.value.push(item.value)
//
result.text.push(item.text)
//
}
//
})
//
})
//
}
//
this.$emit('input', result)
//
},
handleChange
(
value
)
{
var
result
=
{}
if
(
!
this
.
attrs
.
multiple
)
{
this
.
options
.
forEach
(
item
=>
{
if
(
item
.
value
===
value
)
{
result
=
item
}
})
}
else
{
result
=
{
value
:
[],
text
:
[]
}
this
.
options
.
forEach
(
item
=>
{
value
.
forEach
(
jtem
=>
{
if
(
item
.
value
===
jtem
)
{
result
.
value
.
push
(
item
.
value
)
result
.
text
.
push
(
item
.
text
)
}
})
})
}
this
.
$emit
(
'input'
,
result
)
},
changeOptions
(
q
)
{
if
(
this
.
remoteMethod
)
{
this
.
loading
=
true
...
...
src/store/modules/permission.js
View file @
fe334527
...
...
@@ -98,7 +98,7 @@ const actions = {
var
permissions
=
[]
var
paths
=
[]
treeToArray
(
menus
,
permissions
,
paths
)
console
.
log
(
paths
)
//
console.log(paths)
localStorage
.
setItem
(
'PERMISSIONS'
,
JSON
.
stringify
(
permissions
))
localStorage
.
setItem
(
'PATHS'
,
JSON
.
stringify
(
paths
))
commit
(
'SET_PERMISSIONS'
,
permissions
)
...
...
src/views/customers/customers-add/index.vue
View file @
fe334527
...
...
@@ -76,7 +76,7 @@ export default {
type
:
'input'
,
label
:
'社会统一信用代码'
,
layout
:
12
,
disabled
:
t
his
.
displayBtn
disabled
:
t
rue
},
ExtRegisteredCapital_SDK
:
{
type
:
'input'
,
...
...
@@ -105,6 +105,10 @@ export default {
type
:
'select'
,
label
:
'省份'
,
layout
:
12
,
value
:
'ExtProvinceName_SDK'
,
attrs
:
{
multiple
:
false
},
options
:
async
data
=>
{
const
res
=
await
provinceSearch
({})
var
result
=
res
.
results
.
map
(
item
=>
{
...
...
@@ -122,6 +126,10 @@ export default {
label
:
'地市'
,
layout
:
12
,
isOptions
:
true
,
value
:
'ExtCityName_SDK'
,
attrs
:
{
multiple
:
false
},
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
options
:
async
data
=>
{
if
(
!
data
.
ExtProvince_SDK
)
{
...
...
@@ -145,6 +153,10 @@ export default {
label
:
'县市'
,
layout
:
12
,
isOptions
:
true
,
attrs
:
{
multiple
:
false
},
value
:
'ExtDistrictName_SDK'
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
,
'ExtCity_SDK'
],
options
:
async
data
=>
{
if
(
!
data
.
ExtCity_SDK
)
{
...
...
@@ -240,8 +252,8 @@ export default {
// ExtRegisteredCapital_SDK: {required: true, message: '注册资本必填' },
ExtCorporateName_SDK
:
{
required
:
true
,
message
:
'法人必填'
},
ExtProvince_SDK
:
{
required
:
true
,
message
:
'省份必填'
},
Ext
District_SDK
:
{
required
:
true
,
message
:
'城
市必填'
},
Ext
City
_SDK
:
{
required
:
true
,
message
:
'县区必填'
},
Ext
City_SDK
:
{
required
:
true
,
message
:
'地
市必填'
},
Ext
District
_SDK
:
{
required
:
true
,
message
:
'县区必填'
},
ExtLeader_SDK
:
{
required
:
true
,
message
:
'公司负责人姓名'
},
ExtLeaderPhone_SDK
:
{
required
:
true
,
message
:
'公司负责人联系方式'
},
ExtLeaderEmail_SDK
:
{
required
:
true
,
message
:
'公司负责人邮箱'
},
...
...
@@ -265,7 +277,7 @@ export default {
methods
:
{
handleSubmit
(
data
)
{
const
formData
=
this
.
$translateToC4CData
(
data
)
formData
.
extCustomerType_SDK
=
'121'
console
.
log
(
formData
)
this
.
loading
=
true
customerCreate
(
this
.
paramsToFormData
(
formData
)).
then
(
res
=>
{
this
.
addBtnStart
=
true
...
...
src/views/customers/customers-details/area.vue
View file @
fe334527
...
...
@@ -23,7 +23,7 @@
</el-button>
</div>
<div>
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowBtn=
'isShowBtn'
:isShowEditBtn=
"isShowEditBtn"
/>
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowBtn=
'isShowBtn'
:isShowEditBtn=
"isShowEditBtn"
@
showAuthentication=
"showStart"
/>
</div>
<!--
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowEditBtn=
'btn'
/>
-->
</div>
...
...
@@ -63,7 +63,7 @@ export default {
formData
:
{},
isShowSubmitBtn
:
false
,
isShowBackBtn
:
false
,
showAuthentication
:
fals
e
,
showAuthentication
:
tru
e
,
sections
:
[
{
title
:
'基本信息'
,
...
...
@@ -300,7 +300,7 @@ export default {
rules
:
{}
}
},
//
watch: {
watch
:
{
// 'formData.ExtSocialUnifiedCreditCode_SDK': {
// handler(newValue) {
// console.log("单个属性监听", newValue)
...
...
@@ -310,8 +310,9 @@ export default {
// })
// }
// }
//
},
},
created
()
{
console
.
log
(
this
.
$refs
)
this
.
getOneData
()
},
methods
:
{
...
...
@@ -331,6 +332,9 @@ export default {
});
return
formData
;
},
showStart
(
val
)
{
this
.
showAuthentication
=
val
},
getOneData
()
{
this
.
loading
=
true
const
dataId
=
this
.
$route
.
query
.
objectID
...
...
src/views/customers/personal-customers/conponents/personal-info/index.vue
View file @
fe334527
...
...
@@ -143,6 +143,7 @@ export default {
}
},
created
()
{
console
.
log
(
this
.
$refs
.
eleTable
)
this
.
tableConfig
.
columns
.
handle
.
vif
=
this
.
isShowBtn
constant
.
tableConfig
.
initialParams
=
{
BusinessObjectID
:
this
.
objectID
||
this
.
$route
.
query
.
objectID
,
...
...
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