Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
Project
Project
Details
Activity
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
luoyangfei
store-system
Commits
099b9ff8
Commit
099b9ff8
authored
Nov 21, 2018
by
燕南天
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台富文本处理
parent
a7fdefcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
21 deletions
+63
-21
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+28
-12
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+35
-9
No files found.
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
099b9ff8
...
...
@@ -532,6 +532,9 @@ export default {
this
.
getList
();
},
add
()
{
// 强制处理详情回显问题
this
.
dialogBindData
.
storeDetails
=
""
this
.
dialogType
=
1
;
axios
.
all
([
this
.
getPList
(),
this
.
getStoreAdministrators
()])
...
...
@@ -605,7 +608,7 @@ export default {
}
},
submmitFun
()
{
// window.location.href = 'http://localhost:9527/#/worker/workerList'
const
param
=
Utils
.
deepClone
(
this
.
dialogBindData
);
...
...
@@ -669,8 +672,18 @@ export default {
type
:
"success"
});
this
.
submmitSuccess
=
false
;
this
.
handleClose
();
if
(
this
.
dialogType
==
1
){
// const host = window.location.origin
// const url = `${host}/?type=1#/worker/workerList`
// setTimeout(()=>{
// window.location.href = url
// },200)
this
.
submmitSuccess
=
false
;
this
.
handleClose
();
}
else
{
this
.
submmitSuccess
=
false
;
this
.
handleClose
();
}
});
});
}
else
{
...
...
@@ -707,19 +720,22 @@ export default {
this
.
dImg4
=
""
;
this
.
dImg5
=
""
;
this
.
$refs
.
imgComponent1
.
clearImg
();
this
.
$refs
.
imgComponent2
.
clearImg
();
this
.
$refs
.
imgComponent3
.
clearImg
();
this
.
$refs
.
imgComponent4
.
clearImg
();
this
.
$refs
.
imgComponent5
.
clearImg
();
this
.
$refs
.
imgComponent6
.
clearImg
();
this
.
$refs
.
imgComponent7
.
clearImg
();
this
.
$refs
.
imgComponent1
?
this
.
$refs
.
imgComponent1
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent2
?
this
.
$refs
.
imgComponent2
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent3
?
this
.
$refs
.
imgComponent3
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent4
?
this
.
$refs
.
imgComponent4
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent5
?
this
.
$refs
.
imgComponent5
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent6
?
this
.
$refs
.
imgComponent6
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent7
?
this
.
$refs
.
imgComponent7
.
clearImg
()
:
""
;
// 销毁富文本编辑器的dom对象
setTimeout
(()
=>
{
this
.
dialogType
=
0
;
},
200
);
},
500
);
},
// 分页处理
handleSizeChange
(
val
)
{
...
...
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
099b9ff8
...
...
@@ -447,6 +447,16 @@ export default {
},
beforeMount
()
{
let
pageOrigin
=
window
.
location
.
search
?
window
.
location
.
search
.
split
(
"="
)[
1
]
:
""
;
if
(
!!
pageOrigin
)
{
this
.
getStoreData
(()
=>
{
this
.
dialogType
=
1
;
this
.
dialogState
=
true
;
});
}
this
.
isAdmin
=
this
.
getCookAdminType
();
worker
.
getStores
().
then
(
res
=>
{
this
.
ownStoreData
=
res
.
data
.
data
;
...
...
@@ -485,6 +495,9 @@ export default {
this
.
getList
();
},
add
()
{
// 强制处理详情回显问题
this
.
dialogBindData
.
workerResume
=
""
;
this
.
dialogType
=
1
;
this
.
getStoreData
(()
=>
{
this
.
dialogState
=
true
;
...
...
@@ -558,7 +571,6 @@ export default {
param
.
workerPic
=
this
.
buildWorkerPic
();
let
submitParam
=
param
.
brief
&&
param
.
matureTime
&&
...
...
@@ -587,8 +599,21 @@ export default {
message
:
this
.
dialogType
===
1
?
"添加成功"
:
"编辑成功"
,
type
:
"success"
});
this
.
submmitSuccess
=
false
;
this
.
handleClose
();
let
pageOrigin
=
window
.
location
.
search
?
window
.
location
.
search
.
split
(
"="
)[
1
]
:
""
;
if
(
this
.
dialogType
==
1
&&
(
!!
pageOrigin
)){
const
host
=
window
.
location
.
origin
const
url
=
`
${
host
}
/#/worker/workerList`
setTimeout
(()
=>
{
window
.
location
.
href
=
url
},
100
)
}
else
{
this
.
submmitSuccess
=
false
this
.
handleClose
()
}
});
});
}
else
{
...
...
@@ -634,13 +659,14 @@ export default {
this
.
dImg3
=
""
;
this
.
dImg4
=
""
;
this
.
dImg5
=
""
;
this
.
$refs
.
imgComponent
.
clearImg
();
this
.
$refs
.
imgComponent1
.
clearImg
();
this
.
$refs
.
imgComponent2
.
clearImg
();
this
.
$refs
.
imgComponent3
.
clearImg
();
this
.
$refs
.
imgComponent4
.
clearImg
();
this
.
$refs
.
imgComponent5
.
clearImg
();
this
.
$refs
.
imgComponent
?
this
.
$refs
.
imgComponent
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent1
?
this
.
$refs
.
imgComponent1
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent2
?
this
.
$refs
.
imgComponent2
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent3
?
this
.
$refs
.
imgComponent3
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent4
?
this
.
$refs
.
imgComponent4
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent5
?
this
.
$refs
.
imgComponent5
.
clearImg
()
:
""
;
// 销毁富文本编辑器的dom对象
setTimeout
(()
=>
{
...
...
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