@zscreate/form-component 1.1.336 → 1.1.337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form-component.umd.js +22 -8
- package/package.json +1 -1
|
@@ -154453,7 +154453,7 @@ function toNumber(value) {
|
|
|
154453
154453
|
/***/ ((module) => {
|
|
154454
154454
|
|
|
154455
154455
|
"use strict";
|
|
154456
|
-
module.exports = {"i8":"1.1.
|
|
154456
|
+
module.exports = {"i8":"1.1.337"};
|
|
154457
154457
|
|
|
154458
154458
|
/***/ })
|
|
154459
154459
|
|
|
@@ -158074,8 +158074,8 @@ var flow_panel_component = (0,componentNormalizer/* default */.Z)(
|
|
|
158074
158074
|
)
|
|
158075
158075
|
|
|
158076
158076
|
/* harmony default export */ const flow_panel = (flow_panel_component.exports);
|
|
158077
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/sider-panel.vue?vue&type=template&id=
|
|
158078
|
-
var
|
|
158077
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/sider-panel.vue?vue&type=template&id=6349c642&
|
|
158078
|
+
var sider_panelvue_type_template_id_6349c642_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sider-pannel"},[_c('a',{staticClass:"sider-open",attrs:{"href":"javascript:void(0);"},on:{"click":_vm.openOrClose}},[_vm._v("关闭")]),_c('div',{staticClass:"sider-panel-inner"},[_c('h3',{staticClass:"panel-hd"},[_vm._v("节点:"+_vm._s(_vm.node.info.title))]),_c('a-form',{staticClass:"panel-form",attrs:{"model":_vm.node}},[_c('a-form-item',{attrs:{"label":"节点ID:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-input',{attrs:{"disabled":""},model:{value:(_vm.node.id),callback:function ($$v) {_vm.$set(_vm.node, "id", $$v)},expression:"node.id"}})],1),_c('a-form-item',{attrs:{"label":"节点名称:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-input',{attrs:{"max-length":10,"disabled":_vm.node.info.type == 'gate' ||
|
|
158079
158079
|
_vm.node.info.type == 'start' ||
|
|
158080
158080
|
_vm.node.info.type == 'end'},on:{"change":_vm.changeNodeTitle},model:{value:(_vm.node.info.title),callback:function ($$v) {_vm.$set(_vm.node.info, "title", $$v)},expression:"node.info.title"}})],1),(_vm.node.info.type != 'end')?_c('a-form-item',{attrs:{"label":"是否抄送:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-radio-group',{attrs:{"name":"isCopy"},model:{value:(_vm.node.info.isCopy),callback:function ($$v) {_vm.$set(_vm.node.info, "isCopy", $$v)},expression:"node.info.isCopy"}},[_c('a-radio',{attrs:{"value":1}},[_vm._v("是")]),_c('a-radio',{attrs:{"value":0}},[_vm._v("否")])],1)],1):_vm._e(),(_vm.node.info.isCopy == '1')?_c('a-form-item',{attrs:{"label":"抄送人:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[(_vm.node.info.copyMap.activitiId == '')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('Assingee')}}},[_vm._v("选择抄送人")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'Assingee')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('Assingee')}}},[_vm._v("单人")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'CandidateUsers')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('CandidateUsers')}}},[_vm._v("多人")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'CandidateGroups')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('CandidateGroups')}}},[_vm._v("角色")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'CandidateFormUsers')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('CandidateFormUsers')}}},[_vm._v("表单用户")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'relationMatrix')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('relationMatrix')}}},[_vm._v("关系矩阵")]):_vm._e(),(_vm.node.info.copyMap.assigneeType == 'Script')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleCopyChangeType('Script')}}},[_vm._v("脚本")]):_vm._e()],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"预警时限:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-input-number',{staticStyle:{"width":"70px"},attrs:{"min":0},model:{value:(_vm.node.info.warningDays),callback:function ($$v) {_vm.$set(_vm.node.info, "warningDays", $$v)},expression:"node.info.warningDays"}}),_vm._v(" 小时 ")],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"审批组件:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"选择审批组件"},model:{value:(_vm.node.info.verify),callback:function ($$v) {_vm.$set(_vm.node.info, "verify", $$v)},expression:"node.info.verify"}},_vm._l((_vm.verifyList),function(verifyObj){return _c('a-select-option',{key:verifyObj.model,attrs:{"value":verifyObj.model}},[_vm._v(" "+_vm._s(verifyObj.name)+" ")])}),1)],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"审核结果:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"选择审核结果"},model:{value:(_vm.node.info.auditDict),callback:function ($$v) {_vm.$set(_vm.node.info, "auditDict", $$v)},expression:"node.info.auditDict"}},_vm._l((_vm.auditDictList),function(verifyObj){return _c('a-select-option',{key:verifyObj.dictCode,attrs:{"value":verifyObj.dictCode}},[_vm._v(" "+_vm._s(verifyObj.dictName)+" ")])}),1)],1):_vm._e(),(_vm.node.info.type != 'end')?_c('a-form-item',{attrs:{"label":"执行脚本","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-radio-group',{attrs:{"name":"status"},model:{value:(_vm.node.info.status),callback:function ($$v) {_vm.$set(_vm.node.info, "status", $$v)},expression:"node.info.status"}},[_c('a-radio',{attrs:{"value":1}},[_vm._v("是")]),_c('a-radio',{attrs:{"value":0}},[_vm._v("否")])],1)],1):_vm._e(),(_vm.node.info.type != 'end' && _vm.node.info.status == '1')?_c('a-form-item',{attrs:{"label":"选择脚本","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"选择流程脚本"},model:{value:(_vm.node.info.scriptManageId),callback:function ($$v) {_vm.$set(_vm.node.info, "scriptManageId", $$v)},expression:"node.info.scriptManageId"}},_vm._l((_vm.processList),function(process){return _c('a-select-option',{key:process.id,attrs:{"value":process.id}},[_vm._v(" "+_vm._s(process.formScriptName)+" ")])}),1)],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"允许撤销:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-radio-group',{attrs:{"name":"ableCancel"},model:{value:(_vm.node.info.ableCancel),callback:function ($$v) {_vm.$set(_vm.node.info, "ableCancel", $$v)},expression:"node.info.ableCancel"}},[_c('a-radio',{attrs:{"value":1}},[_vm._v("是")]),_c('a-radio',{attrs:{"value":0}},[_vm._v("否")])],1)],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"关联审核:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[_c('a-radio-group',{attrs:{"name":"shgl"},model:{value:(_vm.node.info.shgl),callback:function ($$v) {_vm.$set(_vm.node.info, "shgl", $$v)},expression:"node.info.shgl"}},[_c('a-radio',{attrs:{"value":1}},[_vm._v("是")]),_c('a-radio',{attrs:{"value":0}},[_vm._v("否")])],1)],1):_vm._e(),(_vm.node.info.type == 'comm')?_c('a-form-item',{attrs:{"label":"人员类型:","label-col":{ span: 8 },"wrapper-col":{ span: 16 }}},[(_vm.node.info.taskAssignee.activitiId == '')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('Assingee')}}},[_vm._v("选择处理类型")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'Assingee')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('Assingee')}}},[_vm._v("个人类型")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'CandidateUsers')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('CandidateUsers')}}},[_vm._v("候选人")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'CandidateGroups')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('CandidateGroups')}}},[_vm._v("候选组")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'CandidateFormUsers')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('CandidateFormUsers')}}},[_vm._v("表单用户")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'relationMatrix')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('relationMatrix')}}},[_vm._v("关系矩阵")]):_vm._e(),(_vm.node.info.taskAssignee.assigneeType == 'Script')?_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleChangeType('Script')}}},[_vm._v("脚本")]):_vm._e()],1):_vm._e(),(
|
|
158081
158081
|
_vm.node.info.type == 'comm' &&
|
|
@@ -158084,7 +158084,7 @@ var sider_panelvue_type_template_id_4061b4b6_render = function () {var _vm=this;
|
|
|
158084
158084
|
_vm.node.info.nodeForm.buttons &&
|
|
158085
158085
|
_vm.node.info.nodeForm.buttons.length > 0
|
|
158086
158086
|
)?_c('div',{staticClass:"node-list_btn"},_vm._l((_vm.node.info.nodeForm.buttons),function(item,index){return _c('a-button',{key:index,class:("ant-btn-" + (item.type)),attrs:{"icon":item.icon}},[_vm._v(" "+_vm._s(item.name)+" ")])}),1):_vm._e()],1)]):_vm._e(),(_vm.node.info.type == 'comm' && !_vm.isFlowPanelMain)?_c('div',{staticClass:"panel-box",staticStyle:{"padding-top":"15px"}},[_c('h3',{staticClass:"panel-hd"},[_vm._v("表单类型设置:")]),_c('div',{staticStyle:{"margin-top":"15px"}},[_c('a-radio-group',{attrs:{"defaultValue":"1","size":"large"}},[_c('a-radio-button',{attrs:{"value":"1"},on:{"click":_vm.handleFormChange}},[_vm._v("在线表单")])],1)],1),_c('div',{staticStyle:{"margin-top":"15px"}},[_c('a-input',{attrs:{"placeholder":"请填写URL表单地址","allowClear":""},on:{"change":_vm.nodechange},model:{value:(_vm.node.info.nodeForm.name),callback:function ($$v) {_vm.$set(_vm.node.info.nodeForm, "name", $$v)},expression:"node.info.nodeForm.name"}})],1)]):_vm._e(),(_vm.node.info.filter == 'exclude_gateway')?_c('div',{staticClass:"panel-box"},[_c('h3',{staticClass:"panel-hd"},[_vm._v("节点流转条件设置")]),_vm._l((_vm.node.info.conditions),function(item,key){return _c('div',{key:key,staticStyle:{"margin-top":"35px"}},[_c('div',{staticClass:"node-branch"},[_c('span',{staticClass:"title"},[_vm._v(_vm._s(item.title))]),_c('div',[_c('a-input',{attrs:{"placeholder":"设置条件表达式"},model:{value:(item.condition),callback:function ($$v) {_vm.$set(item, "condition", $$v)},expression:"item.condition"}})],1)])])})],2):_vm._e(),(_vm.workId && _vm.node.info.type != 'end')?_c('h3',{staticClass:"panel-hd",staticStyle:{"margin-top":"15px"}},[_vm._v(" 表单权限编辑: ")]):_vm._e(),(_vm.workId && _vm.node.info.type != 'end')?_c('div',{staticStyle:{"margin-top":"15px"}},[_c('a-button',{attrs:{"type":"primary"},on:{"click":_vm.editFormAuthor}},[_vm._v("编辑")])],1):_vm._e(),_c('select-type',{ref:"selectType",on:{"selectActivi":_vm.selectActivi}}),_c('select-type',{ref:"selectCopyType",on:{"selectActivi":_vm.selectCopyActivi}}),_c('form-author-modal',{ref:"FormAuthor"}),_c('OnlineFormModel',{ref:"OnlineFormModel",attrs:{"node":_vm.node.info.nodeForm}}),_c('OnlineForm',{ref:"OnlineForm"}),(_vm.node.info.yiCHangActions && _vm.node.info.yiCHangActions.length > 0)?_c('div',{staticClass:"panel-box"},_vm._l((_vm.node.info.yiCHangActions),function(item,key){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(item.filterType == 'false'),expression:"item.filterType == 'false'"}],key:key,staticStyle:{"margin-top":"35px"}},[_c('div',{staticClass:"node-branch"},[_c('span',{staticClass:"title"},[_vm._v(_vm._s(item.targetNodeName))]),_c('div',[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(item.condition),expression:"item.condition"}],staticStyle:{"width":"100%"},attrs:{"placeholder":"设置条件表达式","rows":2},domProps:{"value":(item.condition)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(item, "condition", $event.target.value)}}})])])])}),0):_vm._e()],1)])}
|
|
158087
|
-
var
|
|
158087
|
+
var sider_panelvue_type_template_id_6349c642_staticRenderFns = []
|
|
158088
158088
|
|
|
158089
158089
|
|
|
158090
158090
|
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/select_type.vue?vue&type=template&id=695b5299&
|
|
@@ -159974,6 +159974,7 @@ var FormAuthorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
159974
159974
|
formId: "",
|
|
159975
159975
|
scriptManageId: '',
|
|
159976
159976
|
nodeList: [],
|
|
159977
|
+
lineList: [],
|
|
159977
159978
|
verifyList: [],
|
|
159978
159979
|
auditDictList: [],
|
|
159979
159980
|
processList: [],
|
|
@@ -160055,6 +160056,7 @@ var FormAuthorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160055
160056
|
this.visible = true;
|
|
160056
160057
|
this.selectedValue = "defaultValue";
|
|
160057
160058
|
this.nodeList = data.nodeList;
|
|
160059
|
+
this.lineList = data.lineList;
|
|
160058
160060
|
data.nodeList.filter(node => {
|
|
160059
160061
|
if (node.id === id) {
|
|
160060
160062
|
if (!node.info.copyMap) {
|
|
@@ -160127,6 +160129,18 @@ var FormAuthorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160127
160129
|
}
|
|
160128
160130
|
}
|
|
160129
160131
|
}
|
|
160132
|
+
if (this.lineList.length > 0) {
|
|
160133
|
+
this.node.info.title;
|
|
160134
|
+
this.lineList.forEach(item => {
|
|
160135
|
+
if (item.condition && (item.condition.to || item.condition.from)) {
|
|
160136
|
+
if (item.condition.to == this.node.id) {
|
|
160137
|
+
item.condition.toTitle = this.node.info.title;
|
|
160138
|
+
} else if (item.condition.from == this.node.id) {
|
|
160139
|
+
item.condition.fromTitle = this.node.info.title;
|
|
160140
|
+
}
|
|
160141
|
+
}
|
|
160142
|
+
});
|
|
160143
|
+
}
|
|
160130
160144
|
},
|
|
160131
160145
|
openOrClose() {
|
|
160132
160146
|
this.$emit("isPanelShow", "nodePanel");
|
|
@@ -160178,10 +160192,10 @@ var FormAuthorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160178
160192
|
});
|
|
160179
160193
|
;// CONCATENATED MODULE: ./src/flow/sider-panel.vue?vue&type=script&lang=js&
|
|
160180
160194
|
/* harmony default export */ const flow_sider_panelvue_type_script_lang_js_ = (sider_panelvue_type_script_lang_js_);
|
|
160181
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/sider-panel.vue?vue&type=style&index=0&id=
|
|
160195
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/sider-panel.vue?vue&type=style&index=0&id=6349c642&prod&lang=less&
|
|
160182
160196
|
// extracted by mini-css-extract-plugin
|
|
160183
160197
|
|
|
160184
|
-
;// CONCATENATED MODULE: ./src/flow/sider-panel.vue?vue&type=style&index=0&id=
|
|
160198
|
+
;// CONCATENATED MODULE: ./src/flow/sider-panel.vue?vue&type=style&index=0&id=6349c642&prod&lang=less&
|
|
160185
160199
|
|
|
160186
160200
|
;// CONCATENATED MODULE: ./src/flow/sider-panel.vue
|
|
160187
160201
|
|
|
@@ -160194,8 +160208,8 @@ var FormAuthorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160194
160208
|
|
|
160195
160209
|
var sider_panel_component = (0,componentNormalizer/* default */.Z)(
|
|
160196
160210
|
flow_sider_panelvue_type_script_lang_js_,
|
|
160197
|
-
|
|
160198
|
-
|
|
160211
|
+
sider_panelvue_type_template_id_6349c642_render,
|
|
160212
|
+
sider_panelvue_type_template_id_6349c642_staticRenderFns,
|
|
160199
160213
|
false,
|
|
160200
160214
|
null,
|
|
160201
160215
|
null,
|