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