Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
note-library
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
a68710bd
authored
May 13, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
6780167d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
.env
app/Http/Controllers/AjaxController.php
resources/views/web/labelList.blade.php
.env
View file @
a68710bd
...
...
@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net'
ERP_DOMAIN=http://192.168.1.235:688
8
ERP_DOMAIN=http://192.168.1.235:688
6
ERP_DB_NAME=ICHUNT
\ No newline at end of file
app/Http/Controllers/AjaxController.php
View file @
a68710bd
...
...
@@ -221,6 +221,13 @@ Class AjaxController extends Controller
return
$this
->
ajaxReturn
(
-
1
,
"该模板已经被主人禁用了"
);
}
if
(
$template_name
!=
$templateInfo
->
template_name
){
$count
=
TemplateListModel
::
where
(
"create_userid"
,
$request
->
user
->
userId
)
->
where
(
"template_name"
,
$template_name
)
->
count
(
"id"
);
if
(
$count
>
0
){
return
$this
->
ajaxReturn
(
-
1
,
"模板名称已经存在,请修改模板名称再提交!"
);
}
}
$data
[
't_id'
]
=
intval
(
$id
);
try
{
DB
::
Connection
(
"label"
)
->
transaction
(
function
()
use
(
$data
,
$request
)
{
...
...
resources/views/web/labelList.blade.php
View file @
a68710bd
...
...
@@ -58,6 +58,7 @@
<script type="
text
/
html
" id="
action
">
<!-- <a class="
btn
btn
-
xs
btn
-
outline
btn
-
info
" lay-event="
offline
">离线使用</a> -->
<a class="
btn
btn
-
xs
btn
-
outline
btn
-
success
" href="
/
web
/
showTemplate
?
t_id
=@
{{
d
.
id
}}
" target="
_blank
" lay-event="
show
">预览</a>
<a class="
btn
btn
-
xs
btn
-
outline
btn
-
success
" href="
/
web
/
design
?
t_id
=@
{{
d
.
id
}}
" target="
_blank
">编辑</a>
@{{# if (d.status == -1) { }}
<a class="
btn
btn
-
xs
btn
-
outline
layui
-
btn
-
primary
" lay-event="
enable
">启用</a>
...
...
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