| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <div class="layui-card-header">成绩</div>
- <div class="layui-card-body" pad15>
- <div class="layui-form layui-form-pane" lay-filter="{$lay_table}">
- <input type="hidden" name="id" value="{:array_get($info,'id')}">
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>考生号</label>
- <div class="layui-input-block">
- <input type="text" name="no" value="{:array_get($info,'no')}" lay-verify="required"
- placeholder="请输入考生号" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>姓名</label>
- <div class="layui-input-block">
- <input type="text" name="name" value="{:array_get($info,'name')}" lay-verify="required"
- placeholder="请输入姓名" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>单位</label>
- <div class="layui-input-block">
- <input type="text" name="company" value="{:array_get($info,'company')}" lay-verify="required"
- placeholder="请输入单位" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>理论得分</label>
- <div class="layui-input-block">
- <input type="number" name="theory_score" value="{:array_get($info,'theory_score')}" lay-verify="required"
- placeholder="请输入理论得分" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>机操得分</label>
- <div class="layui-input-block">
- <input type="number" name="computer_score" value="{:array_get($info,'computer_score')}" lay-verify="required"
- placeholder="请输入机操得分" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>初赛得分</label>
- <div class="layui-input-block">
- <input type="number" name="total_score" value="{:array_get($info,'total_score')}" lay-verify="required"
- placeholder="请输入机操得分" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>排名</label>
- <div class="layui-input-block">
- <input type="number" name="rank" value="{:array_get($info,'rank')}" lay-verify="required"
- placeholder="排名" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item" pane>
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>进入决赛</label>
- <div class="layui-input-block">
- {volist name="is_final_list" id="v"}
- <input type="radio" name="is_final" value="{$key}" title="{$v}" {eq name=":array_get($info,'is_final',2)" value="$key" }checked{/eq}>
- {/volist}
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <input type="button" lay-submit lay-filter="{$lay_btn}" value="确认提交" class="layui-btn">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- layui.use(['index', 'form', 'layedit', 'upload'], function () {
- const admin = layui.admin;
- const form = layui.form;
- form.render();
- form.on('submit({$lay_btn})', function (obj) {
- const index = parent.layer.getFrameIndex(window.name);
- admin.req({
- url: "{:url('grade/editGrade')}",
- type: 'post',
- data: obj.field,
- done: function (res) {
- layer.msg("提交成功", {
- icon: 1
- });
- parent.layui.table.reload('lay-grade-index-table'); //重载表格
- parent.layer.close(index);
- }
- });
- });
- });
- </script>
|