Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
0ff4d752
Commit
0ff4d752
authored
Aug 19, 2019
by
ytbdmhy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色的签章
parent
e30521f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2947 additions
and
2383 deletions
+2947
-2383
package-lock.json
xichongSys/package-lock.json
+2937
-2368
package.json
xichongSys/package.json
+1
-0
Role.vue
xichongSys/src/views/Sys/Role.vue
+9
-15
No files found.
xichongSys/package-lock.json
View file @
0ff4d752
This source diff could not be displayed because it is too large. You can
view the blob
instead.
xichongSys/package.json
View file @
0ff4d752
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.18.0"
,
"babel-polyfill"
:
"^6.26.0"
,
"babel-polyfill"
:
"^6.26.0"
,
"echarts"
:
"^4.2.1"
,
"element-ui"
:
"^2.4.6"
,
"element-ui"
:
"^2.4.6"
,
"font-awesome"
:
"^4.7.0"
,
"font-awesome"
:
"^4.7.0"
,
"js-cookie"
:
"^2.2.0"
,
"js-cookie"
:
"^2.2.0"
,
...
...
xichongSys/src/views/Sys/Role.vue
View file @
0ff4d752
...
@@ -169,14 +169,16 @@ export default {
...
@@ -169,14 +169,16 @@ export default {
this
.
dataForm
=
{
this
.
dataForm
=
{
id
:
0
,
id
:
0
,
name
:
''
,
name
:
''
,
remark
:
''
remark
:
''
,
}
}
this
.
sealUrl
=
[];
},
},
// 显示编辑界面
// 显示编辑界面
handleEdit
:
function
(
params
)
{
handleEdit
:
function
(
params
)
{
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
operation
=
false
this
.
operation
=
false
this
.
dataForm
=
Object
.
assign
({},
params
.
row
)
this
.
dataForm
=
Object
.
assign
({},
params
.
row
)
this
.
sealUrl
=
[];
},
},
// 编辑
// 编辑
submitForm
:
function
()
{
submitForm
:
function
()
{
...
@@ -302,28 +304,20 @@ export default {
...
@@ -302,28 +304,20 @@ export default {
},
},
changeSeal
(
file
)
{
changeSeal
(
file
)
{
var
This
=
this
;
var
This
=
this
;
this
.
sealUrl
.
length
=
0
;
this
.
sealUrl
=
[]
;
this
.
sealUrl
.
push
(
file
);
this
.
sealUrl
.
push
(
file
);
if
(
this
.
sealUrl
.
length
>
0
)
{
if
(
this
.
sealUrl
.
length
>
0
)
{
var
aa
;
this
.
convertImageToBase64
(
function
(
base64
)
{
aa
=
this
.
convertImageToBase64
();
This
.
dataForm
.
sealStr
=
base64
;
console
.
log
(
aa
);
});
console
.
log
(
this
.
dataForm
);
}
}
},
},
convertImageToBase64
()
{
convertImageToBase64
(
callback
)
{
var
This
=
this
;
var
base64
;
let
reader
=
new
FileReader
();
let
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
this
.
sealUrl
[
0
].
raw
);
reader
.
readAsDataURL
(
this
.
sealUrl
[
0
].
raw
);
reader
.
onload
=
function
(
e
)
{
reader
.
onload
=
function
(
e
)
{
console
.
log
(
this
.
result
.
substring
(
this
.
result
.
indexOf
(
","
)
+
1
));
callback
.
call
(
this
,
this
.
result
.
substring
(
this
.
result
.
indexOf
(
","
)
+
1
));
base64
=
this
.
result
.
substring
(
this
.
result
.
indexOf
(
","
)
+
1
);
This
.
sealUrl
[
0
]
=
this
.
result
.
substring
(
this
.
result
.
indexOf
(
","
)
+
1
);
}
}
console
.
log
(
This
.
sealUrl
[
0
]);
console
.
log
(
base64
);
return
base64
;
}
}
},
},
mounted
()
{
mounted
()
{
...
...
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