pull/1/head
Saeid 5 years ago
commit c7ff87bd6c

4235
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,46 +1,26 @@
import Vue from 'vue';
// import VueScrollReveal from "vue-scroll-reveal";
// import "popper.js";
// import "bootstrap-v4-rtl";
// import "bootstrap-v4-rtl/scss/bootstrap-rtl.scss";
// import "bootstrap-select";
// import "bootstrap-select/dist/css/bootstrap-select.css";
// import "vuetify/dist/vuetify.min.css"; // Ensure you are using css-loader
// import "@Global/assets/Font-Icons/css/fontello.css";
// global Styles
import "@Global/scss/style.scss";
// components
// global Components
import PartTitle from "@Global/components/Dividers/PartTitle.vue";
import PageTitle from "@Global/components/Dividers/PageTitle.vue";
import Checkbox from "@Global/components/Inputs/Checkbox.vue";
import InfoBlock from "@Global/components/Misc/InfoBlock.vue";
import Breadcrumbs from "@Global/components/Misc/Breadcrumbs";
//jalali
import jalaliMoment from "vue-jalali-moment"
import momment from "moment"
momment.locale('fa');
Vue.use(jalaliMoment);
// Vue.use(VueScrollReveal, {
// class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides.
// duration: 800,
// scale: 1,
// distance: '10px',
// mobile: false
// });
// Vue.use(Vuetify, {
// iconfont: "fa",
// rtl: true
// });
Vue.component("WM-PartTitle", PartTitle);
Vue.component("WM-PageTitle", PageTitle);
Vue.component("WM-Checkbox", Checkbox);
Vue.component("WM-InfoBlock", InfoBlock);
Vue.component("wm-breadcrumbs", Breadcrumbs);
//jalali => 0.6MB
import jalaliMoment from "vue-jalali-moment"
import momment from "moment"
momment.locale('fa');
Vue.use(jalaliMoment);

@ -70,6 +70,7 @@ const listSearchSelect = Options => {
let treeArray = Options.array ? Options.array : [];
var listArray = Options.list ? Options.list : convertTreeToList(treeArray);
var fromLevel = Options.fromLevel ? Options.fromLevel : 1;
var isShowParent = Options.isShowParent ? Options.isShowParent : false;//bolean
var justLevel = Options.justLevel ? Options.justLevel : null;
var untilLevel = Options.upToLevel ? Options.upToLevel : "End";
var headerLevel = Options.titleLevel ? Options.titleLevel : null;
@ -130,11 +131,11 @@ const listSearchSelect = Options => {
ids.push(listArray[key].id);
}
} else if (untilLevel == "End") {
if (listArray[key].hasChildren == false) {
if (isShowParent || listArray[key].hasChildren == false) {
ids.push(listArray[key].id);
}
} else {
if (listArray[key].lvl <= untilLevel && listArray[key].hasChildren == false || listArray[key].lvl == untilLevel) {
if ((listArray[key].lvl <= untilLevel && (isShowParent || listArray[key].hasChildren == false)) || listArray[key].lvl == untilLevel) {
ids.push(listArray[key].id);
}
}

2
webpack.mix.js vendored

@ -32,6 +32,6 @@ require('./modules/wm-common/webpack.mix');
require('./modules/wm-crm/webpack.mix');
require('./modules/wm-reservation/webpack.mix');
// require('./modules/wm-reservation/webpack.mix');
mix.version();

Loading…
Cancel
Save