| | |
| | | <template> |
| | | <!--è¡¨æ ¼åºç¡æé®--> |
| | | <div v-if="type === 'table'"> |
| | | <!--topå±ç¤ºè¡¨æ ¼ä¸æ¹åºå menuå±ç¤ºè¡¨æ ¼æä½æ åºå --> |
| | | <el-button v-for="item in basicButtonList.top" |
| | | v-if="LocationType === 'top'" |
| | | :key="item.oid" :icon="item.icon" |
| | | :type="item.paramVOS.buttonType || 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | <div> |
| | | <!--è¡¨æ ¼åºç¡æé®--> |
| | | <div v-if="type === 'table'"> |
| | | <!--topå±ç¤ºè¡¨æ ¼ä¸æ¹åºå menuå±ç¤ºè¡¨æ ¼æä½æ åºå --> |
| | | <el-button v-for="item in basicButtonList.top" |
| | | v-if="LocationType === 'top'" |
| | | :key="item.oid" :icon="item.icon" |
| | | :type="item.paramVOS.buttonType || 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | |
| | | <el-button v-for="item in basicButtonList.menu" |
| | | v-if="LocationType === 'menu'" |
| | | :key="item.oid" :icon="item.paramVOS.icon" |
| | | :type="item.paramVOS.buttonType || 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item,scope)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | <!-- <dynamic-form :title="formName" :visible.sync="visible"></dynamic-form>--> |
| | | <el-button v-for="item in basicButtonList.menu" |
| | | v-if="LocationType === 'menu'" |
| | | :key="item.oid" |
| | | :icon="item.paramVOS.icon ? item.paramVOS.icon : (item.paramVOS.buttonMethods === 'edit' ? 'el-icon-edit' : (item.paramVOS.buttonMethods === 'delete' ? 'el-icon-delete' : ''))" |
| | | :type="item.paramVOS.buttonType || 'text'" plain |
| | | size="small" |
| | | @click="buttonClick(item,scope)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | </div> |
| | | <div v-if="type === 'form'"> |
| | | <el-button v-for="item in basicButtonList" |
| | | :key="item.oid" |
| | | :type="(item.paramVOS.buttonType !== 'text' ? item.paramVOS.buttonType : 'primary') || 'primary'" plain |
| | | size="small" |
| | | :icon="item.icon" |
| | | @click="buttonClick(item)"> |
| | | {{item.name}} |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | LocationType: { |
| | | type: String, |
| | | }, |
| | | scope:{ |
| | | type:Object, |
| | | scope: { |
| | | type: Object, |
| | | }, |
| | | butttonList:{ |
| | | type:Array |
| | | butttonList: { |
| | | type: Array |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | basicButtonList() { |
| | | // const basicColumn = this.butttonList.filter(item => item.id !== 'launchworkflow'); // é¦å
è¿æ»¤åºæ¥åºç¡è¡¨åäºä»¶çæé® |
| | | const basicColumn = this.butttonList; |
| | | if (this.type === 'table') { |
| | | |
| | | if (this.type === 'form') { |
| | | console.log('basicColumn',basicColumn) |
| | | return basicColumn; |
| | | } else if (this.type === 'table') { |
| | | const top = basicColumn.filter(item => item.paramVOS.location === 'top' || func.isEmpty(item.paramVOS.location)); // è¿æ»¤åºæ¥è¡¨æ ¼ä¸é¢åºåå±ç¤ºçæé® |
| | | const menu = basicColumn.filter(item => item.paramVOS.location === 'menu'); // è¿æ»¤åºæ¥æä½æ å±ç¤ºçæé® |
| | | return { |
| | | top: top, |
| | | menu: menu |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | buttonClick(item) { |
| | | this.$emit('buttonClick',this.scope,item) |
| | | this.$emit('buttonClick', this.scope, item) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <basic-container> |
| | | <el-dialog v-if="dialogFormVisible" :title="title" :visible.sync="dialogFormVisible" @close="closeHandler" append-to-body> |
| | | <avue-form v-model="form" :option="option" @submit="submitHandler" @reset-change="changeHandler"> |
| | | <template v-for="item in slotData" :slot="item.prop + 'Label'"> |
| | | <avue-form v-model="form" :option="option"> |
| | | <template v-for="item in slotData" :slot="item.prop + 'Label'"> |
| | | <span> |
| | | <span>{{ item.label }} </span> |
| | | <el-tooltip |
| | |
| | | <i class="el-icon-star-on" style="font-size: 17px !important; color: red;vertical-align: baseline;"></i> |
| | | </el-tooltip> |
| | | </span> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | <template slot="menuForm"> |
| | | <dynamic-button type="form" :butttonList="componentVO.buttons" @buttonClick="buttonClick"></dynamic-button> |
| | | </template> |
| | | </avue-form> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | type: Object, |
| | | default: {} |
| | | }, |
| | | visible: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | title: { |
| | | type: String |
| | | }, |
| | | formList:{ |
| | | type:Array |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | } |
| | | }, |
| | | mounted() { |
| | | // console.log('componentVO--',this.componentVO.tableDefineVO.cols[0]) |
| | | }, |
| | | computed: { |
| | | dialogFormVisible: { |
| | | get() { |
| | | return this.visible; |
| | | }, |
| | | set(val) { |
| | | this.$emit("update:visible", val); |
| | | }, |
| | | }, |
| | | option() { |
| | | return { |
| | | column: this.formColumn(this.formList) |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | height: 300, |
| | | column: this.formColumn(this.componentVO.tableDefineVO.cols[0]) |
| | | } |
| | | }, |
| | | slotData(){ |
| | | return this.formColumn(this.formList) |
| | | slotData() { |
| | | return this.formColumn(this.componentVO.tableDefineVO.cols[0]) |
| | | } |
| | | }, |
| | | methods:{ |
| | | //表åæäº¤ |
| | | submitHandler(form,done){ |
| | | console.log(form) |
| | | console.log(this.slotData) |
| | | done() |
| | | }, |
| | | changeHandler(){ |
| | | this.form = {}; |
| | | // this.clearValidate() æ¸
ç©ºæ ¡éª |
| | | // this.resetFields() |
| | | }, |
| | | methods: { |
| | | //è½¬åæ°æ® |
| | | formColumn(formList) { |
| | | return formList.map(item => { |
| | | const typeValue = item.type === 'text' ? 'input' : item.type === 'combox' ? 'select' : item.type; |
| | |
| | | disabled: item.disabled, |
| | | labelSuffix: item.suffix, |
| | | suffixIcon: item.prefix, |
| | | placeholder:item.placeholder, |
| | | clearable:item.clearable, |
| | | placeholder: item.placeholder, |
| | | clearable: item.clearable, |
| | | tip: item.tooltips, |
| | | keyAttr: item.keyAttr, |
| | | rules: [{ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | closeHandler(){ |
| | | this.form = {}; |
| | | buttonClick(item) { |
| | | console.log(item.id) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <el-dialog v-if="dialogFormVisible" :title="title" :visible.sync="dialogFormVisible" @close="closeHandler" append-to-body> |
| | | <avue-form v-model="form" :option="option" @submit="submitHandler" @reset-change="changeHandler"> |
| | | <template v-for="item in slotData" :slot="item.prop + 'Label'"> |
| | | <span> |
| | | <span>{{ item.label }} </span> |
| | | <el-tooltip |
| | | v-if="item.keyAttr" |
| | | class="item" |
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§" |
| | | effect="dark" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-star-on" style="font-size: 17px !important; color: red;vertical-align: baseline;"></i> |
| | | </el-tooltip> |
| | | </span> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "dynamic-table-form", |
| | | props: { |
| | | componentVO: { |
| | | type: Object, |
| | | default: {} |
| | | }, |
| | | inDialog: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | areasName: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | sourceData: { |
| | | //èåæºæ°æ®æè
å¼¹çªæ¶æé®æå±åºåçä¸ä¸åºåé䏿°æ® |
| | | type: Object, |
| | | default: {} |
| | | }, |
| | | paramVOS: { |
| | | type: Object, |
| | | default: {} |
| | | }, |
| | | visible: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | title: { |
| | | type: String |
| | | }, |
| | | formList:{ |
| | | type:Array |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | } |
| | | }, |
| | | computed: { |
| | | dialogFormVisible: { |
| | | get() { |
| | | return this.visible; |
| | | }, |
| | | set(val) { |
| | | this.$emit("update:visible", val); |
| | | }, |
| | | }, |
| | | option() { |
| | | return { |
| | | column: this.formColumn(this.formList) |
| | | } |
| | | }, |
| | | slotData(){ |
| | | return this.formColumn(this.formList) |
| | | } |
| | | }, |
| | | methods:{ |
| | | //表åæäº¤ |
| | | submitHandler(form,done){ |
| | | done() |
| | | }, |
| | | changeHandler(){ |
| | | this.form = {}; |
| | | // this.clearValidate() æ¸
ç©ºæ ¡éª |
| | | // this.resetFields() |
| | | }, |
| | | formColumn(formList) { |
| | | return formList.map(item => { |
| | | const typeValue = item.type === 'text' ? 'input' : item.type === 'combox' ? 'select' : item.type; |
| | | |
| | | return { |
| | | label: item.text, |
| | | prop: item.field, |
| | | type: typeValue, |
| | | value: item.defaultValue, |
| | | dicData: item.type === 'combox' ? item.dicData : null, |
| | | readonly: item.readOnly, |
| | | disabled: item.disabled, |
| | | labelSuffix: item.suffix, |
| | | suffixIcon: item.prefix, |
| | | placeholder:item.placeholder, |
| | | clearable:item.clearable, |
| | | tip: item.tooltips, |
| | | keyAttr: item.keyAttr, |
| | | rules: [{ |
| | | required: item.required, |
| | | message: `请è¾å
¥${item.text}!`, |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | }) |
| | | }, |
| | | closeHandler(){ |
| | | this.form = {}; |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |
| | |
| | | :table-loading="loading"> |
| | | <!--topåºåæé®--> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <dynamic-button LocationType="top" type="table":butttonList="butttonList" @buttonClick="buttonClick" ></dynamic-button> |
| | | <dynamic-button LocationType="top" type="table":butttonList="componentVO.buttons" @buttonClick="buttonClick" ></dynamic-button> |
| | | </template> |
| | | |
| | | <!--menuåºåæé®--> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <dynamic-button :scope="scope" LocationType="menu" type="table":butttonList="butttonList" @buttonClick="buttonClick" ></dynamic-button> |
| | | <dynamic-button :scope="scope" LocationType="menu" type="table":butttonList="componentVO.buttons" @buttonClick="buttonClick" ></dynamic-button> |
| | | </template> |
| | | </avue-crud> |
| | | <!-- è¡¨æ ¼å
æé®æä½å¯¹è¯æ¡è¡¨å --> |
| | | <dynamic-form ref="dynamicForm" :formList="formList" :title="formName" :visible.sync="visible" |
| | | style="display: none"></dynamic-form> |
| | | <dynamic-table-form ref="dynamicForm" :formList="formList" :title="formName" :visible.sync="visible" |
| | | style="display: none"></dynamic-table-form> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | currentPage: 1, |
| | | total: 5, |
| | | }, |
| | | //è¡¨æ ¼å¤´ |
| | | tableHeadList: [ |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | field: "name", |
| | | fieldType: "text", |
| | | hidden: false, |
| | | title: "åç§°", |
| | | width: 100, |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | field: "code", |
| | | fieldType: "text", |
| | | hidden: false, |
| | | title: "ç¼ç ", |
| | | width: 100 |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | comboxKey: "EnumReviewType", |
| | | field: "reviewtypetext", |
| | | fieldType: "combox", |
| | | hidden: false, |
| | | sortField: "reviewtype", |
| | | title: "ç±»å", |
| | | width: 80 |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | field: "content", |
| | | fieldType: "textarea", |
| | | hidden: false, |
| | | title: "夿³¨", |
| | | width: 150 |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | comboxKey: "ProcessReviewLC${lcstatus}", |
| | | field: "lcstatus_text", |
| | | fieldType: "text", |
| | | hidden: false, |
| | | sortField: "lcstatus", |
| | | title: "ç¶æ", |
| | | width: 100 |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | field: "creator_name", |
| | | fieldType: "text", |
| | | hidden: false, |
| | | sortField: "creator", |
| | | title: "å建人", |
| | | width: 80 |
| | | }, |
| | | { |
| | | align: "left", |
| | | colspan: 1, |
| | | dateFormate: "yyyy-MM-dd HH:mm:ss", |
| | | field: "createtime", |
| | | fieldType: "date", |
| | | hidden: false, |
| | | title: "åå»ºæ¥æ", |
| | | width: 160 |
| | | } |
| | | ], |
| | | //è¡¨æ ¼æ°æ® |
| | | tableList: [ |
| | | { |
| | |
| | | verify: "" |
| | | }, |
| | | ], |
| | | // æé®æ°æ® |
| | | butttonList: [ |
| | | { |
| | | actionVO: { |
| | | actionCls: "", |
| | | actionUsedType: "business", |
| | | bsUrl: "null", |
| | | createTime: "2013-11-01 15:17:45.000", |
| | | creator: "eddieliu", |
| | | csClass: "plm.uif.actions.client.AddAction", |
| | | description: "å建ä¸å¡å¯¹è±¡", |
| | | id: "add", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2013-11-01 15:17:45.000", |
| | | licensors: null, |
| | | name: "å建", |
| | | oid: "65274704-5557-231C-E3EA-0B32B9BD5A0B" |
| | | }, |
| | | areaType: "tab", |
| | | authorization: true, |
| | | children: null, |
| | | createTime: "2022-07-18 17:29:10.000", |
| | | creator: "developer", |
| | | csUrl: "plm.uif.actions.client.AddAction", |
| | | description: "", |
| | | displayMode: "textandimage", |
| | | hidden: false, |
| | | iconPath: "", |
| | | id: "add", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2022-07-18 17:29:10.000", |
| | | name: "æ°å¢", |
| | | oid: "DD34108A-5978-334C-7A2A-45F2EE158B1D", |
| | | orderNum: 1, |
| | | paramVOS: { |
| | | form: "DepartmentProcessReviewForm", |
| | | context: "EditDepartmentProcessReview", |
| | | type: "processreview", |
| | | initvalue: "reviewtype=department", |
| | | location: 'top', |
| | | buttonType: 'primary', |
| | | buttonMethods: 'add' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | | url: "null" |
| | | }, |
| | | { |
| | | actionVO: { |
| | | actionCls: "", |
| | | actionUsedType: "business", |
| | | bsUrl: "BaseEditAction#doAction", |
| | | createTime: "2013-11-09 10:32:41.000", |
| | | creator: "eddieliu", |
| | | csClass: "plm.uif.actions.client.EditAction", |
| | | description: "ä¿®æ¹ä¸å¡å¯¹è±¡", |
| | | id: "edit", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2013-11-09 10:32:41.000", |
| | | licensors: null, |
| | | name: "ä¿®æ¹", |
| | | oid: "F8534EFE-130B-0CB3-D477-2AC7B19B7DC4" |
| | | }, |
| | | areaType: "tab", |
| | | authorization: true, |
| | | children: null, |
| | | createTime: "2022-07-18 17:29:10.000", |
| | | creator: "developer", |
| | | csUrl: "plm.uif.actions.client.EditAction", |
| | | description: "", |
| | | displayMode: "textandimage", |
| | | hidden: false, |
| | | iconPath: "", |
| | | id: "edit", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2022-07-18 17:29:10.000", |
| | | name: "ä¿®æ¹", |
| | | oid: "F50F37CE-26FF-8BC1-F87A-FFD9CFA8CE57", |
| | | orderNum: 2, |
| | | paramVOS: { |
| | | form: "DepartmentProcessReviewForm", |
| | | checkNotOperation: "${lcstatus}=Auditing&${lcstatus}=Waiting", |
| | | location: 'menu', |
| | | buttonType: 'text', |
| | | icon: "el-icon-edit", |
| | | buttonMethods: 'edit' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | | url: "BaseEditAction#doAction" |
| | | }, |
| | | { |
| | | actionVO: { |
| | | actionCls: "", |
| | | actionUsedType: "business", |
| | | bsUrl: "BaseDeleteAction", |
| | | createTime: "2013-11-09 10:33:08.000", |
| | | creator: "1", |
| | | csClass: "plm.uif.actions.client.DeleteAction", |
| | | description: "å é¤ä¸å¡å¯¹è±¡", |
| | | id: "del", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2013-11-09 10:33:08.000", |
| | | licensors: null, |
| | | name: "å é¤", |
| | | oid: "2655E9F0-014B-DFEC-6F92-A6D1C51FDA19" |
| | | }, |
| | | areaType: "tab", |
| | | authorization: true, |
| | | children: null, |
| | | createTime: "2022-07-18 17:29:10.000", |
| | | creator: "developer", |
| | | csUrl: "plm.uif.actions.client.DeleteAction", |
| | | description: "", |
| | | displayMode: "textandimage", |
| | | hidden: false, |
| | | iconPath: "", |
| | | id: "del", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2022-07-18 17:29:10.000", |
| | | name: "å é¤", |
| | | oid: "A8914C35-721B-A1E3-1EEE-3A9196DF5EC9", |
| | | orderNum: 3, |
| | | paramVOS: { |
| | | owner: "true", |
| | | checkNotOperation: "${lcstatus}=Auditing&${lcstatus}=Waiting", |
| | | state: "Editing", |
| | | location: 'menu', |
| | | buttonType: 'text', |
| | | icon: "el-icon-delete", |
| | | buttonMethods: 'delete' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | | url: "BaseDeleteAction" |
| | | }, |
| | | { |
| | | actionVO: { |
| | | actionCls: "", |
| | | actionUsedType: "business", |
| | | bsUrl: "BaseStartWorkflowAction#doAction", |
| | | createTime: "2014-03-17 10:14:40.000", |
| | | creator: "developer", |
| | | csClass: "plm.uif.actions.client.LaunchWorkFlowAction", |
| | | description: "å¯å¨æµç¨", |
| | | id: "launchworkflow", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2014-03-17 10:14:40.000", |
| | | licensors: null, |
| | | name: "å¯å¨æµç¨", |
| | | oid: "56FE9470-AA2B-403B-F029-0A120FC94536" |
| | | }, |
| | | areaType: "tab", |
| | | authorization: true, |
| | | children: null, |
| | | createTime: "2022-07-18 17:29:10.000", |
| | | creator: "developer", |
| | | csUrl: "plm.uif.actions.client.LaunchWorkFlowAction", |
| | | description: "", |
| | | displayMode: "textandimage", |
| | | hidden: false, |
| | | iconPath: "", |
| | | id: "launchworkflow", |
| | | lastModifier: "developer", |
| | | lastModifyTime: "2022-07-18 17:29:10.000", |
| | | name: "审ç¾", |
| | | oid: "9963FA86-F146-FBD3-2AC2-51A7AAAAB825", |
| | | orderNum: 4, |
| | | paramVOS: { |
| | | owner: "true", |
| | | autoSubmitFirst: "false", |
| | | flowtemplates: "å·¥èºè¯å®¡å®¡ç¾æµç¨", |
| | | state: "Editing", |
| | | type: "processreview", |
| | | location: 'top', |
| | | buttonMethods: 'form' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | | url: "BaseStartWorkflowAction#doAction" |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log('componentVO',this.componentVO) |
| | | }, |
| | | computed: { |
| | | option() { |
| | | option() { |
| | | return { |
| | | index: true, |
| | | addBtn: false, |
| | |
| | | }; |
| | | }, |
| | | updatedColumns() { |
| | | return this.tableHeadList.map(item => { |
| | | return this.componentVO.tableDefineVO.cols[0].map(item => { |
| | | const typeValue = item.fieldType === 'text' || item.fieldType === 'combox' ? 'input' : item.fieldType; // 表åTypeç±»å |
| | | |
| | | return { |
| | |
| | | //åºç¡ç»å®è¡¨åæé® |
| | | import dynamicButton from '@/components/dynamic-components/dynamic-button' |
| | | //åºç¡å¨æå¼¹çªè¡¨åç»ä»¶ |
| | | import dynamicTableForm from '@/components/dynamic-components/dynamic-table-form' |
| | | //åºå®è¡¨åç»ä»¶ |
| | | import dynamicForm from '@/components/dynamic-components/dynamic-form' |
| | | |
| | | // 注åå
¨å±crudé©±å¨ |
| | | window.$crudCommon = crudCommon; |
| | | // å è½½Vueæå± |
| | |
| | | Vue.component('flowDesign', flowDesign); |
| | | Vue.component('tenantPackage', tenantPackage); |
| | | Vue.component('dynamicButton', dynamicButton); |
| | | Vue.component('dynamicTableForm', dynamicTableForm); |
| | | Vue.component('dynamicForm', dynamicForm); |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/dynamic-table', |
| | | path: '/dynamic-form', |
| | | name: 'å¨æè¡¨æ ¼é¡µé¢', |
| | | component: Layout, |
| | | children: [ |
| | | { |
| | | path: '', // 空路å¾è¡¨ç¤ºè®¿é® '/dynamic-table' æ¶å è½½ Layout ç»ä»¶ |
| | | component: () => import('@/components/dynamic-components/dynamic-table'), |
| | | component: () => import('@/components/dynamic-components/dynamic-form'), |
| | | props: true |
| | | } |
| | | ] |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log(this.areasData); |
| | | // console.log(this.areasData); |
| | | }, |
| | | methods:{ |
| | | tabHandleClick(tab, event) { |
| | | console.log(tab, event); |
| | | // console.log(tab, event); |
| | | }, |
| | | } |
| | | } |
| | |
| | | "name": "å·æ°", |
| | | "oid": "E20C314B-E741-FBE0-534A-D68E9C0D8E2C", |
| | | "orderNum": 6, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonType': 'primary', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "2D6D571B-BB6E-677D-9764-191BC5D5D3F1", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |
| | |
| | | "paramVOS": { |
| | | "owner": "true", |
| | | "context": "CreateAuditQuestionDocume", |
| | | "type": "document" |
| | | "type": "document", |
| | | 'location': 'edit', |
| | | 'buttonMethods': 'edit', |
| | | 'buttonType':'text' |
| | | }, |
| | | "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", |
| | | "pkParentOid": "", |
| | |
| | | "oid": "BE973D4A-CB99-10FC-3E31-F3010259F823", |
| | | "orderNum": 2, |
| | | "paramVOS": { |
| | | "owner": "true" |
| | | "owner": "true", |
| | | 'location': 'menu', |
| | | 'buttonType': 'text', |
| | | 'buttonMethods': 'delete' |
| | | }, |
| | | "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å·æ°", |
| | | "oid": "A860B3E6-8FA5-92AE-8D8A-A2AE5CC552F4", |
| | | "orderNum": 3, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonType': 'primary', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |
| | |
| | | "paramVOS": { |
| | | "form": "CreateDocument", |
| | | "type": "document", |
| | | "initvalue": "doctype=9;processreviewoid=root.${oid}" |
| | | "initvalue": "doctype=9;processreviewoid=root.${oid}", |
| | | 'location': 'top', |
| | | 'buttonType': 'primary', |
| | | 'buttonMethods': 'add' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | |
| | | "lastModifyTime": "2013-11-09 10:32:41.000", |
| | | "licensors": null, |
| | | "name": "ä¿®æ¹", |
| | | "oid": "F8534EFE-130B-0CB3-D477-2AC7B19B7DC4" |
| | | "oid": "F8534EFE-130B-0CB3-D477-2AC7B19B7DC4", |
| | | }, |
| | | "areaType": "tab", |
| | | "authorization": true, |
| | |
| | | "orderNum": 2, |
| | | "paramVOS": { |
| | | "form": "CreateDocument", |
| | | "checkNotOperation": "${lcstatus}=Editing" |
| | | "checkNotOperation": "${lcstatus}=Editing", |
| | | 'location': 'menu', |
| | | 'buttonMethods': 'edit' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | |
| | | "orderNum": 3, |
| | | "paramVOS": { |
| | | "owner": "true", |
| | | "checkNotOperation": "${lcstatus}=Editing" |
| | | "checkNotOperation": "${lcstatus}=Editing", |
| | | 'location': 'menu', |
| | | 'buttonType': 'text', |
| | | 'buttonMethods': 'delete' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | |
| | | "paramVOS": { |
| | | "owner": "true", |
| | | "forsourcedata": "false", |
| | | "state": "Editing" |
| | | "state": "Editing", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'upload' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | |
| | | "paramVOS": { |
| | | "owner": "true", |
| | | "flowtemplates": "å·¥èºææ¡£å®¡ç¾æµç¨", |
| | | "type": "document" |
| | | "type": "document", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'launchworkflow' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å·æ°", |
| | | "oid": "110B50FD-67F2-8EA2-0400-D25D591218BA", |
| | | "orderNum": 6, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "8FA7A8BD-5063-B118-D4FC-E5233404D182", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |
| | |
| | | "oid": "A6D905FA-33FA-E76E-7E5C-BEA2A25D0640", |
| | | "orderNum": 2, |
| | | "paramVOS": { |
| | | "setpath": "true" |
| | | "setpath": "true", |
| | | 'location': 'top', |
| | | 'buttonType': 'primary', |
| | | 'buttonMethods': 'download' |
| | | }, |
| | | "pkComponent": "F6380995-A148-5EA4-46B8-65168D9F187C", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å·æ°", |
| | | "oid": "2D6CF3C0-8E18-CEED-0C04-A50628626D7D", |
| | | "orderNum": 4, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonType': 'primary', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "F6380995-A148-5EA4-46B8-65168D9F187C", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |
| | |
| | | "orderNum": 1, |
| | | "paramVOS": { |
| | | "state": "Editing", |
| | | "checkout": "me;null" |
| | | "checkout": "me;null", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'upload' |
| | | }, |
| | | "pkComponent": "A8572D5B-444E-C223-D5C7-7B02698852DA", |
| | | "pkParentOid": "", |
| | |
| | | "oid": "C76600A6-F38C-107F-CBFB-F33A1EC6B605", |
| | | "orderNum": 2, |
| | | "paramVOS": { |
| | | "setpath": "true" |
| | | "setpath": "true", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'download', |
| | | }, |
| | | "pkComponent": "A8572D5B-444E-C223-D5C7-7B02698852DA", |
| | | "pkParentOid": "", |
| | |
| | | "paramVOS": { |
| | | "owner": "true", |
| | | "state": "Editing", |
| | | "checkout": "me;null" |
| | | "checkout": "me;null", |
| | | 'location': 'menu', |
| | | 'buttonMethods': 'delete' |
| | | }, |
| | | "pkComponent": "A8572D5B-444E-C223-D5C7-7B02698852DA", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å·æ°", |
| | | "oid": "E9119347-26C4-3BE8-2EA2-B4FCC54120CF", |
| | | "orderNum": 4, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "A8572D5B-444E-C223-D5C7-7B02698852DA", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |
| | |
| | | "cols": [ |
| | | [ |
| | | { |
| | | "align": "left", |
| | | "colspan": 1, |
| | | "comboxKey": null, |
| | | "data": [], |
| | | "dateFormate": null, |
| | | "edit": "", |
| | | "editConfig": null, |
| | | "event": null, |
| | | "field": "name", |
| | | "fieldType": "text", |
| | | "fixed": null, |
| | | "hidden": false, |
| | | "minWidth": null, |
| | | "optionButtons": null, |
| | | "optionField": false, |
| | | "optionJsMap": null, |
| | | "queryField": null, |
| | | "referConfig": null, |
| | | "rowspan": 1, |
| | | "showField": null, |
| | | "sort": false, |
| | | "sortField": null, |
| | | "style": null, |
| | | "templet": null, |
| | | "title": "åç§°", |
| | | "unresize": false, |
| | | "width": 300 |
| | | 'comboxKey': null, |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': null, |
| | | 'defaultValue': "", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "name", |
| | | 'hidden': false, |
| | | 'keyAttr': true, |
| | | 'prefix': null, |
| | | 'readOnly': false, |
| | | 'referConfig': null, |
| | | 'required': true, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': '$', |
| | | 'text': "åç§°", |
| | | 'tooltips': 'åç§°', |
| | | 'type': "text", |
| | | 'unique': false, |
| | | 'verify': "" |
| | | }, |
| | | { |
| | | "align": "left", |
| | | "colspan": 1, |
| | | "comboxKey": null, |
| | | "data": [], |
| | | "dateFormate": null, |
| | | "edit": "", |
| | | "editConfig": null, |
| | | "event": null, |
| | | "field": "filesize", |
| | | "fieldType": "radio", |
| | | "fixed": null, |
| | | "hidden": false, |
| | | "minWidth": null, |
| | | "optionButtons": null, |
| | | "optionField": false, |
| | | "optionJsMap": null, |
| | | "queryField": null, |
| | | "referConfig": null, |
| | | "rowspan": 1, |
| | | "showField": null, |
| | | "sort": false, |
| | | "sortField": null, |
| | | "style": null, |
| | | "templet": null, |
| | | "title": "æä»¶å¤§å°", |
| | | "unresize": false, |
| | | "width": 150 |
| | | 'comboxKey': null, |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': null, |
| | | 'defaultValue': "", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "code", |
| | | 'hidden': false, |
| | | 'keyAttr': false, |
| | | 'prefix': null, |
| | | 'readOnly': false, |
| | | 'referConfig': null, |
| | | 'required': false, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': null, |
| | | 'disabled':true, |
| | | 'text': "ç¼ç ", |
| | | 'tooltips': null, |
| | | 'type': "text", |
| | | 'unique': false, |
| | | 'verify': "" |
| | | }, |
| | | { |
| | | "align": "left", |
| | | "colspan": 1, |
| | | "comboxKey": null, |
| | | "data": [], |
| | | "dateFormate": null, |
| | | "edit": "", |
| | | "editConfig": null, |
| | | "event": null, |
| | | "field": "creator_name,(,creator,)", |
| | | "fieldType": "text", |
| | | "fixed": null, |
| | | "hidden": false, |
| | | "minWidth": null, |
| | | "optionButtons": null, |
| | | "optionField": false, |
| | | "optionJsMap": null, |
| | | "queryField": null, |
| | | "referConfig": null, |
| | | "rowspan": 1, |
| | | "showField": null, |
| | | "sort": false, |
| | | "sortField": "creator", |
| | | "style": null, |
| | | "templet": null, |
| | | "title": "å建è
", |
| | | "unresize": false, |
| | | "width": 150 |
| | | 'comboxKey': "EnumReviewType", |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': null, |
| | | 'defaultValue': "department", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "reviewtype", |
| | | 'hidden': false, |
| | | 'keyAttr': false, |
| | | 'prefix': null, |
| | | 'readOnly': false, |
| | | 'referConfig': null, |
| | | 'required': false, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': null, |
| | | 'text': "ç±»å", |
| | | 'tooltips': null, |
| | | 'type': "combox", |
| | | 'unique': false, |
| | | 'verify': "", |
| | | 'dicData': [{ |
| | | 'label': 'æµè¯1', |
| | | 'value': 'department' |
| | | }, { |
| | | 'label': 'æµè¯2', |
| | | 'value': 'departments' |
| | | }] |
| | | }, |
| | | { |
| | | "align": "left", |
| | | "colspan": 1, |
| | | "comboxKey": null, |
| | | "data": [], |
| | | "dateFormate": "yyyy-MM-dd HH:mm:ss", |
| | | "edit": "", |
| | | "editConfig": null, |
| | | "event": null, |
| | | "field": "createtime", |
| | | "fieldType": "text", |
| | | "fixed": null, |
| | | "hidden": false, |
| | | "minWidth": null, |
| | | "optionButtons": null, |
| | | "optionField": false, |
| | | "optionJsMap": null, |
| | | "queryField": null, |
| | | "referConfig": null, |
| | | "rowspan": 1, |
| | | "showField": null, |
| | | "sort": false, |
| | | "sortField": null, |
| | | "style": null, |
| | | "templet": null, |
| | | "title": "å建æ¶é´", |
| | | "unresize": false, |
| | | "width": 150 |
| | | } |
| | | ] |
| | | 'comboxKey': null, |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': null, |
| | | 'defaultValue': "", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "creator", |
| | | 'hidden': true, |
| | | 'keyAttr': false, |
| | | 'prefix': null, |
| | | 'readOnly': true, |
| | | 'referConfig': null, |
| | | 'required': false, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': null, |
| | | 'text': "å建人", |
| | | 'tooltips': null, |
| | | 'type': "text", |
| | | 'unique': false, |
| | | 'verify': "" |
| | | }, |
| | | { |
| | | 'comboxKey': null, |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': "yyyy-MM-dd HH:mm:ss", |
| | | 'defaultValue': "", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "createtime", |
| | | 'hidden': true, |
| | | 'keyAttr': false, |
| | | 'prefix': null, |
| | | 'readOnly': false, |
| | | 'referConfig': null, |
| | | 'required': false, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': null, |
| | | 'text': "å建æ¶é´", |
| | | 'tooltips': null, |
| | | 'type': "datetime", |
| | | 'unique': false, |
| | | 'verify': "" |
| | | }, |
| | | { |
| | | 'comboxKey': null, |
| | | 'customClass': null, |
| | | 'data': null, |
| | | 'dateFormate': null, |
| | | 'defaultValue': "", |
| | | 'displayExtension': "", |
| | | 'extendAttrMap': null, |
| | | 'extendAttrString': null, |
| | | 'field': "content", |
| | | 'hidden': false, |
| | | 'keyAttr': false, |
| | | 'prefix': null, |
| | | 'readOnly': false, |
| | | 'referConfig': null, |
| | | 'required': false, |
| | | 'selectLibFlag': null, |
| | | 'showField': null, |
| | | 'suffix': null, |
| | | 'text': "夿³¨", |
| | | 'tooltips': null, |
| | | 'type': "textarea", |
| | | 'unique': false, |
| | | 'verify': "" |
| | | }, |
| | | ], |
| | | ], |
| | | "displayFolder": false, |
| | | "displayQueryArea": false, |
| | |
| | | "treeDefineVO": null, |
| | | "treeTableDefineVO": null, |
| | | "ts": null, |
| | | "uiComponentType": "table", |
| | | "uiComponentTypeText": "è¡¨æ ¼", |
| | | "uiComponentType": "form", |
| | | "uiComponentTypeText": "表å", |
| | | "uiParseClass": "", |
| | | "versionRule": null, |
| | | "versionSeq": 0, |
| | |
| | | "paramVOS": { |
| | | "form": "createAuditTask_web", |
| | | "state": "Waiting", |
| | | "type": "audittask" |
| | | "type": "audittask", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'add' |
| | | }, |
| | | "pkComponent": "8D269B20-03E4-A9B0-7D06-4BE074EEF4DD", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å¬å¼å
é¨è¯å®¡", |
| | | "oid": "1E72BCA6-4FB2-0BC8-BE99-F6EDC43CCA10", |
| | | "orderNum": 2, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonMethods': 'conductinternalreview' |
| | | }, |
| | | "pkComponent": "8D269B20-03E4-A9B0-7D06-4BE074EEF4DD", |
| | | "pkParentOid": "", |
| | | "url": "" |
| | |
| | | "paramVOS": { |
| | | "context": "CreateAuditQuestionDocume", |
| | | "type": "document", |
| | | "initvalue": "processreviewoid=${oid};doctype=8" |
| | | "initvalue": "processreviewoid=${oid};doctype=8", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'add' |
| | | }, |
| | | "pkComponent": "8D269B20-03E4-A9B0-7D06-4BE074EEF4DD", |
| | | "pkParentOid": "", |
| | |
| | | "orderNum": 4, |
| | | "paramVOS": { |
| | | "form": "CreateAuditQuestionDocument", |
| | | "type": "document" |
| | | "type": "document", |
| | | 'location': 'top', |
| | | 'buttonMethods': 'opinionsummary' |
| | | }, |
| | | "pkComponent": "8D269B20-03E4-A9B0-7D06-4BE074EEF4DD", |
| | | "pkParentOid": "", |
| | |
| | | "name": "å·æ°", |
| | | "oid": "F52BE746-4D0E-9E00-1D5E-E3729DEEE1FA", |
| | | "orderNum": 9, |
| | | "paramVOS": {}, |
| | | "paramVOS": { |
| | | 'location': 'top', |
| | | 'buttonMethods': 'refresh' |
| | | }, |
| | | "pkComponent": "8D269B20-03E4-A9B0-7D06-4BE074EEF4DD", |
| | | "pkParentOid": "", |
| | | "url": "RefreshAction" |