| | |
| | | padding: 20px; |
| | | color: rgba(0, 0, 0, 0.85); |
| | | |
| | | .loading-data { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 20px; |
| | | right: 20px; |
| | | bottom: 0; |
| | | z-index: 2; |
| | | opacity: 0.5; |
| | | background: #ffffff; |
| | | .ant-spin-spinning { |
| | | position: absolute; |
| | | left: 50%; |
| | | top: 270px; |
| | | } |
| | | } |
| | | .mk-calendar-control { |
| | | text-align: right; |
| | | .ant-select { |
| | |
| | | type: 'select', |
| | | field: 'selStyle', |
| | | label: '选中风格', |
| | | initval: wrap.selStyle || 'active', |
| | | tooltip: '存在边框时,边框会使用系统色。', |
| | | initval: wrap.selStyle || 'check', |
| | | // tooltip: '存在边框时,边框会使用系统色。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'none', label: '无'}, |
| | | {value: 'active', label: '外阴影'}, |
| | | {value: 'backFont', label: '背景+文字'}, |
| | | {value: 'font', label: '文字'}, |
| | | // {value: 'active', label: '外阴影'}, |
| | | // {value: 'backFont', label: '背景+文字'}, |
| | | // {value: 'font', label: '文字'}, |
| | | {value: 'check', label: '勾选(圆框)'}, |
| | | {value: 'check square', label: '勾选(方框)'} |
| | | ] |
| | |
| | | } trigger="hover"> |
| | | <ToolOutlined /> |
| | | </Popover> |
| | | {/* {group.setting && group.setting.print === 'true' ? <Button className="print-button" onClick={this.print}><PrinterOutlined /></Button> : null} */} |
| | | <GroupComponents config={group} handleList={this.updateComponent} deleteCard={this.deleteCard} /> |
| | | </div> |
| | | ) |
| | |
| | | padding: 5px; |
| | | background: rgba(255, 255, 255, 0.55); |
| | | } |
| | | .print-button, .print-button:hover, .print-button:focus, .print-button:active { |
| | | position: absolute; |
| | | right: 40px; |
| | | top: 0px; |
| | | border: 0; |
| | | background: transparent; |
| | | color: #bcbcbc; |
| | | } |
| | | } |
| | | .menu-group-edit-box.padding:before { |
| | | content: ' '; |
| | |
| | | addProcess = () => { |
| | | let _sql = this.props.form.getFieldValue('dataresource') |
| | | |
| | | _sql = _sql + `\n/* select a.*,case when isnull(w.remark,'')='' then a.remark else w.remark end as remark_w,case when isnull(w.statusname,'')='' then a.statusname else w.statusname end as statusname_w,w.status as status_w from 数据源 a left join (select * from s_my_works_flow where works_flow_code='流程编码' and deleted=0) w on a.id=w.works_flow_id where isnull(w.status,0)=0 */` |
| | | _sql = _sql + `\n/* select a.*, w.remark as remark_w, w.statusname as statusname_w,w.status as status_w from 数据源 a inner join (select * from s_my_works_flow where works_flow_code=@works_flow_code@ and status=0 and deleted=0) w on a.id=w.works_flow_id */` |
| | | |
| | | this.props.form.setFieldsValue({ |
| | | dataresource: _sql |
| | |
| | | _customScript = _customScript.replace(/@\$|\$@/ig, '') |
| | | _tailScript = _tailScript.replace(/@\$|\$@/ig, '') |
| | | |
| | | if (window.GLOB.process) { |
| | | _dataresource = _dataresource.replace(/@works_flow_code@/ig, `'${timestamp}'`) |
| | | _customScript = _customScript.replace(/@works_flow_code@/ig, `'${timestamp}'`) |
| | | _tailScript = _tailScript.replace(/@works_flow_code@/ig, `'${timestamp}'`) |
| | | } |
| | | |
| | | _dataresource = _dataresource.replace(/@select\$|\$select@/ig, '') |
| | | _customScript = _customScript.replace(/@select\$|\$select@/ig, '') |
| | | _customScript = _customScript.replace(/@sum\$|\$sum@/ig, '') |
| | |
| | | padding: 20px; |
| | | color: rgba(0, 0, 0, 0.85); |
| | | |
| | | .loading-data { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 20px; |
| | | right: 20px; |
| | | bottom: 0; |
| | | z-index: 2; |
| | | opacity: 0.5; |
| | | background: #ffffff; |
| | | .ant-spin-spinning { |
| | | position: absolute; |
| | | left: 50%; |
| | | top: 270px; |
| | | } |
| | | } |
| | | .mk-calendar-control { |
| | | text-align: right; |
| | | .ant-select { |
| | |
| | | } |
| | | } |
| | | } |
| | | .data-zoom.scale { |
| | | .card-row-list { |
| | | .mk-card:hover { |
| | | >.card-item-box { |
| | | z-index: 1; |
| | | transform: scale(1.05); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .card-row-list { |
| | | flex: 10; |
| | | max-width: 100%; |
| | |
| | | .normal-group-wrap { |
| | | .print-button, .print-button:hover, .print-button:focus, .print-button:active { |
| | | position: absolute; |
| | | right: 0px; |
| | | top: 0px; |
| | | z-index: 2; |
| | | border: 0; |
| | | background: transparent; |
| | | } |
| | | .print-button:hover, .print-button:focus, .print-button:active { |
| | | color: var(--mk-sys-color5); |
| | | } |
| | | |
| | | .group-header { |
| | | position: relative; |
| | | height: 45px; |
| | |
| | | } |
| | | |
| | | handleConfirm = () => { |
| | | const { type } = this.props |
| | | const { type, workFlow } = this.props |
| | | const { editItem, skip } = this.state |
| | | // 表单提交时检查输入值是否正确 |
| | | this.props.form.validateFieldsAndScroll((err, values) => { |
| | |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | param.LText = param.LText.replace(/@(BID|ID|LoginUID|SessionUid|UserID|Appkey|time_id|datam|typename)@/ig, `'${param.timestamp}'`) |
| | | |
| | | if (window.GLOB.process && workFlow === 'true') { |
| | | param.LText = param.LText.replace(/@works_flow_code@/ig, `'${param.timestamp}'`) |
| | | param.LText = param.LText.replace(/@works_flow_name@/ig, `'${param.timestamp}'`) |
| | | param.LText = param.LText.replace(/@works_flow_param@/ig, `'${param.timestamp}'`) |
| | | param.LText = param.LText.replace(/@works_flow_detail_id@/ig, `'${param.timestamp}'`) |
| | | } |
| | | |
| | | console.info(`/* sql 验证 */\n${param.LText.replace(/\n\s{6,20}/ig, '\n')}`) |
| | | |
| | | param.LText = param.LText.replace(/\n/g, ' ') |
| | |
| | | } |
| | | |
| | | selectScript = (value, option) => { |
| | | // const { flowType } = this.props |
| | | const { flowType } = this.props |
| | | |
| | | if (!value || !option) return |
| | | |
| | |
| | | } |
| | | |
| | | if (value === 'flowSql') { |
| | | value = `insert into s_my_works_flow ( works_flow_id,works_flow_code,works_flow_param,work_group,works_flow_detail_id,work_grade,bid,createuserid,CreateUser,CreateStaff) |
| | | select @ID@,'流程编码','下一步要用到的参数串','职员分组','流程节点id','职员等级',@bid@,@UserID@,@UserName,@FullName` |
| | | if (flowType === 'start') { |
| | | value = `insert into s_my_works_flow (works_flow_id,works_flow_code,works_flow_param,work_group,works_flow_detail_id,work_grade,bid,createuserid,CreateUser,CreateStaff) |
| | | select @ID@,@works_flow_code@,@works_flow_param@,'职员分组',@works_flow_detail_id@,'职员等级',@bid@,@UserID@,@UserName,@FullName |
| | | insert into s_my_works_flow_log (works_flow_id,works_flow_code,works_flow_name,status,statuscharone,statuschartwo,StatusCharThree,StatusCharFour,StatusCharFive,statusname,remark,CreateUserID,CreateUser,CreateStaff,works_flow_detail_id,sort,upid,work_group,work_grade,typecharone,deleted,statusname_suc,statusname_back )` |
| | | } else { |
| | | value = `insert into s_my_works_flow (works_flow_id,works_flow_code,works_flow_param,work_group,works_flow_detail_id,work_grade,bid,createuserid,CreateUser,CreateStaff) |
| | | select @ID@,@works_flow_code@,@works_flow_param@,'职员分组',@works_flow_detail_id@,'职员等级',@bid@,@UserID@,@UserName,@FullName` |
| | | } |
| | | |
| | | value = value.replace(/\n\s{8}/g, '\n') |
| | | } |
| | | |
| | | _sql = _sql.replace(/\s{6}$/, '') |
| | |
| | | |
| | | if (window.GLOB.process) { |
| | | _verify.workFlow = _verify.workFlow || 'false' |
| | | _verify.flowType = _verify.flowType || 'approval' |
| | | _verify.flowType = _verify.flowType || (card.sqlType === 'insert' ? 'start' : 'approval') |
| | | _verify.flowSql = _verify.flowSql || 'true' |
| | | } else { |
| | | delete _verify.workFlow |