eztech-core-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/index.css +405 -0
- package/ckeditor/CHANGES.md +2339 -0
- package/ckeditor/LICENSE.md +1444 -0
- package/ckeditor/MongolianScript.ttf +0 -0
- package/ckeditor/README.md +39 -0
- package/ckeditor/SECURITY.md +10 -0
- package/ckeditor/adapters/jquery.js +10 -0
- package/ckeditor/bender-runner.config.json +16 -0
- package/ckeditor/build-config.js +193 -0
- package/ckeditor/ckcontent.css +71 -0
- package/ckeditor/ckeditor.js +1446 -0
- package/ckeditor/cmdashitseden.ttf +0 -0
- package/ckeditor/config.js +21 -0
- package/ckeditor/contents.css +220 -0
- package/ckeditor/lang/af.js +5 -0
- package/ckeditor/lang/ar.js +5 -0
- package/ckeditor/lang/az.js +5 -0
- package/ckeditor/lang/bg.js +5 -0
- package/ckeditor/lang/bn.js +5 -0
- package/ckeditor/lang/bs.js +5 -0
- package/ckeditor/lang/ca.js +5 -0
- package/ckeditor/lang/cs.js +5 -0
- package/ckeditor/lang/cy.js +5 -0
- package/ckeditor/lang/da.js +5 -0
- package/ckeditor/lang/de-ch.js +5 -0
- package/ckeditor/lang/de.js +5 -0
- package/ckeditor/lang/el.js +5 -0
- package/ckeditor/lang/en-au.js +5 -0
- package/ckeditor/lang/en-ca.js +5 -0
- package/ckeditor/lang/en-gb.js +5 -0
- package/ckeditor/lang/en.js +5 -0
- package/ckeditor/lang/eo.js +5 -0
- package/ckeditor/lang/es-mx.js +5 -0
- package/ckeditor/lang/es.js +5 -0
- package/ckeditor/lang/et.js +5 -0
- package/ckeditor/lang/eu.js +5 -0
- package/ckeditor/lang/fa.js +5 -0
- package/ckeditor/lang/fi.js +5 -0
- package/ckeditor/lang/fo.js +5 -0
- package/ckeditor/lang/fr-ca.js +5 -0
- package/ckeditor/lang/fr.js +5 -0
- package/ckeditor/lang/gl.js +5 -0
- package/ckeditor/lang/gu.js +5 -0
- package/ckeditor/lang/he.js +5 -0
- package/ckeditor/lang/hi.js +5 -0
- package/ckeditor/lang/hr.js +5 -0
- package/ckeditor/lang/hu.js +5 -0
- package/ckeditor/lang/id.js +5 -0
- package/ckeditor/lang/is.js +5 -0
- package/ckeditor/lang/it.js +5 -0
- package/ckeditor/lang/ja.js +5 -0
- package/ckeditor/lang/ka.js +5 -0
- package/ckeditor/lang/km.js +5 -0
- package/ckeditor/lang/ko.js +5 -0
- package/ckeditor/lang/ku.js +5 -0
- package/ckeditor/lang/lt.js +5 -0
- package/ckeditor/lang/lv.js +5 -0
- package/ckeditor/lang/mk.js +5 -0
- package/ckeditor/lang/mn.js +5 -0
- package/ckeditor/lang/ms.js +5 -0
- package/ckeditor/lang/nb.js +5 -0
- package/ckeditor/lang/nl.js +5 -0
- package/ckeditor/lang/no.js +5 -0
- package/ckeditor/lang/oc.js +5 -0
- package/ckeditor/lang/pl.js +5 -0
- package/ckeditor/lang/pt-br.js +5 -0
- package/ckeditor/lang/pt.js +5 -0
- package/ckeditor/lang/ro.js +5 -0
- package/ckeditor/lang/ru.js +5 -0
- package/ckeditor/lang/si.js +5 -0
- package/ckeditor/lang/sk.js +5 -0
- package/ckeditor/lang/sl.js +5 -0
- package/ckeditor/lang/sq.js +5 -0
- package/ckeditor/lang/sr-latn.js +5 -0
- package/ckeditor/lang/sr.js +5 -0
- package/ckeditor/lang/sv.js +5 -0
- package/ckeditor/lang/th.js +5 -0
- package/ckeditor/lang/tr.js +5 -0
- package/ckeditor/lang/tt.js +5 -0
- package/ckeditor/lang/ug.js +5 -0
- package/ckeditor/lang/uk.js +5 -0
- package/ckeditor/lang/vi.js +5 -0
- package/ckeditor/lang/zh-cn.js +5 -0
- package/ckeditor/lang/zh.js +5 -0
- package/ckeditor/monbaiti.ttf +0 -0
- package/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/about/dialogs/about.js +8 -0
- package/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- package/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- package/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- package/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- package/ckeditor/plugins/div/dialogs/div.js +10 -0
- package/ckeditor/plugins/find/dialogs/find.js +26 -0
- package/ckeditor/plugins/forms/dialogs/button.js +8 -0
- package/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
- package/ckeditor/plugins/forms/dialogs/form.js +8 -0
- package/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
- package/ckeditor/plugins/forms/dialogs/radio.js +9 -0
- package/ckeditor/plugins/forms/dialogs/select.js +21 -0
- package/ckeditor/plugins/forms/dialogs/textarea.js +9 -0
- package/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
- package/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/ckeditor/plugins/icons.png +0 -0
- package/ckeditor/plugins/icons_hidpi.png +0 -0
- package/ckeditor/plugins/iframe/dialogs/iframe.js +11 -0
- package/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/ckeditor/plugins/image/dialogs/image.js +44 -0
- package/ckeditor/plugins/image/images/noimage.png +0 -0
- package/ckeditor/plugins/indent/dev/indent.html +285 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent.png +0 -0
- package/ckeditor/plugins/indent/icons/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent.png +0 -0
- package/ckeditor/plugins/indent/lang/af.js +8 -0
- package/ckeditor/plugins/indent/lang/ar.js +8 -0
- package/ckeditor/plugins/indent/lang/az.js +8 -0
- package/ckeditor/plugins/indent/lang/bg.js +8 -0
- package/ckeditor/plugins/indent/lang/bn.js +8 -0
- package/ckeditor/plugins/indent/lang/bs.js +8 -0
- package/ckeditor/plugins/indent/lang/ca.js +8 -0
- package/ckeditor/plugins/indent/lang/cs.js +8 -0
- package/ckeditor/plugins/indent/lang/cy.js +8 -0
- package/ckeditor/plugins/indent/lang/da.js +8 -0
- package/ckeditor/plugins/indent/lang/de-ch.js +8 -0
- package/ckeditor/plugins/indent/lang/de.js +8 -0
- package/ckeditor/plugins/indent/lang/el.js +8 -0
- package/ckeditor/plugins/indent/lang/en-au.js +8 -0
- package/ckeditor/plugins/indent/lang/en-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/en-gb.js +8 -0
- package/ckeditor/plugins/indent/lang/en.js +8 -0
- package/ckeditor/plugins/indent/lang/eo.js +8 -0
- package/ckeditor/plugins/indent/lang/es-mx.js +8 -0
- package/ckeditor/plugins/indent/lang/es.js +8 -0
- package/ckeditor/plugins/indent/lang/et.js +8 -0
- package/ckeditor/plugins/indent/lang/eu.js +8 -0
- package/ckeditor/plugins/indent/lang/fa.js +8 -0
- package/ckeditor/plugins/indent/lang/fi.js +8 -0
- package/ckeditor/plugins/indent/lang/fo.js +8 -0
- package/ckeditor/plugins/indent/lang/fr-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/fr.js +8 -0
- package/ckeditor/plugins/indent/lang/gl.js +8 -0
- package/ckeditor/plugins/indent/lang/gu.js +8 -0
- package/ckeditor/plugins/indent/lang/he.js +8 -0
- package/ckeditor/plugins/indent/lang/hi.js +8 -0
- package/ckeditor/plugins/indent/lang/hr.js +8 -0
- package/ckeditor/plugins/indent/lang/hu.js +8 -0
- package/ckeditor/plugins/indent/lang/id.js +8 -0
- package/ckeditor/plugins/indent/lang/is.js +8 -0
- package/ckeditor/plugins/indent/lang/it.js +8 -0
- package/ckeditor/plugins/indent/lang/ja.js +8 -0
- package/ckeditor/plugins/indent/lang/ka.js +8 -0
- package/ckeditor/plugins/indent/lang/km.js +8 -0
- package/ckeditor/plugins/indent/lang/ko.js +8 -0
- package/ckeditor/plugins/indent/lang/ku.js +8 -0
- package/ckeditor/plugins/indent/lang/lt.js +8 -0
- package/ckeditor/plugins/indent/lang/lv.js +8 -0
- package/ckeditor/plugins/indent/lang/mk.js +8 -0
- package/ckeditor/plugins/indent/lang/mn.js +8 -0
- package/ckeditor/plugins/indent/lang/ms.js +8 -0
- package/ckeditor/plugins/indent/lang/nb.js +8 -0
- package/ckeditor/plugins/indent/lang/nl.js +8 -0
- package/ckeditor/plugins/indent/lang/no.js +8 -0
- package/ckeditor/plugins/indent/lang/oc.js +8 -0
- package/ckeditor/plugins/indent/lang/pl.js +8 -0
- package/ckeditor/plugins/indent/lang/pt-br.js +8 -0
- package/ckeditor/plugins/indent/lang/pt.js +8 -0
- package/ckeditor/plugins/indent/lang/ro.js +8 -0
- package/ckeditor/plugins/indent/lang/ru.js +8 -0
- package/ckeditor/plugins/indent/lang/si.js +8 -0
- package/ckeditor/plugins/indent/lang/sk.js +8 -0
- package/ckeditor/plugins/indent/lang/sl.js +8 -0
- package/ckeditor/plugins/indent/lang/sq.js +8 -0
- package/ckeditor/plugins/indent/lang/sr-latn.js +8 -0
- package/ckeditor/plugins/indent/lang/sr.js +8 -0
- package/ckeditor/plugins/indent/lang/sv.js +8 -0
- package/ckeditor/plugins/indent/lang/th.js +8 -0
- package/ckeditor/plugins/indent/lang/tr.js +8 -0
- package/ckeditor/plugins/indent/lang/tt.js +8 -0
- package/ckeditor/plugins/indent/lang/ug.js +8 -0
- package/ckeditor/plugins/indent/lang/uk.js +8 -0
- package/ckeditor/plugins/indent/lang/vi.js +8 -0
- package/ckeditor/plugins/indent/lang/zh-cn.js +8 -0
- package/ckeditor/plugins/indent/lang/zh.js +8 -0
- package/ckeditor/plugins/indent/plugin.js +461 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyright.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyright.png +0 -0
- package/ckeditor/plugins/justify/plugin.js +269 -0
- package/ckeditor/plugins/lineheight/LICENSE +22 -0
- package/ckeditor/plugins/lineheight/README.md +2 -0
- package/ckeditor/plugins/lineheight/lang/LANG.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ar.js +3 -0
- package/ckeditor/plugins/lineheight/lang/de.js +3 -0
- package/ckeditor/plugins/lineheight/lang/en.js +3 -0
- package/ckeditor/plugins/lineheight/lang/es.js +3 -0
- package/ckeditor/plugins/lineheight/lang/fr.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ko.js +3 -0
- package/ckeditor/plugins/lineheight/lang/pt.js +3 -0
- package/ckeditor/plugins/lineheight/plugin.js +81 -0
- package/ckeditor/plugins/lineheight/readme.txt +30 -0
- package/ckeditor/plugins/link/dialogs/anchor.js +9 -0
- package/ckeditor/plugins/link/dialogs/link.js +30 -0
- package/ckeditor/plugins/link/images/anchor.png +0 -0
- package/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- package/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- package/ckeditor/plugins/pastefromword/filter/default.js +43 -0
- package/ckeditor/plugins/pastetools/filter/common.js +24 -0
- package/ckeditor/plugins/pastetools/filter/image.js +12 -0
- package/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/preview/preview.html +13 -0
- package/ckeditor/plugins/preview/styles/screen.css +10 -0
- package/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
- package/ckeditor/plugins/scayt/LICENSE.md +28 -0
- package/ckeditor/plugins/scayt/README.md +81 -0
- package/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
- package/ckeditor/plugins/scayt/dialogs/options.js +32 -0
- package/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- package/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- package/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/ckeditor/plugins/simage/LICENSE +674 -0
- package/ckeditor/plugins/simage/README.md +73 -0
- package/ckeditor/plugins/simage/icons/simage.png +0 -0
- package/ckeditor/plugins/simage/plugin.js +154 -0
- package/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
- package/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- package/ckeditor/plugins/table/dialogs/table.js +22 -0
- package/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
- package/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- package/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- package/ckeditor/plugins/templates/dialogs/templates.js +11 -0
- package/ckeditor/plugins/templates/templatedefinition.js +4 -0
- package/ckeditor/plugins/templates/templates/default.js +7 -0
- package/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/ckeditor/plugins/textindent/icons/hidpi/textindent.png +0 -0
- package/ckeditor/plugins/textindent/icons/textindent.png +0 -0
- package/ckeditor/plugins/textindent/lang/en.js +3 -0
- package/ckeditor/plugins/textindent/lang/pt-br.js +3 -0
- package/ckeditor/plugins/textindent/plugin.js +99 -0
- package/ckeditor/plugins/widget/images/handle.png +0 -0
- package/ckeditor/samples/css/samples.css +1637 -0
- package/ckeditor/samples/img/github-top.png +0 -0
- package/ckeditor/samples/img/header-bg.png +0 -0
- package/ckeditor/samples/img/header-separator.png +0 -0
- package/ckeditor/samples/img/logo.png +0 -0
- package/ckeditor/samples/img/logo.svg +13 -0
- package/ckeditor/samples/img/navigation-tip.png +0 -0
- package/ckeditor/samples/index.html +130 -0
- package/ckeditor/samples/js/sample.js +53 -0
- package/ckeditor/samples/js/sf.js +17 -0
- package/ckeditor/samples/old/ajax.html +85 -0
- package/ckeditor/samples/old/api.html +210 -0
- package/ckeditor/samples/old/appendto.html +59 -0
- package/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
- package/ckeditor/samples/old/assets/posteddata.php +60 -0
- package/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
- package/ckeditor/samples/old/datafiltering.html +508 -0
- package/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
- package/ckeditor/samples/old/dialog/dialog.html +190 -0
- package/ckeditor/samples/old/divreplace.html +144 -0
- package/ckeditor/samples/old/enterkey/enterkey.html +106 -0
- package/ckeditor/samples/old/htmlwriter/outputhtml.html +224 -0
- package/ckeditor/samples/old/index.html +129 -0
- package/ckeditor/samples/old/inlineall.html +314 -0
- package/ckeditor/samples/old/inlinebycode.html +124 -0
- package/ckeditor/samples/old/inlinetextarea.html +113 -0
- package/ckeditor/samples/old/jquery.html +103 -0
- package/ckeditor/samples/old/magicline/magicline.html +209 -0
- package/ckeditor/samples/old/readonly.html +76 -0
- package/ckeditor/samples/old/replacebyclass.html +60 -0
- package/ckeditor/samples/old/replacebycode.html +59 -0
- package/ckeditor/samples/old/sample.css +357 -0
- package/ckeditor/samples/old/sample.js +50 -0
- package/ckeditor/samples/old/sample_posteddata.php +16 -0
- package/ckeditor/samples/old/tabindex.html +78 -0
- package/ckeditor/samples/old/toolbar/toolbar.html +235 -0
- package/ckeditor/samples/old/uicolor.html +72 -0
- package/ckeditor/samples/old/uilanguages.html +122 -0
- package/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
- package/ckeditor/samples/old/xhtmlstyle.html +234 -0
- package/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
- package/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
- package/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/ckeditor/samples/toolbarconfigurator/index.html +447 -0
- package/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
- package/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
- package/ckeditor/skins/moono-lisa/dialog.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/editor.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/icons.png +0 -0
- package/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- package/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- package/ckeditor/skins/moono-lisa/images/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- package/ckeditor/skins/moono-lisa/readme.md +46 -0
- package/ckeditor/styles.js +137 -0
- package/ckeditor/vendor/promise.js +13 -0
- package/comps/Animation/Checkbox.vue +37 -0
- package/comps/Animation/Radio.vue +30 -0
- package/comps/BooleanLabel.vue +40 -0
- package/comps/CardButton.vue +18 -0
- package/comps/CardImage.vue +40 -0
- package/comps/CardItem.vue +63 -0
- package/comps/CardList.vue +57 -0
- package/comps/CardNumber.vue +27 -0
- package/comps/Config/SelectColumns.vue +137 -0
- package/comps/CoreAgeMonth.vue +44 -0
- package/comps/CoreAppPassword.vue +31 -0
- package/comps/CoreAutocomplete.vue +93 -0
- package/comps/CoreCascader.vue +129 -0
- package/comps/CoreCascaderChildOrg.vue +165 -0
- package/comps/CoreCascaderChildPosition.vue +186 -0
- package/comps/CoreCkeditor.vue +324 -0
- package/comps/CoreColorPicker.vue +35 -0
- package/comps/CoreContextMenu.vue +81 -0
- package/comps/CoreDate.vue +56 -0
- package/comps/CoreDateRange.vue +34 -0
- package/comps/CoreDatetime.vue +34 -0
- package/comps/CoreDeepLink.vue +53 -0
- package/comps/CoreDurationJustified.vue +23 -0
- package/comps/CoreFiles.vue +497 -0
- package/comps/CoreFooter.vue +100 -0
- package/comps/CoreForm.vue +499 -0
- package/comps/CoreFormDialog.vue +140 -0
- package/comps/CoreFormFields.vue +306 -0
- package/comps/CoreFormItem.vue +114 -0
- package/comps/CoreFormItemCopy.vue +155 -0
- package/comps/CoreFormSub.vue +118 -0
- package/comps/CoreFormTable.vue +197 -0
- package/comps/CoreFormTableInline.vue +300 -0
- package/comps/CoreFormTableList.vue +268 -0
- package/comps/CoreIcon.vue +5 -0
- package/comps/CoreImage.vue +37 -0
- package/comps/CoreInlineNumber.vue +54 -0
- package/comps/CoreInputNumber.vue +49 -0
- package/comps/CoreInputSearch.vue +44 -0
- package/comps/CoreJson.vue +10 -0
- package/comps/CoreLoader.vue +153 -0
- package/comps/CoreLocked.vue +151 -0
- package/comps/CoreMergeConfirm.vue +59 -0
- package/comps/CoreMultipleInput.vue +51 -0
- package/comps/CorePanel.vue +33 -0
- package/comps/CorePdfDialog.vue +84 -0
- package/comps/CorePdfView.vue +52 -0
- package/comps/CoreRegexp.vue +41 -0
- package/comps/CoreSelect.vue +249 -0
- package/comps/CoreSelectEnum.vue +103 -0
- package/comps/CoreSelectGroup.vue +237 -0
- package/comps/CoreSelectGroupItem.vue +168 -0
- package/comps/CoreSelectGroupList.vue +386 -0
- package/comps/CoreSelectOrgEmp.vue +319 -0
- package/comps/CoreSelectTable.vue +277 -0
- package/comps/CoreSelectTree.vue +183 -0
- package/comps/CoreSelectTreeItem.vue +129 -0
- package/comps/CoreSelectTreeList.vue +149 -0
- package/comps/CoreSelectYear.vue +42 -0
- package/comps/CoreSignCertificate.vue +129 -0
- package/comps/CoreSpan.vue +31 -0
- package/comps/CoreStatus.vue +29 -0
- package/comps/CoreSwitch.vue +28 -0
- package/comps/CoreTable.vue +852 -0
- package/comps/CoreTableColumn.vue +78 -0
- package/comps/CoreTableColumnHeader.vue +25 -0
- package/comps/CoreTableColumnRow.vue +234 -0
- package/comps/CoreTableConfig.vue +248 -0
- package/comps/CoreTableImage.vue +89 -0
- package/comps/CoreTableSearch.vue +267 -0
- package/comps/CoreTableSearchDetail.vue +89 -0
- package/comps/CoreTableStatus.vue +71 -0
- package/comps/CoreUploadImage.vue +542 -0
- package/comps/CoreVideo.vue +44 -0
- package/comps/CoreVimeo.vue +135 -0
- package/comps/CoreVimeoLabel.vue +32 -0
- package/comps/CoreVueEditor.vue +106 -0
- package/comps/CoreXypService.vue +233 -0
- package/comps/CoreZoomImage.vue +99 -0
- package/comps/Custom/CrimeDescription.vue +195 -0
- package/comps/Custom/CrimeNum.vue +41 -0
- package/comps/Custom/EmployeeSelect.vue +243 -0
- package/comps/Custom/EmployeeText.vue +7 -0
- package/comps/Custom/EmployeeWorkFamilies.vue +36 -0
- package/comps/Custom/NationalLangSkills.vue +137 -0
- package/comps/Custom/TableLogs.vue +86 -0
- package/comps/Custom/UserClotheRow.vue +105 -0
- package/comps/Custom/UserClothes.vue +470 -0
- package/comps/Custom/UserRoles.vue +169 -0
- package/comps/Custom/UserSelect.vue +423 -0
- package/comps/Custom/UserSkills.vue +98 -0
- package/comps/MomentAddCode.vue +91 -0
- package/comps/SclHandbook.vue +135 -0
- package/comps/Sign/Dialog.vue +321 -0
- package/comps/Sign/Info.vue +43 -0
- package/comps/Sign/InfoDialog.vue +78 -0
- package/directives/el-dragDialog/drag.js +34 -0
- package/index.js +7 -0
- package/middleware/auth.js +28 -0
- package/middleware/confirm-leave.js +15 -0
- package/middleware/login.js +6 -0
- package/middleware/router.js +5 -0
- package/package.json +48 -0
- package/plugins/axios.js +51 -0
- package/plugins/chart.js +134 -0
- package/plugins/ckeditor.js +3 -0
- package/plugins/idle-logout.js +33 -0
- package/store/settings.js +236 -0
- package/store/user.js +215 -0
- package/utils/component-helper.js +336 -0
- package/utils/data-helper.js +236 -0
- package/utils/default-nuxt-config.js +116 -0
- package/utils/eslint-rules.js +12 -0
- package/utils/helpers.js +67 -0
- package/utils/message-helper.js +19 -0
- package/utils/number-helper.js +166 -0
- package/utils/number-texts.js +217 -0
- package/utils/regexps.js +86 -0
- package/utils/role-helper.js +52 -0
- package/utils/social-helper.js +58 -0
- package/utils/table-helper.js +1612 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span v-if="viewType === 'table'">{{ unit === 'unlimited' ? '' : val }} {{ title }}</span>
|
|
3
|
+
<div v-else class="flex gap-2">
|
|
4
|
+
<el-input-number
|
|
5
|
+
v-model="val"
|
|
6
|
+
class="flex-1"
|
|
7
|
+
:min="0"
|
|
8
|
+
:max="1000"
|
|
9
|
+
:disabled="unit === 'unlimited'"
|
|
10
|
+
:size="size"
|
|
11
|
+
controls-position="right"
|
|
12
|
+
@change="setValue"
|
|
13
|
+
/>
|
|
14
|
+
<el-select
|
|
15
|
+
v-model="unit"
|
|
16
|
+
class="flex-1"
|
|
17
|
+
placeholder="Сонгох.."
|
|
18
|
+
:size="size"
|
|
19
|
+
@change="setValue"
|
|
20
|
+
>
|
|
21
|
+
<el-option v-for="item in units" :key="item.code" :value="item.code" :label="item.title" />
|
|
22
|
+
</el-select>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
<script>
|
|
26
|
+
import { get } from 'lodash'
|
|
27
|
+
export default {
|
|
28
|
+
name: 'MomentAddCode',
|
|
29
|
+
props: {
|
|
30
|
+
value: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
viewType: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ''
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'small'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
data () {
|
|
44
|
+
return {
|
|
45
|
+
val: 0,
|
|
46
|
+
unit: null,
|
|
47
|
+
units: [
|
|
48
|
+
{ code: 'minutes', title: 'Минут' },
|
|
49
|
+
{ code: 'hours', title: 'Цаг' },
|
|
50
|
+
{ code: 'days', title: 'Хоног' },
|
|
51
|
+
{ code: 'months', title: 'Сар' },
|
|
52
|
+
{ code: 'years', title: 'Жил' },
|
|
53
|
+
{ code: 'unlimited', title: 'Хугацаагүй' }
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
computed: {
|
|
58
|
+
title () {
|
|
59
|
+
return get(this.units.find(c => c.code === this.unit), 'title')
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
watch: {
|
|
63
|
+
value () {
|
|
64
|
+
if (!this.unit || this.viewType === 'table') {
|
|
65
|
+
this.setVal()
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
created () {
|
|
70
|
+
this.setVal()
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
setVal () {
|
|
74
|
+
if (this.value && this.value.includes(':')) {
|
|
75
|
+
this.val = Number(this.value.split(':')[0] || 0)
|
|
76
|
+
this.unit = this.value.split(':')[1]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setValue () {
|
|
80
|
+
if (this.unit === 'unlimited') {
|
|
81
|
+
this.val = 0
|
|
82
|
+
this.$emit('input', '0:unlimited')
|
|
83
|
+
} else if (this.val > 0 && this.unit) {
|
|
84
|
+
this.$emit('input', `${this.val}:${this.unit}`)
|
|
85
|
+
} else {
|
|
86
|
+
this.$emit('input', null)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-full flex flex-row gap-2">
|
|
3
|
+
<div class="max-w-full w-[210mm] px-[20mm] sm:px-12 py-4 flex flex-col gap-4 bg-white rounded quill-container">
|
|
4
|
+
<div v-if="loading" class="flex justify-center py-10 text-coreSecondaryText gap-2">
|
|
5
|
+
<i class="el-icon-loading" />
|
|
6
|
+
<span class="ml-2">Түр хүлээнэ үү..</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div
|
|
9
|
+
v-for="item in listValue.filter(c => c._id === lesson?._id)"
|
|
10
|
+
:key="item._id"
|
|
11
|
+
class="flex flex-col gap-2 ql-editor"
|
|
12
|
+
>
|
|
13
|
+
<div class="text-lg text-center font-medium py-1 text-corePrimaryText">
|
|
14
|
+
{{ item.title.trim() }}
|
|
15
|
+
</div>
|
|
16
|
+
<div v-if="item.description" class="py-2 text-corePrimaryText leading-5">
|
|
17
|
+
<i class="el-icon-info text-coreSecondaryText pr-[2px]" /> {{ item.description }}
|
|
18
|
+
</div>
|
|
19
|
+
<div class="core-content text-sm text-justify text-corePrimaryText list-disc" @click="handleClickHtml" v-html="item.html_content" />
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="h-auto sm:h-full overflow-y-auto w-full md:w-52 rounded bg-white border flex flex-col">
|
|
23
|
+
<!-- <div class="flex flex-col text-sm leading-4 cursor-pointer border-b last:border-b-0 px-4 py-2">Гарын авлагыг татах</div> -->
|
|
24
|
+
<div
|
|
25
|
+
v-for="(item) in listValue"
|
|
26
|
+
:key="item._id"
|
|
27
|
+
:class="['flex flex-col text-sm leading-4 cursor-pointer border-b last:border-b-0 px-4 py-2', {
|
|
28
|
+
'bg-coreBlue text-white': lesson?._id === item._id,
|
|
29
|
+
'hover:bg-coreBgHover': lesson?._id !== item._id
|
|
30
|
+
}]"
|
|
31
|
+
@click="lesson_id = item._id"
|
|
32
|
+
>
|
|
33
|
+
{{ item.title.trim() }}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<core-zoom-image v-model="currentImage" :images="currentImages" />
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
<script>
|
|
40
|
+
import { mapGetters } from 'vuex'
|
|
41
|
+
export default {
|
|
42
|
+
props: {
|
|
43
|
+
projectId: { type: [String, Number], default: '5' },
|
|
44
|
+
tableName: { type: String, default: 'scl_handbooks' },
|
|
45
|
+
api_id: { type: [String, Number], default: null },
|
|
46
|
+
handbooks: { type: Array, default: () => { return [] } }
|
|
47
|
+
},
|
|
48
|
+
data () {
|
|
49
|
+
return {
|
|
50
|
+
loading: false,
|
|
51
|
+
list: [],
|
|
52
|
+
text: '',
|
|
53
|
+
currentImage: null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
computed: {
|
|
57
|
+
...mapGetters('settings', ['env']),
|
|
58
|
+
lesson_id: {
|
|
59
|
+
set (val) {
|
|
60
|
+
this.$router.push({ query: { ...this.$route.query, lesson_id: val } })
|
|
61
|
+
},
|
|
62
|
+
get () {
|
|
63
|
+
return this.$route.query.lesson_id
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
lesson () {
|
|
67
|
+
if (!this.lesson_id) {
|
|
68
|
+
return this.listValue[0]
|
|
69
|
+
}
|
|
70
|
+
return this.listValue.find(c => c._id === this.lesson_id)
|
|
71
|
+
},
|
|
72
|
+
listValue () {
|
|
73
|
+
return this.handbooks.length > 0 ? this.handbooks : this.list
|
|
74
|
+
},
|
|
75
|
+
currentImages () {
|
|
76
|
+
const regex = /<img[^>]*\s+src="([^"]*)"/gi
|
|
77
|
+
const matches = []
|
|
78
|
+
for (const item of this.listValue) {
|
|
79
|
+
const content = item.html_content
|
|
80
|
+
let match
|
|
81
|
+
while ((match = regex.exec(content)) !== null) {
|
|
82
|
+
matches.push(match[1])
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
console.log('matches', matches)
|
|
86
|
+
return matches
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
mounted () {
|
|
90
|
+
this.getList()
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
htmlContent (html_content) {
|
|
94
|
+
return html_content.replace(/<img\s+([^>]*?)src\s*=\s*["']?([^"'\s>]+)["']?([^>]*?)>/g, (match, p1, p2, p3) => {
|
|
95
|
+
try {
|
|
96
|
+
const url = new URL(p2)
|
|
97
|
+
if (url.pathname.startsWith('/file/')) {
|
|
98
|
+
return `<img ${p1}src="/api${url.pathname}"${p3} style="width: 100%; height: auto;">`
|
|
99
|
+
} else {
|
|
100
|
+
return `<img ${p1}src="${p2}"${p3} style="width: 100%; height: auto;">`
|
|
101
|
+
}
|
|
102
|
+
} catch (err) {
|
|
103
|
+
return `<img ${p1}src="${p2}"${p3} style="width: 100%; height: auto;">`
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
// .replace(/\t/g, ' ')
|
|
107
|
+
},
|
|
108
|
+
handleClickHtml ($event) {
|
|
109
|
+
const target = $event.target
|
|
110
|
+
if (target.tagName === 'IMG') {
|
|
111
|
+
this.currentImage = target.src
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
async getList () {
|
|
115
|
+
if (this.loading || this.handbooks.length > 0) {
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
this.list = []
|
|
120
|
+
this.loading = true
|
|
121
|
+
const { data } = await this.$axios.get(`list/${this.projectId}/${this.tableName}`, {
|
|
122
|
+
params: {
|
|
123
|
+
search: JSON.stringify({ api_id: { val: this.api_id, t: 'number', op: 'eq' } })
|
|
124
|
+
}
|
|
125
|
+
})
|
|
126
|
+
this.list = data
|
|
127
|
+
} catch (err) {
|
|
128
|
+
this.$showError(err)
|
|
129
|
+
} finally {
|
|
130
|
+
this.loading = false
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</script>
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
width="600px"
|
|
4
|
+
append-to-body
|
|
5
|
+
:show-close="true"
|
|
6
|
+
class="action-dialog signature-dialog"
|
|
7
|
+
:close-on-click-modal="false"
|
|
8
|
+
:close-on-press-escape="false"
|
|
9
|
+
:title="dialogTitle"
|
|
10
|
+
:visible.sync="modelVisible"
|
|
11
|
+
:before-close="handleClose"
|
|
12
|
+
>
|
|
13
|
+
<div v-if="noSignature">
|
|
14
|
+
<div class="text-content">
|
|
15
|
+
<slot name="content" />
|
|
16
|
+
<div class="transfer-content">
|
|
17
|
+
<div class="left-item" style="margin-left: auto;">
|
|
18
|
+
<slot name="left" />
|
|
19
|
+
</div>
|
|
20
|
+
<i class="transfer-icon el-icon el-icon-d-arrow-right" />
|
|
21
|
+
<div class="right-item" style="margin-right: auto;">
|
|
22
|
+
<slot name="right" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<slot name="form-wrapper" />
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-else class="bg-white p-4">
|
|
29
|
+
<!-- {{ !serialNumberLoading }} {{ serialNumber }} -->
|
|
30
|
+
<!-- <el-alert v-if="!serialNumberLoading && !serialNumber" class="sign-message" style="margin-bottom: 20px" title="Та эхлээд өөрийн хэрэглэгчийн эрхдээ тоон гэрчилгээгээ холбоно уу" type="error" :closable="false" center show-icon /> -->
|
|
31
|
+
<el-steps :space="200" :active="step" simple class="bg-white">
|
|
32
|
+
<el-step title="Токен сонгох" icon="el-icon-cpu" />
|
|
33
|
+
<el-step title="Нэвтрэх" icon="el-icon-user" />
|
|
34
|
+
<el-step title="Гэрчилгээ сонгох" icon="el-icon-key" />
|
|
35
|
+
<!-- <el-step title="Шилжүүлэх" icon="el-icon-position" /> -->
|
|
36
|
+
</el-steps>
|
|
37
|
+
<div v-if="step === 0" style="padding: 20px 25px; display: flex; justify-content: center; align-items: center; flex-direction: column">
|
|
38
|
+
<el-table v-loading="loadingDevice" border :data="devices" highlight-current-row @current-change="handleSelectDevice">
|
|
39
|
+
<el-table-column label="№" type="index" width="35" />
|
|
40
|
+
<el-table-column label="#" width="35">
|
|
41
|
+
<template slot-scope="scope">
|
|
42
|
+
<el-checkbox :value="selectedDevice && selectedDevice.serialNumber === scope.row.serialNumber" />
|
|
43
|
+
</template>
|
|
44
|
+
</el-table-column>
|
|
45
|
+
<el-table-column prop="serialNumber" label="Сериал дугаар" />
|
|
46
|
+
<el-table-column prop="deviceName" label="Токен-ны нэр" />
|
|
47
|
+
</el-table>
|
|
48
|
+
</div>
|
|
49
|
+
<div v-if="step === 1" style="padding: 20px 25px; display: flex; justify-content: center; align-items: center; flex-direction: column">
|
|
50
|
+
<el-alert class="sign-message" description="Та тоон гарын үсгийн токен пин кодоо оруулна уу" :title="`Токен төхөөрөмж: ${ selectedDevice && selectedDevice.serialNumber }`" type="info" :closable="false" center show-icon />
|
|
51
|
+
<input type="text" name="dummy_username" style="display:none">
|
|
52
|
+
<input type="password" name="dummy_password" style="display:none">
|
|
53
|
+
<el-input v-model="pin" prefix-icon="el-icon-key" placeholder="Пин код" autocomplete="off" show-password size="medium" style="margin-top: 15px; " type="password" />
|
|
54
|
+
</div>
|
|
55
|
+
<div v-if="step === 2" style="padding: 20px 25px; display: flex; justify-content: center; align-items: center; flex-direction: column">
|
|
56
|
+
<el-alert class="sign-message" title="Та ашиглах тоон гарын үсгээ сонгоно уу" type="info" :closable="false" center show-icon />
|
|
57
|
+
<el-table style="padding-top: 10px;width: 100%" :data="list" highlight-current-row @current-change="(row) => selectedRow = row">
|
|
58
|
+
<el-table-column type="pkId" width="30">
|
|
59
|
+
<!-- <template slot-scope="scope"> -->
|
|
60
|
+
<!-- <ss-icon v-if="selectedRow && selectedRow.pkId === scope.row.pkId" name="check" class="icon" :size="15" color="var(--text-success-color)" /> -->
|
|
61
|
+
<!-- </template> -->
|
|
62
|
+
</el-table-column>
|
|
63
|
+
<el-table-column prop="subject" label="Эзэмшигчийн мэдээлэл" width="285">
|
|
64
|
+
<template slot-scope="scope">
|
|
65
|
+
<b>{{ scope.row.subject.CN }}</b> ({{ scope.row.subject.O }})
|
|
66
|
+
</template>
|
|
67
|
+
</el-table-column>
|
|
68
|
+
<el-table-column prop="before" label="Эхлэх" />
|
|
69
|
+
<el-table-column prop="after" label="Дуусах" />
|
|
70
|
+
</el-table>
|
|
71
|
+
</div>
|
|
72
|
+
<!-- <div v-if="step === 3">
|
|
73
|
+
<div class="text-content">
|
|
74
|
+
<slot name="content" />
|
|
75
|
+
<div class="transfer-content">
|
|
76
|
+
<div class="left-item" style="margin-left: auto;">
|
|
77
|
+
<slot name="left" />
|
|
78
|
+
</div>
|
|
79
|
+
<i class="transfer-icon el-icon el-icon-d-arrow-right" />
|
|
80
|
+
<div class="right-item" style="margin-right: auto;">
|
|
81
|
+
<slot name="right" />
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<slot name="form-wrapper" />
|
|
85
|
+
</div>
|
|
86
|
+
<sign-info v-if="isSigned" :data="subject" />
|
|
87
|
+
</div> -->
|
|
88
|
+
</div>
|
|
89
|
+
<div slot="footer">
|
|
90
|
+
<slot name="alert" />
|
|
91
|
+
<div v-if="noSignature">
|
|
92
|
+
<el-button :loading="loading" :disabled="!isSigned && !noSignature" :type="isSigned ? 'success' : noSignature ? 'warning' : 'primary'" icon="el-icon-s-check" plain @click="handleAction">
|
|
93
|
+
{{ isReturn ? 'Буцаах' : isTransfer ? 'Шилжүүлэх' : isOtherUserApproved ? confirmTitle : completeTitle }}
|
|
94
|
+
</el-button>
|
|
95
|
+
</div>
|
|
96
|
+
<div v-else v-loading="serialNumberLoading">
|
|
97
|
+
<el-button v-if="step == 0" v-loading="loadingDevice" type="primary" @click.prevent="handleNextStep()">
|
|
98
|
+
Үргэлжлүүлэх
|
|
99
|
+
</el-button>
|
|
100
|
+
<el-button v-if="step === 1" v-loading="isSigning" type="primary" :disabled="!serialNumber" @click.prevent="handleSignRequest(selectedDevice ? selectedDevice.pkId : null)">
|
|
101
|
+
Үргэлжлүүлэх
|
|
102
|
+
</el-button>
|
|
103
|
+
<el-button v-if="step === 2" v-loading="isSigning || loading" type="primary" :disabled="selectedRow == null" @click.prevent="handleCertificateSelect()">
|
|
104
|
+
Гарын үсэг зурах
|
|
105
|
+
</el-button>
|
|
106
|
+
<!-- <el-button v-if="step === 3" :disabled="!noSignature && !isSigned" :loading="loading" type="success" icon="el-icon-s-check" @click="handleAction">
|
|
107
|
+
{{ isReturn ? 'Буцаах' : isTransfer ? 'Шилжүүлэх' : isOtherUserApproved ? confirmTitle : completeTitle }}
|
|
108
|
+
</el-button> -->
|
|
109
|
+
<el-button plain :disabled="loading" @click="handleClose">
|
|
110
|
+
Болих
|
|
111
|
+
</el-button>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</el-dialog>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<script>
|
|
118
|
+
// import { base64ToBlob } from '../../utils/helpers'
|
|
119
|
+
// import DocumentService from '@/services/document/DocumentService'
|
|
120
|
+
// import UserService from '@/services/hrm/UserService'
|
|
121
|
+
import { mapGetters } from 'vuex'
|
|
122
|
+
export default {
|
|
123
|
+
name: 'SignDialog',
|
|
124
|
+
props: {
|
|
125
|
+
visible: { type: Boolean, default: false },
|
|
126
|
+
loading: { type: Boolean, default: false },
|
|
127
|
+
isSigned: { type: Boolean, default: false },
|
|
128
|
+
noSignature: { type: Boolean, default: false },
|
|
129
|
+
document: { type: Object, default: () => {} },
|
|
130
|
+
isReturn: { type: Boolean, default: false },
|
|
131
|
+
isTransfer: { type: Boolean, default: false },
|
|
132
|
+
isOtherUserApproved: { type: Boolean, default: false },
|
|
133
|
+
dialogTitle: { type: String, default: null },
|
|
134
|
+
documentData: { type: String, default: null },
|
|
135
|
+
confirmTitle: { type: String, default: null },
|
|
136
|
+
completeTitle: { type: String, default: null }
|
|
137
|
+
},
|
|
138
|
+
data () {
|
|
139
|
+
return {
|
|
140
|
+
serialNumber: null,
|
|
141
|
+
serialNumberLoading: false,
|
|
142
|
+
temp: null,
|
|
143
|
+
socket: null,
|
|
144
|
+
pin: null,
|
|
145
|
+
sign: null,
|
|
146
|
+
devices: [],
|
|
147
|
+
loadingDevice: false,
|
|
148
|
+
selectedDevice: null,
|
|
149
|
+
selectedRow: null,
|
|
150
|
+
list: [],
|
|
151
|
+
step: 0,
|
|
152
|
+
subject: null,
|
|
153
|
+
isSigning: false,
|
|
154
|
+
certificate: null,
|
|
155
|
+
signature: null
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
computed: {
|
|
159
|
+
...mapGetters('user', ['token']),
|
|
160
|
+
modelVisible: {
|
|
161
|
+
get () { return this.visible },
|
|
162
|
+
set (val) { this.$emit('update:visible', val) }
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
watch: {
|
|
166
|
+
visible (value) {
|
|
167
|
+
if (value) {
|
|
168
|
+
this.loadSerialNumber()
|
|
169
|
+
this.handleGetDevices()
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
mounted () {
|
|
174
|
+
if (this.visible) {
|
|
175
|
+
this.loadSerialNumber()
|
|
176
|
+
this.handleGetDevices()
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
handleNextStep () {
|
|
181
|
+
if (this.selectedDevice) {
|
|
182
|
+
this.step = 1
|
|
183
|
+
} else {
|
|
184
|
+
// handleErrorMessage(this, { type: 'error', description: 'Токен төхөөрөмж сонгоно уу.' })
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
handleGetDevices () {
|
|
188
|
+
this.loadingDevice = true
|
|
189
|
+
this.devices = []
|
|
190
|
+
this.selectedDevice = null
|
|
191
|
+
this.handleSignRequest(null, 'getDevices', true)
|
|
192
|
+
},
|
|
193
|
+
handleSelectDevice (row) {
|
|
194
|
+
this.selectedDevice = row
|
|
195
|
+
},
|
|
196
|
+
loadSerialNumber () {
|
|
197
|
+
// this.serialNumber = 'fdsafdsafdsafdsafdsa'
|
|
198
|
+
// this.serialNumberLoading = false
|
|
199
|
+
// this.serialNumberLoading = true
|
|
200
|
+
// UserService.getSerialNumber(this.$store.getters.userKey._id).then((response) => {
|
|
201
|
+
// this.serialNumber = response.data && response.data.serialNumber ? response.data.serialNumber : null
|
|
202
|
+
// this.serialNumberLoading = false
|
|
203
|
+
// }).catch((error) => {
|
|
204
|
+
// this.$showError(error)
|
|
205
|
+
// this.serialNumberLoading = false
|
|
206
|
+
// })
|
|
207
|
+
},
|
|
208
|
+
handleClose () {
|
|
209
|
+
this.pin = null
|
|
210
|
+
this.sign = null
|
|
211
|
+
this.subject = null
|
|
212
|
+
this.certificate = null
|
|
213
|
+
this.signature = null
|
|
214
|
+
this.isSigning = false
|
|
215
|
+
this.step = 0
|
|
216
|
+
this.list = []
|
|
217
|
+
this.selectedRow = null
|
|
218
|
+
this.socket = null
|
|
219
|
+
// this.$emit('onClose')
|
|
220
|
+
this.modelVisible = false
|
|
221
|
+
},
|
|
222
|
+
handleCertificateSelect () {
|
|
223
|
+
this.$emit('onCertificateSelect', this.selectedRow)
|
|
224
|
+
},
|
|
225
|
+
handleSignRequest (pkId = null, type, noPin, base64String, filename, docId, subject) {
|
|
226
|
+
this.certificate = null
|
|
227
|
+
this.signature = null
|
|
228
|
+
this.isSigning = true
|
|
229
|
+
this.socket = new WebSocket('ws://127.0.0.1:59012/etoken')
|
|
230
|
+
const pkId1 = pkId
|
|
231
|
+
const docId1 = docId
|
|
232
|
+
const subject1 = subject
|
|
233
|
+
this.socket.onclose = (evt) => {
|
|
234
|
+
this.sign = null
|
|
235
|
+
this.subject = null
|
|
236
|
+
this.certificate = null
|
|
237
|
+
this.signature = null
|
|
238
|
+
this.isSigning = false
|
|
239
|
+
}
|
|
240
|
+
this.socket.onopen = (evt) => {
|
|
241
|
+
try {
|
|
242
|
+
if (this.pin || noPin) {
|
|
243
|
+
const request = JSON.stringify({
|
|
244
|
+
text: base64String,
|
|
245
|
+
pin: this.pin,
|
|
246
|
+
id: docId1 || '321',
|
|
247
|
+
deviceSerial: this.selectedDevice ? this.selectedDevice.serialNumber : null,
|
|
248
|
+
library: this.selectedDevice ? this.selectedDevice.library : null,
|
|
249
|
+
pkId: pkId1,
|
|
250
|
+
code: type || (pkId1 ? 'signPdf' : 'getCertificates')
|
|
251
|
+
})
|
|
252
|
+
this.socket.send(request, 0)
|
|
253
|
+
this.isSigning = true
|
|
254
|
+
}
|
|
255
|
+
} catch (err) {
|
|
256
|
+
this.$showError(err)
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
this.socket.onerror = () => {
|
|
260
|
+
this.$showError('ШШЕГ Тоон гарын үсэг програмтай холбогдож чадсангүй')
|
|
261
|
+
this.isSigning = false
|
|
262
|
+
this.loadingDevice = false
|
|
263
|
+
this.socket.close()
|
|
264
|
+
}
|
|
265
|
+
this.socket.onmessage = (evt) => {
|
|
266
|
+
try {
|
|
267
|
+
this.isSigning = false
|
|
268
|
+
const res = JSON.parse(evt.data)
|
|
269
|
+
if (res.success) {
|
|
270
|
+
if (res.code === 'getDevices') {
|
|
271
|
+
this.devices = res.devices
|
|
272
|
+
if (res.devices && res.devices.length === 1) {
|
|
273
|
+
this.selectedDevice = this.devices[0]
|
|
274
|
+
this.step = 1
|
|
275
|
+
}
|
|
276
|
+
this.loadingDevice = false
|
|
277
|
+
}
|
|
278
|
+
if (res.code === 'signPdf') {
|
|
279
|
+
this.$emit('onSignedPdf', pkId1, res.signature, filename, subject1)
|
|
280
|
+
}
|
|
281
|
+
if (res.code === 'getCertificates') {
|
|
282
|
+
this.$showSuccess(res.message)
|
|
283
|
+
// handleErrorMessage(this, { type: 'success', description: res.message })
|
|
284
|
+
this.step = 2
|
|
285
|
+
this.list = []
|
|
286
|
+
res.list.forEach((element) => {
|
|
287
|
+
const subjectData = {}
|
|
288
|
+
element.subject.replaceAll('\\,', '&&').split(',').forEach((subj) => {
|
|
289
|
+
const values = subj.replaceAll('&&', ',').split('=')
|
|
290
|
+
subjectData[values[0]] = values[1]
|
|
291
|
+
})
|
|
292
|
+
element.subject = subjectData
|
|
293
|
+
this.list.push(element)
|
|
294
|
+
})
|
|
295
|
+
if (this.list.length === 1) {
|
|
296
|
+
this.selectedRow = this.list[0]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} else if (res.message) {
|
|
300
|
+
// handleErrorMessage(this, { type: 'error', description: res.message })
|
|
301
|
+
this.$showError(res.message)
|
|
302
|
+
}
|
|
303
|
+
this.socket.close()
|
|
304
|
+
} catch (err) {
|
|
305
|
+
this.$showError(err)
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
handleAction () {
|
|
311
|
+
if (this.isReturn) {
|
|
312
|
+
this.$emit('onAction', 'RETURN')
|
|
313
|
+
} else if (this.isTransfer) {
|
|
314
|
+
this.$emit('onAction', 'TRANSFERUSER')
|
|
315
|
+
} else {
|
|
316
|
+
this.$emit('onAction', this.isOtherUserApproved ? 'TRANSFER' : 'COMPLETE')
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
</script>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="data" class="signature">
|
|
3
|
+
<el-divider content-position="center">
|
|
4
|
+
ТООН ГАРЫН ҮСГИЙН МЭДЭЭЛЭЛ
|
|
5
|
+
</el-divider>
|
|
6
|
+
<div>
|
|
7
|
+
<div>Сериал дугаар : </div>{{ data.serialNumber }}
|
|
8
|
+
</div>
|
|
9
|
+
<div>
|
|
10
|
+
<div>Дуусах огноо : </div>{{ $moment(data.expireAt).format('YYYY-MM-DD') }}
|
|
11
|
+
</div>
|
|
12
|
+
<div v-for="(property, index) in data.subject" :key="`p_${index}`">
|
|
13
|
+
<div weight="bold">
|
|
14
|
+
{{ property.label }} :
|
|
15
|
+
</div> {{ property.value }}
|
|
16
|
+
</div>
|
|
17
|
+
<div v-if="data.issuer.filter((i) => ['name', 'organizationName'].indexOf(i.key) > -1)">
|
|
18
|
+
<div>Гэрчилгээ олгосон : </div>
|
|
19
|
+
<b v-if="name = data.issuer.find((i) => i.key === 'organizationName')">
|
|
20
|
+
{{ name.value }}
|
|
21
|
+
</b>
|
|
22
|
+
<template v-if="name = data.issuer.find((i) => i.key === 'name')">
|
|
23
|
+
( {{ name.value }} )
|
|
24
|
+
</template>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
export default {
|
|
31
|
+
name: 'SignInfo',
|
|
32
|
+
props: {
|
|
33
|
+
data: { type: Object, default: () => {} }
|
|
34
|
+
},
|
|
35
|
+
watch: {
|
|
36
|
+
visible (value) {
|
|
37
|
+
if (value) {
|
|
38
|
+
// this.initializeSocket()
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog width="650px" :show-close="false" class="action-dialog signature-dialog" :close-on-click-modal="true" :close-on-press-escape="false" :title="dialogTitle" :visible.sync="modelVisible" :before-close="handleClose">
|
|
3
|
+
<div v-loading="loading" style="min-height: 50px">
|
|
4
|
+
<template v-if="data">
|
|
5
|
+
<div style="margin: var(--padding-small) var(--padding-xlarge); display: flex;flex-direction: row;justify-content: space-between;">
|
|
6
|
+
<!-- <sg-profile
|
|
7
|
+
v-if="data.user"
|
|
8
|
+
:p-number-of-lines="1"
|
|
9
|
+
:icon-size="$store.getters.systemDefaultProfileSize"
|
|
10
|
+
:name="data.user.userInfoId ? data.user.userInfoId.surname.slice(0, 1) + ' ' + data.user.userInfoId.givenName : ' - '"
|
|
11
|
+
:position="data.user.positionId ? data.user.positionId.name : '-'"
|
|
12
|
+
:userKeyId="data.user._id"
|
|
13
|
+
:haveImage="true"
|
|
14
|
+
/> -->
|
|
15
|
+
<el-tag v-if="data.date" type="info" style="margin-left: auto; margin-right: 5px">
|
|
16
|
+
<i class="el-icon-time" />
|
|
17
|
+
<span style="margin-left: 5px">{{ data.date ? $moment(data.date).format('YYYY-MM-DD HH:mm') : ' - ' }}</span>
|
|
18
|
+
</el-tag>
|
|
19
|
+
</div>
|
|
20
|
+
<!-- <document-sign-info v-if="data.info" :isShowTitle="false" :data="data.info" /> -->
|
|
21
|
+
</template>
|
|
22
|
+
<div v-else-if="!loading && !data" style="padding-top: var(--padding-large); padding-bottom: var(--padding-xxlarge); text-align: center">
|
|
23
|
+
Мэдээлэл байхгүй байна.
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div slot="footer">
|
|
27
|
+
<el-button plain :disabled="loading" @click="handleClose">
|
|
28
|
+
Хаах
|
|
29
|
+
</el-button>
|
|
30
|
+
</div>
|
|
31
|
+
</el-dialog>
|
|
32
|
+
</template>
|
|
33
|
+
<script>
|
|
34
|
+
export default {
|
|
35
|
+
name: 'SignInfoDialog',
|
|
36
|
+
props: {
|
|
37
|
+
visible: { type: Boolean, default: false },
|
|
38
|
+
filter: { type: Object, default: () => {} },
|
|
39
|
+
dialogTitle: { type: String, default: 'Зурсан тоон гарын үсгийн мэдээлэл' }
|
|
40
|
+
},
|
|
41
|
+
data () {
|
|
42
|
+
return {
|
|
43
|
+
loading: false,
|
|
44
|
+
data: null
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
computed: {
|
|
48
|
+
modelVisible: {
|
|
49
|
+
get () { return this.visible },
|
|
50
|
+
set (val) { this.$emit('update:visible', val) }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
watch: {
|
|
54
|
+
visible (value) {
|
|
55
|
+
if (value && this.filter) {
|
|
56
|
+
this.handleLoad()
|
|
57
|
+
// this.initializeSocket()
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
handleLoad () {
|
|
63
|
+
this.loading = true
|
|
64
|
+
this.$store.dispatch('GET_SIGNATURE_DOCUMENT', { id: this.filter.docRequestId, statusCode: this.filter.statusCode, userId: this.filter.userId }).then((response) => {
|
|
65
|
+
this.data = response
|
|
66
|
+
this.loading = false
|
|
67
|
+
}, (error) => {
|
|
68
|
+
this.loading = false
|
|
69
|
+
this.$showError(error)
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
handleClose () {
|
|
73
|
+
this.data = null
|
|
74
|
+
this.$emit('onClose')
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|