发布v2.5.6版本
This commit is contained in:
@@ -803,6 +803,18 @@ class mode_'.$modenum.'ClassAction extends inputAction{
|
||||
if($flow->isflow>0){
|
||||
$billrs = $flow->billmodel->getone("`table`='$flow->mtable' and `mid`='".$rs['id']."'");
|
||||
$otehsr = arrvalue($billrs, 'nowcheckname');
|
||||
$narr['udeptname'] = arrvalue($billrs, 'udeptname');
|
||||
$narr['optname'] = arrvalue($billrs, 'uname');
|
||||
}else{
|
||||
$uid = arrvalue($rs,'uid');
|
||||
if(!$uid)$uid = arrvalue($rs,'optid');
|
||||
if($uid){
|
||||
$urs = $flow->adminmodel->getXinxi($uid);
|
||||
if($urs){
|
||||
$narr['udeptname'] = $urs['deptname'];
|
||||
$narr['optname'] = $urs['name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$narr['status'] = $flow->getstatus($rs,'',$otehsr,1);
|
||||
$narr['chushu'] = $flow->flogmodel->rows("`table`='".$flow->mtable."' and `mid`='".$rs['id']."'");
|
||||
@@ -1168,8 +1180,12 @@ class mode_'.$modenum.'ClassAction extends inputAction{
|
||||
$num = $this->post('num');
|
||||
$modeid = (int)$this->post('modeid');
|
||||
$str = $this->post('str');
|
||||
$this->option->setval($num.'@'.(-1*$modeid-1000), $str,'模块列定义');
|
||||
$path = m('mode')->createlistpage($modeid);
|
||||
if($str){
|
||||
$this->option->setval($num.'@'.(-1*$modeid-1000), $str,'模块列定义');
|
||||
}else{
|
||||
$this->option->delete("`num`='$num'");
|
||||
}
|
||||
//$path = m('mode')->createlistpage($modeid);
|
||||
$msg = 'ok';
|
||||
//if($path=='')$msg='已保存,但无法从新生成列表页,自定义列将不能生效';
|
||||
echo $msg;
|
||||
|
||||
@@ -16,7 +16,7 @@ $(document).ready(function(){
|
||||
},
|
||||
submitcheck:function(d){
|
||||
if(d.fieldstype.indexOf('change')==0){
|
||||
if(d.data=='')return '此字段元素类型时,数据源必须填写用来存储选择来的Id,如填写为:'+d.fields+'id';
|
||||
if(d.data=='' || d.data==d.fields)return '此字段元素类型时,数据源必须填写用来存储选择来的Id,请填写为:'+d.fields+'id';
|
||||
}
|
||||
if(d.islu=='1' && d.fields=='id')return 'id字段是不可以做录入项字段';
|
||||
}
|
||||
|
||||
@@ -37,6 +37,18 @@ $(document).ready(function(){
|
||||
h.setValue('upgcont',jm.base64decode(d.upgcont));
|
||||
}
|
||||
}
|
||||
|
||||
var c = {
|
||||
xuanrenyua:function(){
|
||||
js.changeuser('', 'usercheck', '选择适用人员',{
|
||||
onselect:function(sna,sid){
|
||||
if(sid)h.form.wherestr.value+=' and {uid} in('+sid+')';
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
js.initbtn(c);
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -110,7 +122,7 @@ $(document).ready(function(){
|
||||
|
||||
<tr>
|
||||
<td align="right">条件:</td>
|
||||
<td class="tdinput" colspan="3"><textarea name="wherestr" style="height:60px" class="form-control"></textarea><font color=#888888>为空或者条件满足时显示菜单</font></td>
|
||||
<td class="tdinput" colspan="3"><textarea name="wherestr" style="height:60px" class="form-control"></textarea><font color=#888888>为空或者条件满足时显示菜单</font> <button click="xuanrenyua" class="btn btn-default btn-xs" type="button">选适用人员</button></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -205,13 +205,13 @@ cont:
|
||||
<td class="tdinput" colspan="3">
|
||||
<label><input name="isgbjl" value="1" type="checkbox"> 不显示操作记录</label>
|
||||
<label><input name="isgbcy" value="1" type="checkbox"> 不显示查阅记录</label>
|
||||
<label><input name="isscl" value="1" checked type="checkbox"> 标识已生成列表页</label>
|
||||
<label><input name="ispl" value="1" type="checkbox"> 开启可评论</label>
|
||||
|
||||
<label><input name="istxset" value="1" type="checkbox"> 开启单据提醒设置</label>
|
||||
|
||||
<label><input name="ishz" value="1" type="checkbox"> 开启回执确认</label>
|
||||
<label><input name="isys" value="1" type="checkbox"> 开启流程加签</label>
|
||||
<label><input name="isys" value="1" type="checkbox"> 开启流程加签</label>
|
||||
标识已生成列表页<select name="isscl"><option value="0">未生成</option><option value="1">已生成</option><option value="2">已生成2</option></select></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ $(document).ready(function(){
|
||||
tablename:'flow_set',celleditor:true,fanye:true,params:{modeid:0},autoLoad:false,dir:'desc',sort:'id',statuschange:false,
|
||||
url:publicstore('{mode}','{dir}'),storebeforeaction:'viewshowbefore',storeafteraction:'viewshowafter',
|
||||
columns:[{
|
||||
text:'申请人部门',dataIndex:'udeptname'
|
||||
},{
|
||||
text:'操作人',dataIndex:'optname',sortable:true
|
||||
},{
|
||||
text:'摘要',dataIndex:'summary',align:'left'
|
||||
|
||||
Reference in New Issue
Block a user