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
38c7adeb
Commit
38c7adeb
authored
Oct 14, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附件上传功能
parent
9e814109
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
18 deletions
+23
-18
index.vue
...customers-add/components/customersAdd-accessory/index.vue
+3
-3
index.vue
src/views/customers/customers-add/index.vue
+1
-1
constant.js
src/views/public/file-info/constant.js
+7
-5
index.vue
src/views/public/file-info/index.vue
+12
-9
No files found.
src/views/customers/customers-add/components/customersAdd-accessory/index.vue
View file @
38c7adeb
...
...
@@ -37,9 +37,9 @@ export default {
},
objectId
:
{
handler
(
newVal
)
{
constant
.
tableConfig
.
initialParams
=
{
BusinessObjectID
:
newVal
}
//
constant.tableConfig.initialParams = {
//
BusinessObjectID: newVal
// }
},
immediate
:
true
,
deep
:
true
...
...
src/views/customers/customers-add/index.vue
View file @
38c7adeb
...
...
@@ -114,7 +114,7 @@ export default {
},
ExtCity_SDK
:
{
type
:
'select'
,
label
:
'
城
市'
,
label
:
'
地
市'
,
layout
:
12
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
...
...
src/views/public/file-info/constant.js
View file @
38c7adeb
...
...
@@ -2,7 +2,8 @@ import { file } from '@/api/customers'
const
tableConfig
=
{
tableTitle
:
'附件信息'
,
url
:
file
.
searchUrl
,
// url: file.searchUrl,
url
:
''
,
isSearch
:
true
,
defaultColumns
:
{
minWidth
:
120
,
...
...
@@ -65,10 +66,11 @@ const formConfig = {
// vif: false,
// label: '编码'
// },
// TypeCode: {
// vif: false,
// label: '类型'
// },
TypeCode
:
{
vif
:
false
,
label
:
'类型'
,
default
:
''
},
// Note: {
// label: '备注',
// type: 'textarea'
...
...
src/views/public/file-info/index.vue
View file @
38c7adeb
...
...
@@ -77,10 +77,10 @@ export default {
type
:
String
,
default
:
''
},
path
:
{
type
:
String
,
required
:
true
},
//
path: {
//
type: String,
//
required: true
//
},
objectID
:
{
type
:
String
,
default
:
''
...
...
@@ -118,7 +118,7 @@ export default {
constant
.
tableConfig
.
initialParams
.
ModuleType
=
this
.
moduleType
}
constant
.
formConfig
.
formDesc
.
TypeCode
.
default
=
this
.
typeCode
constant
.
formConfig
.
formDesc
.
Path
.
default
=
this
.
path
//
constant.formConfig.formDesc.Path.default = this.path
this
.
tableListeners
=
{
handleEdit
:
this
.
handleEdit
,
handleDownload
:
this
.
handleDownload
...
...
@@ -165,11 +165,11 @@ export default {
formData
.
append
(
'moduleType'
,
this
.
moduleType
)
}
this
.
fileList
.
forEach
((
item
)
=>
{
formData
.
append
(
'file
s
'
,
item
.
raw
)
formData
.
append
(
'file'
,
item
.
raw
)
})
if
(
this
.
fileList
.
length
>
0
)
{
formData
.
path
=
this
.
path
}
//
if (this.fileList.length > 0) {
//
formData.path = this.path
//
}
if
(
!
this
.
formData
.
ObjectID
)
{
const
businessObjectID
=
this
.
$route
.
query
.
objectID
||
this
.
tableConfig
.
initialParams
.
objectID
...
...
@@ -180,9 +180,11 @@ export default {
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
$message
.
success
(
'添加成功!'
)
this
.
tableConfig
.
url
=
'/search'
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
tableConfig
.
url
=
'/search'
})
}
else
{
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
...
...
@@ -190,6 +192,7 @@ export default {
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
$message
.
success
(
'修改成功!'
)
this
.
tableConfig
.
url
=
'/search'
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
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