Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2017110269
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
MinsoftK
2020-12-14 22:05:12 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8729f512e4da9e798ca51a6e809df7b54ded0956
8729f512
1 parent
8f89ce00
fabric?
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
mypro/client/package-lock.json
mypro/client/package.json
mypro/client/src/Container/Html.js
mypro/client/src/Container/Tikz.js
mypro/client/package-lock.json
View file @
8729f51
This diff is collapsed. Click to expand it.
mypro/client/package.json
View file @
8729f51
...
...
@@ -12,6 +12,7 @@
"axios"
:
"^0.19.2"
,
"connected-react-router"
:
"^6.8.0"
,
"draft-js"
:
"^0.11.6"
,
"fabric"
:
"^4.2.0"
,
"mysql"
:
"^2.18.1"
,
"qs"
:
"^6.9.4"
,
"react"
:
"^16.13.1"
,
...
...
mypro/client/src/Container/Html.js
View file @
8729f51
...
...
@@ -26,15 +26,15 @@ const fetchCheckQno = async(qno) => {
const
result
=
await
checkQno
(
qno
);
if
(
result
.
status
===
200
){
console
.
log
(
result
);
message
.
info
(
"사용 가능한
문항
번호 입니다."
);
message
.
info
(
"사용 가능한
그림
번호 입니다."
);
return
true
;
}
else
{
message
.
info
(
"존재 하지 않는
문항
번호 입니다."
);
message
.
info
(
"존재 하지 않는
그림
번호 입니다."
);
return
false
;
}
}
catch
(
e
){
console
.
log
(
e
);
message
.
info
(
"존재 하지 않는
문항
번호 입니다."
);
message
.
info
(
"존재 하지 않는
그림
번호 입니다."
);
return
false
;
}
}
...
...
@@ -127,7 +127,6 @@ const Html = ({ visible, onCancel, callback }) => {
const
formData
=
new
FormData
();
formData
.
append
(
'qno'
,
values
.
qno
);
formData
.
append
(
'typeSol'
,
values
.
typeSol
);
formData
.
append
(
'typeQue'
,
values
.
typeQue
);
formData
.
append
(
'html'
,
values
.
html
[
0
]);
formData
.
append
(
'creator'
,
creator
);
...
...
@@ -138,7 +137,6 @@ const Html = ({ visible, onCancel, callback }) => {
let
initFields
=
[
{
name
:[
'qno'
],
value
:
null
},
{
name
:[
'typeSol'
],
value
:
null
},
{
name
:[
'typeQue'
],
value
:
null
},
{
name
:[
'creator'
],
value
:
null
},
];
setQno
(
null
);
...
...
@@ -157,11 +155,6 @@ const Html = ({ visible, onCancel, callback }) => {
setFields
([...
fields
,
{
name
:[
'typeSol'
],
value
:
value
}]);
}
const
onChangeTypeQue
=
(
value
)
=>
{
console
.
log
(
value
);
setFields
([...
fields
,
{
name
:[
'typeQue'
],
value
:
value
}])
}
const
formItemLayout
=
{
...
...
mypro/client/src/Container/Tikz.js
View file @
8729f51
...
...
@@ -324,7 +324,7 @@ const fetchCheckQno = async(qno) => {
<
ImageEditor
includeUI
=
{{
loadImage
:
{
path
:
'../
.
img/1.jpg'
,
path
:
'../img/1.jpg'
,
name
:
'SampleImage'
},
theme
:
myTheme
,
...
...
Please
register
or
login
to post a comment