Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
202269b0
Commit
202269b0
authored
Oct 31, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#50269 implement Operation select
parent
43bb1ed4
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
165 additions
and
57 deletions
+165
-57
abvw/common/json/lang/lang-en.json
+6
-2
abvw/common/json/lang/lang-ja.json
+4
-1
abvw/common/json/lang/lang-ko.json
+17
-14
abvw/html/dashboard.html
+6
-3
abvw/html/operation-select.html
+22
-0
abvw/js/dashboard/dashboard.js
+4
-12
abvw/js/operationSelect/operation-select.js
+79
-0
abvw/js/pickup/pickup.js
+3
-3
abvw/js/template/template.js
+24
-22
No files found.
abvw/common/json/lang/lang-en.json
View file @
202269b0
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
"reportLevelReport"
:
"Report"
,
"reportLevelReport"
:
"Report"
,
"reportLevelAnswer"
:
"Answer"
,
"reportLevelAnswer"
:
"Answer"
,
"msgNotFound"
:
"There is no applicable work."
,
"msgNotFound"
:
"There is no applicable work."
,
"confirmation"
:
"
c
onfirmation"
,
"confirmation"
:
"
C
onfirmation"
,
"confirmYes"
:
"Yes"
,
"confirmYes"
:
"Yes"
,
"confirmNo"
:
"No"
,
"confirmNo"
:
"No"
,
"messageListEmpty"
:
"No Messages"
,
"messageListEmpty"
:
"No Messages"
,
...
@@ -71,5 +71,8 @@
...
@@ -71,5 +71,8 @@
"operationName"
:
"Operation Name"
,
"operationName"
:
"Operation Name"
,
"sendDate"
:
"Send Date"
,
"sendDate"
:
"Send Date"
,
"sender"
:
"Sender"
,
"sender"
:
"Sender"
,
"content"
:
"Content"
"content"
:
"Content"
,
"operationSelection"
:
"Operation select"
,
"selection"
:
"Selection"
}
}
\ No newline at end of file
abvw/common/json/lang/lang-ja.json
View file @
202269b0
...
@@ -71,5 +71,7 @@
...
@@ -71,5 +71,7 @@
"operationName"
:
"作業名"
,
"operationName"
:
"作業名"
,
"sendDate"
:
"送信日時"
,
"sendDate"
:
"送信日時"
,
"sender"
:
"送信者"
,
"sender"
:
"送信者"
,
"content"
:
"内容"
"content"
:
"内容"
,
"operationSelection"
:
"作業選択"
,
"selection"
:
"選択"
}
}
\ No newline at end of file
abvw/common/json/lang/lang-ko.json
View file @
202269b0
...
@@ -40,28 +40,28 @@
...
@@ -40,28 +40,28 @@
"msgAnonymousLoginErr"
:
"로그인할 수 없습니다. (에러코드 : {0})"
,
"msgAnonymousLoginErr"
:
"로그인할 수 없습니다. (에러코드 : {0})"
,
"msgAnonymousLoginErr2"
:
"로그인할 수 없습니다."
,
"msgAnonymousLoginErr2"
:
"로그인할 수 없습니다."
,
"dashboard"
:
"
Dashboard
"
,
"dashboard"
:
"
대시보드
"
,
"dashboardSettings"
:
"
Dashboard Settings
"
,
"dashboardSettings"
:
"
대시보드 설정
"
,
"pickup"
:
"
Pick up
"
,
"pickup"
:
"
픽업
"
,
"communication"
:
"
Communication
"
,
"communication"
:
"
커뮤니케이션
"
,
"workList"
:
"Work list"
,
"workList"
:
"Work list"
,
"profile"
:
"Profile"
,
"profile"
:
"Profile"
,
"account_setting"
:
"Account setting"
,
"account_setting"
:
"Account setting"
,
"newRegistrationTitle"
:
"
New Registration
"
,
"newRegistrationTitle"
:
"
신규 보고
"
,
"continousWorkTitle"
:
"
Continous Work
"
,
"continousWorkTitle"
:
"
공정 작업
"
,
"processWorkTitle"
:
"Process work"
,
"processWorkTitle"
:
"Process work"
,
"reportWarningTitle"
:
"Report With Warning"
,
"reportWarningTitle"
:
"Report With Warning"
,
"workWithWarningsTitle"
:
"
Work with warnings
"
,
"workWithWarningsTitle"
:
"
경고를 포함한 보고
"
,
"messageListTitle"
:
"
Message List
"
,
"messageListTitle"
:
"
메시지 일람
"
,
"sendMessageTitle"
:
"
Send Message
"
,
"sendMessageTitle"
:
"
메시지 송신
"
,
"distanceSupportTitle"
:
"
DistanceSupport
"
,
"distanceSupportTitle"
:
"
원격지원
"
,
"chatTitle"
:
"
Chat
"
,
"chatTitle"
:
"
채팅
"
,
"makeDashboardAsHome"
:
"Make dashboard your home screen"
,
"makeDashboardAsHome"
:
"Make dashboard your home screen"
,
"btnKeep"
:
"Keep"
,
"btnKeep"
:
"Keep"
,
"addNew"
:
"Add New"
,
"addNew"
:
"Add New"
,
"display"
:
" display"
,
"display"
:
" display"
,
"reportLevelReport"
:
"
Report
"
,
"reportLevelReport"
:
"
보고
"
,
"reportLevelAnswer"
:
"
Answer
"
,
"reportLevelAnswer"
:
"
응답
"
,
"msgNotFound"
:
"There is no applicable work."
,
"msgNotFound"
:
"There is no applicable work."
,
"confirmation"
:
"confirmation"
,
"confirmation"
:
"confirmation"
,
"confirmYes"
:
"Yes"
,
"confirmYes"
:
"Yes"
,
...
@@ -71,5 +71,7 @@
...
@@ -71,5 +71,7 @@
"operationName"
:
"Operation Name"
,
"operationName"
:
"Operation Name"
,
"sendDate"
:
"Send Date"
,
"sendDate"
:
"Send Date"
,
"sender"
:
"Sender"
,
"sender"
:
"Sender"
,
"content"
:
"Content"
"content"
:
"Content"
,
"operationSelection"
:
"Operation select"
,
"selection"
:
"Selection"
}
}
\ No newline at end of file
abvw/html/dashboard.html
View file @
202269b0
...
@@ -18,13 +18,12 @@
...
@@ -18,13 +18,12 @@
<script
type=
"text/javascript"
src=
"/abvw/common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"/abvw/common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"/abvw/common/js/jquery/jquery-ui.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"/abvw/common/js/jquery/jquery-ui.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"/abvw/common/js/web/i18n.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"/abvw/common/js/web/i18n.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/newdash/app.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/newdash/common.js"
></script>
<script
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/dashboardSetting/dashboard-setting.js"
></script>
<script
type=
"text/javascript"
src=
"../js/dashboardSetting/dashboard-setting.js"
></script>
<script
type=
"text/javascript"
src=
"../js/template/template.js"
></script>
<script
type=
"text/javascript"
src=
"../js/dashboard/dashboard.js"
></script>
<script
type=
"text/javascript"
src=
"../js/dashboard/dashboard.js"
></script>
</head>
</head>
...
@@ -39,7 +38,7 @@
...
@@ -39,7 +38,7 @@
<!-- title -->
<!-- title -->
<div
class=
"d-flex align-items-center"
>
<div
class=
"d-flex align-items-center"
>
<h1
class=
"fs-14 font-weight-bold pt-4 pb-3 mb-0 mr-auto lang"
lang=
"dashboard"
></h1>
<h1
class=
"fs-14 font-weight-bold pt-4 pb-3 mb-0 mr-auto lang"
lang=
"dashboard"
></h1>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#dashboard-setting-modal"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#dashboard-setting-modal"
>
<img
src=
"../common/img/icon_dashboard_setting.svg"
alt=
"ダッシュボード設定"
class=
"p-1 w-40px"
>
<img
src=
"../common/img/icon_dashboard_setting.svg"
alt=
"ダッシュボード設定"
class=
"p-1 w-40px"
>
</a>
</a>
</div>
</div>
...
@@ -65,6 +64,9 @@
...
@@ -65,6 +64,9 @@
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
<script
type=
"text/javascript"
src=
"../common/js/newdash/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/newdash/common.js?__UPDATEID__"
></script>
</body>
</body>
</html>
</html>
\ No newline at end of file
abvw/html/operation-select.html
0 → 100644
View file @
202269b0
<!-- task list modal -->
<div
class=
"modal fade"
id=
"task-list-modal"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-dialog-centered modal-dialog-scrollable"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-dark10"
>
<h5
class=
"modal-title lang"
lang=
"operationSelection"
></h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<ul
class=
"card-list select-card-list"
id=
"operationSelectList"
>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary lang"
lang=
"selection"
></button>
<button
type=
"button"
class=
"btn btn-tertiary lang"
lang=
"dspCancel"
data-dismiss=
"modal"
></button>
</div>
</div>
</div>
</div>
\ No newline at end of file
abvw/js/dashboard/dashboard.js
View file @
202269b0
...
@@ -27,8 +27,7 @@ DASHBOARD.defaultDashboard = {
...
@@ -27,8 +27,7 @@ DASHBOARD.defaultDashboard = {
pushMesage
:
0
,
pushMesage
:
0
,
}
}
DASHBOARD
.
baseApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'topScreen/'
;
DASHBOARD
.
getDataApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'dashboard/'
;
DASHBOARD
.
getDataApiUrl
=
DashboardSetting
.
baseApiUrl
+
'getAllData'
;
/**
/**
* Call api get data
* Call api get data
...
@@ -115,16 +114,9 @@ DASHBOARD.init = function() {
...
@@ -115,16 +114,9 @@ DASHBOARD.init = function() {
}
}
/** load common data */
/** load common data */
DASHBOARD
.
loadCommon
=
function
()
{
DASHBOARD
.
loadCommon
=
function
()
{
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
I18N
.
initi18n
();
TEMPLATE
.
loadDashboardSetting
(
"#includedDashboardSetting"
);
});
TEMPLATE
.
loadConfirmModal
(
"#includedConfirmModal"
);
$
(
"#includedDashboardSetting"
).
load
(
"dashboard-setting.html"
,
function
()
{
DashboardSetting
.
init
();
I18N
.
initi18n
();
});
$
(
"#includedConfirmModal"
).
load
(
"../common/confirm-modal.html"
,
function
()
{
I18N
.
initi18n
();
});
}
}
/** Update pickup config from setting dashboard data */
/** Update pickup config from setting dashboard data */
...
...
abvw/js/operationSelect/operation-select.js
0 → 100644
View file @
202269b0
/**
* Operation Select js in operation-select.html
*
* @since 1.0 check web
*/
var
OperationSelect
=
{};
OperationSelect
.
operationIdSelected
=
""
;
OperationSelect
.
operationNameSelected
=
""
;
/**
* default operation select data JSON
*/
OperationSelect
.
defaultOperationSelectJson
=
[];
/**
* get operation select data from cms
* @param {function} callback
*/
OperationSelect
.
getOperationSelectData
=
function
(
callback
)
{
let
param
=
{
sid
:
COMMON
.
getSid
(),
};
const
url
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'operationSelect/'
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
if
(
callback
)
{
callback
(
json
);
}
},
function
()
{
console
.
log
(
'OperationSelect.getOperationSelectData error'
);
if
(
callback
)
{
callback
(
OperationSelect
.
defaultOperationSelectJson
);
}
});
};
/**
* handle click operation setting
*/
OperationSelect
.
selectOperationClick
=
function
()
{
$
(
'.select-card-list .card .select-label'
).
on
(
'click'
,
function
()
{
$
(
this
).
closest
(
'.select-card-list'
).
find
(
'.card'
).
removeClass
(
'selected'
);
$
(
this
).
closest
(
'.card'
).
addClass
(
'selected'
);
OperationSelect
.
operationIdSelected
=
$
(
this
).
attr
(
'data-key'
);
OperationSelect
.
operationNameSelected
=
$
(
this
).
attr
(
'data-name'
);
});
};
/**
* init data, action when screen onload
*/
OperationSelect
.
init
=
function
()
{
OperationSelect
.
getOperationSelectData
(
function
(
data
)
{
OperationSelect
.
createOperationSelectList
(
data
);
});
OperationSelect
.
selectOperationClick
();
};
/**
* Implement operation select html
* @returns
*/
OperationSelect
.
createOperationSelectList
=
function
(
data
)
{
$
(
"#operationSelectList"
).
empty
();
if
(
typeof
data
===
'undefined'
||
data
.
length
<
1
)
return
;
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
messageli
=
$
(
"<li class='card mb-2' name = 'operationId_"
+
data
[
i
].
operationId
+
"' ></li>"
);
let
ahrefRequiredFlg
=
$
(
"<a href='#' class='d-block px-5 py-3 text-decoration-none select-label' data-key='"
+
data
[
i
].
operationId
+
"' data-name='"
+
data
[
i
].
operationName
+
"' ></a>"
);
let
divText
=
$
(
"<div class='fs-12 text-truncate d-block'>"
+
data
[
i
].
operationName
+
"</div>"
);
ahrefRequiredFlg
.
append
(
divText
);
messageli
.
append
(
ahrefRequiredFlg
);
$
(
"#operationSelectList"
).
append
(
messageli
);
}
$
(
"#operationSelectList :first-child"
).
addClass
(
"selected"
);
}
abvw/js/pickup/pickup.js
View file @
202269b0
...
@@ -47,9 +47,9 @@ PICKUP.defaultPickupList = {
...
@@ -47,9 +47,9 @@ PICKUP.defaultPickupList = {
}
}
PICKUP
.
baseApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'pickup/'
;
PICKUP
.
baseApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'pickup/'
;
PICKUP
.
getNewReportListApiUrl
=
PICKUP
.
baseApiUrl
+
'newReport
List
'
;
PICKUP
.
getNewReportListApiUrl
=
PICKUP
.
baseApiUrl
+
'newReport'
;
PICKUP
.
getContinuousWorkListApiUrl
=
PICKUP
.
baseApiUrl
+
'
continuousWorkList
'
;
PICKUP
.
getContinuousWorkListApiUrl
=
PICKUP
.
baseApiUrl
+
'
workingFlow
'
;
PICKUP
.
getReportWithWarningsListApiUrl
=
PICKUP
.
baseApiUrl
+
'
reportWithWarnings
'
;
PICKUP
.
getReportWithWarningsListApiUrl
=
PICKUP
.
baseApiUrl
+
'
warningWithReport
'
;
/**
/**
* Call get new report list api get data
* Call get new report list api get data
...
...
abvw/js/template/template.js
View file @
202269b0
/**
/**
*
Header
js
*
template
js
* @since cms:1.4.3.2&1.4.3.3 web:1.0
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
*/
var
TEMPLATE
=
{};
var
TEMPLATE
=
{};
/** template load header */
/** load common data */
TEMPLATE
.
loadHearder
=
function
(
elmentId
)
{
TEMPLATE
.
loadCommon
=
function
()
{
$
(
elmentId
).
load
(
"../common/header.html"
,
function
()
{
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
$
(
"#includedDashboardSetting"
).
load
(
"dashboard-setting.html"
,
function
()
{
}
/** template load dashboard setting */
TEMPLATE
.
loadDashboardSetting
=
function
(
elmentId
)
{
$
(
elmentId
).
load
(
"dashboard-setting.html"
,
function
()
{
DashboardSetting
.
init
();
DashboardSetting
.
init
();
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
$
(
"#includedConfirmModal"
).
load
(
"../common/confirm-modal.html"
,
function
()
{
I18N
.
initi18n
();
});
}
}
TEMPLATE
.
loadHearder
=
function
()
{
/** Template load confirm model */
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
TEMPLATE
.
loadConfirmModal
=
function
(
elmentId
)
{
$
(
elmentId
).
load
(
"../common/confirm-modal.html"
,
function
()
{
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
}
}
/** Template load operation select */
TEMPLATE
.
load
DashboardSetting
=
function
(
)
{
TEMPLATE
.
load
OperationSelect
=
function
(
elmentId
)
{
$
(
"#includedDashboardSetting"
).
load
(
"dashboard-setting
.html"
,
function
()
{
$
(
elmentId
).
load
(
"operation-select
.html"
,
function
()
{
DashboardSetting
.
init
();
OperationSelect
.
init
();
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
}
}
/**
TEMPLATE
.
loadConfirmModal
=
function
()
{
* show confirm model
$
(
"#includedConfirmModal"
).
load
(
"../common/confirm-modal.html"
,
function
()
{
*/
I18N
.
initi18n
();
TEMPLATE
.
showModalConfirm
=
function
()
{
});
$
(
"#showConfirm"
).
click
(
function
(){
}
$
(
"#confirm-modal"
).
modal
();
\ No newline at end of file
});
};
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