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
03e21c7d
Commit
03e21c7d
authored
Oct 15, 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
5735600e
b8b7f243
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
128 additions
and
47 deletions
+128
-47
EleTable.vue
src/components/EleTable/EleTable.vue
+8
-0
index.vue
...customers-add/components/customersAdd-accessory/index.vue
+18
-14
index.vue
...rs/customers-add/components/customersAdd-adress/index.vue
+15
-13
index.vue
src/views/customers/customers-add/index.vue
+7
-4
constant.js
src/views/login/constant.js
+52
-0
index.vue
src/views/login/index.vue
+6
-8
constant.js
src/views/public/file-info/constant.js
+2
-2
index.vue
src/views/public/file-info/index.vue
+20
-6
No files found.
src/components/EleTable/EleTable.vue
View file @
03e21c7d
...
...
@@ -163,6 +163,14 @@ export default {
return
finalColumns
}
},
watch
:
{
url
:
{
handler
(
newVal
)
{
},
deep
:
true
}
},
created
()
{
// 根据url是否有值确定是否需要请求
if
(
this
.
url
)
{
...
...
src/views/customers/customers-add/components/customersAdd-accessory/index.vue
View file @
03e21c7d
<
template
>
<div
v-if=
"addBtnStart"
>
<FileTable
:type-code=
"typeCode"
:objectID=
'objectId'
/>
<div
>
<FileTable
:type-code=
"typeCode"
:objectID=
'objectId'
:form-data=
"$attrs['form-data']"
/>
</div>
</
template
>
...
...
@@ -13,10 +13,10 @@ export default {
FileTable
},
props
:
{
addBtnStart
:
{
type
:
Boolean
,
default
:
false
},
//
addBtnStart: {
//
type: Boolean,
//
default: false
//
},
objectId
:
{
type
:
String
,
default
:
''
...
...
@@ -24,17 +24,18 @@ export default {
},
data
()
{
return
{
typeCode
:
uploadCode
.
customer
typeCode
:
uploadCode
.
customer
,
// addBtnStart: false
}
},
watch
:
{
addBtnStart
:
{
handler
(
newVal
)
{
console
.
log
(
newVal
)
},
immediate
:
true
,
deep
:
true
},
//
addBtnStart: {
//
handler(newVal) {
//
console.log(newVal)
//
},
//
immediate: true,
//
deep: true
//
},
objectId
:
{
handler
(
newVal
)
{
// constant.tableConfig.initialParams = {
...
...
@@ -44,6 +45,9 @@ export default {
immediate
:
true
,
deep
:
true
}
},
created
()
{
// this.addBtnStart = this.$route.query.addBtnStart
}
}
</
script
>
...
...
src/views/customers/customers-add/components/customersAdd-adress/index.vue
View file @
03e21c7d
<
template
>
<div
v-if=
"addBtnStart"
>
<div>
<BusinessTable
v-bind=
"constant"
/>
</div>
</
template
>
...
...
@@ -9,10 +9,10 @@ import constant from './constant'
export
default
{
props
:
{
addBtnStart
:
{
type
:
Boolean
,
default
:
fals
e
},
//
addBtnStart: {
//
type: Boolean,
// default: tru
e
//
},
objectId
:
{
type
:
String
,
default
:
''
...
...
@@ -20,17 +20,18 @@ export default {
},
data
()
{
return
{
constant
:
{}
constant
:
{},
// addBtnStart: true
}
},
watch
:
{
addBtnStart
:
{
handler
(
newVal
)
{
console
.
log
(
newVal
)
},
immediate
:
true
,
deep
:
true
},
//
addBtnStart: {
//
handler(newVal) {
//
console.log(newVal)
//
},
//
immediate: true,
//
deep: true
//
},
objectId
:
{
handler
(
newVal
)
{
constant
.
tableConfig
.
initialParams
=
{
...
...
@@ -43,6 +44,7 @@ export default {
}
},
created
()
{
// this.addBtnStart = this.$route.query.addBtnStart
var
config
=
JSON
.
parse
(
JSON
.
stringify
(
constant
))
config
.
tableConfig
.
columns
.
handle
=
{
label
:
'操作'
,
...
...
src/views/customers/customers-add/index.vue
View file @
03e21c7d
...
...
@@ -12,8 +12,12 @@
@
request-success=
"handleSuccess"
/>
</div>
<customerAddAddress
:addBtnStart=
'addBtnStart'
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
<customerAddAccessory
:addBtnStart=
'addBtnStart'
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
<div
v-if=
'addBtnStart'
>
<customerAddAddress
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
<customerAddAccessory
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
</div>
<!--
<customerAddAddress
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
<customerAddAccessory
:objectId=
'objectId'
:form-data=
"$attrs['form-data']"
/>
-->
</div>
</
template
>
...
...
@@ -242,14 +246,13 @@ export default {
const
formData
=
this
.
$translateToC4CData
(
data
)
formData
.
extCustomerType_SDK
=
'121'
console
.
log
(
formData
)
// this.addBtnStart = true
customerCreate
(
this
.
paramsToFormData
(
formData
)).
then
(
res
=>
{
this
.
addBtnStart
=
true
this
.
objectId
=
res
.
results
const
objectID
=
res
.
results
this
.
$router
.
push
({
path
:
'/customersAdd'
,
query
:
{
objectID
:
objectID
}
query
:
{
objectID
:
objectID
,
addBtnStart
:
false
}
})
this
.
$message
.
success
(
'创建成功'
)
})
...
...
src/views/login/constant.js
0 → 100644
View file @
03e21c7d
const
formConfig
=
{
labelPosition
:
'left'
,
isShowBackBtn
:
false
,
isShowSubmitBtn
:
false
,
span
:
12
,
rules
:
{
newPassword
:
{
trigger
:
'blur'
,
validator
:
function
(
rule
,
value
,
callback
)
{
if
(
this
.
formData
.
Ext_EmployeePassword_KUT
===
this
.
formData
.
newPassword
)
{
return
callback
(
new
Error
(
'原密码与新密码不可一致'
))
}
else
{
return
callback
()
}
}
},
againPassword
:
{
trigger
:
'blur'
,
validator
:
function
(
rule
,
value
,
callback
)
{
if
(
this
.
formData
.
newPassword
!==
this
.
formData
.
againPassword
)
{
return
callback
(
new
Error
(
'新密码与确认密码不一致'
))
}
else
{
return
callback
()
}
}
}
},
formDesc
:
{
Ext_EmployeePassword_KUT
:
{
label
:
'原密码登陆'
,
type
:
'input'
,
layout
:
20
,
required
:
true
},
newPassword
:
{
label
:
'新密码'
,
type
:
'input'
,
layout
:
20
,
required
:
true
},
againPassword
:
{
label
:
'确认密码'
,
type
:
'input'
,
layout
:
20
,
required
:
true
}
}
}
export
default
{
formConfig
}
src/views/login/index.vue
View file @
03e21c7d
...
...
@@ -80,13 +80,9 @@
<!--
<p>
创新服务全民
</p>
</div>
-->
<!--
<el-dialog
:title=
"$t('login.thirdparty')"
:visible
.
sync=
"showDialog"
>
{{
$t
(
'login.thirdpartyTips'
)
}}
<br>
<br>
<br>
<social-sign
/>
</el-dialog>
-->
<el-dialog
:visible
.
sync=
"updatePassword"
>
</el-dialog>
</div>
</
template
>
...
...
@@ -95,6 +91,7 @@
// import LangSelect from '@/components/LangSelect'
// import SocialSign from './components/SocialSignin'
import
path
from
'path'
;
import
{
update
}
from
'@/api/flow/flow-definition'
;
export
default
{
name
:
'Login'
,
...
...
@@ -128,7 +125,8 @@ export default {
loading
:
false
,
showDialog
:
false
,
redirect
:
undefined
,
otherQuery
:
{}
otherQuery
:
{},
updatePassword
:
false
}
},
watch
:
{
...
...
src/views/public/file-info/constant.js
View file @
03e21c7d
...
...
@@ -2,8 +2,8 @@ import { file } from '@/api/customers'
const
tableConfig
=
{
tableTitle
:
'附件信息'
,
//
url: file.searchUrl,
url
:
''
,
url
:
file
.
searchUrl
,
//
url: '',
isSearch
:
true
,
defaultColumns
:
{
minWidth
:
120
,
...
...
src/views/public/file-info/index.vue
View file @
03e21c7d
...
...
@@ -20,6 +20,7 @@
:listeners=
"tableListeners"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:url=
"url"
@
handleSelectionChange=
"handleSelectionChange"
/>
...
...
@@ -100,7 +101,8 @@ export default {
current
:
null
,
dialogFormVisible
:
false
,
dialogTitle
:
''
,
loading
:
false
loading
:
false
,
url
:
''
}
},
watch
:
{
...
...
@@ -123,6 +125,13 @@ export default {
handleEdit
:
this
.
handleEdit
,
handleDownload
:
this
.
handleDownload
}
if
(
this
.
$attrs
[
'form-data'
]
&&
this
.
$attrs
[
'form-data'
].
BusinessObjectID
)
{
this
.
tableConfig
.
initialParams
=
{
BusinessObjectID
:
this
.
$attrs
[
'form-data'
].
BusinessObjectID
,
}
}
else
{
this
.
tableConfig
.
url
=
''
}
},
methods
:
{
getDetails
(
params
)
{
...
...
@@ -180,11 +189,14 @@ export default {
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
$message
.
success
(
'添加成功!'
)
this
.
tableConfig
.
url
=
'/search'
// this.tableConfig.url = file.searchUrl
// console.log(this.$refs.eleTable.url)
this
.
$refs
.
eleTable
.
url
=
file
.
searchUrl
// this.url = file.searchUrl
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
tableConfig
.
url
=
'/search'
// this.tableConfig.url = file.searchUrl
})
}
else
{
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
...
...
@@ -192,7 +204,8 @@ export default {
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
$message
.
success
(
'修改成功!'
)
this
.
tableConfig
.
url
=
'/search'
// this.tableConfig.url = file.searchUrl
this
.
$refs
.
eleTable
.
url
=
file
.
searchUrl
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
this
.
loading
=
false
...
...
@@ -203,7 +216,7 @@ export default {
this
.
current
=
selection
.
length
>
0
?
selection
[
0
]
:
null
},
handleDelete
()
{
if
(
this
.
selection
.
length
===
0
)
{
if
(
this
.
current
===
null
)
{
this
.
$message
.
warning
(
'请先选择一行数据'
)
return
}
...
...
@@ -212,8 +225,9 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$request
(
file
.
deleteUrl
,
{
objectID
:
current
.
ObjectID
}).
then
(()
=>
{
this
.
$request
(
file
.
deleteUrl
,
{
objectID
:
this
.
current
.
ObjectID
}).
then
(()
=>
{
this
.
$message
.
success
(
'删除成功!'
)
this
.
$refs
.
eleTable
.
url
=
file
.
searchUrl
this
.
$refs
.
eleTable
.
handleSearch
()
}
)
...
...
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