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,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col gap-2">
|
|
3
|
+
<div v-if="loading" class="text-coreSecondaryText font-semibold text-sm py-2 text-center">
|
|
4
|
+
Түр хүлээнэ үү..
|
|
5
|
+
</div>
|
|
6
|
+
<div v-for="item in list" :key="item._id" class="text-coreRegularText flex flex-col gap-2 text-sm border px-4 py-2 rounded-lg">
|
|
7
|
+
<div class="flex gap-4 justify-between items-center">
|
|
8
|
+
<div class="flex flex-col gap-1 flex-1">
|
|
9
|
+
<div class="flex gap-4 items-center ">
|
|
10
|
+
<el-tag disable-transitions :type="item.action.type" size="mini">
|
|
11
|
+
{{ item.action.title }}
|
|
12
|
+
</el-tag>
|
|
13
|
+
<div class="leading-3">
|
|
14
|
+
{{ item.title }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-if="item.description">
|
|
18
|
+
<el-tag disable-transitions type="info" size="mini">
|
|
19
|
+
Үйлдлийн тайлбар: {{ item.description }}
|
|
20
|
+
</el-tag>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="flex flex-col items-start w-[150px]">
|
|
24
|
+
<div><i class="el-icon-user" /> {{ item.created_user }}</div>
|
|
25
|
+
<div><i class="el-icon-alarm-clock" /> <span class="text-coreSecondaryText font-semibold text-xs">{{ item.created_date }}</span></div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-if="item.values" class="flex gap-1 flex-wrap rounded font-[500]">
|
|
29
|
+
<div v-for="(val, ind) in item.values" :key="ind.toString()" class="bg-coreBgInput px-2 py-1 text-xs">
|
|
30
|
+
{{ val }}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div v-if="!loading" class="text-center">
|
|
35
|
+
<el-button v-if="count > list.length" type="text" :loading="loadingMore" icon="el-icon-arrow-down" @click="handleRefresh(true)">
|
|
36
|
+
Өмнөх лог: {{ list.length }}/{{ count }}
|
|
37
|
+
</el-button>
|
|
38
|
+
<div v-else class="text-coreSecondaryText font-semibold text-sm py-2">
|
|
39
|
+
Нийт лог: {{ count }}
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
<script>
|
|
45
|
+
export default {
|
|
46
|
+
props: {
|
|
47
|
+
project_id: { type: [String, Number], default: null },
|
|
48
|
+
table_id: { type: [String, Number], default: null },
|
|
49
|
+
pk_id: { type: String, default: null }
|
|
50
|
+
},
|
|
51
|
+
data () {
|
|
52
|
+
return {
|
|
53
|
+
loading: false,
|
|
54
|
+
loadingMore: false,
|
|
55
|
+
list: [],
|
|
56
|
+
count: 0
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
mounted () {
|
|
60
|
+
this.handleRefresh()
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
async handleRefresh (isMore = false) {
|
|
64
|
+
try {
|
|
65
|
+
if (this.loading || this.loadingMore) {
|
|
66
|
+
return
|
|
67
|
+
}
|
|
68
|
+
if (!isMore) {
|
|
69
|
+
this.loading = true
|
|
70
|
+
this.list = []
|
|
71
|
+
} else {
|
|
72
|
+
this.loadingMore = false
|
|
73
|
+
}
|
|
74
|
+
const { data: { list, count } } = await this.$axios.get(`log/list/${this.project_id}/${this.table_id}/${this.pk_id}/${this.list.length}/5`)
|
|
75
|
+
this.list = this.list.concat(list)
|
|
76
|
+
this.count = count
|
|
77
|
+
} catch (err) {
|
|
78
|
+
this.$showError(err)
|
|
79
|
+
} finally {
|
|
80
|
+
this.loadingMore = false
|
|
81
|
+
this.loading = false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</script>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<tr class="border-b">
|
|
3
|
+
<td class="text-center">
|
|
4
|
+
{{ ind + 1 }}
|
|
5
|
+
</td>
|
|
6
|
+
<td>{{ item.name }}</td>
|
|
7
|
+
<td class="text-center py-4">
|
|
8
|
+
{{ item.lifetime_year }}
|
|
9
|
+
</td>
|
|
10
|
+
<td :align="'center'">
|
|
11
|
+
<el-switch v-model="selected" size="small" />
|
|
12
|
+
</td>
|
|
13
|
+
<td :align="'center'" class="px-2">
|
|
14
|
+
<core-select-enum
|
|
15
|
+
v-if="selected"
|
|
16
|
+
v-model="size"
|
|
17
|
+
size="small"
|
|
18
|
+
:enum_values="item.type_general_id.clothe_sizes"
|
|
19
|
+
/>
|
|
20
|
+
</td>
|
|
21
|
+
<td :align="'center'" class="px-2">
|
|
22
|
+
<el-input-number v-if="selected" v-model="total" size="small" controls-position="right" :min="1" />
|
|
23
|
+
</td>
|
|
24
|
+
<td class="py-2">
|
|
25
|
+
<core-date v-if="selected" v-model="received_date" size="small" />
|
|
26
|
+
</td>
|
|
27
|
+
<td class="py-2 px-2">
|
|
28
|
+
<el-input v-if="selected" v-model="description" type="textarea" size="small" show-word-limit :autosize="{ minRows: 1, maxRows: 6 }" />
|
|
29
|
+
</td>
|
|
30
|
+
<td class="py-2">
|
|
31
|
+
{{ value?.next_receive_date?.$date() }}
|
|
32
|
+
</td>
|
|
33
|
+
</tr>
|
|
34
|
+
</template>
|
|
35
|
+
<script>
|
|
36
|
+
export default {
|
|
37
|
+
props: {
|
|
38
|
+
ind: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 0
|
|
41
|
+
},
|
|
42
|
+
item: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => { return null }
|
|
45
|
+
},
|
|
46
|
+
value: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => { return null }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
selected: {
|
|
53
|
+
get () {
|
|
54
|
+
return !!this.value
|
|
55
|
+
},
|
|
56
|
+
set (val) {
|
|
57
|
+
if (!!this.value === val) {
|
|
58
|
+
return
|
|
59
|
+
}
|
|
60
|
+
if (val) {
|
|
61
|
+
this.$emit('change', { clothe_reg_id: this.item })
|
|
62
|
+
} else {
|
|
63
|
+
this.$emit('remove', { clothe_reg_id: this.item })
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
total: {
|
|
68
|
+
get () {
|
|
69
|
+
return this.value?.total || 1
|
|
70
|
+
},
|
|
71
|
+
set (val) {
|
|
72
|
+
const oldVal = this.value?.total || 1
|
|
73
|
+
if (Number(oldVal) === Number(val)) {
|
|
74
|
+
return
|
|
75
|
+
}
|
|
76
|
+
this.$emit('change', { clothe_reg_id: this.item, total: val })
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
size: {
|
|
80
|
+
get () {
|
|
81
|
+
return this.value?.size
|
|
82
|
+
},
|
|
83
|
+
set (val) {
|
|
84
|
+
this.$emit('change', { clothe_reg_id: this.item, size: val })
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
received_date: {
|
|
88
|
+
get () {
|
|
89
|
+
return this.value?.received_date
|
|
90
|
+
},
|
|
91
|
+
set (val) {
|
|
92
|
+
this.$emit('change', { clothe_reg_id: this.item, received_date: val })
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
description: {
|
|
96
|
+
get () {
|
|
97
|
+
return this.value?.description
|
|
98
|
+
},
|
|
99
|
+
set (val) {
|
|
100
|
+
this.$emit('change', { clothe_reg_id: this.item, description: val })
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</script>
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="loading">
|
|
3
|
+
<core-loader />
|
|
4
|
+
</div>
|
|
5
|
+
<div v-else class="flex flex-col gap-2 px-4 py-2">
|
|
6
|
+
<div class="border-b pb-1 font-medium text-sm text-coreRegularText">
|
|
7
|
+
Өөрийн хувцасны хэмжээг засварлах:
|
|
8
|
+
</div>
|
|
9
|
+
<div class="w-full pb-2 grid grid-cols-1 sm:grid-cols-2 gap-2">
|
|
10
|
+
<div v-for="item in types" :key="item._id" class="">
|
|
11
|
+
<div
|
|
12
|
+
class="flex gap-2 items-center overflow-hidden"
|
|
13
|
+
>
|
|
14
|
+
<div class="text-sm text-coreRegularText w-40 text-right leading-3">
|
|
15
|
+
{{ item.name }}
|
|
16
|
+
</div>
|
|
17
|
+
<el-select
|
|
18
|
+
:value="getValue(item)"
|
|
19
|
+
size="mini"
|
|
20
|
+
class="w-28"
|
|
21
|
+
@change="($event) => handleChange(item, $event)"
|
|
22
|
+
>
|
|
23
|
+
<el-option v-for="val in item.clothe_sizes.split(',')" :key="val" :label="val" :value="val" />
|
|
24
|
+
</el-select>
|
|
25
|
+
<i v-if="loadingTypes.includes(item._id)" class="el-icon-loading text-coreSecondaryText" />
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="border-b pb-1 font-medium text-sm text-coreRegularText">
|
|
30
|
+
Хувцас хангалтын систем дэх таны хувцасны хэмжээ:
|
|
31
|
+
</div>
|
|
32
|
+
<div class="w-full pb-2 grid grid-cols-2 gap-2">
|
|
33
|
+
<div v-for="item in types" :key="item._id" class="">
|
|
34
|
+
<div
|
|
35
|
+
class="flex gap-2 items-center overflow-hidden"
|
|
36
|
+
>
|
|
37
|
+
<div class="text-sm text-coreRegularText w-40 text-right">
|
|
38
|
+
{{ item.name }}:
|
|
39
|
+
</div>
|
|
40
|
+
<div class="text-sm text-coreRegularText font-bold">
|
|
41
|
+
{{ getValue(item) || 'сонгоогүй' }}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<el-tabs type="card" class="pb-4">
|
|
47
|
+
<el-tab-pane label="Хангалтаар авсан хувцас хэрэгсэл">
|
|
48
|
+
<el-button
|
|
49
|
+
v-if="level?.actions?.some(c => c.code === 'EDIT')"
|
|
50
|
+
size="small"
|
|
51
|
+
type="primary"
|
|
52
|
+
plain
|
|
53
|
+
icon="el-icon-check"
|
|
54
|
+
@click="visible = true"
|
|
55
|
+
>
|
|
56
|
+
{{ title }}
|
|
57
|
+
</el-button>
|
|
58
|
+
<table class="w-full text-sm mx-4">
|
|
59
|
+
<colgroup>
|
|
60
|
+
<col width="50" class="py-2 text-center">
|
|
61
|
+
<col width="140" class="px-2">
|
|
62
|
+
<col width="140">
|
|
63
|
+
<col width="60" class="px-2">
|
|
64
|
+
<col width="60" class="px-2">
|
|
65
|
+
<col width="120" class="px-2">
|
|
66
|
+
<col width="140">
|
|
67
|
+
<col width="140">
|
|
68
|
+
<col>
|
|
69
|
+
</colgroup>
|
|
70
|
+
<thead>
|
|
71
|
+
<tr class="border-b text-coreRegularText font-medium">
|
|
72
|
+
<td class="text-center">
|
|
73
|
+
№
|
|
74
|
+
</td>
|
|
75
|
+
<td>Төрөл</td>
|
|
76
|
+
<td>Хувцас хэрэгсэл</td>
|
|
77
|
+
<td class="text-center">
|
|
78
|
+
Эдэлгээний хугацаа жил
|
|
79
|
+
</td>
|
|
80
|
+
<td class="text-center text-center">
|
|
81
|
+
Хэмжээ
|
|
82
|
+
</td>
|
|
83
|
+
<td class="py-2 px-2 text-center">
|
|
84
|
+
Тоо ширхэг
|
|
85
|
+
</td>
|
|
86
|
+
<td class="py-2 px-2 text-center">
|
|
87
|
+
Хүлээн авсан огноо
|
|
88
|
+
</td>
|
|
89
|
+
<td class="py-2 px-2 text-center">
|
|
90
|
+
Дараагийн хэрэгсэл авах огноо
|
|
91
|
+
</td>
|
|
92
|
+
<td class="py-2 px-2 text-center">
|
|
93
|
+
Тайлбар
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</thead>
|
|
97
|
+
<tbody>
|
|
98
|
+
<tr v-if="!loading && clothes.length === 0" class="border-b">
|
|
99
|
+
<td class="text-center py-4 text-coreSecondaryText" colspan="7">
|
|
100
|
+
Хангалтаар авсан хувцас хэрэгсэл байхгүй байна..
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
<template v-for="(item, index) in clothes">
|
|
104
|
+
<tr
|
|
105
|
+
v-if="index === 0 || clothes[index - 1]?.clothe_reg_id?.type_general_id?._id !== item.clothe_reg_id?.type_general_id._id"
|
|
106
|
+
:key="item._id + '_type'"
|
|
107
|
+
class="border-b"
|
|
108
|
+
>
|
|
109
|
+
<td class="font-medium bg-gray-50 px-5 py-1 text-base" colspan="9">
|
|
110
|
+
{{ item.clothe_reg_id?.type_general_id?.name }}
|
|
111
|
+
</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr :key="item._id" class="border-b">
|
|
114
|
+
<td class="text-center">
|
|
115
|
+
{{ index + 1 }}
|
|
116
|
+
</td>
|
|
117
|
+
<td>{{ item.type_id?.name }}</td>
|
|
118
|
+
<td>{{ item.clothe_reg_id?.name }}</td>
|
|
119
|
+
<td class="text-center py-4">
|
|
120
|
+
{{ item.lifetime_year }}
|
|
121
|
+
</td>
|
|
122
|
+
<td class="py-2 text-center">
|
|
123
|
+
{{ item.size }}
|
|
124
|
+
</td>
|
|
125
|
+
<td class="py-2 text-center">
|
|
126
|
+
{{ item.total }}
|
|
127
|
+
</td>
|
|
128
|
+
<td class="py-2">
|
|
129
|
+
{{ item.received_date?.$date() }}
|
|
130
|
+
</td>
|
|
131
|
+
<td class="py-2">
|
|
132
|
+
{{ item.next_receive_date?.$date() }}
|
|
133
|
+
</td>
|
|
134
|
+
<td class="py-2">
|
|
135
|
+
{{ item.description }}
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
</template>
|
|
139
|
+
</tbody>
|
|
140
|
+
</table>
|
|
141
|
+
</el-tab-pane>
|
|
142
|
+
<el-tab-pane label="Хугацаа болсон авах хувцас хэрэгсэл">
|
|
143
|
+
<table class="w-full text-sm mx-4">
|
|
144
|
+
<colgroup>
|
|
145
|
+
<col width="50" class="py-2 text-center">
|
|
146
|
+
<col width="140" class="px-2">
|
|
147
|
+
<col width="140">
|
|
148
|
+
<col width="120" class="px-2">
|
|
149
|
+
<col width="140">
|
|
150
|
+
<col width="140">
|
|
151
|
+
<col>
|
|
152
|
+
</colgroup>
|
|
153
|
+
<thead>
|
|
154
|
+
<tr class="border-b text-coreRegularText font-medium">
|
|
155
|
+
<td class="text-center">
|
|
156
|
+
№
|
|
157
|
+
</td>
|
|
158
|
+
<td>Төрөл</td>
|
|
159
|
+
<td>Хувцас хэрэгсэл</td>
|
|
160
|
+
<td class="text-center">
|
|
161
|
+
Эдэлгээний хугацаа жил
|
|
162
|
+
</td>
|
|
163
|
+
<td class="py-2 px-2">
|
|
164
|
+
Хүлээн авсан огноо
|
|
165
|
+
</td>
|
|
166
|
+
<td class="py-2 px-2">
|
|
167
|
+
Дараагийн хэрэгсэл авах огноо
|
|
168
|
+
</td>
|
|
169
|
+
<td class="py-2 px-2">
|
|
170
|
+
Тайлбар
|
|
171
|
+
</td>
|
|
172
|
+
</tr>
|
|
173
|
+
</thead>
|
|
174
|
+
<tbody>
|
|
175
|
+
<tr v-if="!loading && expiredClothes.length === 0" class="border-b">
|
|
176
|
+
<td class="text-center py-4 text-coreSecondaryText" colspan="7">
|
|
177
|
+
Хугацаа болсон авах хувцас хэрэгсэл байхгүй байна..
|
|
178
|
+
</td>
|
|
179
|
+
</tr>
|
|
180
|
+
<tr v-for="(item, index) in expiredClothes" :key="item._id" class="border-b">
|
|
181
|
+
<td class="text-center">
|
|
182
|
+
{{ index + 1 }}
|
|
183
|
+
</td>
|
|
184
|
+
<td>{{ item.type_id.name }}</td>
|
|
185
|
+
<td>{{ item.clothe_reg_id.name }}</td>
|
|
186
|
+
<td class="text-center">
|
|
187
|
+
{{ item.lifetime_year }}
|
|
188
|
+
</td>
|
|
189
|
+
<td class="py-4">
|
|
190
|
+
{{ item.received_date?.$date() }}
|
|
191
|
+
</td>
|
|
192
|
+
<td class="py-2">
|
|
193
|
+
{{ item.next_receive_date?.$date() }}
|
|
194
|
+
</td>
|
|
195
|
+
<td class="py-2">
|
|
196
|
+
{{ item.description }}
|
|
197
|
+
</td>
|
|
198
|
+
</tr>
|
|
199
|
+
</tbody>
|
|
200
|
+
</table>
|
|
201
|
+
</el-tab-pane>
|
|
202
|
+
<el-tab-pane label="Бэлэн байгаа хувцасны мэдээлэл">
|
|
203
|
+
<div class="text-center py-4 text-coreSecondaryText text-sm">
|
|
204
|
+
Түр засвартай байна..
|
|
205
|
+
</div>
|
|
206
|
+
</el-tab-pane>
|
|
207
|
+
</el-tabs>
|
|
208
|
+
<el-dialog :visible.sync="visible" :title="title" width="950px">
|
|
209
|
+
<div v-if="visible" class="flex flex-col gap-2">
|
|
210
|
+
<el-alert :closable="false" title="Та хүлээн авсан огноогоо мэдэхгүй бол хоосон үлдээнэ үү." type="warning" show-icon />
|
|
211
|
+
<table class="bg-white rounded w-full text-sm leading-4">
|
|
212
|
+
<colgroup>
|
|
213
|
+
<col width="50" class="py-2 text-center">
|
|
214
|
+
<col width="140">
|
|
215
|
+
<col width="80" class="px-2">
|
|
216
|
+
<col width="60">
|
|
217
|
+
<col width="90">
|
|
218
|
+
<col width="90">
|
|
219
|
+
<col width="140">
|
|
220
|
+
<col>
|
|
221
|
+
<col width="100">
|
|
222
|
+
</colgroup>
|
|
223
|
+
<thead>
|
|
224
|
+
<tr class="border-b text-coreRegularText font-medium">
|
|
225
|
+
<td class="text-center">
|
|
226
|
+
№
|
|
227
|
+
</td>
|
|
228
|
+
<td>Хувцас хэрэгсэл</td>
|
|
229
|
+
<td class="text-center">
|
|
230
|
+
Эдэлгээний хугацаа жил
|
|
231
|
+
</td>
|
|
232
|
+
<td :align="'center'" class="text-center">
|
|
233
|
+
Авсан эсэх?
|
|
234
|
+
</td>
|
|
235
|
+
<td :align="'center'" class="text-center">
|
|
236
|
+
Хэмжээ
|
|
237
|
+
</td>
|
|
238
|
+
<td :align="'center'" class="text-center">
|
|
239
|
+
Тоо ширхэг
|
|
240
|
+
</td>
|
|
241
|
+
<td class="py-2 px-2 text-center">
|
|
242
|
+
Хүлээн авсан огноо
|
|
243
|
+
</td>
|
|
244
|
+
<td class="py-2 px-2 text-center">
|
|
245
|
+
Тайлбар
|
|
246
|
+
</td>
|
|
247
|
+
<td class="py-2 px-2 text-center">
|
|
248
|
+
Дараагийн хэрэгсэл авах огноо
|
|
249
|
+
</td>
|
|
250
|
+
</tr>
|
|
251
|
+
</thead>
|
|
252
|
+
<tbody>
|
|
253
|
+
<tr v-if="!loading && clotheRegs.length === 0" class="border-b">
|
|
254
|
+
<td class="text-center py-4 text-coreSecondaryText" colspan="9">
|
|
255
|
+
Хангалтаар авсан хувцас хэрэгсэл байхгүй байна..
|
|
256
|
+
</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<template v-for="(item, index) in clotheRegs">
|
|
259
|
+
<tr
|
|
260
|
+
v-if="index === 0 || clotheRegs[index - 1]?.type_general_id?._id !== item.type_general_id._id"
|
|
261
|
+
:key="item._id + '_type'"
|
|
262
|
+
class="border-b"
|
|
263
|
+
>
|
|
264
|
+
<td class="font-medium bg-gray-50 px-5 py-1 text-base" colspan="9">
|
|
265
|
+
{{ item.type_general_id.name }}
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<custom-user-clothe-row
|
|
269
|
+
:key="item._id"
|
|
270
|
+
:item="item"
|
|
271
|
+
:ind="index"
|
|
272
|
+
:rowspan="clothes.filter(c => c.clothe_reg_id?._id === item._id).length"
|
|
273
|
+
:value="clothes.find(c => c.clothe_reg_id?._id === item._id)"
|
|
274
|
+
@change="handleChangeUserClothe"
|
|
275
|
+
@remove="handleRemoveUserClothe"
|
|
276
|
+
/>
|
|
277
|
+
</template>
|
|
278
|
+
</tbody>
|
|
279
|
+
</table>
|
|
280
|
+
</div>
|
|
281
|
+
<div slot="footer">
|
|
282
|
+
<el-button size="small" icon="el-icon-close" @click="visible = false">
|
|
283
|
+
Хаах
|
|
284
|
+
</el-button>
|
|
285
|
+
</div>
|
|
286
|
+
</el-dialog>
|
|
287
|
+
</div>
|
|
288
|
+
</template>
|
|
289
|
+
<script>
|
|
290
|
+
export default {
|
|
291
|
+
props: {
|
|
292
|
+
temp: { type: Object, default: () => { return null } },
|
|
293
|
+
level: { type: Object, default: () => { return null } }
|
|
294
|
+
},
|
|
295
|
+
data () {
|
|
296
|
+
return {
|
|
297
|
+
list: [],
|
|
298
|
+
types: [],
|
|
299
|
+
loading: false,
|
|
300
|
+
loadingTypes: [],
|
|
301
|
+
clothes: [],
|
|
302
|
+
expiredClothes: [],
|
|
303
|
+
clotheRegs: [],
|
|
304
|
+
title: 'Хангалтаар авсан хувцас хэрэгсэл удирдах',
|
|
305
|
+
visible: false,
|
|
306
|
+
timeoutUserClothe: {}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
watch: {
|
|
310
|
+
'temp._id' () {
|
|
311
|
+
this.getList()
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
mounted () {
|
|
315
|
+
this.getList()
|
|
316
|
+
},
|
|
317
|
+
methods: {
|
|
318
|
+
handleChangeUserClothe ($event) {
|
|
319
|
+
const index = this.clothes.findIndex(c => c.clothe_reg_id?._id === $event.clothe_reg_id?._id)
|
|
320
|
+
clearTimeout(this.timeoutUserClothe[$event.clothe_reg_id?._id])
|
|
321
|
+
if (index === -1) {
|
|
322
|
+
const item = {
|
|
323
|
+
...$event,
|
|
324
|
+
category_id: $event.clothe_reg_id?.category_id,
|
|
325
|
+
type_id: $event.clothe_reg_id?.type_id,
|
|
326
|
+
lifetime_year: $event.clothe_reg_id?.lifetime_year,
|
|
327
|
+
total: 1,
|
|
328
|
+
description: null,
|
|
329
|
+
received_date: null,
|
|
330
|
+
next_receive_date: null,
|
|
331
|
+
employee_id: this.temp._id
|
|
332
|
+
}
|
|
333
|
+
this.clothes.push({ ...item })
|
|
334
|
+
this.timeoutUserClothe[$event.clothe_reg_id?._id] = setTimeout(() => this.handleSaveUserClothe(item, true), 1000)
|
|
335
|
+
} else {
|
|
336
|
+
const item = this.clothes.find(c => c.clothe_reg_id?._id === $event.clothe_reg_id?._id)
|
|
337
|
+
const item1 = { ...item, ...$event }
|
|
338
|
+
const next_receive_date = item1.received_date ? this.$moment(item1.received_date).add(item1.clothe_reg_id.lifetime_year, 'years').format('YYYY-MM-DD') : null
|
|
339
|
+
const item2 = { ...item1, ...$event, next_receive_date }
|
|
340
|
+
this.clothes.splice(index, 1, { ...item2 })
|
|
341
|
+
this.timeoutUserClothe[$event.clothe_reg_id?._id] = setTimeout(() => this.handleSaveUserClothe(item2, true), 1000)
|
|
342
|
+
}
|
|
343
|
+
this.clothes.sort((a, b) => {
|
|
344
|
+
if (a.clothe_reg_id?.type_general_id?.sort_order !== b.clothe_reg_id?.type_general_id?.sort_order) {
|
|
345
|
+
return a.clothe_reg_id?.type_general_id?.sort_order - b.clothe_reg_id?.type_general_id?.sort_order
|
|
346
|
+
}
|
|
347
|
+
return a.clothe_reg_id?.sort_order - b.clothe_reg_id?.sort_order
|
|
348
|
+
})
|
|
349
|
+
},
|
|
350
|
+
handleRemoveUserClothe ($event) {
|
|
351
|
+
const index = this.clothes.findIndex(c => c.clothe_reg_id?._id === $event.clothe_reg_id?._id)
|
|
352
|
+
if (index > -1) {
|
|
353
|
+
this.clothes.splice(index, 1)
|
|
354
|
+
}
|
|
355
|
+
clearTimeout(this.timeoutUserClothe[$event.clothe_reg_id?._id])
|
|
356
|
+
this.timeoutUserClothe[$event.clothe_reg_id?._id] = setTimeout(() => this.handleSaveUserClothe($event, false), 1000)
|
|
357
|
+
},
|
|
358
|
+
async handleSaveUserClothe ($event, isUpdate) {
|
|
359
|
+
try {
|
|
360
|
+
const { data: clothe } = await this.$axios.get('one/5/service_clothe_tamachis', {
|
|
361
|
+
params: {
|
|
362
|
+
search: JSON.stringify({
|
|
363
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' },
|
|
364
|
+
clothe_reg_id: { op: 'eq', val: $event.clothe_reg_id._id, t: 'number' }
|
|
365
|
+
})
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
if (isUpdate) {
|
|
369
|
+
await this.$axios.post('5/service_clothe_tamachis', { ...$event, _id: clothe?._id, tid: clothe.tid })
|
|
370
|
+
} else if (clothe) {
|
|
371
|
+
await this.$axios.delete(`5/service_clothe_tamachis/${clothe._id}`, {
|
|
372
|
+
data: { tid: clothe.tid }
|
|
373
|
+
})
|
|
374
|
+
}
|
|
375
|
+
} catch (err) {
|
|
376
|
+
this.$showError(err)
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
getValue (item) {
|
|
380
|
+
const r = this.list.find(c => c.general_type_id?._id === item._id)
|
|
381
|
+
return r?.clothe_sizes
|
|
382
|
+
},
|
|
383
|
+
async handleChange (item, $event) {
|
|
384
|
+
try {
|
|
385
|
+
if (this.loadingTypes.includes(item._id)) {
|
|
386
|
+
return
|
|
387
|
+
}
|
|
388
|
+
this.loadingTypes.push(item._id)
|
|
389
|
+
let changedItem = this.list.find(c => c.general_type_id?._id === item._id)
|
|
390
|
+
if (changedItem) {
|
|
391
|
+
changedItem.clothe_sizes = $event
|
|
392
|
+
} else {
|
|
393
|
+
changedItem = { employee_id: this.temp._id, general_type_id: item, clothe_sizes: $event }
|
|
394
|
+
this.list.push({ ...changedItem })
|
|
395
|
+
}
|
|
396
|
+
await this.$axios.post('5/hrm_employee_clothe_sizes', { ...changedItem })
|
|
397
|
+
} catch (err) {
|
|
398
|
+
this.$showError(err)
|
|
399
|
+
} finally {
|
|
400
|
+
const index = this.loadingTypes.indexOf(item._id)
|
|
401
|
+
if (index > -1) {
|
|
402
|
+
this.loadingTypes.splice(index, 1)
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
async getList () {
|
|
407
|
+
try {
|
|
408
|
+
this.clothes = []
|
|
409
|
+
this.expiredClothes = []
|
|
410
|
+
this.types = []
|
|
411
|
+
this.list = []
|
|
412
|
+
if (!this.temp || !this.temp._id) {
|
|
413
|
+
return
|
|
414
|
+
}
|
|
415
|
+
this.loading = true
|
|
416
|
+
const { data: clotheRegs } = await this.$axios.get('list/5/ref_clothe_regs', {
|
|
417
|
+
params: {
|
|
418
|
+
extraFields: 'type_general_id.clothe_sizes,type_general_id.sort_order'
|
|
419
|
+
}
|
|
420
|
+
})
|
|
421
|
+
const { data: list } = await this.$axios.get('list/5/hrm_employee_clothe_sizes', {
|
|
422
|
+
params: {
|
|
423
|
+
search: JSON.stringify({
|
|
424
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' }
|
|
425
|
+
})
|
|
426
|
+
}
|
|
427
|
+
})
|
|
428
|
+
const { data: types } = await this.$axios.get('list/5/ref_clothe_general_types', {
|
|
429
|
+
params: {
|
|
430
|
+
search: JSON.stringify({
|
|
431
|
+
clothe_sizes: { op: 'eq', val: 'notnull', t: 'string' }
|
|
432
|
+
})
|
|
433
|
+
}
|
|
434
|
+
})
|
|
435
|
+
const { data: clothes } = await this.$axios.get('list/5/service_clothe_tamachis', {
|
|
436
|
+
params: {
|
|
437
|
+
search: JSON.stringify({
|
|
438
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' }
|
|
439
|
+
}),
|
|
440
|
+
sorts: JSON.stringify([
|
|
441
|
+
{ prop: 'clothe_reg_id.type_general_id.sort_order', order: 'ascending' },
|
|
442
|
+
{ prop: 'clothe_reg_id.sort_order', order: 'ascending' }
|
|
443
|
+
]),
|
|
444
|
+
extraFields: 'clothe_reg_id.type_general_id.sort_order,clothe_reg_id.sort_order,clothe_reg_id.type_general_id.name'
|
|
445
|
+
}
|
|
446
|
+
})
|
|
447
|
+
const { data: expiredClothes } = await this.$axios.get('list/5/service_clothe_tamachis', {
|
|
448
|
+
params: {
|
|
449
|
+
search: JSON.stringify({
|
|
450
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' },
|
|
451
|
+
next_receive_date: { op: 'lt', val: new Date(), t: 'date' }
|
|
452
|
+
})
|
|
453
|
+
}
|
|
454
|
+
})
|
|
455
|
+
this.expiredClothes = expiredClothes
|
|
456
|
+
this.types = types
|
|
457
|
+
this.list = list
|
|
458
|
+
// каракуль малгай зөвхөн хурандаа нарт олгоно
|
|
459
|
+
const isCarakulCat = this.temp?.employee_degree_text?.toLowerCase()?.includes('цагдаагийн хурандаа')
|
|
460
|
+
this.clotheRegs = clotheRegs.filter(c => isCarakulCat || (!isCarakulCat && c.name?.toLowerCase() !== 'каракуль малгай'))
|
|
461
|
+
this.clothes = clothes
|
|
462
|
+
} catch (err) {
|
|
463
|
+
this.$showError(err)
|
|
464
|
+
} finally {
|
|
465
|
+
this.loading = false
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
</script>
|