Commit 6eaeda6b9282a64588efcd22b559d0154c0177f2

Authored by u123231312
1 parent 63003806

no message

@@ -11,6 +11,10 @@ class Basicinfo extends Common @@ -11,6 +11,10 @@ class Basicinfo extends Common
11 $list= file_get_contents(ON_LINE.'App.Prints.QueryPrintsList'); 11 $list= file_get_contents(ON_LINE.'App.Prints.QueryPrintsList');
12 $array = json_decode($list,TRUE); 12 $array = json_decode($list,TRUE);
13 foreach ($array['data'] as $key => $value) { 13 foreach ($array['data'] as $key => $value) {
  14 + if($value['type']==1)
  15 + $array['data'][$key]['type'] = '50';
  16 + elseif($value['type']==2)
  17 + $array['data'][$key]['type'] = '80';
14 $array['data'][$key]['cdate'] = date('Y-m-d H:i:s',$value['cdate']); 18 $array['data'][$key]['cdate'] = date('Y-m-d H:i:s',$value['cdate']);
15 } 19 }
16 return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1]; 20 return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];
@@ -22,7 +26,7 @@ class Basicinfo extends Common @@ -22,7 +26,7 @@ class Basicinfo extends Common
22 public function printerAdd(){ 26 public function printerAdd(){
23 if(Request::isAjax()){ 27 if(Request::isAjax()){
24 $data = input('post.'); 28 $data = input('post.');
25 - $list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname']); 29 + $list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname'].'&type='.$data['type']);
26 $array = json_decode($list,TRUE); 30 $array = json_decode($list,TRUE);
27 //添加 31 //添加
28 if ($array['ret']==200) { 32 if ($array['ret']==200) {
@@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
23 cols: [[ 23 cols: [[
24 {field:'id', title: '编号', width:80,fixed: true} 24 {field:'id', title: '编号', width:80,fixed: true}
25 ,{field:'name', title: '型号名称', width:200} 25 ,{field:'name', title: '型号名称', width:200}
  26 + ,{field:'type', title: '类型(mm)', width:110}
26 ,{field:'cdate', title: '日期', width:200} 27 ,{field:'cdate', title: '日期', width:200}
27 ,{width:80,title: '操作', toolbar: '#barDemo'} 28 ,{width:80,title: '操作', toolbar: '#barDemo'}
28 ]] 29 ]]
@@ -14,7 +14,15 @@ @@ -14,7 +14,15 @@
14 便于后期顺利打印,请认真填写。 14 便于后期顺利打印,请认真填写。
15 </div> 15 </div>
16 </div> 16 </div>
17 - 17 + <div class="layui-form-item">
  18 + <label class="layui-form-label">型号类型</label>
  19 + <div class="layui-input-4">
  20 + <select name="type" id="type" lay-filter="myselect">
  21 + <option value="1">50mm</option>
  22 + <option value="2">80mm</option>
  23 + </select>
  24 + </div>
  25 + </div>
18 <div class="layui-form-item"> 26 <div class="layui-form-item">
19 <div class="layui-input-block"> 27 <div class="layui-input-block">
20 <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button> 28 <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>