work in home

pull/1/head
saeid_01 5 years ago
parent 6549171bfe
commit 8e8e70e87e

4325
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,9 +1,9 @@
{
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=e7a471226cef824d1883",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=84489e0d471be485b546",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=70bf4cdcfa563811ed08",
"/js/vue/Product/app.js": "/js/vue/Product/app.js?id=4290b19b5a7abd1a32e6",
"/js/vue/SMS/app.js": "/js/vue/SMS/app.js?id=d80af11aed435cac35f1",
"/js/vue/Service/app.js": "/js/vue/Service/app.js?id=eb85c2455d49146ae28f",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=3620a41a5d3c7742cc8f"
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=620be3c9e76cee2a03aa",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=74e9f77c3f4b27f1064e",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=5796dc8e39461ba7c663",
"/js/vue/Product/app.js": "/js/vue/Product/app.js?id=08d8ea1fbfc6525f583e",
"/js/vue/SMS/app.js": "/js/vue/SMS/app.js?id=b24a120ac1950107365e",
"/js/vue/Service/app.js": "/js/vue/Service/app.js?id=d00caa51db85115da349",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=87d8a0228fc5b7ff5bcd"
}

@ -6,6 +6,7 @@ import { UserService } from "@Global/services/storage.services";
const global = {
methods: {
$_getPath(subPath = "") {
subPath = subPath.startsWith("/") ? subPath.substr(1) : subPath;
const path = process.env.MIX_PUSHER_APP_PUBLIC_PATH
? process.env.MIX_PUSHER_APP_PUBLIC_PATH
: "/";

@ -68,6 +68,21 @@ const convertListToTree = list => {
return recursiveFunctionToTree(list);
};
const addIndexTreeToList = list => {
function recursiveFunctionIndexToTree( list, parent_id = null ) {
var indexTree = 1;
for (const item of list) {
if (item.parent_id == parent_id) {
item['indexTree'] = indexTree;
indexTree++;
recursiveFunctionIndexToTree(list, item.id);
}
}
return list;
}
return recursiveFunctionIndexToTree(list);
};
const listSearchSelect = Options => {
let treeArray = Options.array ? Options.array : [];
var listArray = Options.list ? Options.list : convertTreeToList(treeArray);
@ -262,5 +277,6 @@ export {
updateTreeArray,
deleteTreeArray,
listSearchSelect,
convertListToTree
convertListToTree,
addIndexTreeToList
};

Loading…
Cancel
Save