Commit 6535b39b by 孙龙

同上

parent 88f7fb89
...@@ -116,18 +116,21 @@ ...@@ -116,18 +116,21 @@
@endif @endif
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="col-lg-11"> <div class="col-lg-11">
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<form action="/msgapi/updateMsgExcel" method="post" id="postForm" enctype ="multipart/form-data"> <form action="/msgapi/updateMsgExcel" method="post" id="postForm" enctype ="multipart/form-data">
{{--外部统一模板描述+消息渠道提示--}} {{--外部统一模板描述+消息渠道提示--}}
<div style="margin-left: 40px;"> <div style="margin-left: 40px;" >
<div class="col-sm-10 form-inline" style="margin-top: 20px"> <div class="col-sm-10 form-inline layui-form-item" style="margin-top: 20px">
<label class="col-sm-2 control-label"> 选择模板:</label> <label class="col-sm-4 control-label layui-form-label" style="width: 100px;font-weight: bold"> *选择模板:</label>
<div class="col-sm-3"> <div class="col-sm-3 layui-input-block" style=" margin-left: 90px;">
<select class="form-control" name="inner-choose-type" id="choose-tpl"> <select lay-verify="required" class="form-control select2" name="inner-choose-type" id="choose-tpl">
@if(empty($info->tpl_id)) @if(empty($info->tpl_id))
<option value="0" selected>请选择消息模板</option> <option value="0" selected>请选择消息模板</option>
@endif @endif
...@@ -172,7 +175,7 @@ ...@@ -172,7 +175,7 @@
<div class="col-sm-10 form-inline" style="margin-top: 20px"> <div class="col-sm-10 form-inline" style="margin-top: 20px">
<label class="col-sm-2 control-label"><span style="color: red">*</span></label> <label class="col-sm-2 control-label"><span style="color: red">*</span>上传文件</label>
<div class="col-sm-3"> <div class="col-sm-3">
<button type="button" name="img_upload" class="layui-btn" id="test1"> <button type="button" name="img_upload" class="layui-btn" id="test1">
<i class="layui-icon">&#xe67c;</i>上传文件 <i class="layui-icon">&#xe67c;</i>上传文件
...@@ -212,8 +215,20 @@ ...@@ -212,8 +215,20 @@
}) })
$("#submit123").click(function(){ $("#submit123").click(function(){
layui.use(['layer', 'form'], function(){
layer.confirm('您是如何看待前端开发?', {
btn: ['确定','取消'] //按钮
}, function(){
if($("#choose-tpl").val() == '0'){
layer.msg('请选择对应消息模板');
return false;
}
$("#postForm").submit(); $("#postForm").submit();
});
});
}) })
$(function () {
$("#choose-tpl").select2();
});
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment