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,169 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-full px-4 pt-2 pb-4">
|
|
3
|
+
<el-table
|
|
4
|
+
v-loading="loading"
|
|
5
|
+
:data="list"
|
|
6
|
+
:border="false"
|
|
7
|
+
class="w-full custom-table"
|
|
8
|
+
:empty-text="loading ? 'Түр хүлээнэ үү..' : 'Албаны мэдээлэл оруулна уу.'"
|
|
9
|
+
>
|
|
10
|
+
<el-table-column label="№" type="index">
|
|
11
|
+
<template slot="header" slot-scope="scope">
|
|
12
|
+
<div class="flex h-full items-center justify-center">
|
|
13
|
+
{{ scope.column.label }}
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<template slot-scope="scope">
|
|
17
|
+
<div class="flex h-full items-center justify-center">
|
|
18
|
+
{{ scope.$index + 1 }}
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
</el-table-column>
|
|
22
|
+
<el-table-column label="Албан тушаал" prop="position_id.name" width="240">
|
|
23
|
+
<template slot="header" slot-scope="scope">
|
|
24
|
+
<div class="flex h-full items-center justify-center">
|
|
25
|
+
{{ scope.column.label }}
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<template slot-scope="scope">
|
|
29
|
+
<div class="flex h-full items-center leading-3 break-words whitespace-normal">
|
|
30
|
+
{{ get(scope.row, scope.column.property) }}
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
</el-table-column>
|
|
34
|
+
<el-table-column label="Эрхийн бүлгүүд">
|
|
35
|
+
<template slot="header" slot-scope="scope">
|
|
36
|
+
<div class="flex h-full items-center justify-center">
|
|
37
|
+
{{ scope.column.label }}
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
<template slot-scope="scope">
|
|
41
|
+
<div class="flex h-full items-center justify-center">
|
|
42
|
+
<core-select
|
|
43
|
+
:value="roles.filter(c => c.user_id._id === scope.row._id).map(c => c.role_group_id)"
|
|
44
|
+
:temp="temp"
|
|
45
|
+
table_name="role_groups"
|
|
46
|
+
project-id="5"
|
|
47
|
+
:col_multiple="true"
|
|
48
|
+
:disabled="!isSetRole"
|
|
49
|
+
ref_column="name"
|
|
50
|
+
:trigger_fields="roleTriggerFields"
|
|
51
|
+
@input="($event) => handleChangeRole(scope.row._id, $event)"
|
|
52
|
+
/>
|
|
53
|
+
<div class="w-5 pl-2">
|
|
54
|
+
<i v-if="loadingRoles.includes(scope.row._id)" class="el-icon-loading text-coreSecondaryText" />
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
</el-table-column>
|
|
59
|
+
</el-table>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
<script>
|
|
63
|
+
import { get } from 'lodash'
|
|
64
|
+
export default {
|
|
65
|
+
props: {
|
|
66
|
+
temp: { type: Object, default: () => { return null } },
|
|
67
|
+
level: { type: Object, default: () => { return null } }
|
|
68
|
+
},
|
|
69
|
+
data () {
|
|
70
|
+
return {
|
|
71
|
+
list: [],
|
|
72
|
+
roles: [],
|
|
73
|
+
loading: false,
|
|
74
|
+
loadingRoles: []
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
computed: {
|
|
78
|
+
isSetRole () {
|
|
79
|
+
return this.level?.actions?.some(c => c.code === 'SET_ROLE')
|
|
80
|
+
},
|
|
81
|
+
isAdmin () {
|
|
82
|
+
return this.level?.is_admin
|
|
83
|
+
},
|
|
84
|
+
roleTriggerFields () {
|
|
85
|
+
if (this.isAdmin) {
|
|
86
|
+
return null
|
|
87
|
+
}
|
|
88
|
+
return 'is_admin:false:boolean:eq'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
watch: {
|
|
92
|
+
'temp._id' () {
|
|
93
|
+
this.getList()
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
mounted () {
|
|
97
|
+
this.getList()
|
|
98
|
+
},
|
|
99
|
+
methods: {
|
|
100
|
+
get,
|
|
101
|
+
async handleChangeRole (userId, roles) {
|
|
102
|
+
try {
|
|
103
|
+
if (this.loadingRoles.includes(userId)) {
|
|
104
|
+
return
|
|
105
|
+
}
|
|
106
|
+
this.loadingRoles.push(userId)
|
|
107
|
+
const checkItem = roles.find(c => !this.roles.some(k => k.role_group_id._id === c._id && k.user_id._id === userId))
|
|
108
|
+
if (checkItem) {
|
|
109
|
+
const item = { employee_id: this.temp._id, user_id: { _id: userId }, role_group_id: checkItem }
|
|
110
|
+
this.roles.push(item)
|
|
111
|
+
const { data } = await this.$axios.post('5/hrm_user_role_groups', item)
|
|
112
|
+
item._id = data._id
|
|
113
|
+
item.tid = data.tid
|
|
114
|
+
} else {
|
|
115
|
+
const removeIndex = this.roles.findIndex(c => c && c.user_id._id === userId && !roles.some(k => k._id === c.role_group_id._id))
|
|
116
|
+
if (removeIndex > -1) {
|
|
117
|
+
const itemId = this.roles[removeIndex]._id
|
|
118
|
+
const itemTid = this.roles[removeIndex].tid
|
|
119
|
+
this.roles.splice(removeIndex, 1)
|
|
120
|
+
await this.$axios.delete(`5/hrm_user_role_groups/${itemId}`, {
|
|
121
|
+
data: { tid: itemTid }
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
} catch (err) {
|
|
126
|
+
this.$showError(err)
|
|
127
|
+
} finally {
|
|
128
|
+
const index = this.loadingRoles.indexOf(userId)
|
|
129
|
+
if (index > -1) {
|
|
130
|
+
this.loadingRoles.splice(index, 1)
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
async getList () {
|
|
135
|
+
try {
|
|
136
|
+
this.roles = []
|
|
137
|
+
this.list = []
|
|
138
|
+
if (!this.temp || !this.temp._id) {
|
|
139
|
+
return
|
|
140
|
+
}
|
|
141
|
+
this.loading = true
|
|
142
|
+
const { data } = await this.$axios.get('list/5/hrm_users', {
|
|
143
|
+
params: {
|
|
144
|
+
search: JSON.stringify({
|
|
145
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' },
|
|
146
|
+
end_date: { op: 'eq', val: 'null', t: 'date' }
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
if (data.length > 0) {
|
|
151
|
+
const { data: roles } = await this.$axios.get('list/5/hrm_user_role_groups', {
|
|
152
|
+
params: {
|
|
153
|
+
search: JSON.stringify({
|
|
154
|
+
user_id: { op: 'in', val: data.map(c => c._id).join(','), t: 'number' }
|
|
155
|
+
})
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
this.roles = roles
|
|
159
|
+
this.list = data
|
|
160
|
+
}
|
|
161
|
+
} catch (err) {
|
|
162
|
+
this.$showError(err)
|
|
163
|
+
} finally {
|
|
164
|
+
this.loading = false
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
</script>
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span v-if="type === 'table'">{{ itemName }} {{ itemPositionName }}</span>
|
|
3
|
+
<el-popover
|
|
4
|
+
v-else
|
|
5
|
+
:value="visible"
|
|
6
|
+
placement="bottom-start"
|
|
7
|
+
:width="!isRoleUsers ? '512' : '300'"
|
|
8
|
+
popper-class="popper-notification"
|
|
9
|
+
:trigger="isMultiple ? 'focus' : 'focus'"
|
|
10
|
+
:disabled="disabled"
|
|
11
|
+
@show="handleChange(true)"
|
|
12
|
+
@hide="handleChange(false)"
|
|
13
|
+
>
|
|
14
|
+
<div class="h-80">
|
|
15
|
+
<div class="flex flex-row h-full overflow-hidden">
|
|
16
|
+
<div v-if="!isRoleUsers" class="w-64 border-r">
|
|
17
|
+
<core-select-tree-list
|
|
18
|
+
v-model="orgId"
|
|
19
|
+
:visible.sync="visible"
|
|
20
|
+
project-id="5"
|
|
21
|
+
table_name="hrm_organizations"
|
|
22
|
+
ref_column="name,parent_id"
|
|
23
|
+
:selected-values="selectedValues"
|
|
24
|
+
:size="size"
|
|
25
|
+
:disabled="disabled"
|
|
26
|
+
@select="handleSelectOrg"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="flex-1 flex flex-col gap-2 p-2 h-full overflow-auto relative">
|
|
30
|
+
<!-- <div v-if="isMultiple">
|
|
31
|
+
<el-input
|
|
32
|
+
v-model="searchText"
|
|
33
|
+
:size="size"
|
|
34
|
+
placeholder="Хайх.."
|
|
35
|
+
clearable
|
|
36
|
+
@keydown.native.enter="handleSearch"
|
|
37
|
+
/>
|
|
38
|
+
</div> -->
|
|
39
|
+
<div
|
|
40
|
+
v-loading="loading"
|
|
41
|
+
class="flex-1 flex flex-col gap-2 h-full overflow-auto relative"
|
|
42
|
+
>
|
|
43
|
+
<transition name="el-fade-in">
|
|
44
|
+
<div
|
|
45
|
+
v-if="!loading && list.length === 0"
|
|
46
|
+
class="left-0 top-0 h-full w-full py-4 text-center font-medium text-coreSecondaryText break-normal absolute"
|
|
47
|
+
>
|
|
48
|
+
<div v-if="!!orgId">
|
|
49
|
+
Албан хаагч<br>бүртгээгүй байна!.
|
|
50
|
+
</div>
|
|
51
|
+
<div v-else>
|
|
52
|
+
Бүтэц<br>сонгоно уу!.
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</transition>
|
|
56
|
+
<!-- <transition-group name="el-fade-in"> -->
|
|
57
|
+
<div
|
|
58
|
+
v-for="item1 of list"
|
|
59
|
+
:key="item1._id"
|
|
60
|
+
:class="['hover:bg-coreBgHover cursor-pointer rounded px-2 py-1 leading-3 flex flex-col gap-1', {
|
|
61
|
+
'font-medium bg-coreBgHover': selectedValues.some(c => c._id === item1._id),
|
|
62
|
+
}]"
|
|
63
|
+
@click="() => handleSelect(item1)"
|
|
64
|
+
>
|
|
65
|
+
<div>
|
|
66
|
+
<span v-if="item1.employee_id.surname">{{ item1.employee_id.surname.slice(0, 1) }}.</span>
|
|
67
|
+
<span>{{ item1.employee_id.given_name }}</span>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="text-xs text-coreSecondaryText leading-3 whitespace-normal break-normal">
|
|
70
|
+
{{ item1.position_id.name }}
|
|
71
|
+
</div>
|
|
72
|
+
<div v-if="item1.organization_id" class="text-xs text-coreSecondaryText leading-3 whitespace-normal break-normal">
|
|
73
|
+
{{ item1.organization_id.name }}
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<!-- </transition-group> -->
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
v-if="isMultiple"
|
|
83
|
+
slot="reference"
|
|
84
|
+
class="flex flex-col items-start justify-start border border-coreInputBorder bg-coreBgInput px-1 rounded gap-1 flex-wrap min-h-8 cursor-pointer w-full"
|
|
85
|
+
tabindex="11"
|
|
86
|
+
>
|
|
87
|
+
<div
|
|
88
|
+
v-for="item1 in modelValue"
|
|
89
|
+
:key="item1._id"
|
|
90
|
+
class="flex flex-row items-start justify-start bg-white border rounded text-xs leading-3 gap-1 pl-1 pr-1 p-1 max-w-64"
|
|
91
|
+
>
|
|
92
|
+
<core-image class="w-[28px] h-8 rounded bg-coreBgInput border" :src="item1.employee_id.image?._id || item1.employee_id.image" />
|
|
93
|
+
<div class="flex flex-col gap-1 flex-1">
|
|
94
|
+
<div class="flex flex-row w-full items-start justify-start gap-2 flex-1">
|
|
95
|
+
<div class="flex-1">
|
|
96
|
+
<span class="text-coreRegularText font-medium">{{ item1.employee_id.full_name }}</span>
|
|
97
|
+
<span v-if="item1.position_id" class="font-medium text-coreSecondaryText">- {{ item1.position_id.name }}</span>
|
|
98
|
+
</div>
|
|
99
|
+
<div v-if="!disabled" class="rounded-full bg-gray-500/40 p-[1px] hover:bg-gray-300 cursor-pointer" @click="() => handleRemove(item1)">
|
|
100
|
+
<i class="el-icon-close text-xs" />
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
<div v-if="item1.organization_id">
|
|
104
|
+
{{ item1.organization_id.name }}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<input v-if="!disabled" v-model="searchText" placeholder="Хайх..." class="outline-0 bg-transparent flex-1 border-1 px-2 w-full">
|
|
109
|
+
<!-- <el-button class="justify-self-end self-end" icon="el-icon-plus" circle size="small"></el-button> -->
|
|
110
|
+
</div>
|
|
111
|
+
<el-input
|
|
112
|
+
v-else
|
|
113
|
+
slot="reference"
|
|
114
|
+
v-model="itemName"
|
|
115
|
+
class="focus:text-coreSecondaryText"
|
|
116
|
+
placeholder="Сонгох.."
|
|
117
|
+
:size="size"
|
|
118
|
+
:disabled="disabled"
|
|
119
|
+
autocomplete="off"
|
|
120
|
+
clearable
|
|
121
|
+
@clear="modelValue = null; visible = false;"
|
|
122
|
+
@keydown.native.enter="handleSearch"
|
|
123
|
+
/>
|
|
124
|
+
</el-popover>
|
|
125
|
+
</template>
|
|
126
|
+
<script>
|
|
127
|
+
import { get } from 'lodash'
|
|
128
|
+
import { getFormBoolean, getTriggerFields } from '../../utils/data-helper'
|
|
129
|
+
export default {
|
|
130
|
+
name: 'CustomUserSelect',
|
|
131
|
+
props: {
|
|
132
|
+
type: { type: String, default: 'input' },
|
|
133
|
+
value: { type: [String, Object, Array], default: null },
|
|
134
|
+
projectId: { type: [String, Number], default: '5' },
|
|
135
|
+
table_name: { type: String, default: 'hrm_organizations' },
|
|
136
|
+
ref_column: { type: String, default: 'name,parent_id' },
|
|
137
|
+
size: { type: String, default: null },
|
|
138
|
+
col_field: { type: String, default: null },
|
|
139
|
+
disabled: { type: Boolean, default: false },
|
|
140
|
+
parentTemp: { type: Object, default: null },
|
|
141
|
+
col_multiple: {
|
|
142
|
+
type: [Boolean, Number, String],
|
|
143
|
+
default: false
|
|
144
|
+
},
|
|
145
|
+
trigger_fields: { type: String, default: null },
|
|
146
|
+
pk_field_name: { type: String, default: null }
|
|
147
|
+
},
|
|
148
|
+
data () {
|
|
149
|
+
return {
|
|
150
|
+
visible: false,
|
|
151
|
+
list: [],
|
|
152
|
+
loading: false,
|
|
153
|
+
orgId: null,
|
|
154
|
+
org: null,
|
|
155
|
+
item: null,
|
|
156
|
+
timeout: 0,
|
|
157
|
+
cancel: null,
|
|
158
|
+
searchText: null,
|
|
159
|
+
searchTimer: 0
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
computed: {
|
|
163
|
+
isRegUsers () {
|
|
164
|
+
return this.col_field?.includes('reg_user')
|
|
165
|
+
},
|
|
166
|
+
isExpertUsers () {
|
|
167
|
+
return this.col_field?.includes('expert')
|
|
168
|
+
},
|
|
169
|
+
isFirearmExpert () {
|
|
170
|
+
return this.col_field?.includes('firearm_expert')
|
|
171
|
+
},
|
|
172
|
+
isGrantExpert () {
|
|
173
|
+
return this.col_field?.includes('grant_expert')
|
|
174
|
+
},
|
|
175
|
+
isPsychologists () {
|
|
176
|
+
return this.col_field?.includes('psychologist')
|
|
177
|
+
},
|
|
178
|
+
isRegConfirmUser () {
|
|
179
|
+
return this.col_field?.includes('reg_confirm_user_id')
|
|
180
|
+
},
|
|
181
|
+
isRoleUsers () {
|
|
182
|
+
return this.isRegUsers || this.isExpertUsers || this.isPsychologists || this.isFirearmExpert || this.isGrantExpert || this.isRegConfirmUser
|
|
183
|
+
},
|
|
184
|
+
isMultiple () {
|
|
185
|
+
return getFormBoolean(this.col_multiple)
|
|
186
|
+
},
|
|
187
|
+
itemName: {
|
|
188
|
+
get () {
|
|
189
|
+
if (this.searchText !== null) {
|
|
190
|
+
return this.searchText
|
|
191
|
+
}
|
|
192
|
+
if (this.isMultiple) {
|
|
193
|
+
if (!this.value) {
|
|
194
|
+
return ''
|
|
195
|
+
}
|
|
196
|
+
return this.value.map((c) => {
|
|
197
|
+
const fullName = get(c, 'employee_id.full_name')
|
|
198
|
+
if (fullName) {
|
|
199
|
+
return fullName
|
|
200
|
+
}
|
|
201
|
+
const surname = get(c, 'employee_id.surname')
|
|
202
|
+
const givenName = get(c, 'employee_id.given_name')
|
|
203
|
+
let name = ''
|
|
204
|
+
if (surname) {
|
|
205
|
+
name += surname.slice(0, 1) + '.'
|
|
206
|
+
}
|
|
207
|
+
return name + givenName
|
|
208
|
+
}).join(', ')
|
|
209
|
+
}
|
|
210
|
+
if (!this.value) {
|
|
211
|
+
return ''
|
|
212
|
+
}
|
|
213
|
+
// if (!this.item) {
|
|
214
|
+
// return ''
|
|
215
|
+
// }
|
|
216
|
+
let name = ''
|
|
217
|
+
if (this.value.employee_id.full_name) {
|
|
218
|
+
return this.value.employee_id.full_name
|
|
219
|
+
}
|
|
220
|
+
if (this.value.employee_id.surname) {
|
|
221
|
+
name += this.value.employee_id.surname.slice(0, 1) + '.'
|
|
222
|
+
}
|
|
223
|
+
return name + (this.value.employee_id.given_name || '')
|
|
224
|
+
},
|
|
225
|
+
set (val) {
|
|
226
|
+
this.searchText = val
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
itemPositionName () {
|
|
230
|
+
if (!this.item) {
|
|
231
|
+
return null
|
|
232
|
+
}
|
|
233
|
+
return ` - ${this.item.position_id.name}`
|
|
234
|
+
},
|
|
235
|
+
modelValue: {
|
|
236
|
+
get () {
|
|
237
|
+
if (this.isMultiple && !this.value) {
|
|
238
|
+
return []
|
|
239
|
+
}
|
|
240
|
+
return this.value
|
|
241
|
+
},
|
|
242
|
+
set (val) {
|
|
243
|
+
this.$emit('input', val)
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
selectedValues () {
|
|
247
|
+
if (!this.value) {
|
|
248
|
+
return []
|
|
249
|
+
}
|
|
250
|
+
return this.isMultiple ? this.value : [this.value]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
watch: {
|
|
254
|
+
visible () {
|
|
255
|
+
this.searchText = null
|
|
256
|
+
},
|
|
257
|
+
searchText () {
|
|
258
|
+
this.loading = true
|
|
259
|
+
clearTimeout(this.searchTimer)
|
|
260
|
+
this.searchTimer = setTimeout(this.handleSearch, 300)
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
mounted () {
|
|
264
|
+
// if (this.type === 'table') {
|
|
265
|
+
// this.getItem()
|
|
266
|
+
// }
|
|
267
|
+
},
|
|
268
|
+
methods: {
|
|
269
|
+
handleKeydownSearchDiv ($event) {
|
|
270
|
+
if ($event.key === 'Backspace') {
|
|
271
|
+
this.searchText = this.searchText.slice(0, -1)
|
|
272
|
+
} else if ($event.key.length === 1) {
|
|
273
|
+
this.searchText = (this.searchText || '') + $event.key
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
async getItem () {
|
|
277
|
+
try {
|
|
278
|
+
if (!this.modelValue || this.item) {
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
const id = typeof this.value === 'object' ? this.value?._id : this.value
|
|
282
|
+
if (!id) {
|
|
283
|
+
return
|
|
284
|
+
}
|
|
285
|
+
const { data: item } = await this.$axios.get('one/5/hrm_users', {
|
|
286
|
+
process: false,
|
|
287
|
+
params: {
|
|
288
|
+
search: JSON.stringify({
|
|
289
|
+
_id: { val: id, t: 'number', op: 'eq' }
|
|
290
|
+
})
|
|
291
|
+
}
|
|
292
|
+
})
|
|
293
|
+
if (item) {
|
|
294
|
+
this.item = item
|
|
295
|
+
if (!this.list.some(c => c._id === item._id)) {
|
|
296
|
+
this.list.unshift({ ...item })
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} catch (err) {
|
|
300
|
+
this.$showError(err)
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
handleRemove (item) {
|
|
304
|
+
this.handleSelect(item)
|
|
305
|
+
},
|
|
306
|
+
handleSelect (item) {
|
|
307
|
+
// this.modelValue = item._id
|
|
308
|
+
if (this.isMultiple) {
|
|
309
|
+
const vals = [...this.modelValue]
|
|
310
|
+
const ind = vals.findIndex(c => c._id === item._id)
|
|
311
|
+
if (ind > -1) {
|
|
312
|
+
vals.splice(ind, 1)
|
|
313
|
+
} else {
|
|
314
|
+
vals.push(item)
|
|
315
|
+
}
|
|
316
|
+
this.modelValue = [...vals]
|
|
317
|
+
} else {
|
|
318
|
+
this.modelValue = item
|
|
319
|
+
this.item = item
|
|
320
|
+
this.visible = false
|
|
321
|
+
}
|
|
322
|
+
this.searchText = null
|
|
323
|
+
},
|
|
324
|
+
handleSelectOrg (item) {
|
|
325
|
+
if (item._id !== this.orgId) {
|
|
326
|
+
this.orgId = item._id
|
|
327
|
+
this.org = item
|
|
328
|
+
this.handleSearch()
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
handleChange (val) {
|
|
332
|
+
clearTimeout(this.timeout)
|
|
333
|
+
this.timeout = setTimeout(() => {
|
|
334
|
+
if (!this.visible && val) {
|
|
335
|
+
if (this.isRoleUsers) {
|
|
336
|
+
this.handleSearch()
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
this.visible = val
|
|
340
|
+
}, 100)
|
|
341
|
+
},
|
|
342
|
+
async handleSearch () {
|
|
343
|
+
let isCancel = false
|
|
344
|
+
clearTimeout(this.searchTimer)
|
|
345
|
+
try {
|
|
346
|
+
this.loading = true
|
|
347
|
+
this.list = []
|
|
348
|
+
await this.getList()
|
|
349
|
+
} catch (err) {
|
|
350
|
+
isCancel = this.$axios.isCancel(err)
|
|
351
|
+
if (!isCancel) {
|
|
352
|
+
this.$showError(err)
|
|
353
|
+
}
|
|
354
|
+
} finally {
|
|
355
|
+
if (!isCancel) {
|
|
356
|
+
this.loading = false
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
async getList () {
|
|
361
|
+
const that = this
|
|
362
|
+
const CancelToken = this.$axios.CancelToken
|
|
363
|
+
if (that.cancel) {
|
|
364
|
+
that.cancel()
|
|
365
|
+
}
|
|
366
|
+
const orgId = this.orgId && typeof this.orgId === 'object' ? this.orgId._id : this.orgId
|
|
367
|
+
const triggerFields = getTriggerFields(this.trigger_fields)
|
|
368
|
+
const triggerSearch = {}
|
|
369
|
+
for (const { localKey, localVal, operation, type } of triggerFields) {
|
|
370
|
+
if (localKey === 'custom_user_sub_type_id') {
|
|
371
|
+
const newValues = get(this.parentTemp, 'forensics')
|
|
372
|
+
if (newValues?.length === 0) {
|
|
373
|
+
return
|
|
374
|
+
}
|
|
375
|
+
triggerSearch[localKey] = { val: newValues.map(c => c.sub_type_id), t: type, op: operation }
|
|
376
|
+
} else {
|
|
377
|
+
triggerSearch[localKey] = { val: localVal, t: type, op: operation }
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if (this.isRoleUsers) {
|
|
381
|
+
const { data: list } = await this.$axios.get('forensic/role/users', {
|
|
382
|
+
process: false,
|
|
383
|
+
cancelToken: new CancelToken(function executor (c) {
|
|
384
|
+
that.cancel = c
|
|
385
|
+
}),
|
|
386
|
+
params: {
|
|
387
|
+
isExpertUsers: this.isExpertUsers,
|
|
388
|
+
isRegUsers: this.isRegUsers,
|
|
389
|
+
isFirearmExpert: this.isFirearmExpert,
|
|
390
|
+
isGrantExpert: this.isGrantExpert,
|
|
391
|
+
isPsychologists: this.isPsychologists,
|
|
392
|
+
isRegConfirmUser: this.isRegConfirmUser,
|
|
393
|
+
searchText: this.searchText,
|
|
394
|
+
search: JSON.stringify(triggerSearch)
|
|
395
|
+
}
|
|
396
|
+
})
|
|
397
|
+
this.list = list
|
|
398
|
+
} else {
|
|
399
|
+
const { data: list } = await this.$axios.get('list/5/hrm_users', {
|
|
400
|
+
process: false,
|
|
401
|
+
params: {
|
|
402
|
+
search: JSON.stringify({
|
|
403
|
+
organization_id: { val: orgId, t: 'number', op: 'eq' },
|
|
404
|
+
end_date: { val: 'null', t: 'date', op: 'eq' },
|
|
405
|
+
'employee_id.given_name': { val: this.searchText, t: 'string' }
|
|
406
|
+
}),
|
|
407
|
+
extraFields: 'employee_id.full_name'
|
|
408
|
+
// sorts: [{
|
|
409
|
+
// prop: 'position_id.order_id.sort_order',
|
|
410
|
+
// order: 'asc'
|
|
411
|
+
// }]
|
|
412
|
+
},
|
|
413
|
+
cancelToken: new CancelToken(function executor (c) {
|
|
414
|
+
that.cancel = c
|
|
415
|
+
})
|
|
416
|
+
})
|
|
417
|
+
this.list = list
|
|
418
|
+
}
|
|
419
|
+
this.cancel = null
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
</script>
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-full pb-4 grid grid-cols-1 lg:grid-cols-2 gap-2">
|
|
3
|
+
<div v-for="item in skillTypes" :key="item._id" class="">
|
|
4
|
+
<div
|
|
5
|
+
v-if="item.is_active || list.some(c => c.skill_type_id === item._id)"
|
|
6
|
+
class="flex gap-4 items-center overflow-hidden"
|
|
7
|
+
>
|
|
8
|
+
<el-select
|
|
9
|
+
:value="getValue(item)"
|
|
10
|
+
size="mini"
|
|
11
|
+
class="w-28"
|
|
12
|
+
:disabled="!item.is_active"
|
|
13
|
+
@change="($event) => handleChange(item, $event)"
|
|
14
|
+
>
|
|
15
|
+
<el-option v-for="val in [0, 1, 2, 3]" :key="val" :label="val" :value="val" />
|
|
16
|
+
</el-select>
|
|
17
|
+
<div class="text-sm text-coreRegularText leading-3 flex-1">
|
|
18
|
+
{{ item.name }}
|
|
19
|
+
</div>
|
|
20
|
+
<i v-if="loadingTypes.includes(item._id)" class="el-icon-loading text-coreSecondaryText" />
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
props: { temp: { type: Object, default: () => { return null } } },
|
|
28
|
+
data () {
|
|
29
|
+
return {
|
|
30
|
+
list: [],
|
|
31
|
+
skillTypes: [],
|
|
32
|
+
loading: false,
|
|
33
|
+
loadingTypes: []
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
watch: {
|
|
37
|
+
'temp._id' () {
|
|
38
|
+
this.getList()
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
mounted () {
|
|
42
|
+
this.getList()
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
getValue (item) {
|
|
46
|
+
const r = this.list.find(c => c.skill_type_id._id === item._id)
|
|
47
|
+
return r?.rate_value
|
|
48
|
+
},
|
|
49
|
+
async handleChange (item, $event) {
|
|
50
|
+
try {
|
|
51
|
+
if (this.loadingTypes.includes(item._id)) {
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
this.loadingTypes.push(item._id)
|
|
55
|
+
let changedItem = this.list.find(c => c.skill_type_id._id === item._id)
|
|
56
|
+
if (changedItem) {
|
|
57
|
+
changedItem.rate_value = $event
|
|
58
|
+
} else {
|
|
59
|
+
changedItem = { employee_id: this.temp._id, skill_type_id: item, rate_value: $event }
|
|
60
|
+
this.list.push({ ...changedItem })
|
|
61
|
+
}
|
|
62
|
+
await this.$axios.post('5/hrm_employee_skill_types', { ...changedItem })
|
|
63
|
+
} catch (err) {
|
|
64
|
+
this.$showError(err)
|
|
65
|
+
} finally {
|
|
66
|
+
const index = this.loadingTypes.indexOf(item._id)
|
|
67
|
+
if (index > -1) {
|
|
68
|
+
this.loadingTypes.splice(index, 1)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
async getList () {
|
|
73
|
+
try {
|
|
74
|
+
this.skillTypes = []
|
|
75
|
+
this.list = []
|
|
76
|
+
if (!this.temp || !this.temp._id) {
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
this.loading = true
|
|
80
|
+
const { data } = await this.$axios.get('list/5/hrm_employee_skill_types', {
|
|
81
|
+
params: {
|
|
82
|
+
search: JSON.stringify({
|
|
83
|
+
employee_id: { op: 'eq', val: this.temp._id, t: 'number' }
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
const { data: skillTypes } = await this.$axios.get('list/5/ref_hrm_skill_types')
|
|
88
|
+
this.skillTypes = skillTypes
|
|
89
|
+
this.list = data
|
|
90
|
+
} catch (err) {
|
|
91
|
+
this.$showError(err)
|
|
92
|
+
} finally {
|
|
93
|
+
this.loading = false
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</script>
|