Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7a504e10
authored
Jun 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
地区模型
parent
b97d4088
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
102 additions
and
56 deletions
.env
app/Http/routes.php
app/Model/RegionModel.php
config/database.php
resources/views/iframe.blade.php
resources/views/script/SupplierListScript.blade.php
.env
View file @
7a504e10
...
...
@@ -27,6 +27,13 @@ WMS_DB_DATABASE=liexin_wms
WMS_DB_USERNAME=liexin_wms
WMS_DB_PASSWORD=liexin_wms#zsyM
//主站3.0的数据库
LIEXIN_DB_HOST=192.168.1.252
LIEXIN_DB_PORT=3306
LIEXIN_DB_DATABASE=liexin
LIEXIN_DB_USERNAME=liexin
LIEXIN_DB_PASSWORD=liexin#zsyM
//自营基石数据库
DB_SELF_HOST=192.168.1.235
DB_SELF_DATABASE=liexin_data
...
...
app/Http/routes.php
View file @
7a504e10
...
...
@@ -43,6 +43,9 @@ Route::match(['get', 'post'], '/test', function () {
// set_time_limit(0);
// sleep(30);
// echo 123;
$model
=
new
\App\Model\RegionModel
();
$r
=
$model
->
limit
(
10
)
->
get
();
dd
(
$r
);
$service
=
new
\App\Http\Services\DataService
();
// $service->checkSupplierChannelUser();
// $service->removeEmptyContactChannelUser();
...
...
app/Model/RegionModel.php
0 → 100644
View file @
7a504e10
<?php
namespace
App\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
RegionModel
extends
Model
{
protected
$connection
=
'liexin'
;
protected
$table
=
'region'
;
public
$timestamps
=
false
;
}
config/database.php
View file @
7a504e10
...
...
@@ -67,7 +67,7 @@ return [
'engine'
=>
null
,
],
'sys'
=>
[
'sys'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'ZT_DB_HOST'
,
'localhost'
),
'port'
=>
env
(
'ZT_DB_PORT'
,
'3306'
),
...
...
@@ -93,6 +93,20 @@ return [
'schema'
=>
'public'
,
],
'liexin'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'LIEXIN_DB_HOST'
,
'localhost'
),
'port'
=>
env
(
'LIEXIN_DB_PORT'
,
'3306'
),
'database'
=>
env
(
'LIEXIN_DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'LIEXIN_DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'LIEXIN_DB_PASSWORD'
,
''
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
'engine'
=>
null
,
],
'web'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'WEB_DB_HOST'
,
'localhost'
),
...
...
@@ -134,66 +148,65 @@ return [
'strict'
=>
false
,
'engine'
=>
null
,
],
'self'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SELF_HOST'
,
''
),
'database'
=>
env
(
'DB_SELF_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SELF_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SELF_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SELF_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'self'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SELF_HOST'
,
''
),
'database'
=>
env
(
'DB_SELF_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SELF_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SELF_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SELF_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'sku'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SKU_HOST'
,
''
),
'database'
=>
env
(
'DB_SKU_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SKU_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SKU_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SKU_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'sku'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SKU_HOST'
,
''
),
'database'
=>
env
(
'DB_SKU_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SKU_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SKU_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SKU_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'spu'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SPU_HOST'
,
''
),
'database'
=>
env
(
'DB_SPU_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SPU_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SPU_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SPU_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'spu'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_SPU_HOST'
,
''
),
'database'
=>
env
(
'DB_SPU_DATABASE'
,
''
),
'username'
=>
env
(
'DB_SPU_USERNAME'
,
''
),
'password'
=>
env
(
'DB_SPU_PASSWORD'
,
''
),
'port'
=>
env
(
'DB_SPU_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'yunxin'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST_YUNXIN'
,
''
),
'database'
=>
env
(
'DB_DATABASE_YUNXIN'
,
''
),
'username'
=>
env
(
'DB_USERNAME_YUNXIN'
,
''
),
'password'
=>
env
(
'DB_PASSWORD_YUNXIN'
,
''
),
'port'
=>
env
(
'DB_YUNXIN_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'yunxin'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST_YUNXIN'
,
''
),
'database'
=>
env
(
'DB_DATABASE_YUNXIN'
,
''
),
'username'
=>
env
(
'DB_USERNAME_YUNXIN'
,
''
),
'password'
=>
env
(
'DB_PASSWORD_YUNXIN'
,
''
),
'port'
=>
env
(
'DB_YUNXIN_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'rabbitmq'
=>
[
'driver'
=>
'rabbitmq'
,
'host'
=>
env
(
'RABBITMQ_HOST'
,
'127.0.0.1'
),
'port'
=>
env
(
'RABBITMQ_PORT'
,
5672
),
'vhost'
=>
env
(
'RABBITMQ_VHOST'
,
'/'
),
'login'
=>
env
(
'RABBITMQ_LOGIN'
,
'guest'
),
'driver'
=>
'rabbitmq'
,
'host'
=>
env
(
'RABBITMQ_HOST'
,
'127.0.0.1'
),
'port'
=>
env
(
'RABBITMQ_PORT'
,
5672
),
'vhost'
=>
env
(
'RABBITMQ_VHOST'
,
'/'
),
'login'
=>
env
(
'RABBITMQ_LOGIN'
,
'guest'
),
'password'
=>
env
(
'RABBITMQ_PASSWORD'
,
'guest'
),
'queue'
=>
env
(
'RABBITMQ_QUEUE'
),
// name of the default queue,
'queue'
=>
env
(
'RABBITMQ_QUEUE'
),
// name of the default queue,
],
],
/*
...
...
@@ -224,23 +237,23 @@ return [
'cluster'
=>
false
,
// 'options'=>['cluster'=>'redis'],
'default'
=>
[
'host'
=>
env
(
'REDIS_HOST'
,
''
),
'host'
=>
env
(
'REDIS_HOST'
,
''
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'database'
=>
0
,
'read_write_timeout'
=>
0
,
//new
],
'read'
=>
[
'host'
=>
env
(
'REDIS_READ_HOST'
,
''
),
'read'
=>
[
'host'
=>
env
(
'REDIS_READ_HOST'
,
''
),
'password'
=>
env
(
'REDIS_READ_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_READ_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_READ_PORT'
,
6379
),
'database'
=>
0
,
'read_write_timeout'
=>
0
,
//new
],
'user'
=>
[
'host'
=>
env
(
'REDIS_USER_HOST'
,
''
),
'host'
=>
env
(
'REDIS_USER_HOST'
,
''
),
'password'
=>
env
(
'REDIS_USER_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_USER_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_USER_PORT'
,
6379
),
'database'
=>
0
,
'read_write_timeout'
=>
0
,
//new
]
...
...
resources/views/iframe.blade.php
View file @
7a504e10
...
...
@@ -33,6 +33,10 @@
font-size
:
16px
;
margin-right
:
5px
;
}
.table-selected
{
background-color
:
#ecf0f1
;
}
</style>
<body>
<!-- 正文开始 -->
...
...
resources/views/script/SupplierListScript.blade.php
View file @
7a504e10
...
...
@@ -27,7 +27,7 @@
});
});
let
cols
=
[
{
type
:
'
radio
'
},
{
type
:
'
checkbox
'
},
{
field
:
'supplier_id'
,
title
:
'供应商ID'
,
align
:
'center'
,
width
:
80
},
{
field
:
'supplier_code'
,
title
:
'供应商编码'
,
align
:
'center'
,
width
:
90
,
templet
:
function
(
data
)
{
...
...
@@ -96,6 +96,13 @@
}
});
table
.
on
(
'row(list)'
,
function
(
obj
){
obj
.
tr
.
addClass
(
'table-selected'
)
obj
.
tr
.
find
(
'.layui-form-checkbox'
).
addClass
(
'layui-form-checked'
);
console
.
log
(
obj
.
tr
)
//得到当前行元素对象
console
.
log
(
obj
.
data
)
//得到当前行数据
});
//保存需要刷新的页面数据
function
saveRefreshData
(
type
,
supplierId
=
0
)
{
admin
.
putTempData
(
"needFreshDetail_supplier_id="
+
supplierId
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment