pull/1/head
alireza hassani 5 years ago
commit 444eeb3efe

@ -1,37 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateModuleUser extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$dbName = config('core.db_name');
Schema::create("$dbName.module_user", function (Blueprint $table) {
$table->unsignedInteger('module_id');
$table->unsignedInteger('user_id');
$table->unique(['module_id', 'user_id']);
$table->index('module_id');
$table->index('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$dbName = config('core.db_name');
Schema::dropIfExists("$dbName.module_user");
}
}

@ -0,0 +1,50 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TempUpdateColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$dbName = config('crm.db_name');
Schema::table("$dbName.clients", function (Blueprint $table) {
$table->string('father_name', 255)->nullable();
$table->string('telegram', 255)->nullable();
$table->string('website', 255)->nullable();
$table->text('description')->nullable();
$table->unsignedInteger('client_title_id')->nullable();
$table->foreign('client_title_id')->references('id')->on('client_titles');
$table->dropColumn('client_category_id');
});
Schema::table("$dbName.client_statuses", function (Blueprint $table) {
$table->string('color', 255)->nullable();
$table->string('icon', 255)->nullable();
});
$dbName = config('common.db_name');
Schema::table("$dbName.task_statuses", function (Blueprint $table) {
$table->string('color', 255)->nullable();
$table->string('icon', 255)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}

5
package-lock.json generated

@ -11416,6 +11416,11 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
"vue-the-mask": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/vue-the-mask/-/vue-the-mask-0.11.1.tgz",
"integrity": "sha512-UquSfnSWejD0zAfcD+3jJ1chUAkOAyoxya9Lxh9acCRtrlmGcAIvd0cQYraWqKenbuZJUdum+S174atv2AuEHQ=="
},
"vue-tinymce-editor": {
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/vue-tinymce-editor/-/vue-tinymce-editor-1.6.2.tgz",

@ -39,6 +39,7 @@
"vue-moment": "^4.0.0",
"vue-router": "^3.0.2",
"vue-scroll-reveal": "^1.0.11",
"vue-the-mask": "^0.11.1",
"vue-tinymce-editor": "^1.6.2",
"vuetify": "^2.0.19"
},

@ -1,6 +1,6 @@
{
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=0da35ad1057d82e83419",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=28ad11b47b82000bb110",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=7fa03d7410899cabc276",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=8d80fa57638e29bc7263"
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=60b0a33dbb353c1d7edc",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=9f533af650a307e880c0",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=92214a4c3239559ded55",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=f3c9f37079c432adb37c"
}

@ -7,9 +7,9 @@ var CommingSoonArray = [
"crm-setting",
"crm-client-filter",
// "crm-client-filter",
"crm-statistics",
"user-list-filter",
// "user-list-filter",
];
const commingSoon = {
methods: {

@ -9,7 +9,7 @@ if (TokenService.getToken()) {
if (PermissionService.get()) {
store.commit('auth/SET_AUTH_PERMISSIONS', PermissionService.get())
} else if (TokenService.getToken()){
} else if (TokenService.getToken() && UserService.get() && UserService.get().is_owner == false) {
store.dispatch('auth/loadAuthPermissions');
}

@ -0,0 +1,31 @@
const createFilterObject = filters => {
let filterObject = {};
for (const key in filters) {
if (filters.hasOwnProperty(key)) {
if (filters[key]["type"]) {
let filterValue = window[filters[key]["type"]](filters[key]);
if (filterValue) {
filterObject[key] = filterValue;
}
}
}
}
return filterObject;
};
window['between'] = function (filter) {
var value = null;
if (filter.val1 || filter.val2) {
value = `<${filter.val1},${filter.val2}>`;
}
return value;
}
window['like'] = function(filter) {
var value = null;
if (filter.val) {
value = `%${filter.val}%`;
}
return value;
}
export default createFilterObject;

@ -130,8 +130,21 @@
attributes: {
name_en: "نام انگلیسی",
email: "ایمیل",
website: "آدرس سایت",
name: "نام",
text: "متن",
client_type: "نوع مشتری",
cell_number: " شماره همراه ",
password: " کلمه عبور ",
confirm_password: " تکرار کلمه عبور ",
department: "دپارتمان",
phone: "شماره ی تلفن",
task_receiver_user : "مسئول وظیفه",
begin_date : " تاریخ شروع ",
end_date : " تاریخ پایان ",
title : " عنوان ",
description : " توضیحات ",
national_code : " کد ملی ",
duplicatephone0: "شماره ی تلفن",
duplicatephone1: "شماره ی تلفن",
duplicatephone2: "شماره ی تلفن",

Loading…
Cancel
Save