已修改74个文件
已删除7个文件
已重命名9个文件
已复制4个文件
已添加33个文件
| | |
| | | import crudCommon from '@/mixins/crud'; |
| | | // ä¸å¡ç»ä»¶ |
| | | import tenantPackage from './views/system/tenantpackage'; |
| | | |
| | | import enupackage from "@/views/modeling/enupackage"; |
| | | import Versionpackage from "@/views/modeling/Versionpackage"; |
| | | import Businpackage from "@/views/modeling/Businpackage"; |
| | | import Relationpackage from "@/views/modeling/Relationpackage" |
| | | import Torelationpackage from "@/views/modeling/Torelationpackage" |
| | | import originalRange from "@/views/modeling/originalRange" |
| | | import originalLink from "@/views/modeling/originalLink" |
| | | import classifyTrees from "@/components/Tree/classifyTrees" |
| | | import classifyTreeform from "@/components/Tree/classifyTreeform" |
| | | import TemplatePro from "@/components/Tree/TemplatePro" |
| | | import formulaEditor from "@/components/code-dialog-page/formulaEditor" |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | // 注åå
¨å±crudé©±å¨ |
| | | window.$crudCommon = crudCommon; |
| | | // å è½½Vueæå± |
| | |
| | | Vue.component('avueUeditor', avueUeditor); |
| | | Vue.component('flowDesign', flowDesign); |
| | | Vue.component('tenantPackage', tenantPackage); |
| | | Vue.component('enupackage',enupackage) |
| | | Vue.component('Versionpackage',Versionpackage) |
| | | Vue.component('Businpackage',Businpackage) |
| | | Vue.component('Relationpackage',Relationpackage) |
| | | Vue.component('Torelationpackage',Torelationpackage) |
| | | Vue.component('originalRange',originalRange) |
| | | Vue.component('originalLink',originalLink) |
| | | Vue.component('classifyTrees',classifyTrees) |
| | | Vue.component('classifyTreeform',classifyTreeform) |
| | | Vue.component('TemplatePro',TemplatePro) |
| | | Vue.component('formulaEditor',formulaEditor) |
| | | Vue.component('businessAdd',businessAdd) |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | | Vue.prototype[key] = urls[key]; |
| | |
| | | <basic-container style="height: 350px;"> |
| | | |
| | | <!-- ç¼ç è§åä¿¡æ¯å±ç¤ºåºå --> |
| | | <basic-container> |
| | | <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç¼ç è§å</p> |
| | | <avue-crud :option="optionRule" |
| | | <basic-container class="code-rule-container"> |
| | | <p style="margin-top: -5px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç¼ç è§å</p> |
| | | <avue-crud class="code-rule-crud" |
| | | :option="optionRule" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | v-model="form" |
| | | v-model="ruleForm" |
| | | ref="crud" |
| | | :before-open="beforeOpen" |
| | | @cell-click="loadBasic" |
| | | @row-click="codeRuleRowClick" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | |
| | | <el-button size="small" |
| | | icon="icon-kelong" |
| | | plain |
| | | @click="cloneCodeSetting">å
é |
| | | @click="openCodeRuleDialog">å
é |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="icon-lianjiekelong" |
| | | style="font-size: 12px;" |
| | | plain |
| | | @click="handleDelete">ä»å
¶ä»è§åä¸å
éç æ®µ |
| | | @click="openOtherCodeRuleDialog">ä»å
¶ä»è§åä¸å
éç æ®µ |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="el-icon-s-help" |
| | |
| | | <el-button size="small" |
| | | icon="icon-qingkong" |
| | | plain |
| | | @click="handleDelete">æ¸
空ç å¼ |
| | | @click="clearAllCodeSec">æ¸
空ç å¼ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | |
| | | <!-- å¯¹è¯æ¡ --> |
| | | <!-- ç¼ç è§åç¸å
³å¯¹è¯æ¡ --> |
| | | <el-dialog title="ç¼ç è§å使ç¨èå´" |
| | | append-to-body |
| | | :visible.sync="codeRangeSettingBox" |
| | | width="800px"> |
| | | width="800px" |
| | | style="height: 116vh; margin-top: -10vh;"> |
| | | <avue-crud |
| | | :option="dialogeOption" |
| | | :table-loading="dialogLoading" |
| | |
| | | @refresh-change="refreshUseRangeChange"> |
| | | </avue-crud> |
| | | </el-dialog> |
| | | <!-- å
éå¯¹è¯æ¡ --> |
| | | <!-- ç¼ç è§å,å
éå¯¹è¯æ¡ --> |
| | | <el-dialog title="å
éç¼ç è§å" |
| | | append-to-body |
| | | :visible.sync="cloneSettingBox" |
| | | width="800px"> |
| | | <clone-code></clone-code> |
| | | width="800px" |
| | | style="height: 120vh; margin-top: -14vh; overflow: hidden;"> |
| | | <div style="overflow-y: auto; height: 78vh"> |
| | | <el-row> |
| | | <el-form ref="form" :model="form" label-width="80px" :inline="true"> |
| | | <el-form-item label="ç¼å·" required> |
| | | <el-input v-model="cloneCodeRuleForm.id"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åç§°" required> |
| | | <el-input v-model="cloneCodeRuleForm.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" class="clone-input-textarea"> |
| | | <el-input :autosize="{ minRows: 3, maxRows: 5}" type="textarea" v-model="cloneCodeRuleForm.description"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-row> |
| | | <el-row> |
| | | <p style="margin: -3vh 0px 16px 50%; font-weight: 500; font-size: 16px; color: #000;">ç æ®µç®¡ç</p> |
| | | <avue-crud |
| | | class="clone-avue-crud" |
| | | :option="cloneOption" |
| | | :table-loading="cloneTableLoading" |
| | | :data="cloneData" |
| | | @on-load="cloneDataOnLoad"> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-arrow-up" |
| | | v-show="scope.row.orderNum > 1" |
| | | plain |
| | | @click="upOrderNum(scope.row)">ä¸ç§» |
| | | </el-button> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-arrow-down" |
| | | plain |
| | | @click="downOrderNum(scope.row)">ä¸ç§» |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer" style="height: 50px; margin-top: -4vh;"> |
| | | <el-button @click="cloneSettingBox = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveCloneCodeRule">ä¿ å</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- ç¼ç è§å,ä»å
¶ä»è§åå
éå¯¹è¯æ¡ --> |
| | | <el-dialog title="å
éç¼ç è§åçåºç¡ä¿¡æ¯" |
| | | append-to-body |
| | | :visible.sync="cloneOtherCodeRuleSettingBox" |
| | | width="800px" |
| | | style="height: 150vh; margin-top: -14vh;" |
| | | destroy-on-close> |
| | | <div> |
| | | <el-row> |
| | | <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç¼ç è§å</p> |
| | | <avue-crud |
| | | class="other-clone-coderule-crud" |
| | | :option="cloneCodeRuleOption" |
| | | @row-click="codeOtherCloneRuleRowClick" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudCloneCodeRuleOther" |
| | | @size-change="sizeChange" |
| | | @selection-change="selectionOtherCloneCodeRuleChange" |
| | | @on-load="onLoad"> |
| | | </avue-crud> |
| | | </el-row> |
| | | <el-row> |
| | | <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç æ®µä¿¡æ¯</p> |
| | | <avue-crud |
| | | class="other-clone-codebasic-crud" |
| | | :option="cloneBasicOption" |
| | | ref="crudCloneCodeBasicOther" |
| | | :table-loading="loadingBasic" |
| | | :data="basicData" |
| | | @selection-change="selectionOtherCloneCodeBasicChange"> |
| | | </avue-crud> |
| | | </el-row> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer" style="height: 50px; margin-top: -4vh;"> |
| | | <el-button @click="cloneOtherCodeRuleSettingBox = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveOtherCodeBasic">ä¿ å</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- åºç¡ç 段å±ç¤ºåºå --> |
| | | <basic-container> |
| | | <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç æ®µç®¡ç</p> |
| | | <avue-crud :option="optionBasic" |
| | | <basic-container class="code-basicsec-container"> |
| | | <p style="margin-top: -5px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">ç æ®µç®¡ç</p> |
| | | <avue-crud class="code-basic-crud" |
| | | :option="optionBasic" |
| | | ref="crudBasic" |
| | | :table-loading="loadingBasic" |
| | | :data="basicData" |
| | | :permission="permissionList" |
| | |
| | | |
| | | <!-- åºç¡ç æ®µè¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | |
| | | <el-button type="text" |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="icon-shangyi" |
| | | v-show="scope.row.lcStatus != 'Editing' ? true:false" |
| | | icon="el-icon-view" |
| | | v-show="currentRuleLcStatus != 'Editing'" |
| | | plain |
| | | @click="openEdit(scope.row)">æ¥ ç |
| | | @click="openBasicDialog('view',scope.row)">æ¥ç |
| | | </el-button> |
| | | |
| | | <el-button type="text" |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="icon-shangyi" |
| | | v-show="scope.row.lcStatus == 'Editing' ? true:false" |
| | | icon="el-icon-edit" |
| | | v-show="currentRuleLcStatus === 'Editing'" |
| | | plain |
| | | @click="openEdit(scope.row)">ç¼ è¾ |
| | | @click="openBasicDialog('edit',scope.row)">ç¼è¾ |
| | | </el-button> |
| | | |
| | | <el-button type="text" |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="icon-shangyi" |
| | | v-show="scope.row.secType == 'codeclassifysec' || scope.row.secType == 'codefixedsec' ? true:false" |
| | | icon="el-icon-setting" |
| | | v-show="scope.row.secType === 'codeclassifysec' || scope.row.secType == 'codefixedsec'" |
| | | plain |
| | | @click="openEdit(scope.row)">ç å¼ç®¡ç |
| | | @click="openBasicSecCodeValueMgr(scope.row)">ç å¼ç®¡ç |
| | | </el-button> |
| | | |
| | | <el-button type="text" |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="icon-shangyi" |
| | | v-show="scope.row.orderNum > 1 ? true:false" |
| | | icon="el-icon-arrow-up" |
| | | v-show="scope.row.orderNum > 1" |
| | | plain |
| | | @click="upOrderNum(scope.row)">ä¸ ç§» |
| | | </el-button> |
| | | |
| | | <el-button type="text" |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="icon-xiayi" |
| | | icon="el-icon-arrow-down" |
| | | plain |
| | | @click="downOrderNum(scope.row)">ä¸ ç§» |
| | | </el-button> |
| | | |
| | | </template> |
| | | |
| | | <!-- åºç¡ç æ®µè¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | |
| | | <!-- åºç¡ç¼ç è§åå¯¹è¯æ¡ --> |
| | | <el-dialog title="æ·»å ç æ®µä¿¡æ¯" |
| | | :visible.sync="addBasicCodeSettingBox" |
| | | width="780px" |
| | | <!-- ç æ®µç å¼ç®¡çå¯¹è¯æ¡ --> |
| | | <el-dialog title="ç æ®µç å¼ç®¡ç" |
| | | :visible.sync="isShowBasicSecCodeValueMgr" |
| | | :width="isShowFixedForm ? '68vw':'50vw'" |
| | | append-to-body |
| | | style="margin-top: -8vh;" |
| | | style="height: 116vh; margin-top: -10vh;" |
| | | @close="clearFixedOrClassifyForm('close')" |
| | | destroy-on-close> |
| | | <!-- åç±»ç æ®µç å¼ç®¡ç --> |
| | | <el-row v-show="!isShowFixedForm"> |
| | | <el-col :span="11"> |
| | | <basic-container> |
| | | <div class="box classify_value_box" style="height:65vh; margin-bottom:-40px"> |
| | | <el-scrollbar style="border-bottom-right-radius:8px "> |
| | | <basic-container> |
| | | <div class="abox" style="height:54vh"> |
| | | <avue-tree |
| | | :data="classifyValueTreeData" |
| | | :option="classisyValueTreeOption" |
| | | @node-click="classisyValueTreeOnodeClick" |
| | | style="overflow-y: auto; height: 54vh"/> |
| | | </div> |
| | | </basic-container> |
| | | </el-scrollbar> |
| | | </div> |
| | | <div style="margin-top:20px; display: flex; align-items:center; justify-content:center;"> |
| | | <el-button size="mini" type="primary" icon="el-icon-arrow-up" class="button" @click="codeClassifyValueOpetion('up')">ä¸ç§»</el-button> |
| | | <el-button size="mini" type="primary" icon="el-icon-arrow-down" class="button" @click="codeClassifyValueOpetion('down')">ä¸ç§»</el-button> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | <el-col :span="13"> |
| | | <basic-container> |
| | | <div class="box" style="height:65vh; margin-bottom:-40px"> |
| | | <el-form> |
| | | <el-form-item label="ç å¼:" :label-width="50" required> |
| | | <el-input style="width: 18vw" v-model="codeClassifyForm.id"></el-input> |
| | | </el-form-item > |
| | | <el-form-item label="åç§°:" :label-width="50" required> |
| | | <el-input style="width: 18vw" v-model="codeClassifyForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div style="margin-top:20px; display: flex; align-items:center; justify-content:center;"> |
| | | <el-button size="mini" type="primary" icon="el-icon-circle-plus" class="button" @click="addCodeSecValue('codeclassifyvaluesec')">æ·»å </el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="success" plain icon="el-icon-edit-outline" class="button" @click="editCodeSecValue('codeclassifyvaluesec')">ä¿®æ¹</el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="danger" icon="el-icon-close" class="button" @click="delCodeSecValue('codeclassifyvaluesec')">å é¤</el-button> |
| | | <el-button size="mini" type="warning" plain icon="el-icon-close" class="button" @click = "clearFixedOrClassifyForm('codeclassifyvaluesec')">åæ¶</el-button> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- åºå®ç 段ç å¼ç®¡ç --> |
| | | <el-row v-show="isShowFixedForm"> |
| | | <el-col :span="15"> |
| | | <basic-container> |
| | | <div class="box fixedbox" style="height:65vh; margin-bottom:-40px"> |
| | | <avue-crud |
| | | class="fixed-avue-crud" |
| | | ref="crudFixedValue" |
| | | :data="fixedValueData" |
| | | :option="fixedValueOption" |
| | | :table-loading="fixedValueOptionLoading" |
| | | @row-click="selectedCodeValueRow"> |
| | | <!-- è¡¨æ ¼å
æé®é
ç½® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-arrow-up" @click="codeFixedValueOpetion('up',scope.row)">ä¸ç§»</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-arrow-down" @click="codeFixedValueOpetion('down',scope.row)">ä¸ç§»</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-minus" @click="codeFixedValueOpetion('remove',scope.row)">ç§»é¤</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | | <div style="margin-top:20px;"> |
| | | <el-button size="mini" type="primary" icon="el-icon-success" class="button" @click="saveCodeFixedOrClassifyValueOption('fixedValue')">ä¿å</el-button> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | <el-col :span="9"> |
| | | <basic-container> |
| | | <div class="box" style="height: 65vh; margin-bottom:-40px; overflow:hidden;" > |
| | | <div style="overflow-y:auto;height: 60vh;"> |
| | | <el-form> |
| | | <el-form-item label="ç å¼:" label-width="54px" required> |
| | | <el-input style="width: 19.5vw" v-model="codeFixdForm.id"></el-input> |
| | | </el-form-item > |
| | | <el-form-item label="æè¿°:"> |
| | | <el-input type="textarea" style="width: 20vw;" v-model="codeFixdForm.description"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top:20px; display: flex; align-items:center; justify-content:center;"> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue!=''" size="mini" type="primary" icon="el-icon-circle-plus" class="button" @click="addCodeSecValue('codefixedsec')">æ·»å </el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="success" plain plain icon="el-icon-edit-outline" class="button" @click="editCodeSecValue('codefixedsec')">ä¿®æ¹</el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="danger" icon="el-icon-close" class="button" @click="delCodeSecValue('codefixedsec')">å é¤</el-button> |
| | | <el-button size="mini" type="warning" plain icon="el-icon-close" class="button" @click = "clearFixedOrClassifyForm('codefixedsec')">åæ¶</el-button> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | | |
| | | <!-- 屿§ç 段ï¼å±æ§éæ©å¼¹çª --> |
| | | <el-dialog title="为[屿§]éåå¼" |
| | | <!-- åºç¡ç 段æ°å¢ç¸å
³å¯¹è¯æ¡ --> |
| | | <el-dialog :title="basicSecDialogTitle" |
| | | :visible.sync="addBasicCodeSettingBox" |
| | | width="60vw" |
| | | append-to-body |
| | | style="height: 115vh; margin-top: -13vh; overflow: hidden" |
| | | destroy-on-close |
| | | @close="clearBasicAddForm"> |
| | | |
| | | <!-- 第ä¸å±å¯¹è¯æ¡,æ·»å ç æ®µä¿¡æ¯å¯¹è¯æ¡ä¸çå
容 --> |
| | | <div class="total" style="overflow-y: auto; height: 70vh"> |
| | | <el-form :model="form"> |
| | | <span class="left"> |
| | | <el-form-item label="ç æ®µç¼å·:" :label-width="leftFormLabelWidth" required> |
| | | <el-input v-model="form.id" :readonly="basicSecOnlyRead" ref="id"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="ç æ®µåç§°:" :label-width="leftFormLabelWidth" required> |
| | | <el-input ref="name" v-model="form.name" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="ç æ®µç±»å" :label-width="leftFormLabelWidth" required> |
| | | <el-select v-model="form.secType" placeholder="è¯·éæ©" @change="changeSectypeFormItems(null)" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in sectypeList" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="æè¿°:" :label-width="leftFormLabelWidth"> |
| | | <el-input type="textarea" v-model="form.description" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="æ¯å¦æµæ°´ä¾èµ:" :label-width="leftFormLabelWidth"> |
| | | <el-switch v-model="form.serialDependFlag" :disabled="basicSecOnlyRead"></el-switch> |
| | | <el-input-number v-show="form.serialDependFlag" v-model="form.serialDependOrder" controls-position="right" :readonly="basicSecOnlyRead"></el-input-number> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="æ¯å¦ä¸ºç©º:" :label-width="leftFormLabelWidth"> |
| | | <el-switch v-model="form.nullableFlag" :disabled="basicSecOnlyRead"></el-switch> |
| | | </el-form-item> |
| | | </span> |
| | | <el-divider direction="vertical"></el-divider> |
| | | <span class="right"> |
| | | <!-- åºå®ç 段 --> |
| | | <div v-show="form.secType==='codefixedsec' ? true:false"> |
| | | <el-form-item label="ç æ®µé¿åº¦ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ç æ®µçé¿åº¦:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeSecLength" ref="codeSecLength" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- 屿§ç 段 --> |
| | | <div v-show="form.secType==='codeattrsec' ? true:false"> |
| | | <el-form-item label="屿§:" :label-width="rightFormLabelWidth" required> |
| | | <el-input |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | ref="referAttributeId" |
| | | v-model="form.referAttributeName" |
| | | @focus="openAttrSelectOrGetValue('attr')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('attr')" style="cursor: pointer;"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="屿§æå¨åç±»:" :label-width="rightFormLabelWidth"> |
| | | <el-input |
| | | v-model="form.referCodeClassifyOidName" |
| | | disabled> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åå¼è§å:" :label-width="rightFormLabelWidth"> |
| | | <el-input |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.getValueClass" |
| | | :disabled="basicSecOnlyRead" |
| | | @focus="openAttrSelectOrGetValue('value')"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('value')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- æµæ°´ç 段 --> |
| | | <div v-show="form.secType==='codeserialsec' ? true:false"> |
| | | <el-form-item label="ç æ®µçé¿åº¦:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeSecLength" ref="seriaCodeSecLength" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æµæ°´å·çèµ·å§å¼:" :label-width="rightFormLabelWidth"> |
| | | <el-input v-model.number="form.serialStart" ref="serialStart" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æµæ°´çæ¥é¿:" :label-width="rightFormLabelWidth"> |
| | | <el-input v-model.number="form.serialStep" ref="serialStep" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¼ç è¡¥ä½æ¹å¼:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option label="左补ä½" value="codeattrsec" |
| | | v-for="item in codeFillType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="è¡¥ä½æ¶çå符:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeFillSeparatorSelect" @blur="inputSelectBlur" filterable placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å¡«å
é¿åº¦:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeFillLength" ref="codeFillLength" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æµæ°´ä¸é:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeFillLimit" ref="codeFillLimit" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æµæ°´æ¯å¦è¡¥ç :" :label-width="rightFormLabelWidth" required> |
| | | <el-switch v-model="form.codeFillFlag" :disabled="basicSecOnlyRead"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="èªå®ä¹çæµæ°´ç®æ³:" :label-width="rightFormLabelWidth"> |
| | | <el-input v-model="form.customCodeSerialClass" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- å±çº§ç 段 --> |
| | | <div v-show="form.secType==='codelevelsec' ? true:false"> |
| | | <el-form-item label="å±çº§ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeLevelType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeLevelType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å±çº§çå¼:" :label-width="rightFormLabelWidth"> |
| | | <el-input v-model.number="form.codeLevelValue" ref="codeLevelValue" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å符æªåç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.valueCutType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeCutType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="åå¼ç±»å:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeGetValueType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeGetValueType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- å¼ç¨ç 段 --> |
| | | <div v-show="form.secType==='coderefersec' ? true:false"> |
| | | <el-form-item label="åç
§å¼ç¨çä¸å¡ç±»å:" label-width="152px" required> |
| | | <el-input |
| | | ref="referBtmId" |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.referBtmId" |
| | | @focus="openAttrSelectOrGetValue('referBtmId')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('referBtmId')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åç
§é
ç½®:" label-width="152px" required> |
| | | <el-input |
| | | ref="referConfig" |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.referConfig" |
| | | @focus="openAttrSelectOrGetValue('referConfig')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('referConfig')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- æ¥æç æ®µ --> |
| | | <div v-show="form.secType==='codedatesec' ? true:false"> |
| | | <el-form-item label="æ¥ææ ¼å¼:" :label-width="rightFormLabelWidth" required> |
| | | <el-input ref="codeDateFormatStr" v-model="form.codeDateFormatStr" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- åç±»ç æ®µ --> |
| | | <div v-show="form.secType==='codeclassifysec' ? true:false"> |
| | | <el-form-item label="ç æ®µé¿åº¦ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ç æ®µçé¿åº¦:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeSecLength" ref="classCodeSecLength" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦èªå¨åé
åç±»å¼:" :label-width="rightFormLabelWidth"> |
| | | <el-switch v-model="form.matchClassifyValueFlag" :disabled="basicSecOnlyRead"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="ç¶åç±»ç æ®µ:" :label-width="rightFormLabelWidth"> |
| | | <el-input |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.parentClassifySecOid" |
| | | @focus="openAttrSelectOrGetValue('parentClassifySecOid')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('parentClassifySecOid')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- å¯åç æ®µ --> |
| | | <div v-show="form.secType==='codevariablesec' ? true:false"> |
| | | <el-form-item label="ç æ®µçé¿åº¦:" :label-width="rightFormLabelWidth" required> |
| | | <el-input v-model.number="form.codeSecLength" ref="varCodeSecLength" :readonly="basicSecOnlyRead"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¼ç è¡¥ä½æ¹å¼:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="è¡¥ä½æ¶çå符:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeFillSeparatorSelect" filterable @blur="inputSelectBlur" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | </span> |
| | | </el-form> |
| | | </div> |
| | | <!-- 第ä¸å±å¯¹è¯æ¡çæé®åï¼çº¿æ¡ --> |
| | | <el-divider direction="horizontal"></el-divider> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="addBasicCodeSettingBox = false" v-show="showbtn">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveOrEditBasicCode" v-show="showbtn">ä¿ å</el-button> |
| | | </div> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å±æ§éæ©å¼¹çª --> |
| | | <el-dialog title="为ã屿§ãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSelectAttrOption" |
| | | width="78%" |
| | |
| | | <el-col span="19"> |
| | | <basic-container> |
| | | <div class="bbox"> |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | <avue-crud |
| | | :data="selectattrData" |
| | | :option="attrOption" |
| | | :permission="permissionList" |
| | | :table-loading="selectAttrOptionLoading" |
| | | @search-change="selectAttrOptionSearchChange" |
| | | @search-reset="searchAttrReset" |
| | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowSelectAttrOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="savelistClassifyLinkAttr">ç¡® å®</el-button> |
| | | <el-button type="primary" @click="selectedListClassifyLinkAttr">ç¡® å®</el-button> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | |
| | | <!-- 屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¼¹çª --> |
| | | <el-dialog title="å
¬å¼ç¼è¾æ¡" |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¼¹çªç»ä»¶ --> |
| | | <formula-editor ref="formulaEditor" |
| | | @updateFormulaContent="updateFormulaContent" |
| | | :thisSceneTableData="thisSceneTableData" |
| | | :systemVariableTableData="systemVariableTableData"> |
| | | </formula-editor> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãç¶åç±»ç æ®µãéåå¼å¼¹çª --> |
| | | <el-dialog title="为ãç¶åç±»ç æ®µãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowformulaEdit" |
| | | @close="closeFormulaEdit" |
| | | width="78%" |
| | | style="height: 150vh; margin-top: -13vh; overflow: hidden"> |
| | | :visible.sync="isShowParentClassifyOption" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;" |
| | | destroy-on-close> |
| | | |
| | | <div style="overflow-y: auto; height: 80vh"> |
| | | <el-row> |
| | | <!-- 左侧å
¬å¼å
容 --> |
| | | <el-col :span="14" style="overflow: hidden"> |
| | | <el-card class="box-card" style="height: 33vh; overflow-y: auto; overflow-x: auto;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium;">å
¬å¼å
容</span> |
| | | <el-button type="primary" size="mini" style="float: right;" @click="saveFormulaContent">ç¡®å®</el-button> |
| | | <el-button type="warning" size="mini" style="margin-right: 10px; float: right;" @click="resetformulaContent">æ¸
空å
容</el-button> |
| | | <avue-crud |
| | | :page.sync="parentClassifyDataPage" |
| | | ref="crudParentClassify" |
| | | :option="parentClassifyParentOption" |
| | | :table-loading="classifyDialogLoading" |
| | | :data="parentClassifyData" |
| | | @refresh-change="refreshParentClassifyDataChange" |
| | | @search-change="parentClassifySearchChange" |
| | | @search-reset="parentClassifySearchReset" |
| | | @selection-change="parentClassifySelectionChange" |
| | | @current-change="parentClassifyCurrentChange" |
| | | @size-change="parentClassifySizeChange" |
| | | @on-load="parentClassifyOnLoad"> |
| | | </avue-crud> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowParentClassifyOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectedParentClassify">ä¿ å</el-button> |
| | | </div> |
| | | <div class="text item"> |
| | | <el-input type="textarea" :rows="5" style="width: 560px;" v-model="formulaContent"></el-input> |
| | | </div> |
| | | |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <!-- å³ä¾§è¿ç®ç¬¦ --> |
| | | <el-col :span="10"> |
| | | <el-card class="box-card" style="height: 33vh;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium;">è¿ç®ç¬¦</span> |
| | | </div> |
| | | <div class="text item"> |
| | | <div class="formula-editor"> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'7'})">7</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'8'})">8</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'9'})">9</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'/'})">/</button><br/> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'4'})">4</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'5'})">5</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'6'})">6</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'*'})">*</button><br/> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'1'})">1</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'2'})">2</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'3'})">3</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'>'})">-</button><br/> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'0'})">0</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'00'})">00</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'.'})">.</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'+'})">+</button><br/> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'->'})">-></button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'=='})">==</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'('})">(</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':')'})">)</button><br/> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'<'})"><</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'>'})">></button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'<='})"><=</button> |
| | | <button class="formula-editor-btn-sm" @click="dbClickAddContent({'formula':'>='})">>=</button> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | |
| | | <!-- 左侧å
¬å¼éæ©åºå --> |
| | | <el-col :span="14" style="overflow: hidden"> |
| | | <el-card class="box-card" style="height: 40vh; overflow-y: auto; overflow-x: auto;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium;">å
¬å¼éæ©</span> |
| | | </div> |
| | | <div class="text item"> |
| | | <el-tabs v-model="activeName"> |
| | | |
| | | <el-tab-pane label="常ç¨" name="first"> |
| | | <el-table |
| | | :data="commonFormulaTableData" |
| | | :show-header="false" |
| | | @row-dblclick="dbClickAddContent" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="300"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="300"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="è´¢å¡" name="second"> |
| | | <el-table |
| | | :data="financialFormulaTableData" |
| | | @row-dblclick="dbClickAddContent" |
| | | :show-header="false" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="300"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="300"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="æ¥æ" name="third"> |
| | | <el-table |
| | | :data="dateFormulaTableData" |
| | | :show-header="false" |
| | | @row-dblclick="dbClickAddContent" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="300"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="300"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="æ°å¦" name="fourth"> |
| | | <el-table |
| | | :data="mathFormulaTableData" |
| | | :show-header="false" |
| | | @row-dblclick="dbClickAddContent" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="300"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="300"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="å
¶ä»" name="five"> |
| | | <el-table |
| | | :data="otherFormulaTableData" |
| | | @row-dblclick="dbClickAddContent" |
| | | :show-header="false" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="300"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="300"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | |
| | | </el-tabs> |
| | | |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <!-- å³ä¾§åééæ©åºå --> |
| | | <el-col :span="10" style="overflow: hidden"> |
| | | <el-card class="box-card" style="height: 40vh; overflow-y: auto; overflow-x: auto;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium;">åé</span> |
| | | </div> |
| | | <div class="text item"> |
| | | <el-tabs v-model="activeNameAttr"> |
| | | <el-tab-pane label="æ¬åºæ¯åé" name="first"> |
| | | <el-table |
| | | :data="thisSceneTableData" |
| | | @row-dblclick="dbClickAddContent" |
| | | :show-header="false" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="40"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="100"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="ç³»ç»åé" name="second"> |
| | | <el-table |
| | | :data="systemVariableTableData" |
| | | @row-dblclick="dbClickAddContent" |
| | | :show-header="false" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="formula" |
| | | width="150"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="desc" |
| | | width="150"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | |
| | | <!-- æ·»å ç æ®µä¿¡æ¯çèªå®ä¹ç»ä»¶ --> |
| | | <add-basic-code ref='addBasicChild' @openAttrSelectOrGetValue="openAttrSelectOrGetValue" @openformulaEdit="openformulaEdit"></add-basic-code> |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¼¹çª --> |
| | | <el-dialog title="为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSelectReferBtmOption" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;" |
| | | destroy-on-close> |
| | | |
| | | <!-- 第ä¸å±å¯¹è¯æ¡çæé®åï¼çº¿æ¡ --> |
| | | <el-divider direction="horizontal"></el-divider> |
| | | <avue-crud |
| | | :page.sync="referBtmDataPage" |
| | | ref="crudReferBtm" |
| | | :option="referBtmOption" |
| | | :table-loading="referBtmDialogLoading" |
| | | :data="referBtmData" |
| | | @refresh-change="referBtmDataChange" |
| | | @search-change="referBtmSearchChange" |
| | | @search-reset="referBtmSearchReset" |
| | | @selection-change="referBtmSelectionChange" |
| | | @current-change="referBtmCurrentChange" |
| | | @size-change="referBtmSizeChange" |
| | | @on-load="referBtmOnLoad"> |
| | | </avue-crud> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="addBasicCodeSettingBox = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveBasicCode">ä¿ å</el-button> |
| | | <el-button @click="isShowSelectReferBtmOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectedreferBtm">ä¿ å</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </el-dialog> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { gridCodeRule, getDetail, add, update, remove, listUseRange, updateStatus } from "@/api/code/mdmrule"; |
| | | import { gridCodeBasicSec, downOrderNum, upOrderNum, deleteData, editSave, getObjectByOid, listDataByOids, refDataGrid} from "@/api/code/codebasic"; |
| | | import { gridCodeRule, getDetail, add, update, remove, listUseRange, updateStatus,clone,clearAllCode } from "@/api/code/mdmrule"; |
| | | import { |
| | | gridCodeBasicSec, |
| | | downOrderNum, |
| | | upOrderNum, |
| | | deleteData, |
| | | editSave, |
| | | cloneCodeBasic, |
| | | addSave, |
| | | refDataGridClassifySec, |
| | | } from "@/api/code/codebasic"; |
| | | import { treeTopCodeClassify, listClassifyLinkAttr } from "@/api/code/codeclassify"; |
| | | import { gridCodeFixedValue,addSaveCodeFixedValue,deleteCodeFixedValue,editCodeFixedValue,saveOrder } from "@/api/code/codeFixedValue"; |
| | | import { treeCodeClassifyValue,addSaveCodeClassifyValue,editCodeClassifyValue,deleteCodeClassifyValue,saveCodeClassifyValueOrder } from "@/api/code/codeClassifyValue"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | import optionBasic from "@/const/code/codebasic"; |
| | | import cloneOption from "@/const/code/cloneOption"; |
| | | import cloneBasicOption from "@/const/code/cloneBasicDialogOption"; |
| | | import cloneCodeRuleOption from "@/const/code/cloneCodeRuleDialogOption.js"; |
| | | import optionRule from "@/const/code/mdmrule"; |
| | | import attrOption from "@/const/code/selectattroption"; |
| | | import treeOption from "@/const/code/classifytreeoption"; |
| | | import attrOption from "@/const/code/selectAttrOptionDialog"; |
| | | import treeOption from "@/const/code/classifyTreeOptionDialog"; |
| | | import classisyValueTreeOption from "@/const/code/classisyValueTreeDialog"; |
| | | import parentClassifyParentOption from "@/const/code/parentClassifyParentOptionDialog"; |
| | | import referBtmOption from "@/const/code/referBtmDialog"; |
| | | import fixedValueOption from "@/const/code/fixedValueMgrDialog"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | ruleForm: {}, |
| | | query: {}, |
| | | loading: true, |
| | | currentCodeRuleOid: '', |
| | |
| | | selectionList: [], |
| | | /*ç¼ç è§åè¡¨æ ¼é
ç½®*/ |
| | | optionRule: optionRule, |
| | | |
| | | data: [], |
| | | |
| | | /*å
éæé®å¯¹è¯æ¡æ§å¶*/ |
| | | currentRuleLcStatus: '', |
| | | /*å
éå¯¹è¯æ¡æ§å¶åé*/ |
| | | cloneSettingBox: false, |
| | | optionBasic: optionBasic, |
| | | |
| | | /*åºç¡ç 段ç¸å
³æ°æ®*/ |
| | | basicData:[], |
| | | loadingBasic: true, |
| | | selectionBasicList: [], |
| | | addBasicCodeSettingBox: false, |
| | | /* ä¸ºå±æ§éåå¼çªå£æ¾ç¤ºæå¼æ§å¶åé */ |
| | | isShowSelectAttrOption: false, |
| | | /* ä¸ºå±æ§éå¼å·¦ä¾§æ æ°æ® */ |
| | | attrClassifyTreeData: [], |
| | | treeOption: treeOption, |
| | | currentSelectTreeData: '', //å½åéä¸çæ èç¹ |
| | | /* ä¸ºå±æ§éå¼å³ä¾§è¡¨æ ¼ç¸å
³æ°æ® */ |
| | | attrOption: attrOption, |
| | | selectattrData: [], |
| | | selectAttrOptionLoading: false, |
| | | selectionChangeAttrList: [], |
| | | /*å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡*/ |
| | | isShowformulaEdit: false, //å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | formulaContent: '', //å
¬å¼ç¼è¾æ¡å
容 |
| | | activeName: 'first', //å½åæ´»å¨çtab |
| | | activeNameAttr: 'first', //åéä¸çå½åæ´»å¨tab |
| | | |
| | | |
| | | //常ç¨å
¬å¼ |
| | | commonFormulaTableData: [{ |
| | | "formula": 'if(compare,trueResult,falseResult)', |
| | | "desc": '妿compareç表达å¼ä¸ºtrueï¼åæ§è¡trueResultç表达å¼ï¼å¦åæ§è¡flaseResult.ä¾å¦if(3>2,2*(3+2),3/(2-4)),å¼çäº10', |
| | | cloneTableLoading: false, |
| | | cloneOption: cloneOption, |
| | | cloneData: [], |
| | | cloneCodeRuleForm: { |
| | | id: '', |
| | | name: '', |
| | | description: '', |
| | | }, |
| | | { |
| | | "formula": 'sum(douber1,douber2)', |
| | | "desc": 'ä¸¤ä¸ªæ ¼å¼ä¸ºdouberçåæ°æ±å', |
| | | }, |
| | | { |
| | | "formula": 'sub(douber1,douber2)', |
| | | "desc": 'æ ¼å¼ä¸ºdouberçåæ°douber1å廿 ¼å¼ä¸ºdouberçåæ°douber2', |
| | | }, |
| | | { |
| | | "formula": 'mul(douber1,douber2)', |
| | | "desc": 'ä¸¤ä¸ªæ ¼å¼ä¸ºdouberçåæ°ç¸ä¹', |
| | | }, |
| | | { |
| | | "formula": 'div(douber1,douber2)', |
| | | "desc": 'æ ¼å¼ä¸ºdouberçåæ°douber1é¤ä»¥æ ¼å¼ä¸ºdouberçåæ°douber2.å½douber2çäº0çæ¶åï¼è¿å0;妿é¤ä¸å°½çæ¶åä¿ç10ä½å°æ°', |
| | | }, |
| | | { |
| | | "formula": 'mod(int,int)', |
| | | "desc": 'æ±ä½æ°', |
| | | }, |
| | | { |
| | | "formula": 'toInt(string)', |
| | | "desc": '转æ¢ä¸ºintæ ¼å¼', |
| | | }, |
| | | { |
| | | "formula": 'doubleRound(string,count)', |
| | | "desc": 'å¤çdouberçå°æ°ä½æ°ï¼countè¡¨ç¤ºå°æ°ä½æ°', |
| | | }, |
| | | { |
| | | "formula": 'zeroIfNull(value)', |
| | | "desc": '妿忰çå¼ä¸ºnullæè
"",å°è¿å0', |
| | | }, |
| | | { |
| | | "formula": 'endsWith(string,str1)', |
| | | "desc": 'å符串stringæ¯ä¸æ¯ä»¥str1ç»å°¾', |
| | | }, |
| | | { |
| | | "formula": 'startsWith(string,str1)', |
| | | "desc": 'å符串stringæ¯å¦ä»¥str1å¼å¤´', |
| | | }, |
| | | { |
| | | "formula": 'charAt(string,index)', |
| | | "desc": 'è·åå符串stringä¸ç¬¬indexä½ç½®çå符ï¼å¦æé¿åº¦å°äºindexï¼åè¿å', |
| | | }, |
| | | { |
| | | "formula": 'equalsIgnoreCase(str1,str2)', |
| | | "desc": 'å符串str1åå符串str2æ¯å¦ç¸ç', |
| | | }, |
| | | { |
| | | "formula": 'indexOf(str1,str2)', |
| | | "desc": 'å符串str2å¨å符串str1ä¸é¦æ¬¡åºç°çä½ç½®', |
| | | }, |
| | | { |
| | | "formula": 'isEmpty(str1)', |
| | | "desc": 'åæ°str1æ¯å¦ä¸ºç©ºï¼å
¶ä¸nullè¿ä¸ªå符串ä¹è¡¨ç¤ºä¸ºç©º', |
| | | }, |
| | | { |
| | | "formula": 'lastIndexOf(str1,str2)', |
| | | "desc": 'å符串str2å¨å符串str1䏿ååºç°çä½ç½®', |
| | | }, |
| | | { |
| | | "formula": 'leftStr(str1,index)', |
| | | "desc": 'è·åindexä½ç½®å·¦ä¾§çææå符', |
| | | }, |
| | | { |
| | | "formula": 'rightStr(str1,str2)', |
| | | "desc": 'è·åindexä½ç½®å³ä¾§çææå符', |
| | | }, |
| | | { |
| | | "formula": 'length(str1)', |
| | | "desc": 'åæ°str1çé¿åº¦', |
| | | }, |
| | | { |
| | | "formula": 'mid(str1,start,end)', |
| | | "desc": 'è·åstr1çä»startå°endç´æ¥çå符串ï¼åºç°å¼å¸¸æ¶è¿å', |
| | | }, |
| | | { |
| | | "formula": 'tolowercase(str1)', |
| | | "desc": 'å°å符串str1转为å°å', |
| | | }, |
| | | { |
| | | "formula": 'touppercase(str1)', |
| | | "desc": 'å°å符串str1转为大å', |
| | | }, |
| | | { |
| | | "formula": 'trimzero(str1)', |
| | | "desc": 'å»é¤å符串str1ä¸ç0', |
| | | }, |
| | | { |
| | | "formula": 'MD5(str1)', |
| | | "desc": 'å°å符串è¿è¡MD5å å¯', |
| | | }, |
| | | ], |
| | | //è´¢å¡å
¬å¼ |
| | | financialFormulaTableData: [{ |
| | | "formula": 'toChinese(value)', |
| | | "desc": 'å°é¿æä¼¯æ°å转为为æ±å大忹å¼' |
| | | }, |
| | | { |
| | | "formula": 'getChineseCurrency(value)', |
| | | "desc": 'å°é¿æä¼¯æ°å转为为æ±åéé¢å¤§åæ¹å¼ï¼ä¸tochinessçåºå«æ¯è¿ä¸ªä¼æ¾ç¤ºå
ãè§ãå' |
| | | }, |
| | | { |
| | | "formula": 'setThmark(value)', |
| | | "desc": 'ä¸ºåæ°value设置ååä½' |
| | | } |
| | | ], |
| | | //æ¥æå
¬å¼ |
| | | dateFormulaTableData: [{ |
| | | "formula": 'compareDate(d1,d2)', |
| | | "desc": '对æ¯åæ°d1,d2ç大å°ãd1,d2为yyyy-MM-ddæ ¼å¼çæ¥æå符串' |
| | | }, |
| | | { |
| | | "formula": 'nowDate()', |
| | | "desc": 'è·åå½åæ¥æ' |
| | | }, |
| | | { |
| | | "formula": 'chinaDate(d1)', |
| | | "desc": 'å°æ¶é´è½¬æ¢ä¸ºååï¼d1æ¯yyyy-MM-ddæ ¼å¼çæ¥æå符串' |
| | | }, |
| | | { |
| | | "formula": 'dateAdd(d1,count)', |
| | | "desc": 'å¨d1çåºç¡ä¸æ·»å count天,d1为yyyy-MM-dd HH:mm:ssæ ¼å¼çæ¶é´å符串' |
| | | }, |
| | | { |
| | | "formula": 'dateBalanceYear(sourceDate,targetDate,false)', |
| | | "desc": '计ç®ç¸å·®çå¹´ä»½ï¼æ¯å¦è®¡ç®å¹´é¾ï¼targetDate为""表示å½åæ¶é´ï¼ç¬¬ä¸ä¸ªåæ°ä¸ºtrue表示æå¤ä½çæä»½æè
å¤©æ°æ¶ï¼å°±å 1;' |
| | | }, |
| | | { |
| | | "formula": 'dateBalanceDay(sourceDate,targetDate)', |
| | | "desc": '计ç®ç¸å·®ç天æ°ï¼targetDate为""表示å½åæ¶é´' |
| | | }, |
| | | { |
| | | "formula": 'dateformat(d1,format)<', |
| | | "desc": 'å°å½åçæ¥æï¼æ¶é´ï¼å符串转为æå®çå符串ï¼å¦æformatçå
容æç©ºæ ¼ï¼è¯·ä½¿ç¨&代æ¿' |
| | | }, |
| | | { |
| | | "formula": 'nowDatetime()', |
| | | "desc": 'è·åå½åæ¥æåæ¶é´ãæ ¼å¼ä¸ºyyyy-MM-dd HH:mm:ss' |
| | | }, |
| | | { |
| | | "formula": 'dayOf(d1)', |
| | | "desc": 'è·åæ ¼å¼ä¸ºyyyy-MM-ddçæ¥æç天æ°' |
| | | }, |
| | | { |
| | | "formula": 'nowMon()', |
| | | "desc": 'è·åå½åçæä»½ï¼æ ¼å¼ä¸ºMM' |
| | | }, |
| | | { |
| | | "formula": 'monOf(d1)', |
| | | "desc": 'è·åæ¥æd1çæä»½æ°' |
| | | }, |
| | | { |
| | | "formula": 'nowTime()', |
| | | "desc": 'è·åå½åæ¶é´ï¼æ ¼å¼ä¸ºHH:mm:ss' |
| | | }, |
| | | { |
| | | "formula": 'nowYear()', |
| | | "desc": 'è·åå¹´ä»½ï¼æ ¼å¼ä¸ºyyyy' |
| | | }, |
| | | { |
| | | "formula": 'yearOf()', |
| | | "desc": 'è·åæ¶é´d1ç年份' |
| | | } |
| | | ], |
| | | //æ°å¦å
¬å¼ |
| | | mathFormulaTableData: [{ |
| | | "formula": 'abs(value)', |
| | | "desc": 'æ±åæ°valueçç»å¯¹å¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'acos(value)', |
| | | "desc": 'æ±åæ°valueçåä½å¼¦ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'asin(value)', |
| | | "desc": 'æ±åæ°valueç忣弦ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'atan(value)', |
| | | "desc": 'æ±åæ°valueç忣åï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'cbrt(value)', |
| | | "desc": 'æ±åæ°valueçç«æ¹æ ¹ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'ceil(value)', |
| | | "desc": 'è¿åä¸å¤§äºåæ°valueçæå°æ´æ°ï¼ä¾å¦ceil(1.7)å°±çäº2ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'cos(value)', |
| | | "desc": 'æ±åæ°valueçä½å¼¦å¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'cosh(value)', |
| | | "desc": 'æ±åæ°valueçåæ²ä½å¼¦å¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'exp(n)', |
| | | "desc": 'æ¬§ææ° e çn次å¹ï¼nå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'floor(n)', |
| | | "desc": 'æ¬§ææ° e çn次å¹å1ï¼nå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'log(value)', |
| | | "desc": 'è¿åä¸å°äºåæ°valueçæå¤§æ´æ°ï¼ä¾å¦floor(1.7)çäº1ï¼nå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'log10(value)', |
| | | "desc": 'èªç¶å¯¹æ°,valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'log1p(value)', |
| | | "desc": '计ç®åºæ°ä¸º 10 ç对æ°,valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'random()', |
| | | "desc": 'è¿ååæ°ä¸ 1 ä¹åçèªç¶å¯¹æ°ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'rint(value)', |
| | | "desc": 'è¿åä¸ä¸ªä¼ªéæºæ°ï¼è¯¥å¼å¤§äºçäº 0.0 ä¸å°äº 1.0' |
| | | }, |
| | | { |
| | | "formula": 'round(value)', |
| | | "desc": 'è¿åå
¶å¼ææ¥è¿åæ°å¹¶ä¸æ¯æ´æ°ç double å¼ãå¦æä¸¤ä¸ªæ´æ°ç double å¼é½åæ ·æ¥è¿ï¼é£ä¹ç»æåå¶æ°ãç¹æ®æ
嵿¯ï¼å¦æåæ°å¼æ¯æ´æ°ï¼é£ä¹ç»æå°±æ¯è¯¥åæ°ãå¦æåæ°æ¯ NaN ææ ç©·å¤§ææ£é¶æè´é¶ï¼é£ä¹ç»æä¸åæ°ç¸å' |
| | | }, |
| | | { |
| | | "formula": 'signum(value)', |
| | | "desc": '符å·å½æ°ï¼å¦æåæ°ä¸º 0ï¼åè¿å 0ï¼å¦æåæ°å¤§äº 0ï¼ åè¿å 1.0ï¼å¦æåæ°å°äº 0ï¼åè¿å -1.0' |
| | | }, |
| | | { |
| | | "formula": 'sin(value)', |
| | | "desc": 'æ±åæ°valueçæ£å¼¦å¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'sinh(value)', |
| | | "desc": 'æ±åæ°valueçåæ²æ£å¼¦å¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'tan(value)', |
| | | "desc": 'æ±åæ°valueçæ£åå¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'tanh(value)', |
| | | "desc": 'æ±åæ°valueçåæ²æ£åå¼ï¼valueå¿
须为æ°åæ ¼å¼' |
| | | }, |
| | | { |
| | | "formula": 'max(v1,v2)', |
| | | "desc": 'æ±ä¸¤ä¸ªæ°ä¸çè¾å¤§çå¼ï¼v1,v2é½å¿
须为æ°åæ ¼å¼ï¼ä¾å¦max(3.2,3)å°±çäº3.2' |
| | | }, |
| | | { |
| | | "formula": 'min(v1,v2)', |
| | | "desc": 'æ±ä¸¤ä¸ªæ°ä¸çè¾å°çå¼ï¼v1,v2é½å¿
须为æ°åæ ¼å¼ï¼ä¾å¦max(3.2,3)å°±çäº3' |
| | | }, |
| | | { |
| | | "formula": 'sqrt(value)', |
| | | "desc": 'æ±å¹³æ¹æ ¹' |
| | | }, |
| | | ], |
| | | //å
¶ä»å
¬å¼ |
| | | otherFormulaTableData: [{ |
| | | "formula": 'getcolvalue(servername,tablename,fieldname,pkField,pkValue)', |
| | | "desc": 'æ¥è¯¢servernameä¸tablenameæ°æ®åºè¡¨ä¸fieldnameåæ®µçå¼ï¼pkfield表示主é®çåæ®µåç§°ï¼pkValue表示主é®çå¼ï¼serverNameç°å¨é»è®¤ä¸ºlocalServer' |
| | | }, |
| | | ], |
| | | |
| | | //æ¬åºæ¯åé |
| | | thisSceneTableData: [{ |
| | | "formula": '${}', |
| | | "desc": ' ' |
| | | }, |
| | | ], |
| | | //ç³»ç»åé |
| | | systemVariableTableData: [{ |
| | | "formula": '#CURRENTUSER.OID#', |
| | | "desc": 'å½åç¨æ·ç主é®' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.ID#', |
| | | "desc": 'å½åç¨æ·çè´¦æ·' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTTIME#', |
| | | "desc": 'å½åæ¶é´' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTDATE#', |
| | | "desc": 'å½åæ¥æ' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTDATETIME#', |
| | | "desc": 'å½åæ¥ææ¶é´' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER_NAME#', |
| | | "desc": 'å½åç¨æ·çå§å' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.SECRETGRADE#', |
| | | "desc": 'å½åç¨æ·å¯çº§' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.IPSECRET#', |
| | | "desc": 'å½åç¨æ·çIPå¯çº§' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.BUSINESSUNIT#', |
| | | "desc": 'å½åç¨æ·æå±ä¸å¡åå
' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.BUSINESSUNITNAME#', |
| | | "desc": 'å½åç¨æ·æå±ä¸å¡åå
åç§°' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.GROUPOID#', |
| | | "desc": 'å½åç¨æ·çé¨é¨ä¸»é®' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.GROUPNAME#', |
| | | "desc": 'å½åç¨æ·æå±é¨é¨åç§°' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.EMAIL#', |
| | | "desc": 'å½åç¨æ·é®ä»¶å°å' |
| | | }, |
| | | { |
| | | "formula": '#CURRENTUSER.ROLENAME#', |
| | | "desc": 'å½åç¨æ·æå±è§è²åç§°' |
| | | } |
| | | ], |
| | | /*ä»å
¶ä»è§åå
éç æ®µ*/ |
| | | cloneOtherCodeRuleSettingBox: false, |
| | | cloneBasicOption: cloneBasicOption, |
| | | cloneCodeRuleOption: cloneCodeRuleOption, |
| | | selectionOtherCloneCodeBasicList: [], // å½åéä¸çåºç¡ç 段 |
| | | |
| | | /*使ç¨èå´å¯¹è¯æ¡æ¾ç¤ºæ§å¶*/ |
| | | codeRangeSettingBox: false, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | /*åºç¡ç 段ç¸å
³æ°æ®*/ |
| | | optionBasic: optionBasic, |
| | | basicData:[], |
| | | loadingBasic: true, |
| | | selectionBasicList: [], |
| | | addBasicCodeSettingBox: false, |
| | | showbtn: false, //åºç¡ç 段æ°å¢æ¯å¦æ¾ç¤ºåºç¡ç 段 |
| | | basicSecDialogTitle: '', //åºç¡ç 段第ä¸å±å¯¹è¯æ¡æ é¢ |
| | | basicSecOnlyRead: false, //æ°å¢åºç¡ç æ®µè¡¨åæ¯å¦åªè¯» |
| | | |
| | | |
| | | /** ç å¼ç®¡çç¸å
³æ°æ® */ |
| | | isShowBasicSecCodeValueMgr: false, //ç æ®µç å¼ç®¡çå¯¹è¯æ¡ |
| | | codefixedsecOrCodeclassifysecOid: '', //åæ¾åºç¡ç 段ç¹å»ç å¼ç®¡çæ¶çå½åè¡idï¼ç¨äºä¿åç 弿¶ä½¿ç¨ |
| | | selectedFixedOrCodeclassifyValue: '', //å½åéä¸çç 弿°æ® |
| | | //åºå®ç 段ç å¼è¡¨å |
| | | codeFixdForm: { |
| | | codeFixedSecOid: "", |
| | | description: "", |
| | | id: "", |
| | | }, |
| | | isShowFixedForm: true, //trueæ¾ç¤ºåºå®ç 段ç å¼ç®¡ççé¢ï¼falseæ¾ç¤ºåç±»ç æ®µç å¼ç®¡ççé¢ |
| | | fixedValueData: [], //åºå®ç 段ç å¼è¡¨æ ¼æ°æ® |
| | | fixedValueOption: fixedValueOption, //è¡¨æ ¼é
ç½® |
| | | fixedValueOptionLoading: false, //å è½½è¡¨æ ¼çå¨æææ |
| | | fixedValueSelectList: [], //åºå®ç 段ç å¼å½åéä¸çè¡ |
| | | |
| | | //åç±»ç æ®µç å¼è¡¨å |
| | | codeClassifyForm: { |
| | | codeClassifySecOid: "", |
| | | id: "", |
| | | name: "", |
| | | oid: "", |
| | | }, |
| | | classisyValueTreeOption: classisyValueTreeOption, //åç±»ç æ®µæ ç¸å
³é
置项 |
| | | classifyValueTreeData: [], |
| | | currentSelectTreeData: '', //å½åéä¸çåç±»ç 弿 èç¹ |
| | | |
| | | /* ä¸ºå±æ§éåå¼çªå£æ¾ç¤ºæå¼æ§å¶åé */ |
| | | isShowSelectAttrOption: false, |
| | | /* ä¸ºå±æ§éå¼å·¦ä¾§æ æ°æ® */ |
| | | attrClassifyTreeData: [], |
| | | treeOption: treeOption, |
| | | currentSelectTreeData: '', //å½åéä¸çæ èç¹ |
| | | /* ä¸ºå±æ§éå¼å³ä¾§è¡¨æ ¼ç¸å
³æ°æ® */ |
| | | attrOption: attrOption, |
| | | selectattrData: [], |
| | | selectAttrOptionLoading: false, |
| | | selectionChangeAttrList: [], |
| | | // 屿§ç 段ï¼å
¬å¼ç¼è¾æ¡ç»ä»¶çæ¬åºæ¯æ¾ç¤ºåéãä¸ç³»ç»åé |
| | | thisSceneTableData: [ |
| | | { |
| | | formula: "${}", |
| | | desc: "", |
| | | } |
| | | ], |
| | | systemVariableTableData: [ |
| | | { |
| | | formula: "#CURRENTUSER.OID#", |
| | | desc: "å½åç¨æ·ç主é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ID#", |
| | | desc: "å½åç¨æ·çè´¦æ·", |
| | | }, |
| | | { |
| | | formula: "#CURRENTTIME#", |
| | | desc: "å½åæ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATE#", |
| | | desc: "å½åæ¥æ", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATETIME#", |
| | | desc: "å½åæ¥ææ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER_NAME#", |
| | | desc: "å½åç¨æ·çå§å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.SECRETGRADE#", |
| | | desc: "å½åç¨æ·å¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.IPSECRET#", |
| | | desc: "å½åç¨æ·çIPå¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNIT#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNITNAME#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPOID#", |
| | | desc: "å½åç¨æ·çé¨é¨ä¸»é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPNAME#", |
| | | desc: "å½åç¨æ·æå±é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.EMAIL#", |
| | | desc: "å½åç¨æ·é®ä»¶å°å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ROLENAME#", |
| | | desc: "å½åç¨æ·æå±è§è²åç§°", |
| | | }, |
| | | ], |
| | | |
| | | /* ç¶åç±»ç æ®µå¯¹è¯æ¡ */ |
| | | isShowParentClassifyOption: false, //ç¶åç±»ç æ®µå¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | classifyDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | parentClassifyParentOption: parentClassifyParentOption, //è¡¨æ ¼é
ç½® |
| | | parentClassifyData: [], //è¡¨æ ¼æ°æ® |
| | | //å页忰é
ç½® |
| | | parentClassifyDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | parentClassifyQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | parentClassifySelectionList: [], //å½åéä¸è¡ |
| | | |
| | | |
| | | /** åç
§å¼ç¨çä¸å¡ç±»åå¯¹è¯æ¡ç¸å
³æ°æ® */ |
| | | isShowSelectReferBtmOption: false, //å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | referBtmDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | referBtmDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | referBtmOption: referBtmOption, //è¡¨æ ¼é
ç½® |
| | | referBtmData: [], //è¡¨æ ¼æ°æ® |
| | | referBtmQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | referBtmSelectionList: [], //å½åéä¸è¡ |
| | | |
| | | /** åºç¡ç 段æ°å¢è¡¨å */ |
| | | form: { |
| | | id: '', //ç¼å· |
| | | name: '', //åç§° |
| | | secType: 'codefixedsec', //ç æ®µç±»å |
| | | description: '', //æè¿° |
| | | serialDependFlag: false, //æ¯å¦æµæ°´ä¾èµ |
| | | serialDependOrder: '', //æµæ°´ä¾èµé¡ºåº |
| | | nullableFlag: false, //æ¯å¦ä¸ºç©º |
| | | displayFlag: false, // |
| | | componentCodeFlag: false, //æ¯å¦åä¸ç¼ç |
| | | pkCodeRule: '', //æå±ç¼ç è§å |
| | | }, |
| | | // formRules: { |
| | | // id: [ |
| | | // { required: true, message: '请è¾å
¥ç 段ç¼å·', trigger: 'blur' }, |
| | | // ], |
| | | // name: [ |
| | | // { required: true, message: '请è¾å
¥ç 段åç§°', trigger: 'blur' }, |
| | | // ], |
| | | // secType: [ |
| | | // { required: true, message: '请éä¸ç 段类å', trigger: 'change' }, |
| | | // ], |
| | | // codeSecLengthType: [ |
| | | // { required: true, message: 'è¯·éæ©ç æ®µé¿åº¦ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // codeSecLength: [ |
| | | // { required: true, message: '请è¾å
¥ç 段çé¿åº¦', trigger: ['blur', 'change']}, |
| | | // { type: 'number', message: 'ç æ®µçé¿åº¦å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // referAttributeName: [ |
| | | // { required: true, message: 'è¯·éæ©å±æ§', trigger: 'change' }, |
| | | // ], |
| | | // serialStart: [ |
| | | // { type: 'number', message: 'æµæ°´å·çèµ·å§å¼å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // serialStep: [ |
| | | // { type: 'number', message: 'æµæ°´çæ¥é¿å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeFillType: [ |
| | | // { required: true, message: 'è¯·éæ©ç¼ç è¡¥ä½æ¹å¼', trigger: ['blur', 'change']}, |
| | | // ], |
| | | // // è®¾ç½®è¡¥ä½æ¶çå符ï¼éè¦èªå®ä¹æ¥å夿 |
| | | // codeFillSeparatorSelect: [ |
| | | // { validator: validateCodeFill, trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // codeFillLength: [ |
| | | // { required: true, message: '请è¾å
¥å¡«å
é¿åº¦', trigger: ['blur', 'change'] }, |
| | | // { type: 'number', message: 'å¡«å
é¿åº¦å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeFillLimit: [ |
| | | // { required: true, message: '请è¾å
¥æµæ°´ä¸é', trigger: ['blur', 'change'] }, |
| | | // { type: 'number', message: 'æµæ°´ä¸éå¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeLevelType: [ |
| | | // { required: true, message: 'è¯·éæ©å±çº§ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // codeLevelValue: [ |
| | | // { required: false, type: 'number', message: 'å±çº§çå¼å¿
须为æ°åå¼', trigger: 'change'} |
| | | // ], |
| | | // valueCutType: [ |
| | | // { required: true, message: 'è¯·éæ©å符æªåç±»å', trigger: 'change' }, |
| | | // ], |
| | | // referBtmId: [ |
| | | // { required: true, message: 'è¯·éæ©åç
§åºç¨çä¸å¡ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // referConfig: [ |
| | | // { required: true, message: 'è¯·éæ©åç
§é
ç½®', trigger: 'change' }, |
| | | // ], |
| | | // codeDateFormatStr: [ |
| | | // { required: true, message: '请è¾å
¥æ¥ææ ¼å¼', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | |
| | | // }, |
| | | //æä¸¾åå¯è¾å¯éæ¥è¯¢ |
| | | sectypeList:[], //ç æ®µç±»å |
| | | codeSecLengthType:[], //ç æ®µé¿åº¦ç±»å |
| | | codeFillType:[], //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparator:[], //è¡¥ä½æ¶çå符ï¼å¯è¾å¯éå
容 |
| | | codeLevelType:[], //å±çº§ç±»å |
| | | codeCutType:[], //å符æªåç±»å |
| | | codeGetValueType:[], //åå¼ç±»å |
| | | |
| | | //表åå
ç´ æ ç¾å®½åº¦ |
| | | leftFormLabelWidth: '110px', |
| | | rightFormLabelWidth: '150px', |
| | | |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | // æå¼å
¬å¼ç¼è¾æ¡ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ |
| | | openformulaEdit(){ |
| | | this.isShowformulaEdit = true; |
| | | /* å
¬å¼ç¼è¾æ¡å
容æ¹å,åç»ä»¶ç¼è¾å®å
¬å¼ä¹åå
容忾æ¶è°ç¨ */ |
| | | updateFormulaContent(content){ |
| | | this.form.getValueClass = content; |
| | | }, |
| | | |
| | | //å廿·»å å
¬å¼å
容 |
| | | dbClickAddContent(row){ |
| | | //console.log(row.formula); |
| | | this.formulaContent = this.formulaContent + row.formula; |
| | | }, |
| | | |
| | | //æ¸
空å
¬å¼å
容 |
| | | resetformulaContent(){ |
| | | this.formulaContent = ''; |
| | | }, |
| | | |
| | | //å
³éæ¶æ¸
ç©ºä¸æ¬¡å
¬å¼å
容 |
| | | closeFormulaEdit(){ |
| | | this.resetformulaContent(); |
| | | }, |
| | | |
| | | //ç¼è¾å®æå
¬å¼å
容åè°å°åç»ä»¶è¿è¡åæ¾ |
| | | saveFormulaContent(){ |
| | | console.log(this.formulaContent); |
| | | if(this.formulaContent.trim == null){ |
| | | this.$message.warning("å
¬å¼å
容ä¸è½ä¸ºç©ºï¼"); |
| | | return; |
| | | /** éä¸åç
§å¼ç¨çä¸å¡ç±»åï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | saveSelectedreferBtm(){ |
| | | if(this.referBtmSelectionList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | this.$refs.addBasicChild.saveFormulaContent(this.formulaContent); |
| | | this.isShowformulaEdit = false; |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.form.referBtmId = this.referBtmSelectionList[0].id; |
| | | this.form.referBtmName = this.referBtmSelectionList[0].name; |
| | | //æ¸
空å½åéä¸çè¡ |
| | | this.referBtmSelectionClear(); |
| | | this.isShowSelectReferBtmOption = false; |
| | | }, |
| | | referBtmSearchReset() { |
| | | this.referBtmQuery = {}; |
| | | this.referBtmOnLoad(this.referBtmDataPage); |
| | | }, |
| | | referBtmSearchChange(params, done) { |
| | | this.referBtmQuery = params; |
| | | this.referBtmDataPage.currentPage = 1; |
| | | this.referBtmOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | referBtmSelectionChange(list) { |
| | | //console.log(list); |
| | | this.referBtmSelectionList = list; |
| | | }, |
| | | referBtmSelectionClear() { |
| | | this.referBtmSelectionList = []; |
| | | this.$refs.crudReferBtm.toggleSelection(); |
| | | }, |
| | | referBtmCurrentChange(currentPage){ |
| | | this.referBtmDataPage.currentPage = currentPage; |
| | | }, |
| | | referBtmSizeChange(pageSize){ |
| | | this.referBtmDataPage.pageSize = pageSize; |
| | | }, |
| | | refreshReferBtmDataChange() { |
| | | this.referBtmOnLoad(this.referBtmDataPage, this.referBtmQuery); |
| | | }, |
| | | //å è½½ä¸åç
§å¼ç¨çä¸å¡ç±»åçæ°æ® |
| | | referBtmOnLoad(page, params = {}) { |
| | | this.referBtmDialogLoading = true; |
| | | let oid = this.selectionList.length==0 ? this.form.pkCodeRule:this.selectionList[0].oid; |
| | | Object.assign(params,{pkCodeRule:oid}) |
| | | //æ¥å£è¿æªæä¾ï¼å¾
æ´æ¹ |
| | | refDataGridClassifySec(page.currentPage, page.pageSize, Object.assign(params, this.parentClassifyQuery)).then(res => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.referBtmDataPage.total = data.total; |
| | | this.referBtmData = data.records; |
| | | this.referBtmDialogLoading = false; |
| | | this.referBtmSelectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | // æå¼å±æ§éåå¼ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ |
| | | openAttrSelectOrGetValue(){ |
| | | //console.log(111); |
| | | this.isShowSelectAttrOption = true; |
| | | |
| | | /** ç¶åç±»éæ©å¯¹è¯æ¡ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // ä¿åå½åç¶åç±»ç æ®µçéä¸è¡ï¼å¹¶è¿è¡åæ¾ |
| | | saveSelectedParentClassify(){ |
| | | //console.log(this.parentClassifySelectionList.length); |
| | | if(this.parentClassifySelectionList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.form.parentClassifySecOid = this.parentClassifySelectionList[0].oid; |
| | | this.form.parentClassifySecText = this.parentClassifySelectionList[0].name; |
| | | //æ¸
空å½åéä¸çè¡ |
| | | this.parentClassifySelectionClear(); |
| | | this.isShowParentClassifyOption = false; |
| | | }, |
| | | parentClassifySearchReset() { |
| | | this.parentClassifyQuery = {}; |
| | | this.parentClassifyOnLoad(this.parentClassifyDataPage); |
| | | }, |
| | | parentClassifySearchChange(params, done) { |
| | | this.parentClassifyQuery = params; |
| | | this.parentClassifyDataPage.currentPage = 1; |
| | | this.parentClassifyOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | parentClassifySelectionChange(list) { |
| | | //console.log(this.parentClassifyCurrentChange); |
| | | this.parentClassifySelectionList = list; |
| | | }, |
| | | parentClassifySelectionClear() { |
| | | this.parentClassifySelectionList = []; |
| | | this.$refs.crudParentClassify.toggleSelection(); |
| | | }, |
| | | parentClassifyCurrentChange(currentPage){ |
| | | this.parentClassifyDataPage.currentPage = currentPage; |
| | | }, |
| | | parentClassifySizeChange(pageSize){ |
| | | this.parentClassifyDataPage.pageSize = pageSize; |
| | | }, |
| | | refreshParentClassifyDataChange() { |
| | | this.parentClassifyOnLoad(this.parentClassifyDataPage, this.parentClassifyQuery); |
| | | }, |
| | | parentClassifyOnLoad(page, params = {}) { |
| | | this.classifyDialogLoading = true; |
| | | let oid = this.selectionList.length==0 ? this.form.pkCodeRule:this.selectionList[0].oid; |
| | | Object.assign(params,{pkCodeRule:oid}) |
| | | refDataGridClassifySec(page.currentPage, page.pageSize, Object.assign(params, this.parentClassifyQuery)).then(res => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.parentClassifyDataPage.total = data.total; |
| | | this.parentClassifyData = data.records; |
| | | this.classifyDialogLoading = false; |
| | | this.parentClassifySelectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** æå¼å±æ§éåå¼ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // è·åå½å被é䏿 èç¹çoid |
| | | nodeClick(data) { |
| | | this.currentSelectTreeData = data; |
| | | this.loadlistClassifyLinkAttr() |
| | | }, |
| | | |
| | | // å è½½åç±»è¿æ¥å±æ§è¡¨æ ¼æ°æ® |
| | | loadlistClassifyLinkAttr(){ |
| | | this.selectAttrOptionLoading = true; |
| | |
| | | this.selectAttrOptionLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | // ç¹å»æç´¢å触å该äºä»¶ |
| | | selectAttrOptionSearchChange(params, done) { |
| | | this.query = params; |
| | |
| | | this.loadlistClassifyLinkAttr({"page":1,"limit":-1 ,'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid}); |
| | | done(); |
| | | }, |
| | | |
| | | // 屿§åå¼å½åéä¸è¡åçååæ¶è§¦å |
| | | selectionChangeAttr(list){ |
| | | this.selectionChangeAttrList = list; |
| | | }, |
| | | |
| | | //éç½®ä½å±æ§éåå¼è¡¨æ ¼çæç´¢æ¡ä¹åçåè° |
| | | searchAttrReset() { |
| | | this.loadlistClassifyLinkAttr() |
| | | }, |
| | | |
| | | // 屿§åå¼éåæåä¿åä¹å触å |
| | | savelistClassifyLinkAttr(){ |
| | | // ä¸ºå±æ§éåå¼ä¹åçåæ¾ |
| | | selectedListClassifyLinkAttr(){ |
| | | if(this.selectionChangeAttrList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | let data = { |
| | | "referAttributeId":this.selectionChangeAttrList[0].id, |
| | | "referAttributeName":this.selectionChangeAttrList[0].name, |
| | | "referCodeClassifyOid": this.currentSelectTreeData.key, |
| | | "referCodeClassifyOidName": this.currentSelectTreeData.title, |
| | | } |
| | | //console.log(data); |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.$refs.addBasicChild.selectedListClassifyLinkAttr(data); |
| | | this.form = Object.assign({}, this.form, { |
| | | referAttributeId:this.selectionChangeAttrList[0].id, |
| | | referAttributeName:this.selectionChangeAttrList[0].name, |
| | | referCodeClassifyOid: this.currentSelectTreeData.key, |
| | | referCodeClassifyOidName: this.currentSelectTreeData.title, |
| | | }) |
| | | this.isShowSelectAttrOption = false; |
| | | }, |
| | | |
| | | // ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | if(this.selectionList.length > 0){ |
| | | this.currentCodeRuleOid = this.selectionList [list.length-1]; |
| | | this.loadBasic(this.selectionList[list.length-1]); |
| | | |
| | | /** åºç¡ç 段表ä¸çç å¼ç®¡ççç¸å
³æ¹æ³ */ |
| | | // ç å¼ç®¡çå¼¹çªæ§å¶ |
| | | openBasicSecCodeValueMgr(row){ |
| | | //å½å为åºå®ç 段ç å¼ç®¡çç å¼ç®¡ç |
| | | if(row.secType === "codefixedsec"){ |
| | | this.isShowFixedForm = true; |
| | | this.loadFixedValueTableData(row); |
| | | }else{ |
| | | //åç±»ç æ®µ |
| | | this.isShowFixedForm = false; |
| | | this.loadClassifyValueData(row); |
| | | } |
| | | this.codefixedsecOrCodeclassifysecOid = row.oid; |
| | | this.isShowBasicSecCodeValueMgr = true; |
| | | }, |
| | | //å è½½åºå®ç 段ç å¼è¡¨æ°æ® |
| | | loadFixedValueTableData(row){ |
| | | this.fixedValueOptionLoading = true; |
| | | gridCodeFixedValue(1, -1, {"codeFixedSecOid":row.oid}).then(res=>{ |
| | | this.fixedValueData = res.data.data.records; |
| | | //console.log(this.fixedValueData); |
| | | this.fixedValueOptionLoading = false; |
| | | }) |
| | | }, |
| | | //åå»åºå®ç 段çç å¼è¡¨ä¸è¡æ¶è§¦åçäºä»¶ |
| | | selectedCodeValueRow(row){ |
| | | //console.log(row); |
| | | this.selectedFixedOrCodeclassifyValue = row; |
| | | this.codeFixdForm.id = row.id; |
| | | this.codeFixdForm.description = row.description; |
| | | this.codeFixdForm.codeFixedSecOid = row.codefixedsecoid; |
| | | }, |
| | | //æ°å¢ç å¼ |
| | | addCodeSecValue(condition){ |
| | | if(condition === "codefixedsec"){ |
| | | if(this.codeFixdForm.id.trim() == ''){ |
| | | this.$message.warning("ç å¼ä¸è½ä¸ºç©ºï¼"); |
| | | return; |
| | | } |
| | | if(this.codeFixdForm.id.trim().length >= 12 ){ |
| | | this.$message.warning("ç å¼é¿åº¦ä¸è½å¤§äº12ï¼"); |
| | | return; |
| | | } |
| | | this.codeFixdForm.codeFixedSecOid = this.codefixedsecOrCodeclassifysecOid; |
| | | addSaveCodeFixedValue(this.codeFixdForm).then(() => { |
| | | this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid}); |
| | | this.clearFixedOrClassifyForm('codefixedsec'); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | }else { |
| | | this.codeClassifyForm.codeClassifySecOid = this.codefixedsecOrCodeclassifysecOid; |
| | | console.log(this.codeClassifyForm); |
| | | addSaveCodeClassifyValue(this.codeClassifyForm).then(() => { |
| | | this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid}); |
| | | this.clearFixedOrClassifyForm('codeclassifyvaluesec'); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | this.$confirm(error, { |
| | | confirmButtonText: "ç¡®å®", |
| | | type: "error", |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | //æ¸
空ç å¼è¡¨å |
| | | clearFixedOrClassifyForm(condition){ |
| | | //ç¹å»åæ¶æ¶æ¸
空表åä¸å½åéä¸çç å¼ï¼å¹¶ç¦ç¨æé® |
| | | this.selectedFixedOrCodeclassifyValue = ''; |
| | | //console.log(condition); |
| | | if(condition === "close"){ |
| | | this.codeFixdForm = this.$options.data().codeFixdForm; |
| | | this.codeClassifyForm = this.$options.data().codeClassifyForm; |
| | | } |
| | | if(condition === "codefixedsec"){ |
| | | this.codeFixdForm.description = ''; |
| | | this.codeFixdForm.codeFixedSecOid = ''; |
| | | }else { |
| | | this.codeClassifyForm = this.$options.data().codeClassifyForm; |
| | | } |
| | | }, |
| | | //ä¿®æ¹ç å¼ |
| | | editCodeSecValue(condition){ |
| | | if(condition=='codefixedsec'){ |
| | | //ä»¥åæ¯ç´æ¥æå½åéä¸è¡çæææ°æ®é½è¿è¡æäº¤ï¼ä½å
¶å®åªéè¦ä¼ è¾ä¸äºæ¯è¦åæ°å³å¯ï¼è¿å¿åäºä¿®æ¹ï¼éè¦ç©¿å
¶ä»åæ°ç请èªè¡æ·»å |
| | | let editData = { |
| | | "oid": this.selectedFixedOrCodeclassifyValue.oid, |
| | | "ts": new Date().getTime(), |
| | | "description": this.codeFixdForm.description, |
| | | "id": this.codeFixdForm.id, |
| | | "codeFixedSecOid": this.selectedFixedOrCodeclassifyValue.codefixedsecoid |
| | | } |
| | | editCodeFixedValue(editData).then(() => { |
| | | this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid}) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | }else { |
| | | this.codeClassifyForm.oid = this.selectedFixedOrCodeclassifyValue.attributes.oid; |
| | | editCodeClassifyValue(this.codeClassifyForm).then(() => { |
| | | this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid}) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | //å é¤ç å¼ |
| | | delCodeSecValue(condition){ |
| | | //åºå®ç 段ç å¼å é¤ |
| | | if(condition == 'codefixedsec'){ |
| | | //console.log(this.selectedFixedOrCodeclassifyValue.oid); |
| | | this.$confirm("æ¯å¦å é¤è¿æ¡æ°æ®ï¼å¦æè¢«å¼ç¨å°ä¸è½è¢«å é¤ï¼", { |
| | | confirmButtonText: "ç¡®å®", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | let ts = new Date(this.selectedFixedOrCodeclassifyValue.ts).getTime(); |
| | | return deleteCodeFixedValue({"oid": this.selectedFixedOrCodeclassifyValue.oid,"ts": ts}); |
| | | }) |
| | | .then(() => { |
| | | this.selectedFixedOrCodeclassifyValue = ''; |
| | | this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid}) |
| | | this.clearFixedOrClassifyForm('codefixedsec'); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }); |
| | | }else{ |
| | | //åç±»ç æ®µç å¼å é¤ |
| | | this.$confirm("æ¯å¦å é¤è¿æ¡æ°æ®ï¼å¦æè¢«å¼ç¨å°ä¸è½è¢«å é¤ï¼", { |
| | | confirmButtonText: "ç¡®å®", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | let ts = new Date(this.selectedFixedOrCodeclassifyValue.ts).getTime(); |
| | | return deleteCodeClassifyValue({"oid": this.selectedFixedOrCodeclassifyValue.oid,"ts": ts}); |
| | | }) |
| | | .then(() => { |
| | | this.selectedFixedOrCodeclassifyValue = ''; |
| | | this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid}) |
| | | this.clearFixedOrClassifyForm('codeclassifyvalue'); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | //对åºå®ç å¼è¡¨è¿è¡ï¼ä¸ç§»ãä¸ç§»ãç§»é¤æä½ |
| | | codeFixedValueOpetion(condition,row){ |
| | | //console.log(this.fixedValueData[row.$index].orderNum); |
| | | const index = row.$index; |
| | | if(condition == 'up'){ |
| | | //对ordeNumæåºå段è¿è¡è°æ´ |
| | | this.fixedValueData[index].orderNum = this.fixedValueData[index].orderNum-1 |
| | | this.fixedValueData[index-1].orderNum = this.fixedValueData[index].orderNum+1 |
| | | //å½ä¸æ åå»1å°äº0æè
orderNumåæ®µåå»1å°äº0çæ¶å䏿§è¡ä¸ç§»æä½ |
| | | if(index-1<0 || this.fixedValueData[row.$index].orderNum-1<0){ |
| | | return; |
| | | } |
| | | //è°æ´æ°ç»å¼é¡ºåº |
| | | let tempOption = this.fixedValueData[index-1]; |
| | | this.$set(this.fixedValueData, index - 1, this.fixedValueData[index]) |
| | | this.$set(this.fixedValueData, index , tempOption) |
| | | |
| | | //console.log(this.fixedValueData); |
| | | }else if(condition == 'down'){ |
| | | //对ordeNumæåºå段è¿è¡è°æ´ |
| | | this.fixedValueData[index].orderNum = this.fixedValueData[index].orderNum+1 |
| | | this.fixedValueData[index+1].orderNum = this.fixedValueData[index].orderNum-1 |
| | | //è°æ´æ°ç»å¼é¡ºåº |
| | | let tempOption = this.fixedValueData[index+1]; |
| | | this.$set(this.fixedValueData, index + 1, this.fixedValueData[index]); |
| | | this.$set(this.fixedValueData, index, tempOption) |
| | | }else { |
| | | for(let i=index+1; i<this.fixedValueData.length-1; i++){ |
| | | //console.log(this.fixedValueData[i].orderNum); |
| | | this.fixedValueData[i].orderNum = this.fixedValueData[i].orderNum-1; |
| | | //console.log(this.fixedValueData[i].orderNum); |
| | | } |
| | | this.$delete(this.fixedValueData, index); |
| | | } |
| | | //console.log(this.fixedValueData); |
| | | }, |
| | | //对åç±»ç å¼è¡¨è¿è¡ï¼ä¸ç§»ãä¸ç§»ãç§»é¤æä½ |
| | | codeClassifyValueOpetion(condition){ |
| | | //æ¤å¤æ¶åå°æ·±æµ
æ·è´é®é¢ï¼ä½æ¯æ§è¡ä¸ä¸ç§»ä¿åæä½ä¹åä¼éæ°å è½½treedataï¼æä»¥å½±åä¸å¤§ |
| | | let currentTreeList = this.getCodeClassifyValueTreeData(); |
| | | let saveData = []; |
| | | console.log(currentTreeList.treeList); |
| | | if(condition == 'up'){ |
| | | if(currentTreeList.index-1>=0){ |
| | | // è°æ´é¡ºåº |
| | | saveData[0] = currentTreeList.treeList[currentTreeList.index].attributes; |
| | | saveData[1] = currentTreeList.treeList[currentTreeList.index-1].attributes; |
| | | saveData[0].orderNum = parseInt(saveData[0].orderNum)-1; |
| | | saveData[1].orderNum = parseInt(saveData[1].orderNum)+1; |
| | | this.saveCodeFixedOrClassifyValueOption('classifyValue',saveData); |
| | | } |
| | | }else{ |
| | | if(currentTreeList.index+1<currentTreeList.treeList.length){ |
| | | // è°æ´é¡ºåº |
| | | saveData[0] = currentTreeList.treeList[currentTreeList.index].attributes; |
| | | saveData[1] = currentTreeList.treeList[currentTreeList.index+1].attributes; |
| | | saveData[0].orderNum = parseInt(saveData[0].orderNum)+1; |
| | | saveData[1].orderNum = parseInt(saveData[1].orderNum)-1; |
| | | this.saveCodeFixedOrClassifyValueOption('classifyValue',saveData); |
| | | } |
| | | } |
| | | console.log(saveData); |
| | | console.log(this.classifyValueTreeData); |
| | | }, |
| | | //éä¸è¢«è°æ´é¡ºåºç两个æ çèç¹ |
| | | getCodeClassifyValueTreeData(){ |
| | | const currentNodeTreeData = this.selectedFixedOrCodeclassifyValue; |
| | | /**èèå ç§æ
åµï¼ç¬¬ä¸ç§å½åä¸ç§»|ä¸ç§»æä½å·²ç»æ¯è¾¹çï¼ |
| | | ä¸éè¦è¦åå¤çï¼ç¬¬äºç§å½åä¸ºæ æ ¹èç¹ï¼ç¬¬ä¸ç§å½å为å¶åèç¹ |
| | | */ |
| | | //è¯´ææ¯æ ¹èç¹ï¼ç´æ¥æ¾å夿æ¯å¦æ¯è¾¹çå¼ |
| | | if(currentNodeTreeData.parentId.trim() == ''){ |
| | | return this.findTreeIndex(this.classifyValueTreeData,currentNodeTreeData.oid,true); |
| | | }else{ |
| | | //说æä¸æ¯æ ¹èç¹,å
æ¾å°ç¶èç¹åæ¾å°åèç¹,夿æ¯å¦æ¯è¾¹çå¼ |
| | | return this.findTreeIndex(this.classifyValueTreeData,currentNodeTreeData.parentId,false); |
| | | } |
| | | }, |
| | | /** |
| | | * æ¾åä¸ä¸ªååä¸ä¸ªå
ç´ |
| | | * @treeList æ¥æ¾çæ°ç» |
| | | * @conditionOid ç¨æ¥æ¥æ¾å¤æçæ¡ä»¶ |
| | | * @isTreeRoot æ¯å¦ç¶èç¹ |
| | | * @rreturn è¿åç¸é»çèç¹ |
| | | */ |
| | | findTreeIndex(treeList,conditionOid,isTreeRoot){ |
| | | for(let index=0;index<treeList.length;index++){ |
| | | if(treeList[index].oid==conditionOid){ |
| | | if(isTreeRoot){ |
| | | let resData = { |
| | | "index":index, |
| | | "treeList":treeList, |
| | | } |
| | | return resData; |
| | | }else{ |
| | | return this.findTreeIndex(this.classifyValueTreeData[index].children,this.selectedFixedOrCodeclassifyValue.oid,true); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | //ä¸ç§»ä¸ç§»çæä½çä¿å |
| | | saveCodeFixedOrClassifyValueOption(condition,editOrderNumdata){ |
| | | //ä¿å对åºå®ç 段ç å¼çä¸ç§»ä¸ç§»ç§»åºçæä½ |
| | | if(condition == "fixedValue"){ |
| | | let data = { |
| | | "codeFixedSecOid": this.codefixedsecOrCodeclassifysecOid, |
| | | "dtoList": JSON.stringify(this.fixedValueData), |
| | | } |
| | | saveOrder(data).then(() => { |
| | | //æ§è¡å®ä¿åä¹åå°å½åéä¸ç对象æ¸
空 |
| | | this.selectedFixedOrCodeclassifyValue = ''; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "ä¿åæå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | }else { |
| | | //ä¿å对åç±»ç å¼ç 段ç å¼çä¸ç§»ä¸ç§»ç§»åºçæä½ |
| | | saveCodeClassifyValueOrder({ |
| | | "codeClassifySecOid": this.codefixedsecOrCodeclassifysecOid, |
| | | "dtoList": JSON.stringify(editOrderNumdata), |
| | | }).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "ä¿åæå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid}); |
| | | } |
| | | |
| | | }, |
| | | //åç±»ç 弿 dataå è½½ |
| | | loadClassifyValueData(row){ |
| | | //console.log(row); |
| | | let condtionData = { |
| | | "queryAllLevel": true, |
| | | "loadType": "all", |
| | | "multipleSelect": false, |
| | | "isMuti": false, |
| | | "isQueryAllColumn": true, |
| | | 'conditionMap[codeclassifysecoid]':row.oid, |
| | | }; |
| | | treeCodeClassifyValue(condtionData).then( res=> { |
| | | this.classifyValueTreeData = res.data; |
| | | //console.log(res.data); |
| | | }); |
| | | }, |
| | | //åç±»ç 弿 å廿¶è§¦åçäºä»¶ |
| | | classisyValueTreeOnodeClick(node){ |
| | | //console.log(node); |
| | | this.selectedFixedOrCodeclassifyValue = node; |
| | | this.codeClassifyForm.codeClassifySecOid = node.attributes.codeClassifySecOid; |
| | | this.codeClassifyForm.id = node.attributes.id; |
| | | this.codeClassifyForm.name = node.attributes.name; |
| | | this.codeClassifyForm.parentClassifyValueOid = node.attributes.oid; |
| | | //console.log(this.codeClassifyForm); |
| | | }, |
| | | |
| | | |
| | | /** åºç¡ç 段ç¸å
³æ¹æ³ */ |
| | | //鲿¢æå¼è¿ç¼è¾çªå£ä¹å表åä¸åå¨å¼ï¼æä»¥éè¦æ¸
空,å¹¶åå§åform表å屿§ |
| | | clearBasicAddForm(){ |
| | | this.form = this.$options.data().form;; |
| | | // this.changeSectypeFormItems(null); |
| | | }, |
| | | // æå¼æ°å¢çªå£ |
| | | addBasicCodeSec(){ |
| | | if(!this.tipsMessage(this.selectionList)){ |
| | |
| | | this.$message.warning('ç¼ç è§åç¶æä¸æ¯"ç¼è¾ä¸"ï¼ä¸å
许ç¼è¾ç 段!'); |
| | | return; |
| | | } |
| | | this.addBasicCodeSettingBox = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.addBasicChild.loadCodeSecType(); |
| | | }) |
| | | this.openBasicDialog('add',null); |
| | | this.loadCodeSecType(); |
| | | }, |
| | | // æ°å¢åºç¡ç 段 |
| | | saveBasicCode(){ |
| | | if(this.selectionList[0].oid == null){ |
| | | this.$message.warning('缺失å¿
è¦åæ°ï¼è¯·éæ°éæ©ç¼ç è§ååéè¯!'); |
| | | //æå¼æ°å¢æç¼è¾åºç¡ç æ®µå¯¹è¯æ¡ |
| | | openBasicDialog(condition,row){ |
| | | //console.log(row); |
| | | if(condition == 'add') { |
| | | this.basicSecDialogTitle = 'æ·»å ç æ®µä¿¡æ¯'; |
| | | this.showbtn = true; |
| | | this.basicSecOnlyRead = false; |
| | | }else if(condition == 'edit'){ |
| | | if(this.selectionList.length!=1){ |
| | | this.$message.warning('è¯·éæ©ä¸æ¡ç¼ç è§åæ°æ®!'); |
| | | return; |
| | | } |
| | | this.$refs.addBasicChild.addSave(this.selectionList[0].oid); |
| | | // å
³éçªå£ |
| | | this.basicSecDialogTitle = 'ä¿®æ¹ç 段信æ¯'; |
| | | this.showbtn = true; |
| | | this.basicSecOnlyRead = false; |
| | | //为formç»å®å¼ |
| | | }else{ |
| | | this.basicSecDialogTitle = 'æ¥çç æ®µä¿¡æ¯'; |
| | | this.showbtn = false; |
| | | this.basicSecOnlyRead = true; |
| | | } |
| | | //console.log(this.form); |
| | | this.changeSectypeFormItems(condition == 'add' ? null:row); |
| | | this.addBasicCodeSettingBox = true; |
| | | }, |
| | | // æ°å¢åºç¡ç 段 |
| | | saveOrEditBasicCode(){ |
| | | if(this.selectionList[0].oid == null || this.selectionList[0].oid == ''){ |
| | | this.$message.warning('缺失å¿
è¦åæ°ï¼è¯·éæ°éæ©ç¼ç è§åååè¯!'); |
| | | return; |
| | | } |
| | | this.form.pkCodeRule = this.selectionList[0].oid; |
| | | if(this.form.oid == '' || this.form.oid == null){ |
| | | if(this.checkForm()){ |
| | | addSave(this.form).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | // å
³éå¯¹è¯æ¡ |
| | | this.addBasicCodeSettingBox = false |
| | | // ç¹å»æ°å¢åºç¡ç 段ä¹åå
³éçªå£ä¹å触åéæ°å è½½ |
| | | } |
| | | |
| | | }else{ |
| | | editSave(this.form).then(() => { |
| | | // å
³éå¯¹è¯æ¡ |
| | | this.addBasicCodeSettingBox = false |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | } |
| | | // ç¹å»æ°å¢åºç¡ç 段,å
³éçªå£ä¹å触åéæ°å è½½ |
| | | this.loadBasic(this.selectionList[0]); |
| | | }, |
| | | // å 为elementuiçè¡¨åæ ¡éªè®¾ç½®ä¸ä¸æä»¥éç¨å¤æçæ¹å¼æ¥åè¡¨åæ£éªæ¹å¼ |
| | | checkForm(){ |
| | | let form = this.form; |
| | | //console.log(form); |
| | | const regNumber = /^[0-9]+\.{0,1}[0-9]*$/; //æ°åæå°æ°æ£åæ ¡éª |
| | | const tipsMsg = "å¿
填项ä¸è½ä¸ºç©º"; |
| | | if(form.id == ''){ |
| | | this.$message.warning("(ç æ®µç¼å·)"+tipsMsg); |
| | | this.$refs.id.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.name == ''){ |
| | | this.$message.warning("(ç æ®µåç§°)"+tipsMsg); |
| | | this.$refs.name.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.secType == ''){ |
| | | this.$message.warning("(ç æ®µç±»å)"+tipsMsg); |
| | | this.$refs.secType.$el.querySelector('select').focus(); |
| | | return false; |
| | | } |
| | | if(form.secType==='codefixedsec'){ |
| | | //åºå®ç 段 |
| | | if(form.codeSecLengthType == ''){ |
| | | this.$message.warning("(ç æ®µé¿åº¦ç±»å)"+tipsMsg); |
| | | this.$refs.codeSecLengthType.$el.querySelector('select').focus(); |
| | | return false; |
| | | } |
| | | if(form.codeSecLength == ''){ |
| | | this.$message.warning("(ç æ®µé¿åº¦)"+tipsMsg); |
| | | this.$refs.codeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeSecLength)){ |
| | | this.$message.warning("ç æ®µçé¿åº¦å¿
须为æ°åå¼"); |
| | | this.$refs.codeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codeattrsec'){ |
| | | //屿§ç 段 |
| | | if(form.referAttributeId == ''){ |
| | | this.$message.warning('(屿§)'+tipsMsg); |
| | | this.$refs.referAttributeId.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codeserialsec'){ |
| | | console.log(form.codeFillType); |
| | | //æµæ°´ç 段 |
| | | if(form.codeSecLength == ''){ |
| | | this.$message.warning('(ç æ®µçé¿åº¦)'+tipsMsg); |
| | | this.$refs.seriaCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeSecLength)){ |
| | | this.$message.warning('ç æ®µçé¿åº¦å¿
须为æ°åå¼'); |
| | | this.$refs.seriaCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.serialStart)){ |
| | | this.$message.warning('æµæ°´å·çèµ·å§å¼å¿
须为æ°åå¼'); |
| | | this.$refs.serialStart.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.serialStep)){ |
| | | this.$message.warning('æµæ°´çæ¥é¿å¿
须为æ°åå¼'); |
| | | this.$refs.serialStep.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.codeFillType == ''){ |
| | | this.$message.warning('(ç¼ç è¡¥ä½æ¹å¼)'+tipsMsg); |
| | | return false; |
| | | } |
| | | if(form.codeFillType != 'ä¸è¡¥ä½' && form.codeFillSeparatorSelect == ''){ |
| | | this.$message.warning('å½è¡¥ä½æ¹å¼ä¸ºå·¦è¡¥ä½æè
å³è¡¥ä½çæ¶åï¼è¡¥ä½å符ä¸è½ä¸ºç©º'); |
| | | return false; |
| | | } |
| | | if(form.codeFillLength == ''){ |
| | | this.$message.warning('å¡«å
é¿åº¦ä¸è½ä¸ºç©º'); |
| | | this.$refs.codeFillLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeFillLength)){ |
| | | this.$message.warning('å¡«å
é¿åº¦å¿
须为æ°åå¼'); |
| | | this.$refs.codeFillLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.codeFillLimit == ''){ |
| | | this.$message.warning('(æµæ°´ä¸é)'+tipsMsg); |
| | | this.$refs.codeFillLimit.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeFillLimit)){ |
| | | this.$message.warning('æµæ°´ä¸éå¿
须为æ°åå¼'); |
| | | this.$refs.codeFillLimit.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.codeFillFlag == ''){ |
| | | this.$message.warning('(æµæ°´æ¯å¦è¡¥ç )'+tipsMsg); |
| | | this.$refs.switch.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codelevelsec'){ |
| | | //å±çº§ç 段 |
| | | if(form.codeLevelType == ''){ |
| | | this.$message.warning('(å±çº§ç±»å)'+tipsMsg); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeLevelValue)){ |
| | | this.$message.warning('å±çº§çå¼)åªè½å¡«åæ°å'); |
| | | this.$refs.codeLevelValue.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.valueCutType == ''){ |
| | | this.$message.warning('(å符æªåç±»å)'+tipsMsg); |
| | | this.$refs.valueCutType.$el.querySelector('select').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='coderefersec'){ |
| | | //å¼ç¨ç 段 |
| | | if(form.referBtmId == ''){ |
| | | this.$message.warning('(åç
§å¼ç¨çä¸å¡ç±»å)'+tipsMsg); |
| | | this.$refs.referBtmId.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.referConfig == ''){ |
| | | this.$message.warning('(åç
§é
ç½®)'+tipsMsg); |
| | | this.$refs.referConfig.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codedatesec'){ |
| | | //æ¥æç æ®µ |
| | | if(form.codeDateFormatStr == ''){ |
| | | this.$message.warning('(æ¥ææ ¼å¼)'+tipsMsg); |
| | | this.$refs.codeDateFormatStr.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codeclassifysec'){ |
| | | //åç±»ç æ®µ |
| | | if(form.codeSecLengthType == ''){ |
| | | this.$message.warning('(ç æ®µé¿åº¦ç±»å)'+tipsMsg); |
| | | return false; |
| | | } |
| | | if(form.codeSecLength == ''){ |
| | | this.$message.warning('(ç æ®µé¿åº¦)'+tipsMsg); |
| | | this.$refs.classCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeSecLength)){ |
| | | this.$message.warning('ç æ®µçé¿åº¦å¿
须为æ°åå¼'); |
| | | this.$refs.classCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | }else if(this.form.secType==='codevariablesec'){ |
| | | //å¯åç æ®µ |
| | | if(form.codeSecLength == ''){ |
| | | this.$message.warning('(ç æ®µé¿åº¦)'+tipsMsg); |
| | | this.$refs.varCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(!regNumber.test(form.codeSecLength)){ |
| | | this.$message.warning('ç æ®µçé¿åº¦å¿
须为æ°åå¼'); |
| | | this.$refs.classCodeSecLength.$el.querySelector('input').focus(); |
| | | return false; |
| | | } |
| | | if(form.codeFillType == ''){ |
| | | this.$message.warning('(ç¼ç è¡¥ä½æ¹å¼)'+tipsMsg); |
| | | return false; |
| | | } |
| | | if(form.codeFillType != 'ä¸è¡¥ä½' && form.codeFillSeparatorSelect == ''){ |
| | | this.$message.warning('å½è¡¥ä½æ¹å¼ä¸ºå·¦è¡¥ä½æè
å³è¡¥ä½çæ¶åï¼è¡¥ä½å符ä¸è½ä¸ºç©º'); |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | }, |
| | | // å¤ææ°æ®æ¯å¦éæ©ä»¥ååªè½éæ©åæ¡æ°æ® |
| | | tipsMessage(list){ |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | let ts = this.selectionBasicList[0].ts; |
| | | let ts = new Date(this.selectionBasicList[0].ts).getTime(); |
| | | return deleteData({"oid": oid,"ts": ts}); |
| | | }) |
| | | .then(() => { |
| | | this.loadBasic({"oid":this.currentCodeRuleOid == null ? this.selectionList[0].oid:this.currentCodeRuleOid}); |
| | | this.loadBasic({"oid":this.currentCodeRuleOid == null || this.currentCodeRuleOid == '' ? this.selectionList[0].oid:this.currentCodeRuleOid}); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | //this.$refs.crud.toggleSelection(); |
| | | this.$refs.crudBasic.toggleSelection(); |
| | | }); |
| | | }, |
| | | // ç¹å»è§¦åå è½½åºç¡ç æ®µä¿¡æ¯ |
| | | loadBasic(row){ |
| | | if(this.cloneSettingBox){ |
| | | this.cloneTableLoading = true; |
| | | }else{ |
| | | this.loadingBasic = true; |
| | | } |
| | | //console.log(row.oid); |
| | | //åå¨å½åå
³èçç¼ç è§åç¸å
³ä¿¡æ¯ |
| | | this.currentCodeRuleOid = row.oid; |
| | | this.currentRuleLcStatus = row.lcStatus; |
| | | gridCodeBasicSec(1, -1, {"pkCodeRule":row.oid}).then(res => { |
| | | const data = res.data.data; |
| | | // console.log(data); |
| | | if(this.cloneSettingBox){ |
| | | this.cloneData = data.records; |
| | | // console.log(tihs.cloneData); |
| | | this.cloneTableLoading = false; |
| | | }else { |
| | | this.basicData = data.records; |
| | | //console.log(this.basicData); |
| | | this.loadingBasic = false; |
| | | } |
| | | }); |
| | | }, |
| | | // åºç¡ç 段é䏿¶è§¦å |
| | |
| | | }, |
| | | //åºç¡ç 段æ¥è¯¢ |
| | | refreshChangeBasicSec(){ |
| | | this.loadBasic({"oid":this.currentCodeRuleOid == null ? this.selectionList[0].oid:this.currentCodeRuleOid}); |
| | | this.loadBasic({"oid":this.currentCodeRuleOid == null || this.currentCodeRuleOid == '' ? this.selectionList[0].oid:this.currentCodeRuleOid}); |
| | | }, |
| | | |
| | | |
| | | /** ç¼ç è§åç¸å
³æ¹æ³ */ |
| | | // æ¥è¯¢ä½¿ç¨èå´ |
| | | handleRange(){ |
| | | if(!this.tipsMessage(this.selectionList)){ |
| | |
| | | this.codeRangeSettingBox = true; |
| | | this.getRangeCodeList() |
| | | }, |
| | | //å 载使ç¨èå´å表 |
| | | getRangeCodeList(){ |
| | | this.dialogLoading = true; |
| | | if(this.selectionList[0].oid==null){ |
| | |
| | | this.dialogLoading = false; |
| | | }); |
| | | }, |
| | | //å·æ°ä½¿ç¨èå´å表 |
| | | refreshUseRangeChange(){ |
| | | this.getRangeCodeList(); |
| | | }, |
| | | //åå»ç¼ç è§åå®ç°è¡éæ© |
| | | codeRuleRowClick (row) { |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | this.loadBasic(row); |
| | | }, |
| | | // å¯ç¨ä¸åç¨ |
| | | enableOrDeactivatse(oId,update){ |
| | |
| | | window.console.log(error); |
| | | }); |
| | | }, |
| | | // å
é |
| | | cloneCodeSetting() { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("è¯·éæ©è³å°ä¸æ¡æ°æ®!"); |
| | | // æå¼ç¼ç è§åå
éå¯¹è¯æ¡ |
| | | openCodeRuleDialog() { |
| | | if (!this.tipsMessage(this.selectionList)) { |
| | | return; |
| | | } |
| | | if (this.selectionList.length > 1) { |
| | | this.cloneSettingBox = true; |
| | | this.cloneCodeRuleForm.id = this.selectionList[0].id; |
| | | this.cloneCodeRuleForm.name = this.selectionList[0].name; |
| | | this.cloneCodeRuleForm.description = this.selectionList[0].description; |
| | | this.loadBasic({"oid": this.selectionList[0].oid}); |
| | | }, |
| | | // å
éç¼ç è§åä¿ååè½ |
| | | saveCloneCodeRule(){ |
| | | let form = this.cloneCodeRuleForm; |
| | | if(form.id.trim()==''){ |
| | | this.$message.warning("ç¼å·ä¸è½ä¸ºç©º!"); |
| | | return; |
| | | } |
| | | if(form.name.trim()==''){ |
| | | this.$message.warning("ç å¼ä¸è½ä¸ºç©º!"); |
| | | return; |
| | | } |
| | | this.selectionList[0].oid = ''; |
| | | this.selectionList[0].id = form.id; |
| | | this.selectionList[0].name = form.name; |
| | | this.selectionList[0].description = form.description; |
| | | this.selectionList[0].createTime = new Date().getTime(); |
| | | this.selectionList[0].ts = new Date(this.selectionList[0].ts).getTime(); |
| | | this.selectionList[0].lcStatus = 'Editing'; |
| | | let data = Object.assign({}, this.selectionList[0],{elements:this.cloneData}); |
| | | clone(data).then(() => { |
| | | this.cloneSettingBox = false; |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | //console.log(data); |
| | | }, |
| | | // æå¼ä»å
¶ä»ç¼ç è§åä¸å
éç æ®µå¯¹è¯æ¡ |
| | | openOtherCodeRuleDialog(){ |
| | | if (!this.tipsMessage(this.selectionList)) { |
| | | return; |
| | | } |
| | | if(this.selectionList[0].lcStatus != 'Editing'){ |
| | | this.$message.warning("ç¼ç è§å已被å¼ç¨ï¼ä¸å
许ç¼è¾æå é¤!"); |
| | | return; |
| | | } |
| | | this.cloneOtherCodeRuleSettingBox = true; |
| | | }, |
| | | //åå»ç¼ç è§åå®ç°è¡éæ© |
| | | codeOtherCloneRuleRowClick (row) { |
| | | this.loadBasic(row); |
| | | }, |
| | | // ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | selectionOtherCloneCodeRuleChange(list) { |
| | | //console.log(list); |
| | | this.selectionOtherCloneCodeRuleList = list; |
| | | if(this.selectionOtherCloneCodeRuleList.length > 0){ |
| | | this.loadBasic(this.selectionOtherCloneCodeRuleList[list.length-1]); |
| | | } |
| | | }, |
| | | selectionOtherCloneCodeBasicChange(list){ |
| | | this.selectionOtherCloneCodeBasicList = list; |
| | | }, |
| | | // ä»å
¶ä»ç¼ç è§åä¸å
éç æ®µä¿¡æ¯ |
| | | saveOtherCodeBasic(){ |
| | | let oid = this.selectionList[0].oid; |
| | | let fromDialogPkCodebasic = this.selectionOtherCloneCodeBasicList; |
| | | if(fromDialogPkCodebasic.length < 0){ |
| | | this.$message.warning("è¯·éæ©ç æ®µæ°æ®!"); |
| | | return; |
| | | } |
| | | let res = fromDialogPkCodebasic.filter((item) => { |
| | | return item.pkCodeRule == oid; |
| | | }); |
| | | if(res != ''){ |
| | | this.$message.warning("éè¦å
éçç¼ç è§åä¸è¢«å
éçç¼ç è§åç¸å!"); |
| | | return; |
| | | } |
| | | //console.log(res); |
| | | let oidArr = ''; |
| | | fromDialogPkCodebasic.forEach((item) =>{ |
| | | oidArr = oidArr+","+item.oid; |
| | | }) |
| | | let data = { |
| | | "pkCodeRule": oid, |
| | | "oidArr": oidArr, |
| | | } |
| | | //console.log(data); |
| | | cloneCodeBasic(data).then(() => { |
| | | this.cloneOtherCodeRuleSettingBox = false; |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | | }, |
| | | // æ¸
空ç å¼ |
| | | clearAllCodeSec(){ |
| | | if(this.selectionList.length == 0){ |
| | | this.$message.warning("没æéæ©æ°æ®!"); |
| | | return; |
| | | } |
| | | if(this.selectionList.length != 1){ |
| | | this.$message.warning("æ¯æ¬¡åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | return; |
| | | } |
| | | localStorage.setItem("cloneOid",this.selectionList[0].oid) |
| | | this.cloneSettingBox = true; |
| | | let currentData = this.selectionList[0]; |
| | | this.$confirm("ç¡®å®è¦æ¸
空ç å¼ï¼å¦ææ¸
空å°ä¸è½è¢«æ¢å¤ï¼è¯·è°¨æ
ï¼", { |
| | | confirmButtonText: "ç¡®å®", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | let ts = new Date(currentData.ts).getTime(); |
| | | return clearAllCode({"oid": currentData.oid,"ts": ts}); |
| | | }) |
| | | .then(() => { |
| | | this. this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // æ·»å |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |
| | |
| | | .then(() => { |
| | | // åªæ¯ææ¯æ¬¡åæ¡è®°å½å é¤ |
| | | let oid = this.selectionList[0].oid; |
| | | let ts = this.selectionList[0].ts; |
| | | let ts = new Date(this.selectionList[0].ts).getTime(); |
| | | return remove({oid: oid,ts: ts}); |
| | | }) |
| | | .then(() => { |
| | |
| | | // æå¼ä¿®æ¹ |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDetail(this.form.oid).then(res => { |
| | | this.form = res.data.data; |
| | | getDetail(this.ruleForm.oid).then(res => { |
| | | this.ruleForm = res.data.data; |
| | | }); |
| | | } |
| | | done(); |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | // ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | //console.log("selectionChange====="+list); |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | if(this.selectionList.length > 0){ |
| | | this.currentCodeRuleOid = this.selectionList [list.length-1]; |
| | | this.currentCodeRuleOid = this.selectionList[list.length-1].oid; |
| | | this.currentRuleLcStatus = this.selectionList[list.length-1].lcStatus; |
| | | //console.log(this.currentRuleLcStatus); |
| | | this.loadBasic(this.selectionList[list.length-1]); |
| | | } |
| | | }, |
| | |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | gridCodeRule(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | //console.log(res); |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.loadBasic(data.records[0]) |
| | | this.selectionClear(); |
| | | this.loadBasic(this.data[0]) |
| | | this.$nextTick(() => { |
| | | //this.$refs.crud.toggleRowSelection(this.data[0]); |
| | | this.$refs.crud.setCurrentRow(this.data[0]); |
| | | }) |
| | | this.selectionList = data.records[0]; |
| | | //this.selectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** 第ä¸å±å¯¹è¯æ¡ç¸å
³æ¹æ³ */ |
| | | // æå¼äºå±å¼¹çªæ¹æ³ |
| | | openAttrSelectOrGetValue(condition){ |
| | | if(condition === 'attr'){ |
| | | this.isShowSelectAttrOption = true; |
| | | }else if(condition === 'value'){ |
| | | //æå¼å
¬å¼ç¼è¾æ¡ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ |
| | | this.$refs.formulaEditor.isShowformulaEdit = true; |
| | | }else if(condition === 'parentClassifySecOid'){ |
| | | this.isShowParentClassifyOption = true; |
| | | }else if(condition === 'referBtmId'){ |
| | | this.isShowSelectReferBtmOption = true; |
| | | }else if(condition === 'referConfig'){ |
| | | //this.$emit('openSelectreferConfig') |
| | | } |
| | | }, |
| | | |
| | | // ç¹å»è¾å
¥æ¡çÃå·ï¼æ¸
空è¾å
¥æ¡ä¸çå
容 |
| | | clearAttrDataByIcon(condition){ |
| | | if(condition === 'attr'){ |
| | | this.form.referAttributeName = ''; |
| | | this.form.referAttributeId = ''; |
| | | this.form.referCodeClassifyOid = ''; |
| | | this.form.referCodeClassifyOidName = ''; |
| | | }else if(condition === 'value'){ |
| | | this.form.getValueClass = ''; |
| | | }else if(condition === 'parentClassifySecOid'){ |
| | | this.form.parentClassifySecOid = ''; |
| | | }else if(condition === 'referBtmId'){ |
| | | this.form.referBtmId = ''; |
| | | }else if(condition === 'referConfig'){ |
| | | this.form.referBtmId = ''; |
| | | } |
| | | }, |
| | | // è¡¥ä½æ¶çå符ï¼å®ç°å¯è¾å¯é |
| | | inputSelectBlur(e){ |
| | | if (e.target.value) { |
| | | this.form.codeFillSeparatorSelect = e.target.value; |
| | | } |
| | | }, |
| | | // ç æ®µç±»åæ¹åæ¶ï¼å¢å 对åºçform表åä¸ç屿§ |
| | | changeSectypeFormItems(row){ |
| | | //console.log(row); |
| | | if(this.sectypeList.length==0){ |
| | | this.loadCodeSecType(); |
| | | } |
| | | if(row != null){ |
| | | this.form = { |
| | | oid: row.oid, |
| | | id: row.id, //ç¼å·, |
| | | name: row.name,//åç§° |
| | | secType: row.secType,//ç æ®µç±»å |
| | | description: row.description,//æè¿° |
| | | serialDependFlag: row.serialDependFlag=='true' ? true:false,//æ¯å¦æµæ°´ä¾èµ |
| | | serialDependOrder: row.serialDependOrder,//æµæ°´ä¾èµé¡ºåº |
| | | nullableFlag: row.nullableFlag=='true' ? true:false,//æ¯å¦ä¸ºç©º |
| | | displayFlag: row.displayFlag=='true' ? true:false, |
| | | componentCodeFlag: row.componentCodeFlag=='true' ? true:false,//æ¯å¦åä¸ç¼ç |
| | | pkCodeRule: row.pkCodeRule, //æå±ç¼ç è§å |
| | | } |
| | | }else { |
| | | this.form = { |
| | | id: this.form.id, //ç¼å· |
| | | name: this.form.name, //åç§° |
| | | secType: this.form.secType, //ç æ®µç±»å |
| | | description: this.form.description, //æè¿° |
| | | serialDependFlag: this.form.serialDependFlag, //æ¯å¦æµæ°´ä¾èµ |
| | | serialDependOrder: this.form.serialDependOrder, //æµæ°´ä¾èµé¡ºåº |
| | | nullableFlag: this.form.nullableFlag, //æ¯å¦ä¸ºç©º |
| | | displayFlag: this.form.displayFlag, // |
| | | componentCodeFlag: this.form.componentCodeFlag, //æ¯å¦åä¸ç¼ç |
| | | pkCodeRule: this.form.pkCodeRule, //æå±ç¼ç è§å |
| | | }; |
| | | //console.log(this.form); |
| | | } |
| | | if(this.form.secType==='codefixedsec'){ |
| | | //åºå®ç 段 |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeSecLength: row!=null&&row.codeSecLength != '' ? row.codeSecLength:'', |
| | | codeSecLengthType: row!=null&&row.codeSecLengthType != '' ? row.codeSecLengthType:'code_sec_length_variable' |
| | | }); |
| | | this.loadCodeSecLength(); |
| | | }else if(this.form.secType==='codeattrsec'){ |
| | | //屿§ç 段 |
| | | this.form = Object.assign({}, this.form, { |
| | | referCodeClassifyOid: row!=null&&row.referCodeClassifyOid != '' ? row.referCodeClassifyOid:'', //屿§id |
| | | referCodeClassifyOidName: row!=null&&row.referCodeClassifyOidName != '' ? row.referCodeClassifyOidName:'', //屿§æå¨åç±» |
| | | referAttributeId: row!=null&&row.referAttributeId != '' ? row.referAttributeId:'', //屿§ç¼å· |
| | | referAttributeName: row!=null&&row.referAttributeName != '' ? row.referAttributeName:'', //屿§ |
| | | getValueClass: row!=null&&row.getValueClass != '' ? row.getValueClass:'' //åå¼è§å |
| | | }); |
| | | }else if(this.form.secType==='codeserialsec'){ |
| | | //æµæ°´ç 段 |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeSecLength: row!=null&&row.codeSecLength != '' ? row.codeSecLength:'', //ç æ®µçé¿åº¦ |
| | | serialStart: row!=null&&row.serialStart != '' ? row.serialStart:1, //æµæ°´å·èµ·å§å¼ |
| | | serialStep: row!=null&&row.serialStep != '' ? row.serialStep:1, //æµæ°´çæ¥é¿ |
| | | codeFillType: row!=null&&row.codeFillType != '' ? row.codeFillType:'code_fill_right', //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparatorSelect: row!=null&&row.codeFillSeparatorSelect != '' ? row.codeFillSeparatorSelect:0, //è¡¥ä½æ¶çå符ï¼éä¸ç䏿æ¡ç䏿 |
| | | codeFillSeparator: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparator:0, //è¡¥ä½æ¶çå符 |
| | | codeFillLength: row!=null&&row.codeFillLength != '' ? row.codeFillLength:'', //å¡«å
é¿åº¦ |
| | | codeFillLimit: row!=null&&row.codeFillLimit != '' ? row.codeFillLimit:'', //æµæ°´ä¸é |
| | | codeFillFlag: row!=null&&row.codeFillFlag != '' ? row.codeFillFlag=='true' ? true:false :false, //æµæ°´æ¯å¦è¡¥ç |
| | | customCodeSerialClass: row!=null&&row.customCodeSerialClass != '' ? row.customCodeSerialClass:'', //èªå®ä¹æµæ°´ç®æ³ |
| | | }); |
| | | this.loadCodeFillType(); |
| | | this.loadCodeFillSeparator(); |
| | | }else if(this.form.secType==='codelevelsec'){ |
| | | //å±çº§ç 段 |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeLevelType: row!=null&&row.codeLevelType != '' ? row.codeLevelType:'code_level_min', //å±çº§ç±»å æä¸¾æ¥è¯¢ |
| | | codeLevelValue: row!=null&&row.codeLevelValue != '' ? row.codeLevelValue:'', //å±çº§çå¼ |
| | | valueCutType: row!=null&&row.valueCutType != '' ? row.valueCutType:'code_cut_none', //å符æªåç±»å æä¸¾æ¥è¯¢ |
| | | valueCutLength: row!=null&&row.valueCutLength != '' ? row.valueCutLength:'', // |
| | | codeGetValueType: row!=null&&row.codeGetValueType != '' ? row.codeGetValueType:'code_get_value_all_up', //åå¼ç±»å æä¸¾æ¥è¯¢ |
| | | }); |
| | | this.loadCodeLevelType(); |
| | | this.loadCodeCutType(); |
| | | this.loadCodeGetValueType(); |
| | | }else if(this.form.secType==='coderefersec'){ |
| | | //å¼ç¨ç 段 |
| | | this.form = Object.assign({}, this.form,{ |
| | | referBtmId: row!=null&&row.referBtmId != '' ? row.referBtmId:'', //åç
§å¼ç¨çä¸å¡ç±»åï¼çid |
| | | referBtmName: row!=null&&row.referBtmName != '' ? row.referBtmName:'', //åç
§å¼ç¨çä¸å¡ç±»å |
| | | referConfig: row!=null&&row.referConfig != '' ? row.referConfig:'', //åç
§é
ç½® |
| | | }); |
| | | }else if(this.form.secType==='codedatesec'){ |
| | | //æ¥æç æ®µ |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeDateFormatStr: row!=null&&row.codeDateFormatStr != '' ? row.codeDateFormatStr:'', //æ¥ææ ¼å¼ |
| | | }); |
| | | }else if(this.form.secType==='codeclassifysec'){ |
| | | //console.log(this.form); |
| | | //åç±»ç æ®µ |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeSecLengthType: row!=null&&row.codeSecLengthType != '' ? row.codeSecLengthType:'code_sec_length_variable', //ç æ®µé¿åº¦ç±»å |
| | | codeSecLength: row!=null&&row.codeSecLength != '' ? row.codeSecLength:'', //ç æ®µçé¿åº¦ |
| | | matchClassifyValueFlag: row!=null&&row.matchClassifyValueFlag != '' ? row.matchClassifyValueFlag=='true' ? true:false :false, //æ¯å¦èªå¨å¹é
å¼ |
| | | parentClassifySecOid: row!=null&&row.parentClassifySecOid != '' ? row.parentClassifySecOid:'', //ç¶åç±»ç æ®µéä¸çid |
| | | parentClassifySecText: row!=null&&row.parentClassifySecText != '' ? row.parentClassifySecText:'', //ç¶åç±»ç æ®µ |
| | | }); |
| | | this.loadCodeSecLength(); |
| | | }else if(this.form.secType==='codevariablesec'){ |
| | | //å¯åç æ®µ |
| | | this.form = Object.assign({}, this.form,{ |
| | | codeSecLength: row!=null&&row.codeSecLength != '' ? row.codeSecLength:'', //ç æ®µçé¿åº¦ |
| | | codeFillType: row!=null&&row.codeFillType != '' ? row.codeFillType:'code_fill_right', //ç¼ç é¨ä½æ¹å¼ï¼æä¸¾æ¥è¯¢ |
| | | codeFillSeparatorSelect: row!=null&&row.codeFillSeparatorSelect != '' ? row.codeFillSeparatorSelect:0, //éä¸çè¡¥ä½æ¶çå符ç䏿 |
| | | codeFillSeparator: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparator:'', //è¡¥ä½æ¶çå符ï¼å¯è¾å¯éæ¥è¯¢ |
| | | }); |
| | | this.loadCodeFillType(); |
| | | this.loadCodeFillSeparator(); |
| | | } |
| | | // console.log(this.form); |
| | | }, |
| | | //æä¸¾åå¯è¾å¯éå
容æ¥è¯¢ |
| | | loadCodeSecType(){ |
| | | getDictionary({code: "codeBasicSecType"}).then(res=>{ |
| | | this.sectypeList = res.data.data; |
| | | }) |
| | | this.loadCodeSecLength(); |
| | | //console.log(this.sectypeList); |
| | | }, |
| | | loadCodeSecLength(){ |
| | | getDictionary({code: "codeSecLength"}).then(res=>{ |
| | | this.codeSecLengthType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeFillType(){ |
| | | getDictionary({code: "codeFillType"}).then(res=>{ |
| | | this.codeFillType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeFillSeparator(){ |
| | | getDictionary({code: "codeFillSeparator"}).then(res=>{ |
| | | this.codeFillSeparator = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeLevelType(){ |
| | | getDictionary({code: "codeLevelType"}).then(res=>{ |
| | | this.codeLevelType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeCutType(){ |
| | | getDictionary({code: "codeCutType"}).then(res=>{ |
| | | this.codeCutType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeGetValueType(){ |
| | | getDictionary({code: "codeGetValueType"}).then(res=>{ |
| | | this.codeGetValueType = res.data.data; |
| | | //console.log(this.codeGetValueType); |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | |
| | | </script> |
| | | |
| | | <style> |
| | | <style scope> |
| | | |
| | | .code-rule-crud > .avue-crud__search ,.code-basic-crud > .avue-crud__search { |
| | | margin-bottom: -15px; |
| | | } |
| | | |
| | | .code-rule-crud > .avue-crud__pagination { |
| | | padding: 14px 0 2px 20px; |
| | | } |
| | | |
| | | |
| | | .clone-input-textarea > .el-form-item__content { |
| | | width: 495px; |
| | | } |
| | | |
| | | .clone-avue-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | | .fixed-avue-crud > .el-card> .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | | .other-clone-codebasic-crud > .el-card> .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | | .other-clone-coderule-crud > .el-card> .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | | .el-table--small .el-table__cell { |
| | | padding: 3px 0; |
| | | } |
| | | |
| | | .classify_value_box > .el-scrollbar { |
| | | height: 95%; |
| | | } |
| | | |
| | | .basic-container > .el-card > .el-card__body { |
| | | margin: -10px 0; |
| | | } |
| | | .code-basicsec-container{ |
| | | padding: 1px 6px; |
| | | } |
| | | |
| | | .el-divider--horizontal { |
| | | margin-top: 19px !important; |
| | | margin-bottom: -20px !important; |
| | | height: 2px; |
| | | margin: 0; |
| | | position: fixed; |
| | | width: 57.5vw; |
| | | } |
| | | |
| | | .el-card__body > .abox { |
| | |
| | | width:60px; |
| | | } |
| | | |
| | | .formula-editor{ |
| | | |
| | | .el-input-number { |
| | | width: 120px; |
| | | } |
| | | |
| | | .el-input-number >.el-input > .el-input__inner { |
| | | width:120px; |
| | | } |
| | | |
| | | .el-col>.el-card > .el-card__header { |
| | | background: rgb(213 231 239); |
| | | border-radius: inherit; |
| | | } |
| | | |
| | | /** æ°å¢ç 段 */ |
| | | .total{ |
| | | height: 500px; |
| | | width: 100%; |
| | | } |
| | | |
| | | .total .el-input__inner,.total .el-textarea__inner { |
| | | width: 220px; |
| | | } |
| | | |
| | | .el-divider--vertical { |
| | | width: 2px; |
| | | height: 72vh; |
| | | margin: 0 5px; |
| | | position: fixed; |
| | | } |
| | | |
| | | .left { |
| | | float: left; |
| | | width: 49%; |
| | | } |
| | | .right { |
| | | float: right; |
| | | margin-right: 2.5vw; |
| | | /* width: 40%; */ |
| | | } |
| | | .right > .el-form > .el-form-item{ |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | |
| | | </style> |
| | |
| | | update, getPage |
| | | } from "@/api/omd/OmdAttribute"; |
| | | |
| | | import { getDictionary } from "@/api/omd/dict"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | |
| | | export default { |
| | | name: "original", |
| | |
| | | add, |
| | | getDict, |
| | | getDictTree |
| | | } from "@/api/omd/dict"; |
| | | } from "@/api/omd/enum"; |
| | | import {optionParent, optionChild} from "@/const/omd/dict"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "bindings": { |
| | | "version": "1.5.0", |
| | | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", |
| | | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "file-uri-to-path": "1.0.0" |
| | | } |
| | | }, |
| | | "bluebird": { |
| | | "version": "3.7.2", |
| | | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "file-uri-to-path": { |
| | | "version": "1.0.0", |
| | | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", |
| | | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "filesize": { |
| | | "version": "3.6.1", |
| | |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "bindings": "^1.5.0", |
| | | "nan": "^2.12.1" |
| | | } |
| | | }, |
| | |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "bindings": "^1.5.0", |
| | | "nan": "^2.12.1" |
| | | } |
| | | }, |
| | |
| | | 忬¡å è½½èµæºå¯è½éè¦è¾å¤æ¶é´ 请èå¿çå¾
|
| | | </div> |
| | | </div> |
| | | <div class="avue-home__footer"> |
| | | <!-- <div class="avue-home__footer"> |
| | | <a href="https://bladex.vip" target="_blank"> |
| | | https://bladex.vip </a> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | <!-- built files will be auto injected --> |
| | |
| | | }, |
| | | parentId: 0 |
| | | }, |
| | | { |
| | | label: "bladexå®ç½", |
| | | icon: 'el-icon-document', |
| | | meta: { |
| | | i18n: 'website', |
| | | }, |
| | | path: "https://bladex.vip/#/", |
| | | parentId: 1 |
| | | }, |
| | | { |
| | | label: "avuexå®ç½", |
| | | icon: 'el-icon-document', |
| | | meta: { |
| | | i18n: 'avuexwebsite', |
| | | }, |
| | | path: "https://avuex.avue.top", |
| | | parentId: 2 |
| | | }, |
| | | // { |
| | | // label: "bladexå®ç½", |
| | | // icon: 'el-icon-document', |
| | | // meta: { |
| | | // i18n: 'website', |
| | | // }, |
| | | // path: "https://bladex.vip/#/", |
| | | // parentId: 1 |
| | | // }, |
| | | // { |
| | | // label: "avuexå®ç½", |
| | | // icon: 'el-icon-document', |
| | | // meta: { |
| | | // i18n: 'avuexwebsite', |
| | | // }, |
| | | // path: "https://avuex.avue.top", |
| | | // parentId: 2 |
| | | // }, |
| | | { |
| | | label: "æµè¯", |
| | | icon: 'el-icon-document', |
| | |
| | | <img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status"/> |
| | | <img src="https://img.shields.io/badge/Spring%20Cloud-2021-blue.svg" alt="Coverage Status"/> |
| | | <img src="https://img.shields.io/badge/Spring%20Boot-2.7-blue.svg" alt="Downloads"/> |
| | | <a target="_blank" href="https://bladex.vip"> |
| | | <!-- <a target="_blank" href="https://bladex.vip"> |
| | | <img src="https://img.shields.io/badge/Saber%20Author-Small%20Chill-ff69b4.svg" alt="Downloads"/> |
| | | </a> |
| | | <a target="_blank" href="https://bladex.vip"> |
| | | <img src="https://img.shields.io/badge/Copyright%20-@BladeX-%23ff3f59.svg" alt="Downloads"/> |
| | | </a> |
| | | </a> --> |
| | | </p> |
| | | </basic-container> |
| | | </el-col> |
| | |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/list', |
| | | url: '/api/ubcs-code/codeButtonController/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const getDetail = (id) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/detail', |
| | | url: '/api/ubcs-code/codeButtonController/detail', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/remove', |
| | | url: '/api/ubcs-code/codeButtonController/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/submit', |
| | | url: '/api/ubcs-code/codeButtonController/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/submit', |
| | | url: '/api/ubcs-code/codeButtonController/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | debugger; |
| | | if(flag){ |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/enableData', |
| | | url: '/api/ubcs-code/codeButtonController/enableData', |
| | | method: 'post', |
| | | params: { |
| | | "oid":ids |
| | |
| | | }) |
| | | } |
| | | return request({ |
| | | url: '/api/ubcs-code/codebutton/disableData', |
| | | url: '/api/ubcs-code/codeButtonController/disableData', |
| | | method: 'post', |
| | | params: { |
| | | "oid":ids |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getParentList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/parent-list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getChildList = (current, size, parentoid, params) => { |
| | | debugger; |
| | | return request({ |
| | | url: '/api/ubcs-omd/enumItem/listAll', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | parentoid: parentoid, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const removeChild = (ids) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enumItem/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const addChild = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enumItem/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | debugger; |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const updateChild = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enumItem/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const getDict = (oid) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/detail', |
| | | method: 'get', |
| | | params: { |
| | | oid, |
| | | } |
| | | }) |
| | | } |
| | | export const getDictChild = (oid) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enumItem/detail', |
| | | method: 'get', |
| | | params: { |
| | | oid, |
| | | } |
| | | }) |
| | | } |
| | | export const getDictTree = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/tree', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getDictionary = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/dictionary', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | |
| | | <!-- å³ä¾§è¿ç®ç¬¦ --> |
| | | <el-col :span="10"> |
| | | <el-card |
| | | class="box-card" |
| | | style="height: 33vh;"> |
| | | class="box-card formula-box-card" |
| | | style="height: 35vh;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium">è¿ç®ç¬¦</span> |
| | | </div> |
| | | <div class="text item"> |
| | | <div class="formula-editor-total"> |
| | | <div class="formula-editor"> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '7' })" |
| | | > |
| | | 7 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '8' })" |
| | | > |
| | | 8 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '9' })" |
| | | > |
| | | 9 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '/' })" |
| | | > |
| | | /</button |
| | | ><br /> |
| | | /</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '4' })" |
| | | > |
| | | 4 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '5' })" |
| | | > |
| | | 5 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '6' })" |
| | | > |
| | | 6 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '*' })" |
| | | > |
| | | *</button |
| | | ><br /> |
| | | *</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '1' })" |
| | | > |
| | | 1 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '2' })" |
| | | > |
| | | 2 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '3' })" |
| | | > |
| | | 3 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>' })" |
| | | > |
| | | -</button |
| | | ><br /> |
| | | -</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '0' })" |
| | | > |
| | | 0 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '00' })" |
| | | > |
| | | 00 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '.' })" |
| | | > |
| | | . |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '+' })" |
| | | > |
| | | +</button |
| | | ><br /> |
| | | +</el-button> |
| | | <br/> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '->' })" |
| | | > |
| | | -> |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '==' })" |
| | | > |
| | | == |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '(' })" |
| | | > |
| | | ( |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: ')' })" |
| | | > |
| | | )</button |
| | | ><br /> |
| | | )</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '<' })" |
| | | > |
| | | < |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>' })" |
| | | > |
| | | > |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '<=' })" |
| | | > |
| | | <= |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>=' })" |
| | | > |
| | | >= |
| | | </button> |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style> |
| | | |
| | | .formula-box-card > .el-card__body { |
| | | padding: 0px; |
| | | height: 85%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .formula-editor-total { |
| | | /* margin-top: 3px; */ |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .formula-editor{ |
| | | margin-top: -15px; |
| | | margin-left: 4vw; |
| | | /*设置弹æ§çå*/ |
| | | display: flex; |
| | | /*åå
ç´ ä»¥ç«åæåï¼ä¸å
±æ6å*/ |
| | | flex-direction:column; |
| | | width: 310px; |
| | | height: 185px; |
| | | width: 100%; |
| | | height: 100%; |
| | | /*å·¦å³ååæå*/ |
| | | justify-content: space-around; |
| | | /*ä¸ä¸ååæå*/ |
| | |
| | | display: flex; |
| | | /*ä»¥è¡æå*/ |
| | | flex-direction: row; |
| | | width: 223px; |
| | | height: 80px; |
| | | width: auto; |
| | | height: auto; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | .formula-editor-btn-sm { |
| | | width: 55px; |
| | | height: 29px; |
| | | background: rgb(153, 214, 240); |
| | | border-radius: 10%; |
| | | width: 4.5vw; |
| | | height: 4vh; |
| | | margin-left: 10px; |
| | | text-align: center; |
| | | line-height: 0; |
| | | /* background: rgb(153, 214, 240); */ |
| | | background: #87c2fc; |
| | | /* border-radius: 10%; */ |
| | | } |
| | | |
| | | </style> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¼¹çª --> |
| | | <el-dialog |
| | | title="åç
§é
ç½®" |
| | | append-to-body |
| | | :visible.sync="isShowReferConfig" |
| | | width="90%" |
| | | @close="recoveryDataAndForm('initData')" |
| | | style="height: 110vh; margin-top: -13vh; overflow-y: hidden"> |
| | | <div style="width: 100%; overflow-y: auto; height: 70vh"> |
| | | <el-row> |
| | | <avue-form :option="formOption" v-model="form"></avue-form> |
| | | </el-row> |
| | | <el-row v-show="form.referWindowType==0 || form.referWindowType==3"> |
| | | <avue-crud |
| | | ref="crudAttr" |
| | | :option="attrOption" |
| | | :data="attrData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="scope.row.isquery=!scope.row.isquery"> |
| | | {{scope.row.isquery ? "å¿«éæ¥è¯¢":"åæ¶å¿«éæ¥è¯¢"}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeAttr')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openAddSearchOrAttrDialog('selectAttr')">鿩屿§ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | <el-row> |
| | | <avue-crud |
| | | ref="crudAddCondition" |
| | | :option="addSearchCondtionOption" |
| | | :data="addSearchCondtionData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeaddSearchCondtion')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openAddSearchOrAttrDialog('addSearchCondition')"> |
| | | æ·»å æ¥è¯¢æ¡ä»¶ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="selectedListReferConfig">ç¡® å®</el-button> |
| | | <el-button @click="recoveryDataAndForm('initForm')">æ¸
空å
容</el-button> |
| | | <el-button @click="isShowReferConfig = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "referConfigDialog", |
| | | props: { |
| | | //æ¬åºæ¯åé |
| | | thisSceneTableData: { |
| | | type: Array, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | labelWidth: '150', // æ é¢å®½åº¦ |
| | | isShowReferConfig: false, // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | // 表å对象 |
| | | form: { |
| | | text: '', |
| | | text1: '', |
| | | text2: '', |
| | | referWindowType: 0, //åç
§çªå£ç±»å |
| | | }, |
| | | attrData: [ |
| | | { |
| | | field: 'id', |
| | | title: 'ç¼å·', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'id', |
| | | width: '150', |
| | | isquery: true, |
| | | },{ |
| | | field: 'name', |
| | | title: 'åç§°', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'name', |
| | | width: '180', |
| | | isquery: true, |
| | | } |
| | | ], |
| | | attrOption: { |
| | | height:'150', |
| | | tip: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | border: false, |
| | | index: true, |
| | | viewBtn: false, |
| | | delBtn: false, |
| | | selection: false, |
| | | disablePage: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: "ååæ®µ(*)", |
| | | prop: "field", |
| | | },{ |
| | | label: "åå(*)", |
| | | prop: "title", |
| | | },{ |
| | | label: "åæ®µç±»å(*)", |
| | | prop: "fieldTypeText", |
| | | },{ |
| | | label: "åè¡¨å¯æåº", |
| | | prop: "sort", |
| | | },{ |
| | | label: "æåºå段", |
| | | prop: "sortField", |
| | | },{ |
| | | label: "åæ®µå®½åº¦", |
| | | prop: "width", |
| | | },{ |
| | | label: "ååºå®ä½ç½®", |
| | | prop: "fixedText", |
| | | },{ |
| | | label: "jsæ¾ç¤ºä»£ç ", |
| | | prop: "templet", |
| | | }, |
| | | ] |
| | | }, |
| | | addSearchCondtionData: [ |
| | | { |
| | | id: 'test', |
| | | cate: 'test', |
| | | value: 1 |
| | | },{ |
| | | id: 'test1', |
| | | cate: 'test1', |
| | | value: 2 |
| | | },{ |
| | | id: 'test2', |
| | | cate: 'test2', |
| | | value: 3 |
| | | },{ |
| | | id: 'test4', |
| | | cate: 'test4', |
| | | value: 4 |
| | | } |
| | | ], |
| | | addSearchCondtionOption: { |
| | | height:'150', |
| | | tip: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | border: false, |
| | | index: true, |
| | | viewBtn: false, |
| | | delBtn: false, |
| | | selection: false, |
| | | disablePage: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: "çéåæ®µ", |
| | | prop: "id", |
| | | },{ |
| | | label: "çéç±»å", |
| | | prop: "cate", |
| | | },{ |
| | | label: "çéå¼", |
| | | prop: "value", |
| | | } |
| | | ] |
| | | } |
| | | }; |
| | | }, |
| | | // 表åç颿¾ç¤ºå
容é
ç½® |
| | | computed: { |
| | | formOption() { |
| | | return { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '145', //é»è®¤æ ç¾å®½åº¦ |
| | | // åºç¡è¡¨åä¿¡æ¯å±ç¤ºåºå |
| | | column: [ |
| | | { |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'table', |
| | | children: { |
| | | border: true, |
| | | column: [{ |
| | | label: 'ä¸å¡ç±»åç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: 'ä¸å¡ç±»ååç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: 'æè¿°', |
| | | search: false, |
| | | prop: 'description' |
| | | }], |
| | | }, |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çä¸å¡ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | prop: 'text2', |
| | | tip: 'éæ©æ°æ®åï¼æ¾ç¤ºå°å段ä¸çä¿¡æ¯æå±ç屿§ï¼ä¸è¬é½æ¯name,妿æ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦id,name', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | rules: [{ |
| | | required: true, |
| | | message: "(æ¾ç¤ºç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | prop: 'text2', |
| | | tip: 'éæ©æ°æ®åï¼ä¿åå°æ°æ®åºéç屿§ï¼ä¸è¬é½æ¯oidæè
idï¼å¦ææ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦oid ,id', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åå¨å¼ç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | prop: 'referWindowType', |
| | | //tip: 'ææ¯ä¸ä¸ªå·¦è¾¹æç¤ºè¯', |
| | | //tipPlacement: 'left', |
| | | span: 7, |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: 'é»è®¤æ ·å¼', |
| | | value: 0 |
| | | }, { |
| | | label: 'å¹³å°é
ç½®', |
| | | value: 1 |
| | | }, { |
| | | label: 'æ å½¢', |
| | | value: 2 |
| | | }, { |
| | | label: 'å表', |
| | | value: 3 |
| | | }, { |
| | | label: 'é¨é¨æ ', |
| | | value: 4 |
| | | }, { |
| | | label: 'é¨é¨å表', |
| | | value: 5 |
| | | }, { |
| | | label: 'ç¨æ·', |
| | | value: 6 |
| | | }, { |
| | | label: 'ç¨æ·å表', |
| | | value: 7 |
| | | }, { |
| | | label: 'è§è²å表', |
| | | value: 8 |
| | | }, { |
| | | label: 'èå¡', |
| | | value: 9 |
| | | }, { |
| | | label: 'å·¥ç§', |
| | | value: 10 |
| | | }, { |
| | | label: 'æµç¨æ¨¡æ¿', |
| | | value: 11 |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çªå£ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'èªå®ä¹çåå°è·¯å¾', |
| | | prop: 'text2', |
| | | tip: 'é常为空;妿æ¯å表ï¼åå°å¿
é¡»è¿åDataGridï¼å¦ææ¯æ ï¼åå°å¿
é¡»è¿åList', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æå¡çå°å', |
| | | prop: 'text2', |
| | | tip: 'é常为空ï¼å¨æ¯æå¾®æå¡æè
åå¸å¼é¨ç½²çæ¶åæé
ç½®', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: '请æ±åå°çåè®®æ¹å¼', |
| | | prop: 'text2', |
| | | //tip: '', |
| | | //tipPlacement: 'right', |
| | | span: 7, |
| | | type: 'select', |
| | | },{ |
| | | label: 'çªå£æ¾ç¤ºçé«åº¦', |
| | | prop: 'text2', |
| | | tip: 'é»è®¤ç©ºçï¼è®¾ç½®åè¡¨ç¤ºå¼ºå¶æ¾ç¤ºè¿æ ·çé«åº¦', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'è¿æ»¤(级è)屿§', |
| | | prop: 'text2', |
| | | tip: 'è·å表åä¸çå
¶ä»å±æ§ç屿§ç弿¥è¿æ»¤,æè
ä½¿ç¨æä¸ªå±æ§æ¥çº§èéæ©', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'è¿æ»¤å±æ§è¯·æ±åæ°', |
| | | prop: 'text2', |
| | | tip: '使ç¨è¿æ»¤å±æ§æ¶ï¼åéç»åå°ç请æ±åæ°', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æ¯å¦å¤é', |
| | | type: 'switch', |
| | | prop: 'text2', |
| | | //tip: '', |
| | | //tipPlacement: 'right', |
| | | span: 7, |
| | | row: true, |
| | | },{ |
| | | label: 'æ å°å
¶ä»å±æ§', |
| | | prop: 'text2', |
| | | tip: 'éæ©æ°æ®åï¼å°éæ©çæ°æ®æ·è´å°è¡¨åéçå
¶ä»å±æ§ï¼ä¹¦åæ ¼å¼ä¸º{å½å表åä¸ç屿§:éæ©æ°æ®éç屿§,XXXXx:yyyy}', |
| | | tipPlacement: 'right', |
| | | span: 18, |
| | | } |
| | | ], |
| | | // åå¨ç表ååºå |
| | | group: [ |
| | | { |
| | | display: this.form.referWindowType==0||this.form.referWindowType==3, |
| | | icon: 'el-icon-info', |
| | | label: this.form.referWindowType==0 ? 'é»è®¤åç
§çé
ç½®(䏿¹å表)':'å表åç
§çé
ç½®ï¼ä¸æ¹å表)', |
| | | collapse: true, |
| | | prop: 'group1', |
| | | column: [ |
| | | { |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'åé¡µæ¶æ¯é¡µæ¾ç¤ºçæ°éï¼ä¸å页填-1', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'table', |
| | | children: { |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'select', |
| | | tip: 'æ¥è¯¢æ°æ®æ¶çæåºç±»å', |
| | | tipPlacement: 'right', |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | display: this.form.referWindowType==1, |
| | | icon: 'el-icon-info', |
| | | label: 'stand(å¹³å°é
ç½®)åç
§', |
| | | collapse: true, |
| | | prop: 'group2', |
| | | column: [ |
| | | { |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置,ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'ä¸åç
§çUIä¸ä¸æäºæ¥ï¼åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置ï¼ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | type: 'table', |
| | | children: { |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | display: this.form.referWindowType==2, |
| | | icon: 'el-icon-info', |
| | | label: 'æ å½¢åç
§ä¿¡æ¯', |
| | | collapse: true, |
| | | prop: 'group3', |
| | | labelWidth: '158', |
| | | column: [ |
| | | { |
| | | label: 'æ å½¢çä¸çº§æ å½¢', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸ä¸çº§å
³ç³»æ¥æ¾ç屿§ã', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'ä¸çº§å±æ§åå¨çå¼,æ¯ä¸çº§æ°æ®çä»ä¹å±æ§ãä¸è¬é½æ¯oidã', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'text1', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸çº§çå¼ã', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'select', |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'switch', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'table', |
| | | children: { |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'text1', |
| | | span: 7, |
| | | type: 'select', |
| | | }, |
| | | ] |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | // éæ©å®åç
§é
ç½®ä¹åç¹å»ä¿åæé®è§¦å |
| | | selectedListReferConfig(){ |
| | | console.log(this.option); |
| | | console.log(this.form.referWindowType); |
| | | }, |
| | | /** å
¶å®éå屿§è¡¨æ ¼çé»è®¤æ°æ®ä¸éè¦å è½½ï¼ |
| | | 使¯å¼¹çªæå¼ä¼æè¡¨æ ¼éè¡é®é¢æä»¥éè¦å¨è¿è°ç¨doLayoutæ¹æ³*/ |
| | | onloadAttrData(){ |
| | | this.$nextTick(() => { |
| | | this.$refs.crudAttr.doLayout() |
| | | }) |
| | | }, |
| | | // 屿§éæ©è¡¨æ ¼ä¸çç§»é¤æé®åè½ |
| | | removeCurrentRow(row,condition){ |
| | | if(condition=='removeAttr'){ |
| | | this.$delete(this.attrData, row.$index); |
| | | return; |
| | | } |
| | | this.$delete(this.addSearchCondtionData, row.$index); |
| | | }, |
| | | // 该çé¢çæ°æ®è¿è¡åå§åå¤å |
| | | recoveryDataAndForm(condition){ |
| | | if(condition=='initForm'){ |
| | | this.form = this.$options.data().form; |
| | | return; |
| | | } |
| | | Object.assign(this.$data,this.$options.data()); |
| | | }, |
| | | // æå¼æ·»å æ¥è¯¢æ¡ä»¶å¯¹è¯æ¡ |
| | | openAddSearchOrAttrDialog(condition){ |
| | | if(condition=='addSearchCondition'){ |
| | | console.log('this is open addSearchCondition'); |
| | | }else { |
| | | console.log('this is open selectAttr'); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | /* æç¤ºææ¬åºç°çé度 */ |
| | | .el-tooltip__popper{ |
| | | width: 200px !important; |
| | | transition-duration: 0.2s !important; |
| | | transition-delay: 0.1s !important; |
| | | } |
| | | /* æç¤ºææ¬æ¶å¤±æ¶çé度 */ |
| | | .fel-fade-in-linear-leave-active,.el-fade-in-linear-leave-to{ |
| | | -webkit-transition:opacity .0s !important; |
| | | transition:opacity .0s !important; |
| | | } |
| | | |
| | | </style> |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "", |
| | |
| | | selection: true, |
| | | menuWidth:260, |
| | | dialogClickModal: false, |
| | | refreshBtn: true, |
| | | columnBtn: true, |
| | | searchShowBtn: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | |
| | | prop: "id", |
| | | search: true, |
| | | searchLabelWidth: 80, |
| | | searchSpan: 5, |
| | | searchSpan: 6, |
| | | }, |
| | | { |
| | | label: "ç æ®µåç§°", |
| | | prop: "name", |
| | | search: true, |
| | | searchLabelWidth: 80, |
| | | searchSpan: 5, |
| | | searchSpan: 6, |
| | | }, |
| | | { |
| | | label: "ç æ®µæè¿°", |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "", |
| | |
| | | search: true, |
| | | searchLabelWidth: 45, |
| | | searchSpan: 5, |
| | | type: 'select', |
| | | //ç±äºè¿ä¸ªæ¥å£è¿å¨è°è¯æä»¥è¦çè°å¥½äºæè½è°ç¨ |
| | | dicUrl: "/api/ubcs-omd/enum/dictionary?code=codeSearchLCStatus", |
| | | props: { |
| | | label: "itemName", |
| | | value: "itemValue" |
| | | }, |
| | | display: false, |
| | | }, |
| | | ] |
| | |
| | | selection: true, |
| | | menu: false, |
| | | dialogClickModal: false, |
| | | |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "屿§è±æåç§°", |
ÎļþÃû´Ó Source/UBCS-WEB/src/const/omd/dict.js ÐÞ¸Ä |
| | |
| | | column: [ |
| | | { |
| | | label: "代å·", |
| | | prop: "code", |
| | | prop: "name", |
| | | search: true, |
| | | slot: true, |
| | | span: 24, |
| | |
| | | }, |
| | | { |
| | | label: "åç§°", |
| | | prop: "dictValue", |
| | | prop: "label", |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "æä¸¾æåº", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "right", |
| | | width: 100, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥æä¸¾æåº", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "æä¸¾æåº", |
| | | // prop: "sort", |
| | | // type: "number", |
| | | // align: "right", |
| | | // width: 100, |
| | | // hide: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请è¾å
¥æä¸¾æåº", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // label: "å°å", |
| | | // prop: "isSealed", |
| | |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "代å·", |
| | | prop: "code", |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | search: true, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥ä»£å·", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "代å·", |
| | | // prop: "value", |
| | | // addDisabled: true, |
| | | // editDisabled: true, |
| | | // search: true, |
| | | // span: 24, |
| | | // hide: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请è¾å
¥ä»£å·", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "åç§°", |
| | | prop: "dictValue", |
| | | prop: "name", |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "ä¸çº§", |
| | | prop: "parentId", |
| | | type: "tree", |
| | | dicData: [], |
| | | hide: true, |
| | | props: { |
| | | label: "title" |
| | | }, |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | rules: [ |
| | | { |
| | | required: false, |
| | | message: "è¯·éæ©ä¸çº§", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "ä¸çº§", |
| | | // prop: "parentoid", |
| | | // type: "tree", |
| | | // dicData: [], |
| | | // hide: true, |
| | | // props: { |
| | | // label: "title" |
| | | // }, |
| | | // addDisabled: true, |
| | | // editDisabled: true, |
| | | // rules: [ |
| | | // { |
| | | // required: false, |
| | | // message: "è¯·éæ©ä¸çº§", |
| | | // trigger: "click" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "å¼", |
| | | prop: "dictKey", |
| | | prop: "value", |
| | | width: 80, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | },{ |
| | | label: "æè¿°", |
| | | prop: "description", |
| | | // hide: true |
| | | }, |
| | | { |
| | | label: "æä¸¾æåº", |
| | |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "æè¿°", |
| | | prop: "remark", |
| | | // hide: true |
| | | } |
| | | |
| | | ] |
| | | }; |
| | |
| | | import classifyTreeform from "@/components/Tree/classifyTreeform" |
| | | import TemplatePro from "@/components/Tree/TemplatePro" |
| | | import formulaEditor from "@/components/code-dialog-page/formulaEditor" |
| | | import referConfigDialog from "@/components/code-dialog-page/referConfigDialog" |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | |
| | | // 注åå
¨å±crudé©±å¨ |
| | | window.$crudCommon = crudCommon; |
| | |
| | | Vue.component('classifyTreeform',classifyTreeform) |
| | | Vue.component('TemplatePro',TemplatePro) |
| | | Vue.component('formulaEditor',formulaEditor) |
| | | Vue.component('referConfigDialog',referConfigDialog) |
| | | Vue.component('businessAdd',businessAdd) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | }, |
| | | parentId: 0 |
| | | }, |
| | | { |
| | | label: "bladexå®ç½", |
| | | icon: 'el-icon-document', |
| | | meta: { |
| | | i18n: 'website', |
| | | }, |
| | | path: "https://bladex.vip/#/", |
| | | parentId: 1 |
| | | }, |
| | | { |
| | | label: "avuexå®ç½", |
| | | icon: 'el-icon-document', |
| | | meta: { |
| | | i18n: 'avuexwebsite', |
| | | }, |
| | | path: "https://avuex.avue.top", |
| | | parentId: 2 |
| | | }, |
| | | // { |
| | | // label: "bladexå®ç½", |
| | | // icon: 'el-icon-document', |
| | | // meta: { |
| | | // i18n: 'website', |
| | | // }, |
| | | // path: "https://bladex.vip/#/", |
| | | // parentId: 1 |
| | | // }, |
| | | // { |
| | | // label: "avuexå®ç½", |
| | | // icon: 'el-icon-document', |
| | | // meta: { |
| | | // i18n: 'avuexwebsite', |
| | | // }, |
| | | // path: "https://avuex.avue.top", |
| | | // parentId: 2 |
| | | // }, |
| | | { |
| | | label: "æµè¯", |
| | | icon: 'el-icon-document', |
| | |
| | | }, |
| | | handleLogin: function () { |
| | | this.userInfo = this.$store.state.upadatastatus |
| | | console.log(this.userInfo) |
| | | //console.log(this.userInfo) |
| | | this.$refs.loginForm.validate(valid => { |
| | | if (valid) { |
| | | const loading = this.$loading({ |
| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | :before-open="beforeOpenScope" |
| | | @search-change="searchChangeScope" |
| | | @search-reset="searchResetScope" |
| | | @row-click="clickRowChangeResetScope" |
| | | @selection-change="selectionChangeScope" |
| | | @current-change="currentChangeScope" |
| | | @size-change="sizeChangeScope" |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | this.onLoadScope(this.pageScope, params); |
| | | done(); |
| | | }, |
| | | clickRowChangeResetScope(row){ |
| | | this.$refs.crudScope.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crudScope.setCurrentRow(row); |
| | | this.$refs.crudScope.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChangeScope(list) { |
| | | this.selectionListScope = list; |
| | | this.$refs.crudScope.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | currentChangeScope(currentPage) { |
| | | this.pageScope.currentPage = currentPage; |
| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | :before-open="beforeOpenScope" |
| | | @search-change="searchChangeScope" |
| | | @search-reset="searchResetScope" |
| | | @row-click="clickRowChangeScope" |
| | | @selection-change="selectionChangeScope" |
| | | @current-change="currentChangeScope" |
| | | @size-change="sizeChangeScope" |
| | |
| | | delBtn: false, |
| | | menuWidth: 150, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "èååç§°", |
| | |
| | | menuWidth: 200, |
| | | dialogWidth: 900, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "æéåç§°", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | this.onLoadScope(this.pageScope, params); |
| | | done(); |
| | | }, |
| | | clickRowChangeScope(row){ |
| | | this.$refs.crudScope.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crudScope.setCurrentRow(row); |
| | | this.$refs.crudScope.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChangeScope(list) { |
| | | this.selectionListScope = list; |
| | | this.$refs.crudScope.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | currentChangeScope(currentPage) { |
| | | this.pageScope.currentPage = currentPage; |
| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | total: 0 |
| | | }, |
| | | option: { |
| | | height: "auto", |
| | | tip: false, |
| | | simplePage: true, |
| | | searchShow: true, |
| | |
| | | viewBtn: true, |
| | | dialogWidth: 900, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "è§è²åç§°", |
| | |
| | | ref="crudCloneCodeBasicOther" |
| | | :table-loading="loadingBasic" |
| | | :data="basicData" |
| | | @row-click="codeOtherCloneBasicRowClick" |
| | | @selection-change="selectionOtherCloneCodeBasicChange"> |
| | | </avue-crud> |
| | | </el-row> |
| | |
| | | ref="crudBasic" |
| | | :table-loading="loadingBasic" |
| | | :data="basicData" |
| | | @row-click="codeBasicSecRowClick" |
| | | @search-change="basicSearchChange" |
| | | @search-reset="basicSearchReset" |
| | | :permission="permissionList" |
| | | @selection-change="selectionBasicChange" |
| | | @refresh-change="refreshChangeBasicSec"> |
| | |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="addBasicCodeSec">æ° å¢ |
| | | :disabled="selectionList.length <= 0" |
| | | @click="addBasicCodeSec"> |
| | | æ° å¢ |
| | | </el-button> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | :disabled="selectionList.length <= 0" |
| | | plain |
| | | @click="deleteBasicCode(scope.row)">å é¤ |
| | | @click="deleteBasicCode(scope.row)"> |
| | | å é¤ |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | </div> |
| | | <div style="margin-top:20px; display: flex; align-items:center; justify-content:center;"> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue!=''" size="mini" type="primary" icon="el-icon-circle-plus" class="button" @click="addCodeSecValue('codefixedsec')">æ·»å </el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="success" plain plain icon="el-icon-edit-outline" class="button" @click="editCodeSecValue('codefixedsec')">ä¿®æ¹</el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="success" plain icon="el-icon-edit-outline" class="button" @click="editCodeSecValue('codefixedsec')">ä¿®æ¹</el-button> |
| | | <el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="danger" icon="el-icon-close" class="button" @click="delCodeSecValue('codefixedsec')">å é¤</el-button> |
| | | <el-button size="mini" type="warning" plain icon="el-icon-close" class="button" @click = "clearFixedOrClassifyForm('codefixedsec')">åæ¶</el-button> |
| | | </div> |
| | |
| | | @close="clearBasicAddForm"> |
| | | |
| | | <!-- 第ä¸å±å¯¹è¯æ¡,æ·»å ç æ®µä¿¡æ¯å¯¹è¯æ¡ä¸çå
容 --> |
| | | <div class="total" style="overflow-y: auto; height: 70vh"> |
| | | <el-form :model="form"> |
| | | <div class="add-basicsec-total" style="overflow-y: auto; height: 70vh"> |
| | | <el-form :model="form" class="add-basicsec-form"> |
| | | <span class="left"> |
| | | <el-form-item label="ç æ®µç¼å·:" :label-width="leftFormLabelWidth" required> |
| | | <el-input v-model="form.id" :readonly="basicSecOnlyRead" ref="id"></el-input> |
| | |
| | | <el-select v-model="form.secType" placeholder="è¯·éæ©" @change="changeSectypeFormItems(null)" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in sectypeList" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option label="左补ä½" value="codeattrsec" |
| | | v-for="item in codeFillType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeFillSeparatorSelect" @blur="inputSelectBlur" filterable placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeLevelType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeLevelType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.valueCutType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeCutType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeGetValueType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeGetValueType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.parentClassifySecOid" |
| | | v-model="form.parentClassifySecText" |
| | | @focus="openAttrSelectOrGetValue('parentClassifySecOid')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('parentClassifySecOid')" style="margin-right: 5px;cursor: pointer;"></i> |
| | |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillType" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select v-model="form.codeFillSeparatorSelect" filterable @blur="inputSelectBlur" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | :key="item.dictValue" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey"> |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-button type="primary" @click="saveOrEditBasicCode" v-show="showbtn">ä¿ å</el-button> |
| | | </div> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å±æ§éæ©å¼¹çª --> |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å±æ§éæ©å¯¹è¯æ¡ --> |
| | | <el-dialog title="为ã屿§ãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSelectAttrOption" |
| | |
| | | </el-scrollbar> |
| | | </div> |
| | | </el-col> |
| | | |
| | | <!-- å³ä¾§è¡¨æ ¼æ¾ç¤ºåºå --> |
| | | <el-col span="19"> |
| | | <basic-container> |
| | |
| | | :data="selectattrData" |
| | | :option="attrOption" |
| | | :table-loading="selectAttrOptionLoading" |
| | | ref="selectionAttrCrud" |
| | | @search-change="selectAttrOptionSearchChange" |
| | | @search-reset="searchAttrReset" |
| | | @row-click="selectionAttrRowClick" |
| | | @selection-change="selectionChangeAttr"> |
| | | </avue-crud> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowSelectAttrOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="selectedListClassifyLinkAttr">ç¡® å®</el-button> |
| | |
| | | |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¼¹çªç»ä»¶ --> |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡ç»ä»¶ --> |
| | | <formula-editor ref="formulaEditor" |
| | | @updateFormulaContent="updateFormulaContent" |
| | | :thisSceneTableData="thisSceneTableData" |
| | | :systemVariableTableData="systemVariableTableData"> |
| | | </formula-editor> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãç¶åç±»ç æ®µãéåå¼å¼¹çª --> |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãç¶åç±»ç æ®µãéåå¼å¯¹è¯æ¡ --> |
| | | <el-dialog title="为ãç¶åç±»ç æ®µãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowParentClassifyOption" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;" |
| | | destroy-on-close> |
| | | |
| | | <avue-crud |
| | | :page.sync="parentClassifyDataPage" |
| | | ref="crudParentClassify" |
| | |
| | | @refresh-change="refreshParentClassifyDataChange" |
| | | @search-change="parentClassifySearchChange" |
| | | @search-reset="parentClassifySearchReset" |
| | | @row-click="parentClassifyRowClick" |
| | | @selection-change="parentClassifySelectionChange" |
| | | @current-change="parentClassifyCurrentChange" |
| | | @size-change="parentClassifySizeChange" |
| | | @on-load="parentClassifyOnLoad"> |
| | | </avue-crud> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowParentClassifyOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectedParentClassify">ä¿ å</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¼¹çª --> |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¼¹å¯¹è¯æ¡ --> |
| | | <el-dialog title="为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSelectReferBtmOption" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;" |
| | | destroy-on-close> |
| | | |
| | | style="height: 150vh; margin-top: -13vh;"> |
| | | <avue-crud |
| | | :page.sync="referBtmDataPage" |
| | | ref="crudReferBtm" |
| | |
| | | @selection-change="referBtmSelectionChange" |
| | | @current-change="referBtmCurrentChange" |
| | | @size-change="referBtmSizeChange" |
| | | @on-load="referBtmOnLoad"> |
| | | @row-click="referBtmRowClick"> |
| | | </avue-crud> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowSelectReferBtmOption = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectedreferBtm">ä¿ å</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,åç
§é
ç½®ç»ä»¶ --> |
| | | <refer-config-dialog |
| | | ref="referConfigDialog" |
| | | @echoReferConfig="echoReferConfig" > |
| | | </refer-config-dialog> |
| | | |
| | | </el-dialog> |
| | | |
| | | </basic-container> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | import { treeTopCodeClassify, listClassifyLinkAttr } from "@/api/code/codeclassify"; |
| | | import { gridCodeFixedValue,addSaveCodeFixedValue,deleteCodeFixedValue,editCodeFixedValue,saveOrder } from "@/api/code/codeFixedValue"; |
| | | import { treeCodeClassifyValue,addSaveCodeClassifyValue,editCodeClassifyValue,deleteCodeClassifyValue,saveCodeClassifyValueOrder } from "@/api/code/codeClassifyValue"; |
| | | import { getDictionary } from "@/api/omd/dict"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | import optionBasic from "@/const/code/codebasic"; |
| | | import cloneOption from "@/const/code/cloneOption"; |
| | | import cloneBasicOption from "@/const/code/cloneBasicDialogOption"; |
| | |
| | | }, |
| | | classisyValueTreeOption: classisyValueTreeOption, //åç±»ç æ®µæ ç¸å
³é
置项 |
| | | classifyValueTreeData: [], |
| | | currentSelectTreeData: '', //å½åéä¸çåç±»ç 弿 èç¹ |
| | | //currentSelectClsValueTreeData: '', //å½åéä¸çåç±»ç 弿 èç¹ |
| | | |
| | | /* ä¸ºå±æ§éåå¼çªå£æ¾ç¤ºæå¼æ§å¶åé */ |
| | | isShowSelectAttrOption: false, |
| | |
| | | this.form.getValueClass = content; |
| | | }, |
| | | |
| | | /** éä¸åç
§å¼ç¨çä¸å¡ç±»åï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | /* åç
§é
ç½®,åç»ä»¶å¡«å®åç
§é
ç½®ä¹åå
容忾æ¶è°ç¨ */ |
| | | echoReferConfig(content){ |
| | | this.form.referConfig = content; |
| | | }, |
| | | |
| | | /** 为åç
§å¼ç¨çä¸å¡ç±»åéåå¼ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // è¡¨æ ¼æ°æ®å·æ°æé® |
| | | referBtmDataChange(){ |
| | | this.referBtmOnLoad(this.referBtmDataPage, this.referBtmQuery); |
| | | }, |
| | | saveSelectedreferBtm(){ |
| | | if(this.referBtmSelectionList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | |
| | | this.referBtmOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | // åå»éä¸è¡¨æ ¼è¡æ¶è§¦å |
| | | referBtmRowClick(row){ |
| | | this.$refs.crudReferBtm.toggleSelection(); |
| | | this.referBtmSelectionList = row; |
| | | this.$refs.crudReferBtm.setCurrentRow(row); |
| | | this.$refs.crudReferBtm.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | referBtmSelectionChange(list) { |
| | | //console.log(list); |
| | | this.referBtmSelectionList = list; |
| | | this.$refs.crudReferBtm.setCurrentRow(this.referBtmSelectionList[list.length-1]); |
| | | }, |
| | | referBtmSelectionClear() { |
| | | this.referBtmSelectionList = []; |
| | |
| | | }, |
| | | //å è½½ä¸åç
§å¼ç¨çä¸å¡ç±»åçæ°æ® |
| | | referBtmOnLoad(page, params = {}) { |
| | | //è¡¨æ ¼è¡éä½é®é¢ |
| | | this.$nextTick(() => { |
| | | this.$refs.crudReferBtm.doLayout(); |
| | | }) |
| | | this.referBtmDialogLoading = true; |
| | | let oid = this.selectionList.length==0 ? this.form.pkCodeRule:this.selectionList[0].oid; |
| | | Object.assign(params,{pkCodeRule:oid}) |
| | |
| | | saveSelectedParentClassify(){ |
| | | //console.log(this.parentClassifySelectionList.length); |
| | | if(this.parentClassifySelectionList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | //åæ°å¼ï¼å®ç°åæ¾ |
| | | this.form.parentClassifySecOid = this.parentClassifySelectionList[0].oid; |
| | | this.form.parentClassifySecText = this.parentClassifySelectionList[0].name; |
| | | //æ¸
空å½åéä¸çè¡ |
| | |
| | | this.parentClassifyOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | parentClassifyRowClick(row){ |
| | | this.$refs.crudParentClassify.toggleSelection(); |
| | | this.parentClassifySelectionList = row; |
| | | this.$refs.crudParentClassify.setCurrentRow(row); |
| | | this.$refs.crudParentClassify.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | parentClassifySelectionChange(list) { |
| | | //console.log(this.parentClassifyCurrentChange); |
| | | this.parentClassifySelectionList = list; |
| | | this.$refs.crudParentClassify.setCurrentRow(this.parentClassifySelectionList[list.length-1]); |
| | | }, |
| | | parentClassifySelectionClear() { |
| | | this.parentClassifySelectionList = []; |
| | |
| | | this.loadlistClassifyLinkAttr() |
| | | }, |
| | | // å è½½åç±»è¿æ¥å±æ§è¡¨æ ¼æ°æ® |
| | | loadlistClassifyLinkAttr(){ |
| | | loadlistClassifyLinkAttr(condition) { |
| | | //è¿å¿è¿éè¦å®å |
| | | this.selectAttrOptionLoading = true; |
| | | listClassifyLinkAttr({"page": 1,"limit": -1,'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid}).then(res=>{ |
| | | //console.log(res.data.data); |
| | |
| | | // ç¹å»æç´¢å触å该äºä»¶ |
| | | selectAttrOptionSearchChange(params, done) { |
| | | this.query = params; |
| | | console.log(params); //è¿å¿éè¦æ¹ |
| | | this.loadlistClassifyLinkAttr({"page":1,"limit":-1 ,'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid}); |
| | | //console.log(params); //è¿å¿éè¦æ¹ |
| | | this.loadlistClassifyLinkAttr(Object.assign(params,{'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid})); |
| | | done(); |
| | | }, |
| | | // ä¸ºå±æ§éå¼çé¢ï¼åå»è¡¨æ ¼è¡æ¶è§¦å该äºä»¶ |
| | | selectionAttrRowClick(row){ |
| | | this.$refs.selectionAttrCrud.toggleSelection(); |
| | | this.selectionChangeAttrList = row; |
| | | this.$refs.selectionAttrCrud.setCurrentRow(row); |
| | | this.$refs.selectionAttrCrud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | // 屿§åå¼å½åéä¸è¡åçååæ¶è§¦å |
| | | selectionChangeAttr(list){ |
| | | this.selectionChangeAttrList = list; |
| | | this.$refs.selectionAttrCrud.setCurrentRow(this.selectionChangeAttrList[list.length-1]); |
| | | }, |
| | | // éç½®ä½å±æ§éåå¼è¡¨æ ¼çæç´¢æ¡ä¹åçåè° |
| | | searchAttrReset() { |
| | |
| | | // ä¸ºå±æ§éåå¼ä¹åçåæ¾ |
| | | selectedListClassifyLinkAttr(){ |
| | | if(this.selectionChangeAttrList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | |
| | | /** åºç¡ç 段ç¸å
³æ¹æ³ */ |
| | | //鲿¢æå¼è¿ç¼è¾çªå£ä¹å表åä¸åå¨å¼ï¼æä»¥éè¦æ¸
空,å¹¶åå§åform表å屿§ |
| | | clearBasicAddForm(){ |
| | | this.form = this.$options.data().form;; |
| | | this.form = this.$options.data().form; |
| | | // this.changeSectypeFormItems(null); |
| | | }, |
| | | // æå¼æ°å¢çªå£ |
| | |
| | | //åå¨å½åå
³èçç¼ç è§åç¸å
³ä¿¡æ¯ |
| | | this.currentCodeRuleOid = row.oid; |
| | | this.currentRuleLcStatus = row.lcStatus; |
| | | gridCodeBasicSec(1, -1, {"pkCodeRule":row.oid}).then(res => { |
| | | this.sendGridCodeBasicSec({"pkCodeRule":row.oid}); |
| | | }, |
| | | // åéå è½½åºç¡ç 段çè¯·æ± |
| | | sendGridCodeBasicSec(condition){ |
| | | // 妿å½ååºç¡ç 段表ä¸çæç´¢æé®è¢«éèï¼å°±éè¦å¨æ¤å¼å¯ |
| | | if(this.selectionList.length>=0 && !this.$refs.crudBasic.option.column[0].search){ |
| | | this.hideBasicTable(true); |
| | | } |
| | | gridCodeBasicSec(1, -1, condition).then(res => { |
| | | const data = res.data.data; |
| | | // console.log(data); |
| | | if(this.cloneSettingBox){ |
| | | this.cloneData = data.records; |
| | | // console.log(tihs.cloneData); |
| | |
| | | // åºç¡ç 段é䏿¶è§¦å |
| | | selectionBasicChange(list) { |
| | | this.selectionBasicList = list; |
| | | this.$refs.crudBasic.setCurrentRow(this.selectionBasicList[list.length-1]); |
| | | //console.log(this.selectionBasicList); |
| | | }, |
| | | // åºç¡ç 段被åå»è¡¨æ ¼è¡æ¶è§¦å |
| | | codeBasicSecRowClick(row){ |
| | | this.$refs.crudBasic.toggleSelection(); |
| | | this.selectionBasicList = row; |
| | | this.$refs.crudBasic.setCurrentRow(row); |
| | | this.$refs.crudBasic.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | basicSearchChange(params, done){ |
| | | //console.log(this.$refs.crudBasic); |
| | | this.sendGridCodeBasicSec(Object.assign(params,{"pkCodeRule":this.selectionList[this.selectionList.length-1].oid})); |
| | | done(); |
| | | }, |
| | | basicSearchReset(){ |
| | | this.sendGridCodeBasicSec({"pkCodeRule":this.selectionList[this.selectionList.length-1].oid}); |
| | | }, |
| | | // ä¸ç§»ä¸ç§»åºç¡ç 段 |
| | | upOrderNum(row){ |
| | |
| | | }); |
| | | }) |
| | | }, |
| | | //åºç¡ç 段æ¥è¯¢ |
| | | // åºç¡ç æ®µå·æ°æ¶æ¥è¯¢ |
| | | refreshChangeBasicSec(){ |
| | | this.loadBasic({"oid":this.currentCodeRuleOid == null || this.currentCodeRuleOid == '' ? this.selectionList[0].oid:this.currentCodeRuleOid}); |
| | | }, |
| | | // æä½åºç¡ç æ®µä¸æç´¢æ¸
空çæé®çæ¾ç¤º/éè |
| | | hideBasicTable(hideBoolean){ |
| | | this.$refs.crudBasic.option.refreshBtn = hideBoolean; |
| | | this.$refs.crudBasic.option.columnBtn = hideBoolean; |
| | | this.$refs.crudBasic.option.column[0].search = hideBoolean; |
| | | this.$refs.crudBasic.option.column[1].search = hideBoolean; |
| | | }, |
| | | |
| | | |
| | |
| | | }, |
| | | //åå»ç¼ç è§åå®ç°è¡éæ© |
| | | codeRuleRowClick (row) { |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.toggleSelection(); |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | if(row!=''){ |
| | | this.loadBasic(row); |
| | | } |
| | | }, |
| | | // å¯ç¨ä¸åç¨ |
| | | enableOrDeactivatse(oId,update){ |
| | |
| | | } |
| | | this.cloneOtherCodeRuleSettingBox = true; |
| | | }, |
| | | //åå»ç¼ç è§åå®ç°è¡éæ© |
| | | // ä»å
¶ä»ç¼ç è§åä¸å
éç æ®µå¯¹è¯æ¡-åå»ç¼ç è§åå®ç°è¡éæ© |
| | | codeOtherCloneRuleRowClick (row) { |
| | | this.$refs.crudCloneCodeRuleOther.toggleSelection(); |
| | | this.selectionOtherCloneCodeRuleList = row; |
| | | this.$refs.crudCloneCodeRuleOther.setCurrentRow(row); |
| | | this.$refs.crudCloneCodeRuleOther.toggleRowSelection(row); //éä¸å½åè¡ |
| | | this.loadBasic(row); |
| | | }, |
| | | // ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | // ä»å
¶ä»ç¼ç è§åä¸å
éç æ®µå¯¹è¯æ¡-åå»åºç¡ç 段å®ç°è¡éæ© |
| | | codeOtherCloneBasicRowClick(row){ |
| | | this.$refs.crudCloneCodeBasicOther.toggleSelection(); |
| | | this.selectionOtherCloneCodeBasicList = row; |
| | | this.$refs.crudCloneCodeBasicOther.setCurrentRow(row); |
| | | this.$refs.crudCloneCodeBasicOther.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | // ä»å
¶ä»è§åå
éç æ®µçé¢ä¸ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | selectionOtherCloneCodeRuleChange(list) { |
| | | //console.log(list); |
| | | this.selectionOtherCloneCodeRuleList = list; |
| | | this.$refs.crudBasic.setCurrentRow(this.selectionBasicList[list.length-1]); |
| | | if(list == ''){ |
| | | this.basicData = []; |
| | | } |
| | | if(this.selectionOtherCloneCodeRuleList.length > 0){ |
| | | this.loadBasic(this.selectionOtherCloneCodeRuleList[list.length-1]); |
| | | } |
| | | }, |
| | | selectionOtherCloneCodeBasicChange(list){ |
| | | this.selectionOtherCloneCodeBasicList = list; |
| | | this.$refs.crudCloneCodeBasicOther.setCurrentRow(this.selectionOtherCloneCodeBasicList[list.length-1]); |
| | | }, |
| | | // ä»å
¶ä»ç¼ç è§åä¸å
éç æ®µä¿¡æ¯ |
| | | saveOtherCodeBasic(){ |
| | | let oid = this.selectionList[0].oid; |
| | | let fromDialogPkCodebasic = this.selectionOtherCloneCodeBasicList; |
| | | if(fromDialogPkCodebasic.length < 0){ |
| | | if(fromDialogPkCodebasic.length <= 0){ |
| | | this.$message.warning("è¯·éæ©ç æ®µæ°æ®!"); |
| | | return; |
| | | } |
| | |
| | | return; |
| | | } |
| | | //console.log(res); |
| | | let oidArr = ''; |
| | | fromDialogPkCodebasic.forEach((item) =>{ |
| | | oidArr = oidArr+","+item.oid; |
| | | }) |
| | | let oidArr = []; |
| | | fromDialogPkCodebasic.forEach(ele => { |
| | | oidArr.push(ele.id); |
| | | }); |
| | | let data = { |
| | | "pkCodeRule": oid, |
| | | "oidArr": oidArr, |
| | | "oidArr": oidArr.join(","), |
| | | } |
| | | //console.log(data); |
| | | cloneCodeBasic(data).then(() => { |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // æ·»å |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |
| | |
| | | // ç¼ç è§åå½åéä¸è¡ååçæ¶å触å |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | //console.log("selectionChange====="+list); |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | //å½åéä¸è¡ä¸ºç©ºçæ¶åå°±å°ç 段管çè¡¨æ ¼æ°æ®ç½®ç©º |
| | | if(list == ''){ |
| | | this.basicData = []; |
| | | this.hideBasicTable(false); |
| | | } |
| | | if(this.selectionList.length > 0){ |
| | | this.currentCodeRuleOid = this.selectionList[list.length-1].oid; |
| | | this.currentRuleLcStatus = this.selectionList[list.length-1].lcStatus; |
| | | //console.log(this.currentRuleLcStatus); |
| | | this.loadBasic(this.selectionList[list.length-1]); |
| | | } |
| | | }, |
| | |
| | | this.loading = false; |
| | | this.loadBasic(this.data[0]) |
| | | this.$nextTick(() => { |
| | | //this.$refs.crud.toggleRowSelection(this.data[0]); |
| | | this.$refs.crud.toggleRowSelection(this.data[0]); |
| | | this.$refs.crud.setCurrentRow(this.data[0]); |
| | | }) |
| | | this.selectionList = data.records[0]; |
| | |
| | | |
| | | |
| | | /** 第ä¸å±å¯¹è¯æ¡ç¸å
³æ¹æ³ */ |
| | | // æå¼äºå±å¼¹çªæ¹æ³ |
| | | // æå¼äºå±å¯¹è¯æ¡æ¹æ³ |
| | | openAttrSelectOrGetValue(condition){ |
| | | if(condition === 'attr'){ |
| | | this.isShowSelectAttrOption = true; |
| | |
| | | this.isShowParentClassifyOption = true; |
| | | }else if(condition === 'referBtmId'){ |
| | | this.isShowSelectReferBtmOption = true; |
| | | this.refreshReferBtmDataChange(); |
| | | }else if(condition === 'referConfig'){ |
| | | //this.$emit('openSelectreferConfig') |
| | | this.$refs.referConfigDialog.isShowReferConfig = true; |
| | | //è¡¨æ ¼éè¡çé®é¢æ |
| | | this.$refs.referConfigDialog.onloadAttrData(); |
| | | } |
| | | }, |
| | | |
| | | // ç¹å»è¾å
¥æ¡çÃå·ï¼æ¸
空è¾å
¥æ¡ä¸çå
容 |
| | | clearAttrDataByIcon(condition){ |
| | | if(condition === 'attr'){ |
| | |
| | | this.sectypeList = res.data.data; |
| | | }) |
| | | this.loadCodeSecLength(); |
| | | //console.log(this.sectypeList); |
| | | }, |
| | | loadCodeSecLength(){ |
| | | getDictionary({code: "codeSecLength"}).then(res=>{ |
| | |
| | | loadCodeGetValueType(){ |
| | | getDictionary({code: "codeGetValueType"}).then(res=>{ |
| | | this.codeGetValueType = res.data.data; |
| | | //console.log(this.codeGetValueType); |
| | | }) |
| | | }, |
| | | |
| | |
| | | .code-rule-crud > .avue-crud__pagination { |
| | | padding: 14px 0 2px 20px; |
| | | } |
| | | |
| | | |
| | | .clone-input-textarea > .el-form-item__content { |
| | | width: 495px; |
| | |
| | | .basic-container > .el-card > .el-card__body { |
| | | margin: -10px 0; |
| | | } |
| | | |
| | | .code-basicsec-container{ |
| | | padding: 1px 6px; |
| | | } |
| | | |
| | | .el-divider--horizontal { |
| | | margin-top: 19px !important; |
| | | /* margin-top: 19px !important; */ |
| | | margin-bottom: -20px !important; |
| | | width: 100%; |
| | | height: 2px; |
| | | margin: 0; |
| | | position: fixed; |
| | | width: 57.5vw; |
| | | } |
| | | |
| | | .el-card__body > .abox { |
| | |
| | | } |
| | | |
| | | /** æ°å¢ç 段 */ |
| | | .total{ |
| | | height: 500px; |
| | | .add-basicsec-total { |
| | | width: 100%; |
| | | } |
| | | |
| | | .total .el-input__inner,.total .el-textarea__inner { |
| | | .add-basicsec-total .el-input__inner,.add-basicsec-total .el-textarea__inner { |
| | | width: 220px; |
| | | } |
| | | |
| | | .add-basicsec-total > .add-basicsec-form { |
| | | display: flex; |
| | | flex-direction: row; |
| | | width: 100%; |
| | | height: 100%; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .el-divider--vertical { |
| | | width: 2px; |
| | | height: 72vh; |
| | | margin: 0 5px; |
| | | height: 72%; |
| | | margin: 0 auto; |
| | | position: fixed; |
| | | } |
| | | |
| | | .left { |
| | | float: left; |
| | | /* float: left; */ |
| | | width: 49%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .right { |
| | | float: right; |
| | | margin-right: 2.5vw; |
| | | /* width: 40%; */ |
| | | /* float: right; */ |
| | | margin-right: 2vw; |
| | | height: 100%; |
| | | width: auto; |
| | | } |
| | | |
| | | .right > .el-form > .el-form-item{ |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | /* å¯¹è¯æ¡åºé¨æé®è¾¹æ¡æ ·å¼ */ |
| | | .el-dialog__footer{ |
| | | /* width: 100%; */ |
| | | border-top: 1px solid #E9E7E7; |
| | | padding: 5px 10px 10px; |
| | | } |
| | | |
| | | </style> |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.codebutton_add, false), |
| | | viewBtn: this.vaildData(this.permission.codebutton_view, false), |
| | | delBtn: this.vaildData(this.permission.codebutton_delete, false), |
| | | editBtn: this.vaildData(this.permission.codebutton_edit, false) |
| | | // addBtn: this.vaildData(this.permission.codebutton_add, false), |
| | | // viewBtn: this.vaildData(this.permission.codebutton_view, false), |
| | | // delBtn: this.vaildData(this.permission.codebutton_delete, false), |
| | | // editBtn: this.vaildData(this.permission.codebutton_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 100, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "æ§è¡id", |
| | |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-radio-group v-model="mode" size="small"> |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 250, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: 'ç§æ·ç¼å·', |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="primary" |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 200, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | size: 'mini', |
| | | searchSize: 'mini', |
| | | column: [ |
| | |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | <template> |
| | | |
| | | <el-container> |
| | | <el-header> |
| | | <el-button type="primary" @click="businessAdd">æ°å¢</el-button> |
| | | <el-button type="primary" @click="businessEdit">ä¿®æ¹</el-button> |
| | | <el-button type="primary" @click="selectFromTable">ä»å·²æä¸è·å</el-button> |
| | | </el-header> |
| | | <el-container> |
| | | <el-aside width="240px"> |
| | | <basic-container> |
| | | <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span class="el-tree-node__label" slot-scope="{ node, data }"> |
| | | <span> |
| | | <i class="el-icon-star-on"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-container> |
| | | <el-main> |
| | | <!-- åºæ¬ä¿¡æ¯--> |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">åºæ¬ä¿¡æ¯</p> |
| | | <avue-crud |
| | | v-model="objs" |
| | | :data="basicData" |
| | | :option="basicOption" |
| | | @row-save="basicSave" |
| | | > |
| | | <!-- çæ¬è§å--> |
| | | <template slot="rulesForm" slot-scope="{disabled,size}"> |
| | | <div> |
| | | <el-input v-if="rulesFalg==false" v-model="objs.tex" :size="size" placeholder="请è¾å
¥çæ¬å·è§å" |
| | | style="width: 290px"></el-input> |
| | | <el-select v-if="rulesFalg" v-model="objs.select" placeholder="è¯·éæ©çæ¬å·è§å" style="max-width: 300px"> |
| | | <el-option label="æµè¯1" value="1"></el-option> |
| | | <el-option label="æµè¯2" value="2"></el-option> |
| | | <el-option label="æµè¯3" value="3"></el-option> |
| | | </el-select> |
| | | <el-button style="margin-bottom: 5px;margin-left: 10px" type="primary" @click="handelRules"> |
| | | {{ rulesFalg == false ? "éæ©çæ¬å·è§å" : "æå¨è¾å
¥" }} |
| | | </el-button> |
| | | </div> |
| | | <el-descriptions class="margin-top" :column="3" :size="size" border> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-finished"></i> |
| | | è±æåç§° |
| | | </template> |
| | | <!-- çå½å¨æ--> |
| | | <template slot="lifeCycleForm"> |
| | | <el-select v-model="objs.select" placeholder="è¯·éæ©çå½å¨æ" style="max-width: 300px"> |
| | | <el-option label="æµè¯1" value="1"></el-option> |
| | | <el-option label="æµè¯2" value="2"></el-option> |
| | | <el-option label="æµè¯3" value="3"></el-option> |
| | | </el-select> |
| | | <el-button style="margin-bottom: 5px;display: inline-block;margin-left: 10px" type="primary" |
| | | @click="handelLife">çå½å¨æå表 |
| | | </el-button> |
| | | {{ obj.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-info"></i> |
| | | 䏿åç§° |
| | | </template> |
| | | {{ obj.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-date"></i> |
| | | æ°æ®åºè¡¨å |
| | | </template> |
| | | {{ obj.tableName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-folder-opened"></i> |
| | | æå±é¢å |
| | | </template> |
| | | {{ obj.domain }} |
| | | </el-descriptions-item> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-s-ticket"></i> |
| | | æ ç¾ |
| | | </template> |
| | | {{obj.hashtag}} |
| | | </el-descriptions-item> --> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-arrow-up"></i> |
| | | ç»§æ¿èª |
| | | </template> |
| | | {{ obj.sss }} |
| | | </el-descriptions-item> --> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-s-check"></i> |
| | | çæ¬è§å |
| | | </template> |
| | | {{ obj.versionRule }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-refresh-right"></i> |
| | | çå½å¨æ |
| | | </template> |
| | | {{ obj.lifeCycleId }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-view"></i> |
| | | è§å¾ |
| | | </template> |
| | | {{ obj.viewFlag }} |
| | | </el-descriptions-item> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-arrow-down"></i> |
| | | å®ç°ç±» |
| | | </template> |
| | | {{ obj.implClass }} |
| | | </el-descriptions-item> --> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-chat-line-square"></i> |
| | | æè¿° |
| | | </template> |
| | | {{ obj.description }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </basic-container> |
| | | <!-- 屿§å表--> |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">屿§å表</p> |
| | | <avue-crud v-model="obj" :data="obj.attributes" :option="loadOption" @row-save="loadSave"></avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | <el-dialog :visible="ref.visible" title="仿°æ®åºä¸æ·»å " width="700px" append-to-body @close="dialoghandelfalse"> |
| | | éæ©é¢åï¼ |
| | | <el-select v-model="domain" placeholder="è¯·éæ©" @change="refOnLoad"> |
| | | <el-option v-for="item in domainOptions" :key="item" :label="item" :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | <avue-crud class="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data" @selection-change="selectionChange"> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="packageLifeBox" |
| | | append-to-body |
| | | title="æ¥ç使ç¨èå´" |
| | | width="1000px"> |
| | | <Businpackage></Businpackage> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialoghandelfalse">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialoghandeltrue">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </basic-container> |
| | | <!-- 屿§å表--> |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">屿§å表</p> |
| | | <avue-crud |
| | | v-model="obj" |
| | | :data="loadData" |
| | | :option="loadOption" |
| | | @row-save="loadSave" |
| | | ></avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container> |
| | | <business-add ref="btmAdd" :btmType="addOption.btmType" :domainOption="domainOptions"> |
| | | </business-add> |
| | | </el-container> |
| | | </template> |
| | | <script> |
| | | import { |
| | | initTree, |
| | | refOnLoad, |
| | | getDomain, |
| | | saveFromTable, |
| | | getDetail |
| | | } from "@/api/omd/btmType" |
| | | export default { |
| | | name: "Business", |
| | | data() { |
| | |
| | | //çæ¬è§åç¶æ |
| | | rulesFalg: false, |
| | | obj: {}, |
| | | treeData: [{ |
| | | value: 0, |
| | | label: 'ä¸å¡ç±»åæ ', |
| | | children: [ |
| | | { |
| | | value: 1, |
| | | label: 'A', |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: 'B', |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: 'C', |
| | | }, |
| | | { |
| | | value: 4, |
| | | label: 'D', |
| | | }, |
| | | { |
| | | value: 5, |
| | | label: 'E', |
| | | } |
| | | ] |
| | | }], |
| | | selectionList: [], |
| | | treeData: [], |
| | | treeOption: { |
| | | defaultExpandAll: true, |
| | | }, |
| | | loadData: [], |
| | | loadData1: [ |
| | | { |
| | | name: 'å¼ ä¸', |
| | | business: 'æµè¯', |
| | | attrType: "æµè¯", |
| | | default: "æµè¯", |
| | | explain: "æµè¯è¯´æ" |
| | | }, |
| | | { |
| | | name: 'æå', |
| | | business: 'æµè¯', |
| | | attrType: "æµè¯", |
| | | default: "æµè¯", |
| | | explain: "æµè¯è¯´æ" |
| | | title: 'ä¸å¡ç±»åæ ', |
| | | props: { |
| | | labelText: '', |
| | | label: 'name', |
| | | value: 'oid', |
| | | children: 'childList', |
| | | } |
| | | ], |
| | | loadData2: [ |
| | | { |
| | | name: 'çäº', |
| | | business: 'æµè¯', |
| | | attrType: "æµè¯", |
| | | default: "æµè¯", |
| | | explain: "æµè¯è¯´æ" |
| | | }, |
| | | { |
| | | name: 'å®å
', |
| | | business: 'æµè¯', |
| | | attrType: "æµè¯", |
| | | default: "æµè¯", |
| | | explain: "æµè¯è¯´æ" |
| | | } |
| | | ], |
| | | addOption:{ |
| | | btmType:{}, |
| | | }, |
| | | loadOption: { |
| | | border: true, |
| | | height: 422, |
| | | height: 466, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | menu: false, |
| | | highlightCurrentRow: true, |
| | | refreshBtn:false, |
| | | columnBtn:false, |
| | | column: [ |
| | | { |
| | | label: '屿§å', |
| | | prop: 'name' |
| | | }, |
| | | { |
| | | label: 'ä¸å¡ç±»å', |
| | | prop: 'business' |
| | | label: '屿§è±æåç§°', |
| | | prop: 'id', |
| | | align: 'center' |
| | | }, { |
| | | label: '屿§ä¸æåç§°', |
| | | prop: 'name', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "屿§ç±»å", |
| | | prop: "attrType" |
| | | prop: "attrDataType", |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "é»è®¤å¼", |
| | | prop: "default", |
| | | prop: "defaultValue", |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "说æ", |
| | | prop: "explain" |
| | | prop: "description", |
| | | align: 'center' |
| | | } |
| | | ] |
| | | }, |
| | | //åºæ¬ä¿¡æ¯ |
| | | objs: { |
| | | tex: "", |
| | | select: "", |
| | | lifeTex: "" |
| | | }, |
| | | basicData: [], |
| | | basicData1: [ |
| | | { |
| | | typeName: "æµè¯1", |
| | | tag: "客æ·", |
| | | inherit: "æµè¯", |
| | | implement: "æµè¯", |
| | | lifeCycle: "卿", |
| | | desc: "è¿æ¯ä¸ä¸ªæè¿°" |
| | | } |
| | | ], |
| | | basicData2: [ |
| | | { |
| | | typeName: "æµè¯2", |
| | | tag: "客æ·", |
| | | inherit: "æµè¯", |
| | | implement: "æµè¯", |
| | | lifeCycle: "卿", |
| | | desc: "è¿æ¯ä¸ä¸ªæè¿°" |
| | | } |
| | | ], |
| | | basicOption: { |
| | | domain: null, |
| | | domainOptions: [], |
| | | ref: { |
| | | // ä»è¡¨ä¸éæ©dialogç¶æ |
| | | visible: false, |
| | | form: {}, |
| | | option: { |
| | | height: "550px", |
| | | selection: true, |
| | | headerAlign: 'center', |
| | | border: true, |
| | | height: 88, |
| | | index: true, |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | addBtn: false, |
| | | menu: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: "ç±»ååç§°", |
| | | prop: "typeName", |
| | | label: '表å', |
| | | prop: 'tableName', |
| | | align: 'center', |
| | | display: false |
| | | }, |
| | | { |
| | | label: "æ ç¾", |
| | | prop: "tag", |
| | | display: false |
| | | }, |
| | | { |
| | | label: "ç»§æ¿èª", |
| | | prop: "inherit", |
| | | display: false |
| | | }, |
| | | { |
| | | label: "å®ç°ç±»", |
| | | prop: "implement", |
| | | display: false |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop: "desc", |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | align: 'center', |
| | | display: false |
| | | } |
| | | ], |
| | | group: [ |
| | | { |
| | | label: "åºæ¬ä¿¡æ¯", |
| | | column: [ |
| | | { |
| | | label: "ç±»ååç§°", |
| | | prop: "typeName" |
| | | }, |
| | | { |
| | | label: "æ ç¾", |
| | | prop: "tag" |
| | | }, |
| | | { |
| | | label: "ç»§æ¿èª", |
| | | prop: "inherit" |
| | | }, |
| | | { |
| | | label: "æ¯å¦å®ä¾å", |
| | | prop: "case", |
| | | type: "switch", |
| | | align: "center", |
| | | hide: true, |
| | | labelWidth: 90, |
| | | dicData: [ |
| | | { |
| | | label: "å¦", |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: "æ¯", |
| | | value: 1 |
| | | } |
| | | ], |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop: "desc", |
| | | type: "textarea" |
| | | }, |
| | | { |
| | | label: "å®ç°ç±»", |
| | | prop: "implement" |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | | { |
| | | label: "çæ¬è§å", |
| | | column: [ |
| | | { |
| | | label: 'çæ¬è§å', |
| | | prop: 'radio', |
| | | type: 'radio', |
| | | button: true, |
| | | change: this.radioChange, |
| | | value: 0, |
| | | dicData: [{ |
| | | label: 'ä¸å¯ä¿®è®¢', |
| | | value: 0 |
| | | }, { |
| | | label: 'éç¨ä¸çº§çæ¬ç®¡ç', |
| | | value: 1 |
| | | }, { |
| | | label: 'éç¨äºçº§çæ¬ç®¡ç', |
| | | value: 2 |
| | | data: [{ |
| | | tableName: '1', |
| | | description: '2' |
| | | }] |
| | | }, |
| | | { |
| | | label: "çæ¬å·è§å", |
| | | prop: "rules", |
| | | display: true, |
| | | formslot: true, |
| | | }, |
| | | { |
| | | label: "åé符", |
| | | prop: "interval", |
| | | type: "select", |
| | | display: true, |
| | | dicData: [ |
| | | { |
| | | label: ".", |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: "-", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: " ", |
| | | value: 2 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'çæ¬¡å·è§å', |
| | | prop: 'radioRules', |
| | | type: 'radio', |
| | | display: true, |
| | | dicData: [{ |
| | | label: '1.2.3...', |
| | | value: 0 |
| | | }, { |
| | | label: 'a.b.c...', |
| | | value: 1 |
| | | }, { |
| | | label: '0.1.2...', |
| | | value: 2 |
| | | }] |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | label: "çå½å¨æ", |
| | | column: [ |
| | | { |
| | | label: "çå½å¨æ", |
| | | prop: "lifeCycle" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | this.loadData = this.loadData1; |
| | | this.basicData = this.basicData1 |
| | | |
| | | this.initTreeOnLoad(); |
| | | this.initDomainOption(); |
| | | }, |
| | | methods: { |
| | | //çå½å¨æå¯¹è¯æ¡åæ¶ç¹å»äºä»¶ |
| | |
| | | } |
| | | }, |
| | | nodeClick(data) { |
| | | if (data.value == 1) { |
| | | this.loadData = this.loadData1; |
| | | this.basicData = this.basicData1 |
| | | } else if (data.value == 2) { |
| | | this.loadData = this.loadData2; |
| | | this.basicData = this.basicData2 |
| | | } |
| | | this.$message.success(JSON.stringify(data)) |
| | | } |
| | | getDetail(data.oid).then(res => { |
| | | this.obj = res.data.data; |
| | | }) |
| | | }, |
| | | // åºæ¬ä¿¡æ¯æ·»å |
| | | basicSave(row, done, loading) { |
| | |
| | | }).catch(() => { |
| | | loading() |
| | | }) |
| | | }, |
| | | selectFromTable() { |
| | | console.log('è·å'); |
| | | this.ref.visible = true; |
| | | }, |
| | | refOnLoad(domain) { |
| | | refOnLoad(domain).then(res => { |
| | | this.ref.data = res.data.data; |
| | | }) |
| | | }, |
| | | initTreeOnLoad() { |
| | | initTree().then(res => { |
| | | console.log('123'); |
| | | this.treeData = res.data.data; |
| | | }); |
| | | }, |
| | | initDomainOption() { |
| | | getDomain().then(res => { |
| | | this.domainOptions = res.data.data; |
| | | }) |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | console.log(this.selectionList); |
| | | }, |
| | | dialoghandelfalse() { |
| | | this.ref.visible = false; |
| | | this.selectionList = []; |
| | | this.domain = null; |
| | | }, |
| | | dialoghandeltrue() { |
| | | saveFromTable(this.selectionList, this.domain).then(res => { |
| | | this.$message.success('ä¿åæå'); |
| | | this.dialoghandelfalse(); |
| | | this.initTreeOnLoad(); |
| | | }) |
| | | }, |
| | | businessAdd(){ |
| | | this.$refs.btmAdd.showSubmitDialog = true; |
| | | console.log('æ·»å '); |
| | | }, |
| | | businessEdit(){ |
| | | this.addOption.btmType = this.obj; |
| | | this.$refs.addOption.showSubmitDialog = true; |
| | | console.log('ç¼è¾'); |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | .businessCrud > .el-card > .el-card__body > .avue-crud_menu{ |
| | | display: none!important; |
| | | } |
| | | |
| | | </style> |
| | |
| | | update, getPage |
| | | } from "@/api/omd/OmdAttribute"; |
| | | |
| | | import { getDictionary } from "@/api/omd/dict"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | |
| | | export default { |
| | | name: "original", |
ÎļþÃû´Ó Source/UBCS-WEB/src/views/omd/dict.vue ÐÞ¸Ä |
| | |
| | | <el-tag>{{ row.isSealed === 0 ? 'å¦' : 'æ¯' }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :title="`[${dictValue}]æä¸¾é¡¹é
ç½®`" |
| | | <el-dialog :title="`[${name}]æä¸¾é¡¹é
ç½®`" |
| | | append-to-body |
| | | :visible.sync="box" |
| | | width="1000px"> |
| | |
| | | icon="el-icon-delete" |
| | | v-if="permission.dict_delete" |
| | | plain |
| | | @click="handleDelete" |
| | | @click="handleDeleteChild" |
| | | >å é¤ |
| | | </el-button> |
| | | </template> |
| | |
| | | update, |
| | | add, |
| | | getDict, |
| | | getDictTree |
| | | } from "@/api/omd/dict"; |
| | | import {optionParent, optionChild} from "@/const/omd/dict"; |
| | | getDictTree, addChild, updateChild, getDictChild, removeChild |
| | | } from "@/api/omd/enum"; |
| | | import {optionParent, optionChild} from "@/const/omd/enum"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | dictValue: 'ææ ', |
| | | parentId: -1, |
| | | parentoid: -1, |
| | | formParent: {}, |
| | | formChild: {}, |
| | | selectionList: [], |
| | |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | | ids.push(ele.id); |
| | | ids.push(ele.oid); |
| | | }); |
| | | return ids.join(","); |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | initData() { |
| | | getDictTree().then(res => { |
| | | const column = this.findObject(this.optionChild.column, "parentId"); |
| | | getDictTree(this.pageParent.currentPage, |
| | | this.pageParent.pageSize, |
| | | this.query).then(res => { |
| | | const column = this.findObject(this.optionChild.column, "parentoid"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | }, |
| | | handleAdd(row) { |
| | | this.formChild.dictValue = ""; |
| | | this.formChild.dictKey = ""; |
| | | this.formChild.value = ""; |
| | | this.formChild.name = ""; |
| | | this.formChild.sort = 0; |
| | | this.formChild.isSealed = 0; |
| | | this.formChild.remark = ""; |
| | | this.formChild.parentId = row.id; |
| | | this.formChild.parentoid = row.oid; |
| | | this.$refs.crudChild.rowAdd(); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | return remove(row.oid); |
| | | }) |
| | | .then(() => { |
| | | this.onLoadParent(this.pageParent); |
| | |
| | | }, |
| | | handleRowClick(row) { |
| | | this.query = {}; |
| | | this.parentId = row.id; |
| | | this.dictValue = row.dictValue; |
| | | this.parentId = row.oid; |
| | | this.name = row.name; |
| | | |
| | | const code = this.findObject(this.optionChild.column, "code"); |
| | | const code = this.findObject(this.optionChild.column, "value"); |
| | | code.value = row.code; |
| | | const parentId = this.findObject(this.optionChild.column, "parentId"); |
| | | parentId.value = row.id; |
| | | // const parentoid = this.findObject(this.optionChild.column, "parentoid"); |
| | | this.parentoid = row.oid; |
| | | |
| | | this.box = true; |
| | | this.onLoadChild(this.pageChild); |
| | |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDict(this.formParent.id).then(res => { |
| | | getDict(this.formParent.oid).then(res => { |
| | | this.formParent = res.data.data; |
| | | }); |
| | | } |
| | |
| | | this.onLoadParent(this.pageParent, this.query); |
| | | }, |
| | | rowSaveChild(row, done, loading) { |
| | | add(row).then(() => { |
| | | row.parentoid = this.parentoid; |
| | | addChild(row).then(() => { |
| | | this.onLoadChild(this.pageChild); |
| | | this.$message({ |
| | | type: "success", |
| | |
| | | }); |
| | | }, |
| | | rowUpdateChild(row, index, done, loading) { |
| | | update(row).then(() => { |
| | | updateChild(row).then(() => { |
| | | this.onLoadChild(this.pageChild); |
| | | this.$message({ |
| | | type: "success", |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | return removeChild(row.oid); |
| | | }) |
| | | .then(() => { |
| | | this.onLoadChild(this.pageChild); |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids); |
| | | return removeChild(this.ids); |
| | | }) |
| | | .then(() => { |
| | | this.onLoadChild(this.pageChild); |
| | |
| | | this.initData(); |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | | getDict(this.formChild.id).then(res => { |
| | | getDictChild(this.formChild.oid).then(res => { |
| | | this.formChild = res.data.data; |
| | | }); |
| | | } |
| | |
| | | getChildList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | this.parentId, |
| | | this.parentoid, |
| | | Object.assign(params, this.query) |
| | | ).then(res => { |
| | | this.dataChild = res.data.data; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | |
| | | selection: true, |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "æä»¶å", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | :before-open="beforeOpen" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "åºç¨id", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="clickRowChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | viewBtn: true, |
| | | menuWidth: 300, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "æºæåç§°", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="clickRowChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | total: 0, |
| | | }, |
| | | option: { |
| | | height: "auto", |
| | | lazy: true, |
| | | tip: false, |
| | | simplePage: true, |
| | |
| | | viewBtn: true, |
| | | menuWidth: 300, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "èååç§°", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="clickRowChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "æå±ç§æ·", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | viewBtn: true, |
| | | dialogWidth: 900, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "ç§æ·ID", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | |
| | | selection: true, |
| | | dialogWidth: 900, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "èåå", |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | viewBtn: true, |
| | | dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //è¡é䏿¶é«äº® |
| | | column: [ |
| | | { |
| | | label: "ç»å½è´¦å·", |
| | |
| | | }else { |
| | | this.passVisible=true; |
| | | } |
| | | console.log("selectionList",this.selectionList) |
| | | console.log(this.UserPwdstrategyVO) |
| | | //console.log("selectionList",this.selectionList) |
| | | //console.log(this.UserPwdstrategyVO) |
| | | }, |
| | | // 设置å¯ç çç¥ï¼ä¼ é䏿æ¡çidåå¤éæ¡çid |
| | | passhandle(){ |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | <img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status"/> |
| | | <img src="https://img.shields.io/badge/Spring%20Cloud-2021-blue.svg" alt="Coverage Status"/> |
| | | <img src="https://img.shields.io/badge/Spring%20Boot-2.7-blue.svg" alt="Downloads"/> |
| | | <a target="_blank" href="https://bladex.vip"> |
| | | <!-- <a target="_blank" href="https://bladex.vip"> |
| | | <img src="https://img.shields.io/badge/Saber%20Author-Small%20Chill-ff69b4.svg" alt="Downloads"/> |
| | | </a> |
| | | <a target="_blank" href="https://bladex.vip"> |
| | | <img src="https://img.shields.io/badge/Copyright%20-@BladeX-%23ff3f59.svg" alt="Downloads"/> |
| | | </a> |
| | | </a> --> |
| | | </p> |
| | | </basic-container> |
| | | </el-col> |
| | |
| | | v-model="form" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="clickRowChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="clickRowChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="clickRowChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" |
| | |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | target: 'http://localhost:37000', |
| | | //target: 'http://localhost:37000', |
| | | target: 'http://192.168.3.7:37000', |
| | | //target: 'http://dev.vci-tech.com:37000', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
| | | //target: 'https://saber.bladex.vip/api', |
| | |
| | | * nacos dev å°å |
| | | */ |
| | | //String NACOS_DEV_ADDR = "dev.vci-tech.com:38848"; |
| | | String NACOS_DEV_ADDR = "192.168.93.149:38848"; |
| | | String NACOS_DEV_ADDR = "192.168.93.196:38848"; |
| | | |
| | | /** |
| | | * nacos prod å°å |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * 主é¢åºåç±»çæ¨¡æ¿å±æ§æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æ°æ®ä¼ è¾å¯¹è±¡å®ä½ç±» |
| | | * |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | * @author ludc |
| | | * @since 2023-05-8 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClassifyTemplateAttrDTO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 说æ |
| | | */ |
| | | //@Column(columnDefinition = "说æ") |
| | | private String explain; |
| | | |
| | | /** |
| | | * éæ©åºæ è¯ |
| | | */ |
| | | //@Column(columnDefinition = "éæ©åºæ è¯") |
| | | private String libraryIdentification; |
| | | |
| | | /** |
| | | * 级è屿§ç¼å· |
| | | */ |
| | | //@Column(columnDefinition = "级è屿§ç¼å·") |
| | | private String parentCode; |
| | | |
| | | /** |
| | | * 级è屿§åç§° |
| | | */ |
| | | //@Column(columnDefinition = "级è屿§åç§°") |
| | | private String parentName; |
| | | |
| | | /** |
| | | * çº§èæ¥è¯¢å±æ§ |
| | | */ |
| | | //@Column(columnDefinition = "çº§èæ¥è¯¢å±æ§") |
| | | private String parentQueryAttr; |
| | | |
| | | public String getExplain() { |
| | | return explain; |
| | | } |
| | | |
| | | public void setExplain(String explain) { |
| | | this.explain = explain; |
| | | } |
| | | |
| | | public String getLibraryIdentification() { |
| | | return libraryIdentification; |
| | | } |
| | | |
| | | public void setLibraryIdentification(String libraryIdentification) { |
| | | this.libraryIdentification = libraryIdentification; |
| | | } |
| | | |
| | | public String getParentCode() { |
| | | return parentCode; |
| | | } |
| | | |
| | | public void setParentCode(String parentCode) { |
| | | this.parentCode = parentCode; |
| | | } |
| | | |
| | | public String getParentName() { |
| | | return parentName; |
| | | } |
| | | |
| | | public void setParentName(String parentName) { |
| | | this.parentName = parentName; |
| | | } |
| | | |
| | | public String getParentQueryAttr() { |
| | | return parentQueryAttr; |
| | | } |
| | | |
| | | public void setParentQueryAttr(String parentQueryAttr) { |
| | | this.parentQueryAttr = parentQueryAttr; |
| | | } |
| | | |
| | | public String getEnumString() { |
| | | return enumString; |
| | | } |
| | | |
| | | public void setEnumString(String enumString) { |
| | | this.enumString = enumString; |
| | | } |
| | | |
| | | /** |
| | | * è·å æå±æ¨¡æ¿ |
| | | */ |
| | | public String getClassifytemplateoid (){ |
| | | return classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±æ¨¡æ¿ |
| | | */ |
| | | public void setClassifytemplateoid (String classifytemplateoid){ |
| | | this.classifytemplateoid = classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifytemplateoidName (){ |
| | | return classifytemplateoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifytemplateoidName (String classifytemplateoidName){ |
| | | this.classifytemplateoidName = classifytemplateoidName; |
| | | } |
| | | /** |
| | | * è·å æå±åç±»ä¸ç屿§ä¸»é® |
| | | */ |
| | | public String getClassifyattributeoid (){ |
| | | return classifyattributeoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±åç±»ä¸ç屿§ä¸»é® |
| | | */ |
| | | public void setClassifyattributeoid (String classifyattributeoid){ |
| | | this.classifyattributeoid = classifyattributeoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åç±»ä¸ç屿§ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifyattributeoidName (){ |
| | | return classifyattributeoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åç±»ä¸ç屿§ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifyattributeoidName (String classifyattributeoidName){ |
| | | this.classifyattributeoidName = classifyattributeoidName; |
| | | } |
| | | /** |
| | | * è·å 屿§çç±»å |
| | | */ |
| | | public String getAttributedatatype (){ |
| | | return attributedatatype; |
| | | } |
| | | |
| | | /** |
| | | * 设置 屿§çç±»å |
| | | */ |
| | | public void setAttributedatatype (String attributedatatype){ |
| | | this.attributedatatype = attributedatatype; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦å
³é®å±æ§ |
| | | */ |
| | | public String getKeyattrflag (){ |
| | | return keyattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å
³é®å±æ§ |
| | | */ |
| | | public void setKeyattrflag (String keyattrflag){ |
| | | this.keyattrflag = keyattrflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦å¿«éæ¥è¯¢å±æ§ |
| | | */ |
| | | public String getQueryattrflag (){ |
| | | return queryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å¿«éæ¥è¯¢å±æ§ |
| | | */ |
| | | public void setQueryattrflag (String queryattrflag){ |
| | | this.queryattrflag = queryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦é«çº§æ¥è¯¢å±æ§ |
| | | */ |
| | | public String getSeniorqueryattrflag (){ |
| | | return seniorqueryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦é«çº§æ¥è¯¢å±æ§ |
| | | */ |
| | | public void setSeniorqueryattrflag (String seniorqueryattrflag){ |
| | | this.seniorqueryattrflag = seniorqueryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å ç¸ä¼¼æ¥é屿§ |
| | | */ |
| | | public String getSamerepeatattrflag (){ |
| | | return samerepeatattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç¸ä¼¼æ¥é屿§ |
| | | */ |
| | | public void setSamerepeatattrflag (String samerepeatattrflag){ |
| | | this.samerepeatattrflag = samerepeatattrflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦æåº |
| | | */ |
| | | public String getSortattrflag (){ |
| | | return sortattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦æåº |
| | | */ |
| | | public void setSortattrflag (String sortattrflag){ |
| | | this.sortattrflag = sortattrflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦çæäºç»´ç |
| | | */ |
| | | public String getQrcodeflag (){ |
| | | return qrcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦çæäºç»´ç |
| | | */ |
| | | public void setQrcodeflag (String qrcodeflag){ |
| | | this.qrcodeflag = qrcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦çæä¸ç»´ç |
| | | */ |
| | | public String getBarcodeflag (){ |
| | | return barcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦çæä¸ç»´ç |
| | | */ |
| | | public void setBarcodeflag (String barcodeflag){ |
| | | this.barcodeflag = barcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å ç»åè§å |
| | | */ |
| | | public String getComponentrule (){ |
| | | return componentrule; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç»åè§å |
| | | */ |
| | | public void setComponentrule (String componentrule){ |
| | | this.componentrule = componentrule; |
| | | } |
| | | |
| | | /** |
| | | * è·å éªè¯è§å |
| | | */ |
| | | public String getVerifyrule (){ |
| | | return verifyrule; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éªè¯è§å |
| | | */ |
| | | public void setVerifyrule (String verifyrule){ |
| | | this.verifyrule = verifyrule; |
| | | } |
| | | |
| | | /** |
| | | * è·å å类注å
¥å±çº§ |
| | | */ |
| | | public String getClassifyinvokelevel (){ |
| | | return classifyinvokelevel; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥å±çº§ |
| | | */ |
| | | public void setClassifyinvokelevel (String classifyinvokelevel){ |
| | | this.classifyinvokelevel = classifyinvokelevel; |
| | | } |
| | | |
| | | /** |
| | | * è·å å类注å
¥ç屿§è±æåç§° |
| | | */ |
| | | public String getClassifyinvokeattr (){ |
| | | return classifyinvokeattr; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥ç屿§è±æåç§° |
| | | */ |
| | | public void setClassifyinvokeattr (String classifyinvokeattr){ |
| | | this.classifyinvokeattr = classifyinvokeattr; |
| | | } |
| | | |
| | | /** |
| | | * è·å å类注å
¥ç屿§ä¸æåç§° |
| | | */ |
| | | public String getClassifyinvokeattrname (){ |
| | | return classifyinvokeattrname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥ç屿§ä¸æåç§° |
| | | */ |
| | | public void setClassifyinvokeattrname (String classifyinvokeattrname){ |
| | | this.classifyinvokeattrname = classifyinvokeattrname; |
| | | } |
| | | |
| | | /** |
| | | * è·å å类注å
¥æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public String getClassifyinvokeeditflag (){ |
| | | return classifyinvokeeditflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public void setClassifyinvokeeditflag (String classifyinvokeeditflag){ |
| | | this.classifyinvokeeditflag = classifyinvokeeditflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å ç å¼åºå· |
| | | */ |
| | | public Integer getOrdernum (){ |
| | | return ordernum; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç å¼åºå· |
| | | */ |
| | | public void setOrdernum (Integer ordernum){ |
| | | this.ordernum = ordernum; |
| | | } |
| | | |
| | | /** |
| | | * è·å 表å鿝妿¾ç¤º |
| | | */ |
| | | public String getFormdisplayflag (){ |
| | | return formdisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表å鿝妿¾ç¤º |
| | | */ |
| | | public void setFormdisplayflag (String formdisplayflag){ |
| | | this.formdisplayflag = formdisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å åè¡¨éæ¯å¦æ¾ç¤º |
| | | */ |
| | | public String getTabledisplayflag (){ |
| | | return tabledisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åè¡¨éæ¯å¦æ¾ç¤º |
| | | */ |
| | | public void setTabledisplayflag (String tabledisplayflag){ |
| | | this.tabledisplayflag = tabledisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æå±å±æ§åç» |
| | | */ |
| | | public String getAttributegroup (){ |
| | | return attributegroup; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±å±æ§åç» |
| | | */ |
| | | public void setAttributegroup (String attributegroup){ |
| | | this.attributegroup = attributegroup; |
| | | } |
| | | |
| | | /** |
| | | * è·å ä½¿ç¨æä¸¾è±æç¼å· |
| | | */ |
| | | public String getEnumid (){ |
| | | return enumid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ä½¿ç¨æä¸¾è±æç¼å· |
| | | */ |
| | | public void setEnumid (String enumid){ |
| | | this.enumid = enumid; |
| | | } |
| | | |
| | | /** |
| | | * è·å ä½¿ç¨æä¸¾ä¸æåç§° |
| | | */ |
| | | public String getEnumname (){ |
| | | return enumname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ä½¿ç¨æä¸¾ä¸æåç§° |
| | | */ |
| | | public void setEnumname (String enumname){ |
| | | this.enumname = enumname; |
| | | } |
| | | |
| | | /** |
| | | * è·å æä¸¾æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public String getEnumeditflag (){ |
| | | return enumeditflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æä¸¾æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public void setEnumeditflag (String enumeditflag){ |
| | | this.enumeditflag = enumeditflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å åç
§çä¸å¡ç±»åè±æåç§° |
| | | */ |
| | | public String getReferbtmid (){ |
| | | return referbtmid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç
§çä¸å¡ç±»åè±æåç§° |
| | | */ |
| | | public void setReferbtmid (String referbtmid){ |
| | | this.referbtmid = referbtmid; |
| | | } |
| | | |
| | | /** |
| | | * è·å åç
§çä¸å¡ç±»å䏿åç§° |
| | | */ |
| | | public String getReferbtmname (){ |
| | | return referbtmname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç
§çä¸å¡ç±»å䏿åç§° |
| | | */ |
| | | public void setReferbtmname (String referbtmname){ |
| | | this.referbtmname = referbtmname; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·å æ¯å¦å¿
è¾ |
| | | */ |
| | | public String getRequireflag (){ |
| | | return requireflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å¿
è¾ |
| | | */ |
| | | public void setRequireflag (String requireflag){ |
| | | this.requireflag = requireflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦åªè¯» |
| | | */ |
| | | public String getReadonlyflag (){ |
| | | return readonlyflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦åªè¯» |
| | | */ |
| | | public void setReadonlyflag (String readonlyflag){ |
| | | this.readonlyflag = readonlyflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | public Integer getControllength (){ |
| | | return controllength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | public void setControllength (Integer controllength){ |
| | | this.controllength = controllength; |
| | | } |
| | | |
| | | /** |
| | | * è·å 表åéæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public String getFormdisplaystyle (){ |
| | | return formdisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表åéæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public void setFormdisplaystyle (String formdisplaystyle){ |
| | | this.formdisplaystyle = formdisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * è·å è¡¨æ ¼éæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public String getTabledisplaystyle (){ |
| | | return tabledisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼éæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public void setTabledisplaystyle (String tabledisplaystyle){ |
| | | this.tabledisplaystyle = tabledisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * è·å 表åä¸è¶
龿¥å
容 |
| | | */ |
| | | public String getFormhref (){ |
| | | return formhref; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表åä¸è¶
龿¥å
容 |
| | | */ |
| | | public void setFormhref (String formhref){ |
| | | this.formhref = formhref; |
| | | } |
| | | |
| | | /** |
| | | * è·å è¡¨æ ¼ä¸è¶
龿¥å
容 |
| | | */ |
| | | public String getTablehref (){ |
| | | return tablehref; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼ä¸è¶
龿¥å
容 |
| | | */ |
| | | public void setTablehref (String tablehref){ |
| | | this.tablehref = tablehref; |
| | | } |
| | | |
| | | /** |
| | | * è·å å°æ°ç²¾åº¦ |
| | | */ |
| | | public Integer getPrecisionlength (){ |
| | | return precisionlength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å°æ°ç²¾åº¦ |
| | | */ |
| | | public void setPrecisionlength (Integer precisionlength){ |
| | | this.precisionlength = precisionlength; |
| | | } |
| | | |
| | | /** |
| | | * è·å å°æ°å»åº¦ |
| | | */ |
| | | public Integer getScalelength (){ |
| | | return scalelength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å°æ°å»åº¦ |
| | | */ |
| | | public void setScalelength (Integer scalelength){ |
| | | this.scalelength = scalelength; |
| | | } |
| | | |
| | | /** |
| | | * è·å åå¼èå´ |
| | | */ |
| | | public String getValuearea (){ |
| | | return valuearea; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åå¼èå´ |
| | | */ |
| | | public void setValuearea (String valuearea){ |
| | | this.valuearea = valuearea; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¶é´æ ¼å¼ |
| | | */ |
| | | public String getCodedateformat (){ |
| | | return codedateformat; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¶é´æ ¼å¼ |
| | | */ |
| | | public void setCodedateformat (String codedateformat){ |
| | | this.codedateformat = codedateformat; |
| | | } |
| | | |
| | | /** |
| | | * è·å è¡¨æ ¼éæ¾ç¤ºè°ç¨çjs |
| | | */ |
| | | public String getTabledisplayjs (){ |
| | | return tabledisplayjs; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼éæ¾ç¤ºè°ç¨çjs |
| | | */ |
| | | public void setTabledisplayjs (String tabledisplayjs){ |
| | | this.tabledisplayjs = tabledisplayjs; |
| | | } |
| | | |
| | | /** |
| | | * è·å æ¯å¦æ¾ç¤ºå¤è¡ææ¬ |
| | | */ |
| | | public String getTextareaflag (){ |
| | | return textareaflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦æ¾ç¤ºå¤è¡ææ¬ |
| | | */ |
| | | public void setTextareaflag (String textareaflag){ |
| | | this.textareaflag = textareaflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å é¢è§å¾ |
| | | */ |
| | | public String getImageflag (){ |
| | | return imageflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 é¢è§å¾ |
| | | */ |
| | | public void setImageflag (String imageflag){ |
| | | this.imageflag = imageflag; |
| | | } |
| | | |
| | | /** |
| | | * è·å é»è®¤å¼ |
| | | */ |
| | | public String getDefaultvalue (){ |
| | | return defaultvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 é»è®¤å¼ |
| | | */ |
| | | public void setDefaultvalue (String defaultvalue){ |
| | | this.defaultvalue = defaultvalue; |
| | | } |
| | | |
| | | /** |
| | | * è·å åç¼ |
| | | */ |
| | | public String getPrefixvalue (){ |
| | | return prefixvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç¼ |
| | | */ |
| | | public void setPrefixvalue (String prefixvalue){ |
| | | this.prefixvalue = prefixvalue; |
| | | } |
| | | |
| | | /** |
| | | * è·å åç¼ |
| | | */ |
| | | public String getSuffixvalue (){ |
| | | return suffixvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç¼ |
| | | */ |
| | | public void setSuffixvalue (String suffixvalue){ |
| | | this.suffixvalue = suffixvalue; |
| | | } |
| | | |
| | | /** |
| | | * è·å éæ©æ°æ®æ¶è¿æ»¤ç屿§ |
| | | */ |
| | | public String getFiltersourceattr (){ |
| | | return filtersourceattr; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éæ©æ°æ®æ¶è¿æ»¤ç屿§ |
| | | */ |
| | | public void setFiltersourceattr (String filtersourceattr){ |
| | | this.filtersourceattr = filtersourceattr; |
| | | } |
| | | |
| | | /** |
| | | * è·å éæ©æ°æ®æ¶è¿æ»¤ç屿§åç§° |
| | | */ |
| | | public String getFiltersourceattrname (){ |
| | | return filtersourceattrname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éæ©æ°æ®æ¶è¿æ»¤ç屿§åç§° |
| | | */ |
| | | public void setFiltersourceattrname (String filtersourceattrname){ |
| | | this.filtersourceattrname = filtersourceattrname; |
| | | } |
| | | |
| | | public Integer getAttrTableWidth() { |
| | | return attrTableWidth; |
| | | } |
| | | |
| | | public void setAttrTableWidth(Integer attrTableWidth) { |
| | | this.attrTableWidth = attrTableWidth; |
| | | } |
| | | |
| | | public String getReferConfig() { |
| | | return referConfig; |
| | | } |
| | | |
| | | public void setReferConfig(String referConfig) { |
| | | this.referConfig = referConfig; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyTemplateAttrDTO{" + |
| | | "classifytemplateoid='" + classifytemplateoid + '\'' + |
| | | ", classifytemplateoidName='" + classifytemplateoidName + '\'' + |
| | | ", classifyattributeoid='" + classifyattributeoid + '\'' + |
| | | ", classifyattributeoidName='" + classifyattributeoidName + '\'' + |
| | | ", attributedatatype='" + attributedatatype + '\'' + |
| | | ", keyattrflag='" + keyattrflag + '\'' + |
| | | ", queryattrflag='" + queryattrflag + '\'' + |
| | | ", seniorqueryattrflag='" + seniorqueryattrflag + '\'' + |
| | | ", samerepeatattrflag='" + samerepeatattrflag + '\'' + |
| | | ", sortattrflag='" + sortattrflag + '\'' + |
| | | ", qrcodeflag='" + qrcodeflag + '\'' + |
| | | ", barcodeflag='" + barcodeflag + '\'' + |
| | | ", componentrule='" + componentrule + '\'' + |
| | | ", verifyrule='" + verifyrule + '\'' + |
| | | ", classifyinvokelevel='" + classifyinvokelevel + '\'' + |
| | | ", classifyinvokeattr='" + classifyinvokeattr + '\'' + |
| | | ", classifyinvokeattrname='" + classifyinvokeattrname + '\'' + |
| | | ", classifyinvokeeditflag='" + classifyinvokeeditflag + '\'' + |
| | | ", ordernum=" + ordernum + |
| | | ", formdisplayflag='" + formdisplayflag + '\'' + |
| | | ", tabledisplayflag='" + tabledisplayflag + '\'' + |
| | | ", attributegroup='" + attributegroup + '\'' + |
| | | ", enumString='" + enumString + '\'' + |
| | | ", enumid='" + enumid + '\'' + |
| | | ", enumname='" + enumname + '\'' + |
| | | ", enumeditflag='" + enumeditflag + '\'' + |
| | | ", referbtmid='" + referbtmid + '\'' + |
| | | ", referbtmname='" + referbtmname + '\'' + |
| | | ", referConfig='" + referConfig + '\'' + |
| | | ", requireflag='" + requireflag + '\'' + |
| | | ", readonlyflag='" + readonlyflag + '\'' + |
| | | ", controllength=" + controllength + |
| | | ", formdisplaystyle='" + formdisplaystyle + '\'' + |
| | | ", tabledisplaystyle='" + tabledisplaystyle + '\'' + |
| | | ", formhref='" + formhref + '\'' + |
| | | ", tablehref='" + tablehref + '\'' + |
| | | ", precisionlength=" + precisionlength + |
| | | ", scalelength=" + scalelength + |
| | | ", valuearea='" + valuearea + '\'' + |
| | | ", codedateformat='" + codedateformat + '\'' + |
| | | ", tabledisplayjs='" + tabledisplayjs + '\'' + |
| | | ", textareaflag='" + textareaflag + '\'' + |
| | | ", imageflag='" + imageflag + '\'' + |
| | | ", defaultvalue='" + defaultvalue + '\'' + |
| | | ", prefixvalue='" + prefixvalue + '\'' + |
| | | ", suffixvalue='" + suffixvalue + '\'' + |
| | | ", filtersourceattr='" + filtersourceattr + '\'' + |
| | | ", filtersourceattrname='" + filtersourceattrname + '\'' + |
| | | ", attrTableWidth=" + attrTableWidth + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 主é¢åºé模æ¿å
å«çæé®æ°æ®ä¼ è¾å¯¹è±¡ |
| | |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Data |
| | | public class CodeClassifyTemplateButtonDTO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * æå±æ¨¡æ¿ |
| | | */ |
| | | private String classifytemplateoid; |
| | | private String classifyTemplateOid; |
| | | |
| | | /** |
| | | * æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | private String classifytemplateoidName; |
| | | private String classifyTemplateOidName; |
| | | /** |
| | | * æé®çä¸»é® |
| | | */ |
| | | private String classifybuttonoid; |
| | | private String classifyButtonOid; |
| | | |
| | | /** |
| | | * æé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | private String classifybuttonoidName; |
| | | private String classifyButtonOidName; |
| | | /** |
| | | * æé®ç¨é |
| | | */ |
| | | private String buttonuse; |
| | | private String buttonUse; |
| | | |
| | | /** |
| | | * æé®ç¨éæ¾ç¤ºå¯¹è±¡ |
| | |
| | | /** |
| | | * ç å¼åºå· |
| | | */ |
| | | private Integer ordernum; |
| | | private Integer orderNum; |
| | | |
| | | |
| | | /** |
| | | * è·å æå±æ¨¡æ¿ |
| | | */ |
| | | public String getClassifytemplateoid (){ |
| | | return classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±æ¨¡æ¿ |
| | | */ |
| | | public void setClassifytemplateoid (String classifytemplateoid){ |
| | | this.classifytemplateoid = classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifytemplateoidName (){ |
| | | return classifytemplateoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifytemplateoidName (String classifytemplateoidName){ |
| | | this.classifytemplateoidName = classifytemplateoidName; |
| | | } |
| | | /** |
| | | * è·å æé®çä¸»é® |
| | | */ |
| | | public String getClassifybuttonoid (){ |
| | | return classifybuttonoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æé®çä¸»é® |
| | | */ |
| | | public void setClassifybuttonoid (String classifybuttonoid){ |
| | | this.classifybuttonoid = classifybuttonoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifybuttonoidName (){ |
| | | return classifybuttonoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifybuttonoidName (String classifybuttonoidName){ |
| | | this.classifybuttonoidName = classifybuttonoidName; |
| | | } |
| | | /** |
| | | * è·å æé®ç¨é |
| | | */ |
| | | public String getButtonuse (){ |
| | | return buttonuse; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æé®ç¨é |
| | | */ |
| | | public void setButtonuse (String buttonuse){ |
| | | this.buttonuse = buttonuse; |
| | | } |
| | | |
| | | /** |
| | | * è·å ç å¼åºå· |
| | | */ |
| | | public Integer getOrdernum (){ |
| | | return ordernum; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç å¼åºå· |
| | | */ |
| | | public void setOrdernum (Integer ordernum){ |
| | | this.ordernum = ordernum; |
| | | } |
| | | |
| | | public String getButtonUseText() { |
| | | return buttonUseText; |
| | | } |
| | | |
| | | public void setButtonUseText(String buttonUseText) { |
| | | this.buttonUseText = buttonUseText; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyTemplateButtonDTO{" + |
| | | "classifytemplateoid='" + classifytemplateoid + '\'' + |
| | | ", classifytemplateoidName='" + classifytemplateoidName + '\'' + |
| | | ", classifybuttonoid='" + classifybuttonoid + '\'' + |
| | | ", classifybuttonoidName='" + classifybuttonoidName + '\'' + |
| | | ", buttonuse='" + buttonuse + '\'' + |
| | | ", buttonUseText='" + buttonUseText + '\'' + |
| | | ", ordernum=" + ordernum + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * åç±»ç æ®µçç 弿°æ®ä¼ è¾å¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | * @author ludc |
| | | * @date 2022-04-24 |
| | | */ |
| | | @Data |
| | | public class CodeClassifyValueDTO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * åç±»ç æ®µä¸»é® |
| | | */ |
| | | private String codeclassifysecoid; |
| | | private String codeClassifySecOid; |
| | | |
| | | /** |
| | | * åç±»ç æ®µä¸»é®æ¾ç¤ºææ¬ |
| | |
| | | /** |
| | | * ç å¼åºå· |
| | | */ |
| | | private Integer ordernum; |
| | | private Integer orderNum; |
| | | |
| | | /** |
| | | * ä¸çº§åç±»ç å¼ä¸»é® |
| | | */ |
| | | private String parentclassifyvalueoid; |
| | | private String parentClassifyValueOid; |
| | | |
| | | |
| | | /** |
| | | * è·å åç±»ç æ®µä¸»é® |
| | | */ |
| | | public String getCodeclassifysecoid (){ |
| | | return codeclassifysecoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç±»ç æ®µä¸»é® |
| | | */ |
| | | public void setCodeclassifysecoid (String codeclassifysecoid){ |
| | | this.codeclassifysecoid = codeclassifysecoid; |
| | | } |
| | | |
| | | /** |
| | | * è·ååç±»ç æ®µä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getCodeclassifysecoidName (){ |
| | | return codeclassifysecoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置åç±»ç æ®µä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setCodeclassifysecoidName (String codeclassifysecoidName){ |
| | | this.codeclassifysecoidName = codeclassifysecoidName; |
| | | } |
| | | /** |
| | | * è·å ç å¼åºå· |
| | | */ |
| | | public Integer getOrdernum (){ |
| | | return ordernum; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç å¼åºå· |
| | | */ |
| | | public void setOrdernum (Integer ordernum){ |
| | | this.ordernum = ordernum; |
| | | } |
| | | |
| | | /** |
| | | * è·å ä¸çº§åç±»ç å¼ä¸»é® |
| | | */ |
| | | public String getParentclassifyvalueoid (){ |
| | | return parentclassifyvalueoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ä¸çº§åç±»ç å¼ä¸»é® |
| | | */ |
| | | public void setParentclassifyvalueoid (String parentclassifyvalueoid){ |
| | | this.parentclassifyvalueoid = parentclassifyvalueoid; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyValueDTO{" + |
| | | "codeclassifysecoid='" + codeclassifysecoid +"',"+ |
| | | "codeclassifysecoidName='" + codeclassifysecoidName +"'," + |
| | | "ordernum='" + ordernum +"',"+ |
| | | "parentclassifyvalueoid='" + parentclassifyvalueoid +"',"+ |
| | | "}" + super.toString(); |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeCodeAllcodeDTO.java ÐÞ¸Ä |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeCodeAllcodeDTO extends CodeAllCode { |
| | | public class CodeCodeAllCodeDTO extends CodeAllCode { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿é¶æ®µæ°æ®ä¼ è¾å¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Data |
| | | public class CodeTemplatePhaseDTO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * æå±ç¼ç è§å |
| | | */ |
| | | private String codeclassifytemplateoid; |
| | | private String codeClassifyTemplateOid; |
| | | |
| | | /** |
| | | * æå±ç¼ç è§åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String codeclassifytemplateoidName; |
| | | private String codeClassifyTemplateOidName; |
| | | |
| | | /** |
| | | * å
å«ç屿§ |
| | | */ |
| | | private List<CodePhaseAttrDTO> attributes; |
| | | |
| | | /** |
| | | * è·å æå±ç¼ç è§å |
| | | */ |
| | | public String getCodeclassifytemplateoid (){ |
| | | return codeclassifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±ç¼ç è§å |
| | | */ |
| | | public void setCodeclassifytemplateoid (String codeclassifytemplateoid){ |
| | | this.codeclassifytemplateoid = codeclassifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±ç¼ç è§åæ¾ç¤ºææ¬ |
| | | */ |
| | | public String getCodeclassifytemplateoidName (){ |
| | | return codeclassifytemplateoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±ç¼ç è§åæ¾ç¤ºææ¬ |
| | | */ |
| | | public void setCodeclassifytemplateoidName (String codeclassifytemplateoidName){ |
| | | this.codeclassifytemplateoidName = codeclassifytemplateoidName; |
| | | } |
| | | |
| | | public List<CodePhaseAttrDTO> getAttributes() { |
| | | return attributes; |
| | | } |
| | | |
| | | public void setAttributes(List<CodePhaseAttrDTO> attributes) { |
| | | this.attributes = attributes; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeTemplatePhaseDTO{" + |
| | | "codeclassifytemplateoid='" + codeclassifytemplateoid + '\'' + |
| | | ", codeclassifytemplateoidName='" + codeclassifytemplateoidName + '\'' + |
| | | ", attributes=" + attributes + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç è§å¾å®ä½ç±» |
| | | * å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-10 |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClstemplateVO extends CodeClstemplateEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707118684061936L; |
| | | |
| | | /** |
| | | * å
å«ç屿§å
容 |
| | | */ |
| | | private List<CodeClstempattrVO> attributes; |
| | | private List<CodeClassifyTemplateAttrVO> attributes; |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç æ®µåºç¡ä¿¡æ¯æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | * @author ludc |
| | | * @date 2023-04-24 |
| | | */ |
| | | @Data |
| | | public class CodeBasicSecVO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | * ç æ®µç±»å |
| | | */ |
| | | private String secType; |
| | | |
| | | |
| | | /** |
| | | * ç æ®µç±»åæ¾ç¤ºææ¬ |
| | |
| | | */ |
| | | private List<CodeFixedValueVO> fixedValueVOList; |
| | | |
| | | public String getReferCodeClassifyOidName() { |
| | | return referCodeClassifyOidName; |
| | | } |
| | | |
| | | public void setReferCodeClassifyOidName(String referCodeClassifyOidName) { |
| | | this.referCodeClassifyOidName = referCodeClassifyOidName; |
| | | } |
| | | |
| | | public String getReferAttributeId() { |
| | | return referAttributeId; |
| | | } |
| | | |
| | | public void setReferAttributeId(String referAttributeId) { |
| | | this.referAttributeId = referAttributeId; |
| | | } |
| | | |
| | | //åç±»çå
容ä¸è½ç´æ¥æ¾ï¼å 为å¯è½å¾å¤ |
| | | |
| | | public String getPkCodeRule() { |
| | | return pkCodeRule; |
| | | } |
| | | |
| | | public void setPkCodeRule(String pkCodeRule) { |
| | | this.pkCodeRule = pkCodeRule; |
| | | } |
| | | |
| | | public Integer getOrderNum() { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | public String getCodeSecLengthTypeText() { |
| | | return codeSecLengthTypeText; |
| | | } |
| | | |
| | | public void setCodeSecLengthTypeText(String codeSecLengthTypeText) { |
| | | this.codeSecLengthTypeText = codeSecLengthTypeText; |
| | | } |
| | | |
| | | public String getMatchClassifyValueFlag() { |
| | | return matchClassifyValueFlag; |
| | | } |
| | | |
| | | public void setMatchClassifyValueFlag(String matchClassifyValueFlag) { |
| | | this.matchClassifyValueFlag = matchClassifyValueFlag; |
| | | } |
| | | |
| | | public String getParentClassifySecOid() { |
| | | return parentClassifySecOid; |
| | | } |
| | | |
| | | public void setParentClassifySecOid(String parentClassifySecOid) { |
| | | this.parentClassifySecOid = parentClassifySecOid; |
| | | } |
| | | |
| | | public String getParentClassifySecText() { |
| | | return parentClassifySecText; |
| | | } |
| | | |
| | | public void setParentClassifySecText(String parentClassifySecText) { |
| | | this.parentClassifySecText = parentClassifySecText; |
| | | } |
| | | |
| | | public String getNullableFlag() { |
| | | return nullableFlag; |
| | | } |
| | | |
| | | public void setNullableFlag(String nullableFlag) { |
| | | this.nullableFlag = nullableFlag; |
| | | } |
| | | |
| | | public String getComponentCodeFlag() { |
| | | return componentCodeFlag; |
| | | } |
| | | |
| | | public void setComponentCodeFlag(String componentCodeFlag) { |
| | | this.componentCodeFlag = componentCodeFlag; |
| | | } |
| | | |
| | | public String getSerialDependFlag() { |
| | | return serialDependFlag; |
| | | } |
| | | |
| | | public void setSerialDependFlag(String serialDependFlag) { |
| | | this.serialDependFlag = serialDependFlag; |
| | | } |
| | | |
| | | public String getDisplayFlag() { |
| | | return displayFlag; |
| | | } |
| | | |
| | | public void setDisplayFlag(String displayFlag) { |
| | | this.displayFlag = displayFlag; |
| | | } |
| | | |
| | | public Integer getSerialDependOrder() { |
| | | return serialDependOrder; |
| | | } |
| | | |
| | | public void setSerialDependOrder(Integer serialDependOrder) { |
| | | this.serialDependOrder = serialDependOrder; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç æ®µç±»å |
| | | */ |
| | | public void setSecType (String secType){ |
| | | this.secType = secType; |
| | | } |
| | | |
| | | public String getSecTypeText() { |
| | | return secTypeText; |
| | | } |
| | | |
| | | public void setSecTypeText(String secTypeText) { |
| | | this.secTypeText = secTypeText; |
| | | } |
| | | |
| | | public String getSecType() { |
| | | return secType; |
| | | } |
| | | |
| | | public String getCodeSecLengthType() { |
| | | return codeSecLengthType; |
| | | } |
| | | |
| | | public void setCodeSecLengthType(String codeSecLengthType) { |
| | | this.codeSecLengthType = codeSecLengthType; |
| | | } |
| | | |
| | | public String getCodeSecLength() { |
| | | return codeSecLength; |
| | | } |
| | | |
| | | public void setCodeSecLength(String codeSecLength) { |
| | | this.codeSecLength = codeSecLength; |
| | | } |
| | | |
| | | public String getGetValueClass() { |
| | | return getValueClass; |
| | | } |
| | | |
| | | public void setGetValueClass(String getValueClass) { |
| | | this.getValueClass = getValueClass; |
| | | } |
| | | |
| | | public String getCodeDateFormatStr() { |
| | | return codeDateFormatStr; |
| | | } |
| | | |
| | | public void setCodeDateFormatStr(String codeDateFormatStr) { |
| | | this.codeDateFormatStr = codeDateFormatStr; |
| | | } |
| | | |
| | | public String getCodeLevelType() { |
| | | return codeLevelType; |
| | | } |
| | | |
| | | public void setCodeLevelType(String codeLevelType) { |
| | | this.codeLevelType = codeLevelType; |
| | | } |
| | | |
| | | public String getCodeLevelTypeText() { |
| | | return codeLevelTypeText; |
| | | } |
| | | |
| | | public void setCodeLevelTypeText(String codeLevelTypeText) { |
| | | this.codeLevelTypeText = codeLevelTypeText; |
| | | } |
| | | |
| | | public Integer getCodeLevelValue() { |
| | | return codeLevelValue; |
| | | } |
| | | |
| | | public void setCodeLevelValue(Integer codeLevelValue) { |
| | | this.codeLevelValue = codeLevelValue; |
| | | } |
| | | |
| | | public Integer getValueCutLength() { |
| | | return valueCutLength; |
| | | } |
| | | |
| | | public void setValueCutLength(Integer valueCutLength) { |
| | | this.valueCutLength = valueCutLength; |
| | | } |
| | | |
| | | public String getValueCutType() { |
| | | return valueCutType; |
| | | } |
| | | |
| | | public void setValueCutType(String valueCutType) { |
| | | this.valueCutType = valueCutType; |
| | | } |
| | | |
| | | public String getValueCutTypeText() { |
| | | return valueCutTypeText; |
| | | } |
| | | |
| | | public void setValueCutTypeText(String valueCutTypeText) { |
| | | this.valueCutTypeText = valueCutTypeText; |
| | | } |
| | | |
| | | public String getCodeGetValueType() { |
| | | return codeGetValueType; |
| | | } |
| | | |
| | | public void setCodeGetValueType(String codeGetValueType) { |
| | | this.codeGetValueType = codeGetValueType; |
| | | } |
| | | |
| | | public String getCodeGetValueTypeText() { |
| | | return codeGetValueTypeText; |
| | | } |
| | | |
| | | public void setCodeGetValueTypeText(String codeGetValueTypeText) { |
| | | this.codeGetValueTypeText = codeGetValueTypeText; |
| | | } |
| | | |
| | | public String getReferCodeClassifyOid() { |
| | | return referCodeClassifyOid; |
| | | } |
| | | |
| | | public void setReferCodeClassifyOid(String referCodeClassifyOid) { |
| | | this.referCodeClassifyOid = referCodeClassifyOid; |
| | | } |
| | | |
| | | public String getReferConfig() { |
| | | return referConfig; |
| | | } |
| | | |
| | | public void setReferConfig(String referConfig) { |
| | | this.referConfig = referConfig; |
| | | } |
| | | |
| | | public String getReferValueInfo() { |
| | | return referValueInfo; |
| | | } |
| | | |
| | | public void setReferValueInfo(String referValueInfo) { |
| | | this.referValueInfo = referValueInfo; |
| | | } |
| | | |
| | | public String getFilterSql() { |
| | | return filterSql; |
| | | } |
| | | |
| | | public void setFilterSql(String filterSql) { |
| | | this.filterSql = filterSql; |
| | | } |
| | | |
| | | public String getSerialStart() { |
| | | return serialStart; |
| | | } |
| | | |
| | | public void setSerialStart(String serialStart) { |
| | | this.serialStart = serialStart; |
| | | } |
| | | |
| | | public Integer getSerialStep() { |
| | | return serialStep; |
| | | } |
| | | |
| | | public void setSerialStep(Integer serialStep) { |
| | | this.serialStep = serialStep; |
| | | } |
| | | |
| | | public String getCodeFillType() { |
| | | return codeFillType; |
| | | } |
| | | |
| | | public void setCodeFillType(String codeFillType) { |
| | | this.codeFillType = codeFillType; |
| | | } |
| | | |
| | | public String getCodeFillTypeText() { |
| | | return codeFillTypeText; |
| | | } |
| | | |
| | | public void setCodeFillTypeText(String codeFillTypeText) { |
| | | this.codeFillTypeText = codeFillTypeText; |
| | | } |
| | | |
| | | public String getCodeFillSeparator() { |
| | | return codeFillSeparator; |
| | | } |
| | | |
| | | public void setCodeFillSeparator(String codeFillSeparator) { |
| | | this.codeFillSeparator = codeFillSeparator; |
| | | } |
| | | |
| | | public String getCodeFillLength() { |
| | | return codeFillLength; |
| | | } |
| | | |
| | | public void setCodeFillLength(String codeFillLength) { |
| | | this.codeFillLength = codeFillLength; |
| | | } |
| | | |
| | | public Integer getCodeFillLimit() { |
| | | return codeFillLimit; |
| | | } |
| | | |
| | | public void setCodeFillLimit(Integer codeFillLimit) { |
| | | this.codeFillLimit = codeFillLimit; |
| | | } |
| | | |
| | | public String getCodeFillFlag() { |
| | | return codeFillFlag; |
| | | } |
| | | |
| | | public void setCodeFillFlag(String codeFillFlag) { |
| | | this.codeFillFlag = codeFillFlag; |
| | | } |
| | | |
| | | public String getCustomCodeSerialClass() { |
| | | return customCodeSerialClass; |
| | | } |
| | | |
| | | public void setCustomCodeSerialClass(String customCodeSerialClass) { |
| | | this.customCodeSerialClass = customCodeSerialClass; |
| | | } |
| | | |
| | | |
| | | public List<CodeFixedValueVO> getFixedValueVOList() { |
| | | return fixedValueVOList; |
| | | } |
| | | |
| | | public void setFixedValueVOList(List<CodeFixedValueVO> fixedValueVOList) { |
| | | this.fixedValueVOList = fixedValueVOList; |
| | | } |
| | | |
| | | public String getReferAttributeName() { |
| | | return referAttributeName; |
| | | } |
| | | |
| | | public void setReferAttributeName(String referAttributeName) { |
| | | this.referAttributeName = referAttributeName; |
| | | } |
| | | |
| | | public String getReferBtmId() { |
| | | return referBtmId; |
| | | } |
| | | |
| | | public void setReferBtmId(String referBtmId) { |
| | | this.referBtmId = referBtmId; |
| | | } |
| | | |
| | | public String getReferBtmName() { |
| | | return referBtmName; |
| | | } |
| | | |
| | | public void setReferBtmName(String referBtmName) { |
| | | this.referBtmName = referBtmName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeBasicSecVO{" + |
| | | "secType='" + secType + '\'' + |
| | | ", secTypeText='" + secTypeText + '\'' + |
| | | ", pkCodeRule='" + pkCodeRule + '\'' + |
| | | ", orderNum=" + orderNum + |
| | | ", codeSecLengthType='" + codeSecLengthType + '\'' + |
| | | ", codeSecLengthTypeText='" + codeSecLengthTypeText + '\'' + |
| | | ", codeSecLength='" + codeSecLength + '\'' + |
| | | ", referAttributeName='" + referAttributeName + '\'' + |
| | | ", referAttributeId='" + referAttributeId + '\'' + |
| | | ", getValueClass='" + getValueClass + '\'' + |
| | | ", codeDateFormatStr='" + codeDateFormatStr + '\'' + |
| | | ", codeLevelType='" + codeLevelType + '\'' + |
| | | ", codeLevelTypeText='" + codeLevelTypeText + '\'' + |
| | | ", codeLevelValue=" + codeLevelValue + |
| | | ", valueCutLength=" + valueCutLength + |
| | | ", valueCutType='" + valueCutType + '\'' + |
| | | ", valueCutTypeText='" + valueCutTypeText + '\'' + |
| | | ", codeGetValueType='" + codeGetValueType + '\'' + |
| | | ", codeGetValueTypeText='" + codeGetValueTypeText + '\'' + |
| | | ", referCodeClassifyOid='" + referCodeClassifyOid + '\'' + |
| | | ", referCodeClassifyOidName='" + referCodeClassifyOidName + '\'' + |
| | | ", referBtmId='" + referBtmId + '\'' + |
| | | ", referBtmName='" + referBtmName + '\'' + |
| | | ", referConfig='" + referConfig + '\'' + |
| | | ", referValueInfo='" + referValueInfo + '\'' + |
| | | ", filterSql='" + filterSql + '\'' + |
| | | ", serialStart='" + serialStart + '\'' + |
| | | ", serialStep=" + serialStep + |
| | | ", codeFillType='" + codeFillType + '\'' + |
| | | ", codeFillTypeText='" + codeFillTypeText + '\'' + |
| | | ", codeFillSeparator='" + codeFillSeparator + '\'' + |
| | | ", codeFillLength='" + codeFillLength + '\'' + |
| | | ", codeFillLimit=" + codeFillLimit + |
| | | ", codeFillFlag='" + codeFillFlag + '\'' + |
| | | ", customCodeSerialClass='" + customCodeSerialClass + '\'' + |
| | | ", matchClassifyValueFlag='" + matchClassifyValueFlag + '\'' + |
| | | ", parentClassifySecOid='" + parentClassifySecOid + '\'' + |
| | | ", parentClassifySecText='" + parentClassifySecText + '\'' + |
| | | ", nullableFlag='" + nullableFlag + '\'' + |
| | | ", componentCodeFlag='" + componentCodeFlag + '\'' + |
| | | ", serialDependFlag='" + serialDependFlag + '\'' + |
| | | ", displayFlag='" + displayFlag + '\'' + |
| | | ", serialDependOrder=" + serialDependOrder + |
| | | ", fixedValueVOList=" + fixedValueVOList + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 主é¢åºåç±»çæ¨¡æ¿å±æ§æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Data |
| | | public class CodeClassifyTemplateAttrVO extends BaseModelVO { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * æå±æ¨¡æ¿ |
| | | */ |
| | | private String classifytemplateoid; |
| | | private String classifyTemplateOid; |
| | | |
| | | /** |
| | | * æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | private String classifytemplateoidName; |
| | | private String classifyTemplateOidName; |
| | | |
| | | /** |
| | | * æå±åç±»ä¸ç屿§ä¸»é® |
| | | */ |
| | | private String classifyattributeoid; |
| | | private String classifyAttributeOid; |
| | | |
| | | /** |
| | | * æå±åç±»ä¸ç屿§ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | private String classifyattributeoidName; |
| | | private String classifyAttributeOidName; |
| | | |
| | | /** |
| | | * 屿§çç±»å |
| | | */ |
| | | private String attributedatatype; |
| | | private String attributeDataType; |
| | | |
| | | /** |
| | | * 屿§ç±»åæ¾ç¤º |
| | | */ |
| | | private String attributeDataTypeText; |
| | | |
| | | |
| | | /** |
| | | * æ¯å¦å
³é®å±æ§ |
| | | */ |
| | | private String keyattrflag; |
| | | |
| | | private String keyAttrFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿«éæ¥è¯¢å±æ§ |
| | | */ |
| | | private String queryattrflag; |
| | | |
| | | private String queryAttrFlag; |
| | | |
| | | /** |
| | | * æ¯å¦é«çº§æ¥è¯¢å±æ§ |
| | | */ |
| | | private String seniorqueryattrflag; |
| | | |
| | | private String seniorQueryAttrFlag; |
| | | |
| | | /** |
| | | * ç¸ä¼¼æ¥é屿§ |
| | | */ |
| | | private String samerepeatattrflag; |
| | | |
| | | private String sameRepeatAttrFlag; |
| | | |
| | | /** |
| | | * æ¯å¦æåº |
| | | */ |
| | | private String sortattrflag; |
| | | |
| | | private String sortAttrFlag; |
| | | |
| | | /** |
| | | * æ¯å¦çæäºç»´ç |
| | | */ |
| | | private String qrcodeflag; |
| | | |
| | | private String qrcodeFlag; |
| | | |
| | | /** |
| | | * æ¯å¦çæä¸ç»´ç |
| | | */ |
| | | private String barcodeflag; |
| | | |
| | | private String barcodeFlag; |
| | | |
| | | /** |
| | | * ç»åè§å |
| | | */ |
| | | private String componentrule; |
| | | |
| | | private String componentRule; |
| | | |
| | | /** |
| | | * éªè¯è§å |
| | | */ |
| | | private String verifyrule; |
| | | |
| | | private String verifyRule; |
| | | |
| | | /** |
| | | * å类注å
¥å±çº§ |
| | | */ |
| | | private String classifyinvokelevel; |
| | | |
| | | private String classifyInvokeLevel; |
| | | |
| | | /** |
| | | * å类注å
¥ç屿§è±æåç§° |
| | | */ |
| | | private String classifyinvokeattr; |
| | | |
| | | private String classifyInvokeAttr; |
| | | |
| | | /** |
| | | * å类注å
¥ç屿§ä¸æåç§° |
| | | */ |
| | | private String classifyinvokeattrname; |
| | | |
| | | private String classifyInvokeAttrName; |
| | | |
| | | /** |
| | | * å类注å
¥æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | private String classifyinvokeeditflag; |
| | | |
| | | private String classifyInvokeEditFlag; |
| | | |
| | | /** |
| | | * ç å¼åºå· |
| | | */ |
| | | private Integer ordernum; |
| | | |
| | | private Integer orderNum; |
| | | |
| | | /** |
| | | * 表å鿝妿¾ç¤º |
| | | */ |
| | | private String formdisplayflag; |
| | | |
| | | private String formDisplayFlag; |
| | | |
| | | /** |
| | | * åè¡¨éæ¯å¦æ¾ç¤º |
| | | */ |
| | | private String tabledisplayflag; |
| | | |
| | | private String tableDisplayFlag; |
| | | |
| | | /** |
| | | * æå±å±æ§åç» |
| | | */ |
| | | private String attributegroup; |
| | | |
| | | private String attributeGroup; |
| | | |
| | | /** |
| | | * ä½¿ç¨æä¸¾è±æç¼å· |
| | | */ |
| | | private String enumid; |
| | | |
| | | private String enumId; |
| | | |
| | | /** |
| | | * ä½¿ç¨æä¸¾ä¸æåç§° |
| | | */ |
| | | private String enumname; |
| | | |
| | | private String enumName; |
| | | |
| | | /** |
| | | * æä¸¾æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | private String enumeditflag; |
| | | |
| | | private String enumEditFlag; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»åè±æåç§° |
| | | */ |
| | | private String referbtmid; |
| | | |
| | | private String referBtmId; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»å䏿åç§° |
| | | */ |
| | | private String referbtmname; |
| | | |
| | | private String referBtmName; |
| | | |
| | | /** |
| | | * åç
§çªå£é
ç½® |
| | | */ |
| | | private String referConfig; |
| | | |
| | | |
| | | /** |
| | | * æ¯å¦å¿
è¾ |
| | | */ |
| | | private String requireflag; |
| | | |
| | | private String requireFlag; |
| | | |
| | | /** |
| | | * æ¯å¦åªè¯» |
| | | */ |
| | | private String readonlyflag; |
| | | |
| | | private String readOnlyFlag; |
| | | |
| | | /** |
| | | * 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | private Integer controllength; |
| | | |
| | | private Integer controlLength; |
| | | |
| | | /** |
| | | * 表åéæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | private String formdisplaystyle; |
| | | |
| | | private String formDisplayStyle; |
| | | |
| | | /** |
| | | * è¡¨æ ¼éæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | private String tabledisplaystyle; |
| | | |
| | | private String tableDisplayStyle; |
| | | |
| | | /** |
| | | * 表åä¸è¶
龿¥å
容 |
| | | */ |
| | | private String formhref; |
| | | |
| | | private String formHref; |
| | | |
| | | /** |
| | | * è¡¨æ ¼ä¸è¶
龿¥å
容 |
| | | */ |
| | | private String tablehref; |
| | | |
| | | private String tableHref; |
| | | |
| | | /** |
| | | * å°æ°ç²¾åº¦ |
| | | */ |
| | | private Integer precisionlength; |
| | | |
| | | private Integer precisionLength; |
| | | |
| | | /** |
| | | * å°æ°å»åº¦ |
| | | */ |
| | | private Integer scalelength; |
| | | |
| | | private Integer scaleLength; |
| | | |
| | | /** |
| | | * åå¼èå´ |
| | | */ |
| | | private String valuearea; |
| | | |
| | | private String valueArea; |
| | | |
| | | /** |
| | | * æ¶é´æ ¼å¼ |
| | | */ |
| | | private String codedateformat; |
| | | |
| | | private String codeDateFormat; |
| | | |
| | | /** |
| | | * è¡¨æ ¼éæ¾ç¤ºè°ç¨çjs |
| | | */ |
| | | private String tabledisplayjs; |
| | | |
| | | private String tableDisplayJs; |
| | | |
| | | /** |
| | | * æ¯å¦æ¾ç¤ºå¤è¡ææ¬ |
| | | */ |
| | | private String textareaflag; |
| | | |
| | | private String textAreaFlag; |
| | | |
| | | /** |
| | | * é¢è§å¾ |
| | | */ |
| | | private String imageflag; |
| | | |
| | | private String imageFlag; |
| | | |
| | | /** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultvalue; |
| | | |
| | | private String defaultValue; |
| | | |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | private String prefixvalue; |
| | | |
| | | private String prefixValue; |
| | | |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | private String suffixvalue; |
| | | |
| | | private String suffixValue; |
| | | |
| | | /** |
| | | * éæ©æ°æ®æ¶è¿æ»¤ç屿§ |
| | | */ |
| | | private String filtersourceattr; |
| | | |
| | | private String filterSourceAttr; |
| | | |
| | | /** |
| | | * éæ©æ°æ®æ¶è¿æ»¤ç屿§åç§° |
| | | */ |
| | | private String filtersourceattrname; |
| | | private String filterSourceAttrName; |
| | | |
| | | /** |
| | | * ä½¿ç¨æä¸¾æ³¨å
¥çåç¬¦ä¸²æ ¼å¼ |
| | |
| | | */ |
| | | private String parentQueryAttr; |
| | | |
| | | public String getExplain() { |
| | | return explain; |
| | | } |
| | | |
| | | public void setExplain(String explain) { |
| | | this.explain = explain; |
| | | } |
| | | |
| | | public String getLibraryIdentification() { |
| | | return libraryIdentification; |
| | | } |
| | | |
| | | public void setLibraryIdentification(String libraryIdentification) { |
| | | this.libraryIdentification = libraryIdentification; |
| | | } |
| | | |
| | | public String getParentCode() { |
| | | return parentCode; |
| | | } |
| | | |
| | | public void setParentCode(String parentCode) { |
| | | this.parentCode = parentCode; |
| | | } |
| | | |
| | | public String getParentName() { |
| | | return parentName; |
| | | } |
| | | |
| | | public void setParentName(String parentName) { |
| | | this.parentName = parentName; |
| | | } |
| | | |
| | | public String getParentQueryAttr() { |
| | | return parentQueryAttr; |
| | | } |
| | | |
| | | public void setParentQueryAttr(String parentQueryAttr) { |
| | | this.parentQueryAttr = parentQueryAttr; |
| | | } |
| | | |
| | | /** |
| | | * è·å æå±æ¨¡æ¿ |
| | | */ |
| | | public String getClassifytemplateoid (){ |
| | | return classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±æ¨¡æ¿ |
| | | */ |
| | | public void setClassifytemplateoid (String classifytemplateoid){ |
| | | this.classifytemplateoid = classifytemplateoid; |
| | | } |
| | | /** |
| | | * è·åæå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifytemplateoidName (){ |
| | | return classifytemplateoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifytemplateoidName (String classifytemplateoidName){ |
| | | this.classifytemplateoidName = classifytemplateoidName; |
| | | } |
| | | /** |
| | | * è·å æå±åç±»ä¸ç屿§ä¸»é® |
| | | */ |
| | | public String getClassifyattributeoid (){ |
| | | return classifyattributeoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±åç±»ä¸ç屿§ä¸»é® |
| | | */ |
| | | public void setClassifyattributeoid (String classifyattributeoid){ |
| | | this.classifyattributeoid = classifyattributeoid; |
| | | } |
| | | /** |
| | | * è·åæå±åç±»ä¸ç屿§ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifyattributeoidName (){ |
| | | return classifyattributeoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åç±»ä¸ç屿§ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifyattributeoidName (String classifyattributeoidName){ |
| | | this.classifyattributeoidName = classifyattributeoidName; |
| | | } |
| | | /** |
| | | * è·å 屿§çç±»å |
| | | */ |
| | | public String getAttributedatatype (){ |
| | | return attributedatatype; |
| | | } |
| | | |
| | | /** |
| | | * 设置 屿§çç±»å |
| | | */ |
| | | public void setAttributedatatype (String attributedatatype){ |
| | | this.attributedatatype = attributedatatype; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦å
³é®å±æ§ |
| | | */ |
| | | public String getKeyattrflag (){ |
| | | return keyattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å
³é®å±æ§ |
| | | */ |
| | | public void setKeyattrflag (String keyattrflag){ |
| | | this.keyattrflag = keyattrflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦å¿«éæ¥è¯¢å±æ§ |
| | | */ |
| | | public String getQueryattrflag (){ |
| | | return queryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å¿«éæ¥è¯¢å±æ§ |
| | | */ |
| | | public void setQueryattrflag (String queryattrflag){ |
| | | this.queryattrflag = queryattrflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦é«çº§æ¥è¯¢å±æ§ |
| | | */ |
| | | public String getSeniorqueryattrflag (){ |
| | | return seniorqueryattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦é«çº§æ¥è¯¢å±æ§ |
| | | */ |
| | | public void setSeniorqueryattrflag (String seniorqueryattrflag){ |
| | | this.seniorqueryattrflag = seniorqueryattrflag; |
| | | } |
| | | /** |
| | | * è·å ç¸ä¼¼æ¥é屿§ |
| | | */ |
| | | public String getSamerepeatattrflag (){ |
| | | return samerepeatattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç¸ä¼¼æ¥é屿§ |
| | | */ |
| | | public void setSamerepeatattrflag (String samerepeatattrflag){ |
| | | this.samerepeatattrflag = samerepeatattrflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦æåº |
| | | */ |
| | | public String getSortattrflag (){ |
| | | return sortattrflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦æåº |
| | | */ |
| | | public void setSortattrflag (String sortattrflag){ |
| | | this.sortattrflag = sortattrflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦çæäºç»´ç |
| | | */ |
| | | public String getQrcodeflag (){ |
| | | return qrcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦çæäºç»´ç |
| | | */ |
| | | public void setQrcodeflag (String qrcodeflag){ |
| | | this.qrcodeflag = qrcodeflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦çæä¸ç»´ç |
| | | */ |
| | | public String getBarcodeflag (){ |
| | | return barcodeflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦çæä¸ç»´ç |
| | | */ |
| | | public void setBarcodeflag (String barcodeflag){ |
| | | this.barcodeflag = barcodeflag; |
| | | } |
| | | /** |
| | | * è·å ç»åè§å |
| | | */ |
| | | public String getComponentrule (){ |
| | | return componentrule; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç»åè§å |
| | | */ |
| | | public void setComponentrule (String componentrule){ |
| | | this.componentrule = componentrule; |
| | | } |
| | | /** |
| | | * è·å éªè¯è§å |
| | | */ |
| | | public String getVerifyrule (){ |
| | | return verifyrule; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éªè¯è§å |
| | | */ |
| | | public void setVerifyrule (String verifyrule){ |
| | | this.verifyrule = verifyrule; |
| | | } |
| | | /** |
| | | * è·å å类注å
¥å±çº§ |
| | | */ |
| | | public String getClassifyinvokelevel (){ |
| | | return classifyinvokelevel; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥å±çº§ |
| | | */ |
| | | public void setClassifyinvokelevel (String classifyinvokelevel){ |
| | | this.classifyinvokelevel = classifyinvokelevel; |
| | | } |
| | | /** |
| | | * è·å å类注å
¥ç屿§è±æåç§° |
| | | */ |
| | | public String getClassifyinvokeattr (){ |
| | | return classifyinvokeattr; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥ç屿§è±æåç§° |
| | | */ |
| | | public void setClassifyinvokeattr (String classifyinvokeattr){ |
| | | this.classifyinvokeattr = classifyinvokeattr; |
| | | } |
| | | /** |
| | | * è·å å类注å
¥ç屿§ä¸æåç§° |
| | | */ |
| | | public String getClassifyinvokeattrname (){ |
| | | return classifyinvokeattrname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥ç屿§ä¸æåç§° |
| | | */ |
| | | public void setClassifyinvokeattrname (String classifyinvokeattrname){ |
| | | this.classifyinvokeattrname = classifyinvokeattrname; |
| | | } |
| | | /** |
| | | * è·å å类注å
¥æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public String getClassifyinvokeeditflag (){ |
| | | return classifyinvokeeditflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å类注å
¥æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public void setClassifyinvokeeditflag (String classifyinvokeeditflag){ |
| | | this.classifyinvokeeditflag = classifyinvokeeditflag; |
| | | } |
| | | /** |
| | | * è·å ç å¼åºå· |
| | | */ |
| | | public Integer getOrdernum (){ |
| | | return ordernum; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç å¼åºå· |
| | | */ |
| | | public void setOrdernum (Integer ordernum){ |
| | | this.ordernum = ordernum; |
| | | } |
| | | /** |
| | | * è·å 表å鿝妿¾ç¤º |
| | | */ |
| | | public String getFormdisplayflag (){ |
| | | return formdisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表å鿝妿¾ç¤º |
| | | */ |
| | | public void setFormdisplayflag (String formdisplayflag){ |
| | | this.formdisplayflag = formdisplayflag; |
| | | } |
| | | /** |
| | | * è·å åè¡¨éæ¯å¦æ¾ç¤º |
| | | */ |
| | | public String getTabledisplayflag (){ |
| | | return tabledisplayflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åè¡¨éæ¯å¦æ¾ç¤º |
| | | */ |
| | | public void setTabledisplayflag (String tabledisplayflag){ |
| | | this.tabledisplayflag = tabledisplayflag; |
| | | } |
| | | /** |
| | | * è·å æå±å±æ§åç» |
| | | */ |
| | | public String getAttributegroup (){ |
| | | return attributegroup; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±å±æ§åç» |
| | | */ |
| | | public void setAttributegroup (String attributegroup){ |
| | | this.attributegroup = attributegroup; |
| | | } |
| | | /** |
| | | * è·å ä½¿ç¨æä¸¾è±æç¼å· |
| | | */ |
| | | public String getEnumid (){ |
| | | return enumid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ä½¿ç¨æä¸¾è±æç¼å· |
| | | */ |
| | | public void setEnumid (String enumid){ |
| | | this.enumid = enumid; |
| | | } |
| | | /** |
| | | * è·å ä½¿ç¨æä¸¾ä¸æåç§° |
| | | */ |
| | | public String getEnumname (){ |
| | | return enumname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ä½¿ç¨æä¸¾ä¸æåç§° |
| | | */ |
| | | public void setEnumname (String enumname){ |
| | | this.enumname = enumname; |
| | | } |
| | | /** |
| | | * è·å æä¸¾æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public String getEnumeditflag (){ |
| | | return enumeditflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æä¸¾æ¯å¦å¯ä»¥ç¼è¾ |
| | | */ |
| | | public void setEnumeditflag (String enumeditflag){ |
| | | this.enumeditflag = enumeditflag; |
| | | } |
| | | /** |
| | | * è·å åç
§çä¸å¡ç±»åè±æåç§° |
| | | */ |
| | | public String getReferbtmid (){ |
| | | return referbtmid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç
§çä¸å¡ç±»åè±æåç§° |
| | | */ |
| | | public void setReferbtmid (String referbtmid){ |
| | | this.referbtmid = referbtmid; |
| | | } |
| | | /** |
| | | * è·å åç
§çä¸å¡ç±»å䏿åç§° |
| | | */ |
| | | public String getReferbtmname (){ |
| | | return referbtmname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç
§çä¸å¡ç±»å䏿åç§° |
| | | */ |
| | | public void setReferbtmname (String referbtmname){ |
| | | this.referbtmname = referbtmname; |
| | | } |
| | | |
| | | public String getReferConfig() { |
| | | return referConfig; |
| | | } |
| | | |
| | | public void setReferConfig(String referConfig) { |
| | | this.referConfig = referConfig; |
| | | } |
| | | |
| | | /** |
| | | |
| | | /** |
| | | * è·å æ¯å¦å¿
è¾ |
| | | */ |
| | | public String getRequireflag (){ |
| | | return requireflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦å¿
è¾ |
| | | */ |
| | | public void setRequireflag (String requireflag){ |
| | | this.requireflag = requireflag; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦åªè¯» |
| | | */ |
| | | public String getReadonlyflag (){ |
| | | return readonlyflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦åªè¯» |
| | | */ |
| | | public void setReadonlyflag (String readonlyflag){ |
| | | this.readonlyflag = readonlyflag; |
| | | } |
| | | /** |
| | | * è·å 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | public Integer getControllength (){ |
| | | return controllength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | public void setControllength (Integer controllength){ |
| | | this.controllength = controllength; |
| | | } |
| | | /** |
| | | * è·å 表åéæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public String getFormdisplaystyle (){ |
| | | return formdisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表åéæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public void setFormdisplaystyle (String formdisplaystyle){ |
| | | this.formdisplaystyle = formdisplaystyle; |
| | | } |
| | | /** |
| | | * è·å è¡¨æ ¼éæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public String getTabledisplaystyle (){ |
| | | return tabledisplaystyle; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼éæ¾ç¤ºçæ ·å¼ |
| | | */ |
| | | public void setTabledisplaystyle (String tabledisplaystyle){ |
| | | this.tabledisplaystyle = tabledisplaystyle; |
| | | } |
| | | /** |
| | | * è·å 表åä¸è¶
龿¥å
容 |
| | | */ |
| | | public String getFormhref (){ |
| | | return formhref; |
| | | } |
| | | |
| | | /** |
| | | * 设置 表åä¸è¶
龿¥å
容 |
| | | */ |
| | | public void setFormhref (String formhref){ |
| | | this.formhref = formhref; |
| | | } |
| | | /** |
| | | * è·å è¡¨æ ¼ä¸è¶
龿¥å
容 |
| | | */ |
| | | public String getTablehref (){ |
| | | return tablehref; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼ä¸è¶
龿¥å
容 |
| | | */ |
| | | public void setTablehref (String tablehref){ |
| | | this.tablehref = tablehref; |
| | | } |
| | | /** |
| | | * è·å å°æ°ç²¾åº¦ |
| | | */ |
| | | public Integer getPrecisionlength (){ |
| | | return precisionlength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å°æ°ç²¾åº¦ |
| | | */ |
| | | public void setPrecisionlength (Integer precisionlength){ |
| | | this.precisionlength = precisionlength; |
| | | } |
| | | /** |
| | | * è·å å°æ°å»åº¦ |
| | | */ |
| | | public Integer getScalelength (){ |
| | | return scalelength; |
| | | } |
| | | |
| | | /** |
| | | * 设置 å°æ°å»åº¦ |
| | | */ |
| | | public void setScalelength (Integer scalelength){ |
| | | this.scalelength = scalelength; |
| | | } |
| | | /** |
| | | * è·å åå¼èå´ |
| | | */ |
| | | public String getValuearea (){ |
| | | return valuearea; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åå¼èå´ |
| | | */ |
| | | public void setValuearea (String valuearea){ |
| | | this.valuearea = valuearea; |
| | | } |
| | | /** |
| | | * è·å æ¶é´æ ¼å¼ |
| | | */ |
| | | public String getCodedateformat (){ |
| | | return codedateformat; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¶é´æ ¼å¼ |
| | | */ |
| | | public void setCodedateformat (String codedateformat){ |
| | | this.codedateformat = codedateformat; |
| | | } |
| | | /** |
| | | * è·å è¡¨æ ¼éæ¾ç¤ºè°ç¨çjs |
| | | */ |
| | | public String getTabledisplayjs (){ |
| | | return tabledisplayjs; |
| | | } |
| | | |
| | | /** |
| | | * 设置 è¡¨æ ¼éæ¾ç¤ºè°ç¨çjs |
| | | */ |
| | | public void setTabledisplayjs (String tabledisplayjs){ |
| | | this.tabledisplayjs = tabledisplayjs; |
| | | } |
| | | /** |
| | | * è·å æ¯å¦æ¾ç¤ºå¤è¡ææ¬ |
| | | */ |
| | | public String getTextareaflag (){ |
| | | return textareaflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æ¯å¦æ¾ç¤ºå¤è¡ææ¬ |
| | | */ |
| | | public void setTextareaflag (String textareaflag){ |
| | | this.textareaflag = textareaflag; |
| | | } |
| | | /** |
| | | * è·å é¢è§å¾ |
| | | */ |
| | | public String getImageflag (){ |
| | | return imageflag; |
| | | } |
| | | |
| | | /** |
| | | * 设置 é¢è§å¾ |
| | | */ |
| | | public void setImageflag (String imageflag){ |
| | | this.imageflag = imageflag; |
| | | } |
| | | /** |
| | | * è·å é»è®¤å¼ |
| | | */ |
| | | public String getDefaultvalue (){ |
| | | return defaultvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 é»è®¤å¼ |
| | | */ |
| | | public void setDefaultvalue (String defaultvalue){ |
| | | this.defaultvalue = defaultvalue; |
| | | } |
| | | /** |
| | | * è·å åç¼ |
| | | */ |
| | | public String getPrefixvalue (){ |
| | | return prefixvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç¼ |
| | | */ |
| | | public void setPrefixvalue (String prefixvalue){ |
| | | this.prefixvalue = prefixvalue; |
| | | } |
| | | /** |
| | | * è·å åç¼ |
| | | */ |
| | | public String getSuffixvalue (){ |
| | | return suffixvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置 åç¼ |
| | | */ |
| | | public void setSuffixvalue (String suffixvalue){ |
| | | this.suffixvalue = suffixvalue; |
| | | } |
| | | /** |
| | | * è·å éæ©æ°æ®æ¶è¿æ»¤ç屿§ |
| | | */ |
| | | public String getFiltersourceattr (){ |
| | | return filtersourceattr; |
| | | } |
| | | |
| | | public String getAttributeDataTypeText() { |
| | | return attributeDataTypeText; |
| | | } |
| | | |
| | | public void setAttributeDataTypeText(String attributeDataTypeText) { |
| | | this.attributeDataTypeText = attributeDataTypeText; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éæ©æ°æ®æ¶è¿æ»¤ç屿§ |
| | | */ |
| | | public void setFiltersourceattr (String filtersourceattr){ |
| | | this.filtersourceattr = filtersourceattr; |
| | | } |
| | | /** |
| | | * è·å éæ©æ°æ®æ¶è¿æ»¤ç屿§åç§° |
| | | */ |
| | | public String getFiltersourceattrname (){ |
| | | return filtersourceattrname; |
| | | } |
| | | |
| | | /** |
| | | * 设置 éæ©æ°æ®æ¶è¿æ»¤ç屿§åç§° |
| | | */ |
| | | public void setFiltersourceattrname (String filtersourceattrname){ |
| | | this.filtersourceattrname = filtersourceattrname; |
| | | } |
| | | |
| | | public String getEnumString() { |
| | | return enumString; |
| | | } |
| | | |
| | | public void setEnumString(String enumString) { |
| | | this.enumString = enumString; |
| | | } |
| | | |
| | | |
| | | public Integer getAttrTableWidth() { |
| | | return attrTableWidth; |
| | | } |
| | | |
| | | public void setAttrTableWidth(Integer attrTableWidth) { |
| | | this.attrTableWidth = attrTableWidth; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyTemplateAttrVO{" + |
| | | "classifytemplateoid='" + classifytemplateoid + '\'' + |
| | | ", classifytemplateoidName='" + classifytemplateoidName + '\'' + |
| | | ", classifyattributeoid='" + classifyattributeoid + '\'' + |
| | | ", classifyattributeoidName='" + classifyattributeoidName + '\'' + |
| | | ", attributedatatype='" + attributedatatype + '\'' + |
| | | ", attributeDataTypeText='" + attributeDataTypeText + '\'' + |
| | | ", keyattrflag='" + keyattrflag + '\'' + |
| | | ", queryattrflag='" + queryattrflag + '\'' + |
| | | ", seniorqueryattrflag='" + seniorqueryattrflag + '\'' + |
| | | ", samerepeatattrflag='" + samerepeatattrflag + '\'' + |
| | | ", sortattrflag='" + sortattrflag + '\'' + |
| | | ", qrcodeflag='" + qrcodeflag + '\'' + |
| | | ", barcodeflag='" + barcodeflag + '\'' + |
| | | ", componentrule='" + componentrule + '\'' + |
| | | ", verifyrule='" + verifyrule + '\'' + |
| | | ", classifyinvokelevel='" + classifyinvokelevel + '\'' + |
| | | ", classifyinvokeattr='" + classifyinvokeattr + '\'' + |
| | | ", classifyinvokeattrname='" + classifyinvokeattrname + '\'' + |
| | | ", classifyinvokeeditflag='" + classifyinvokeeditflag + '\'' + |
| | | ", ordernum=" + ordernum + |
| | | ", formdisplayflag='" + formdisplayflag + '\'' + |
| | | ", tabledisplayflag='" + tabledisplayflag + '\'' + |
| | | ", attributegroup='" + attributegroup + '\'' + |
| | | ", enumid='" + enumid + '\'' + |
| | | ", enumname='" + enumname + '\'' + |
| | | ", enumeditflag='" + enumeditflag + '\'' + |
| | | ", referbtmid='" + referbtmid + '\'' + |
| | | ", referbtmname='" + referbtmname + '\'' + |
| | | ", referConfig='" + referConfig + '\'' + |
| | | ", requireflag='" + requireflag + '\'' + |
| | | ", readonlyflag='" + readonlyflag + '\'' + |
| | | ", controllength=" + controllength + |
| | | ", formdisplaystyle='" + formdisplaystyle + '\'' + |
| | | ", tabledisplaystyle='" + tabledisplaystyle + '\'' + |
| | | ", formhref='" + formhref + '\'' + |
| | | ", tablehref='" + tablehref + '\'' + |
| | | ", precisionlength=" + precisionlength + |
| | | ", scalelength=" + scalelength + |
| | | ", valuearea='" + valuearea + '\'' + |
| | | ", codedateformat='" + codedateformat + '\'' + |
| | | ", tabledisplayjs='" + tabledisplayjs + '\'' + |
| | | ", textareaflag='" + textareaflag + '\'' + |
| | | ", imageflag='" + imageflag + '\'' + |
| | | ", defaultvalue='" + defaultvalue + '\'' + |
| | | ", prefixvalue='" + prefixvalue + '\'' + |
| | | ", suffixvalue='" + suffixvalue + '\'' + |
| | | ", filtersourceattr='" + filtersourceattr + '\'' + |
| | | ", filtersourceattrname='" + filtersourceattrname + '\'' + |
| | | ", enumString='" + enumString + '\'' + |
| | | ", attrTableWidth=" + attrTableWidth + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateButton; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * 主é¢åºé模æ¿å
å«çæé®æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-01-24 |
| | | * @author ludc |
| | | * @date 2023-05-9 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClassifyTemplateButtonVO extends CodeClassifyTemplateButton { |
| | | |
| | | /** |
| | |
| | | private static final long serialVersionUID = 4615707118535405378L; |
| | | |
| | | /** |
| | | * æå±æ¨¡æ¿ |
| | | */ |
| | | private String classifytemplateoid; |
| | | |
| | | /** |
| | | * æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | private String classifytemplateoidName; |
| | | |
| | | /** |
| | | * æé®çä¸»é® |
| | | */ |
| | | private String classifybuttonoid; |
| | | private String classifyTemplateOidName; |
| | | |
| | | /** |
| | | * æé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | private String classifybuttonoidName; |
| | | |
| | | /** |
| | | * æé®ç¨é |
| | | */ |
| | | private String buttonuse; |
| | | private String classifyButtonOidName; |
| | | |
| | | /** |
| | | * æé®ç¨éæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private String buttonUseText; |
| | | |
| | | |
| | | /** |
| | | * ç å¼åºå· |
| | | */ |
| | | private Integer ordernum; |
| | | private Integer orderNum; |
| | | |
| | | /** |
| | | * æé®çç¸å
³å
容 |
| | | */ |
| | | private CodeButtonVO buttonVO; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * è·å æå±æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public String getClassifytemplateoid (){ |
| | | return classifytemplateoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public void setClassifytemplateoid (String classifytemplateoid){ |
| | | this.classifytemplateoid = classifytemplateoid; |
| | | } |
| | | /** |
| | | * è·åæå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifytemplateoidName (){ |
| | | return classifytemplateoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±æ¨¡æ¿æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifytemplateoidName (String classifytemplateoidName){ |
| | | this.classifytemplateoidName = classifytemplateoidName; |
| | | } |
| | | /** |
| | | * è·å æé®çä¸»é® |
| | | */ |
| | | @Override |
| | | public String getClassifybuttonoid (){ |
| | | return classifybuttonoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æé®çä¸»é® |
| | | */ |
| | | @Override |
| | | public void setClassifybuttonoid (String classifybuttonoid){ |
| | | this.classifybuttonoid = classifybuttonoid; |
| | | } |
| | | /** |
| | | * è·åæé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | public String getClassifybuttonoidName (){ |
| | | return classifybuttonoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æé®ç䏻鮿¾ç¤ºææ¬ |
| | | */ |
| | | public void setClassifybuttonoidName (String classifybuttonoidName){ |
| | | this.classifybuttonoidName = classifybuttonoidName; |
| | | } |
| | | /** |
| | | * è·å æé®ç¨é |
| | | */ |
| | | @Override |
| | | public String getButtonuse (){ |
| | | return buttonuse; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æé®ç¨é |
| | | */ |
| | | @Override |
| | | public void setButtonuse (String buttonuse){ |
| | | this.buttonuse = buttonuse; |
| | | } |
| | | /** |
| | | * è·å ç å¼åºå· |
| | | */ |
| | | public Integer getOrdernum (){ |
| | | return ordernum; |
| | | } |
| | | |
| | | /** |
| | | * 设置 ç å¼åºå· |
| | | */ |
| | | public void setOrdernum (Integer ordernum){ |
| | | this.ordernum = ordernum; |
| | | } |
| | | |
| | | public String getButtonUseText() { |
| | | return buttonUseText; |
| | | } |
| | | |
| | | public void setButtonUseText(String buttonUseText) { |
| | | this.buttonUseText = buttonUseText; |
| | | } |
| | | |
| | | public CodeButtonVO getButtonVO() { |
| | | return buttonVO; |
| | | } |
| | | |
| | | public void setButtonVO(CodeButtonVO buttonVO) { |
| | | this.buttonVO = buttonVO; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyTemplateButtonVO{" + |
| | | "classifytemplateoid='" + classifytemplateoid + '\'' + |
| | | ", classifytemplateoidName='" + classifytemplateoidName + '\'' + |
| | | ", classifybuttonoid='" + classifybuttonoid + '\'' + |
| | | ", classifybuttonoidName='" + classifybuttonoidName + '\'' + |
| | | ", buttonuse='" + buttonuse + '\'' + |
| | | ", buttonUseText='" + buttonUseText + '\'' + |
| | | ", ordernum=" + ordernum + |
| | | ", buttonVO=" + buttonVO + |
| | | "} " + super.toString(); |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class CodeImportTemplateVO { |
| | | private List<ColumnVO> cloNamesList=new ArrayList<>(); |
| | | private CodeClassifyTemplateVO codeClassifyTemplateVO; |
| | | |
| | | private CodeClstemplateVO codeClstemplateVO; |
| | | |
| | | private CodeClassifyVO codeClassifyVO; |
| | | public List<ColumnVO> getCloNamesList() { |
| | | return cloNamesList; |
| | | } |
| | | |
| | | public void setCloNamesList(List<ColumnVO> cloNamesList) { |
| | | this.cloNamesList = cloNamesList; |
| | | } |
| | | |
| | | public CodeClassifyTemplateVO getCodeClassifyTemplateVO() { |
| | | return codeClassifyTemplateVO; |
| | | } |
| | | |
| | | public void setCodeClassifyTemplateVO(CodeClassifyTemplateVO codeClassifyTemplateVO) { |
| | | this.codeClassifyTemplateVO = codeClassifyTemplateVO; |
| | | } |
| | | |
| | | public CodeClassifyVO getCodeClassifyVO() { |
| | | return codeClassifyVO; |
| | | } |
| | | |
| | | public void setCodeClassifyVO(CodeClassifyVO codeClassifyVO) { |
| | | this.codeClassifyVO = codeClassifyVO; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeImportTemplateVO{" + |
| | | "cloNamesList=" + cloNamesList + |
| | | ", codeClassifyTemplateVO=" + codeClassifyTemplateVO + |
| | | ", codeClassifyVO=" + codeClassifyVO + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | * æ°æ® |
| | | */ |
| | | private List<Map<String,String>> datas = new ArrayList<>(); |
| | | private CodeClassifyTemplateVO codeClassifyTemplateVO; |
| | | private CodeClstemplateVO codeClstemplateVO; |
| | | private CodeClassifyVO codeClassifyVO; |
| | | |
| | | public CodeClassifyTemplateVO getCodeClassifyTemplateVO() { |
| | | return codeClassifyTemplateVO; |
| | | public CodeClstemplateVO getCodeClassifyTemplateVO() { |
| | | return codeClstemplateVO; |
| | | } |
| | | |
| | | public void setCodeClassifyTemplateVO(CodeClassifyTemplateVO codeClassifyTemplateVO) { |
| | | this.codeClassifyTemplateVO = codeClassifyTemplateVO; |
| | | public void setCodeClassifyTemplateVO(CodeClstemplateVO codeClstemplateVO) { |
| | | this.codeClstemplateVO = codeClstemplateVO; |
| | | } |
| | | |
| | | public CodeClassifyVO getCodeClassifyVO() { |
| | |
| | | ", fields=" + fields + |
| | | ", colNames=" + colNames + |
| | | ", datas=" + datas + |
| | | ", codeClassifyTemplateVO=" + codeClassifyTemplateVO + |
| | | ", codeClstemplateVO=" + codeClstemplateVO + |
| | | ", codeClassifyVO=" + codeClassifyVO + |
| | | '}'; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeTemplatePhase; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 模æ¿é¶æ®µæ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Data |
| | | public class CodeTemplatePhaseVO extends CodeTemplatePhase { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117825912259L; |
| | | |
| | | /** |
| | | * æå±ç¼ç è§åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String codeclassifytemplateoidName; |
| | | |
| | | /** |
| | | * ç å¼åºå· |
| | | */ |
| | | private Integer orderNum; |
| | | |
| | | } |
| | |
| | | <version>${bladex.project.version}</version> |
| | | <packaging>jar</packaging> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-util-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.cache; |
| | | |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import com.vci.ubcs.omd.feign.IEnumClient; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | |
| | | import java.util.List; |
| | | /** |
| | | * ä¸å¡åå
¸ç¼åå·¥å
·ç±» |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public class EnumCache { |
| | | |
| | | private static final String ENUM_ID = "enum:id"; |
| | | private static final String ENUM_VALUE = "enum:value"; |
| | | private static final String ENUM_LIST = "enum:list"; |
| | | private static final String ENUM_CACHE = "blade:enum"; |
| | | |
| | | private static IEnumClient iEnumClient; |
| | | |
| | | private static IEnumClient getIOmdEnumClient() { |
| | | if (iEnumClient == null) { |
| | | iEnumClient = SpringUtil.getBean(IEnumClient.class); |
| | | } |
| | | return iEnumClient; |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
¸å®ä½ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return Enum |
| | | */ |
| | | public static Enum getById(String oid) { |
| | | String keyPrefix = ENUM_ID.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(ENUM_CACHE, keyPrefix, oid, () -> { |
| | | R<Enum> result = getIOmdEnumClient().getById(oid); |
| | | return result.getData(); |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
¸å¼ |
| | | * |
| | | * @param name åå
¸ç¼å·æä¸¾ |
| | | * @param nameChild Integerååå
¸é® |
| | | * @return String |
| | | */ |
| | | public static String getValue(EnumEnum name, Integer nameChild) { |
| | | return getValue(name.getName(), nameChild); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·ååå
¸å¼ |
| | | * |
| | | * @param name ç¶åå
¸ç¼å· |
| | | * @param nameChild ååå
¸ç¼å· |
| | | * @return String |
| | | */ |
| | | public static String getValue(String name, Integer nameChild) { |
| | | String keyPrefix = ENUM_VALUE.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(ENUM_CACHE, keyPrefix + name + StringPool.COLON, String.valueOf(nameChild), () -> { |
| | | R<String> result = getIOmdEnumClient().getValue(name, String.valueOf(nameChild)); |
| | | return result.getData(); |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
¸å¼ |
| | | * |
| | | * @param name åå
¸ç¼å·æä¸¾ |
| | | * @param nameChild Stringååå
¸é® |
| | | * @return String |
| | | */ |
| | | public static String getValue(EnumEnum name, String nameChild) { |
| | | return getValue(name.getName(), nameChild); |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
¸å¼ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey Stringååå
¸é® |
| | | * @return String |
| | | */ |
| | | public static String getValue(String code, String dictKey) { |
| | | String keyPrefix = ENUM_VALUE.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(ENUM_CACHE, keyPrefix + code + StringPool.COLON, dictKey, () -> { |
| | | R<String> result = getIOmdEnumClient().getValue(code, dictKey); |
| | | return result.getData(); |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
¸éå |
| | | * |
| | | * @param name åå
¸ç¼å· |
| | | * @return List<EnumVO> |
| | | */ |
| | | public static List<EnumVO> getList(String name) { |
| | | String keyPrefix = ENUM_LIST.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(ENUM_CACHE, keyPrefix, name, () -> { |
| | | R<List<EnumVO>> result = getIOmdEnumClient().getList(name); |
| | | return result.getData(); |
| | | }); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Data |
| | | @TableName("PL_OMD_ENUM") |
| | | @ApiModel(value = "OmdEnum对象", description = "æä¸¾å®ä¹") |
| | | //@EqualsAndHashCode(callSuper = true) |
| | | public class Enum implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(value = "oid", type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "") |
| | | private String oid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String name; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String label; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date ts; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String creator; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date createtime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String modifier; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date modifytime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String remark; |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Data |
| | | @TableName("PL_OMD_ENUMITEM") |
| | | @ApiModel(value = "OmdEnumitem对象", description = "æä¸¾å®ä¹å表") |
| | | //@EqualsAndHashCode(callSuper = true) |
| | | public class EnumItem implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "oid", type = IdType.ASSIGN_ID) |
| | | private String oid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String name; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String value; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String description; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date ts; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String creator; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date createtime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String modifier; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Date modifytime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String parentoid; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Integer sort; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * ç³»ç»åå
¸æä¸¾ç±» |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum EnumEnum { |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | SEX("sex"), |
| | | /** |
| | | * éç¥ç±»å |
| | | */ |
| | | NOTICE("notice"), |
| | | /** |
| | | * èåç±»å |
| | | */ |
| | | MENU_CATEGORY("menu_category"), |
| | | /** |
| | | * æé®åè½ |
| | | */ |
| | | BUTTON_FUNC("button_func"), |
| | | /** |
| | | * æ¯å¦ |
| | | */ |
| | | YES_NO("yes_no"), |
| | | /** |
| | | * æµç¨ç±»å |
| | | */ |
| | | FLOW("flow"), |
| | | /** |
| | | * æºæç±»å |
| | | */ |
| | | ORG_CATEGORY("org_category"), |
| | | /** |
| | | * æ°æ®æé |
| | | */ |
| | | DATA_SCOPE_TYPE("data_scope_type"), |
| | | /** |
| | | * æ¥å£æé |
| | | */ |
| | | API_SCOPE_TYPE("api_scope_type"), |
| | | /** |
| | | * æéç±»å |
| | | */ |
| | | SCOPE_CATEGORY("scope_category"), |
| | | /** |
| | | * 对象åå¨ç±»å |
| | | */ |
| | | OSS("oss"), |
| | | /** |
| | | * çä¿¡æå¡ç±»å |
| | | */ |
| | | SMS("sms"), |
| | | /** |
| | | * å²ä½ç±»å |
| | | */ |
| | | POST_CATEGORY("post_category"), |
| | | /** |
| | | * è¡æ¿åºå |
| | | */ |
| | | REGION("region"), |
| | | /** |
| | | * ç¨æ·å¹³å° |
| | | */ |
| | | USER_TYPE("user_type"), |
| | | ; |
| | | |
| | | final String name; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Description:ä¸å¡ç±»åå
³è屿§ Feignæ¥å£ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/10 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IBtmAttributeFallback.class |
| | | ) |
| | | public interface IBtmAttributeClient { |
| | | |
| | | String API_PREFIX = "/client"; |
| | | String LIST_BY_BTM_OID = API_PREFIX + "/btm-attribute/list-by-btm-oid"; |
| | | |
| | | @GetMapping(LIST_BY_BTM_OID) |
| | | R<List<BtmTypeAttributeVO>> listByBtmOid(@RequestParam("oid") String oid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Description:ä¸å¡ç±»åå
³è屿§Feign失败 |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/10 |
| | | */ |
| | | @Component |
| | | public class IBtmAttributeFallback implements IBtmAttributeClient{ |
| | | |
| | | @Override |
| | | public R<List<BtmTypeAttributeVO>> listByBtmOid(String oid) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IEnumFallback.class |
| | | ) |
| | | public interface IEnumClient { |
| | | |
| | | String API_PREFIX = "/client"; |
| | | String TOP = API_PREFIX + "/enum/top"; |
| | | String GET_BY_ID = API_PREFIX + "/enum/get-by-oid"; |
| | | String GET_BYCHILD_ID = API_PREFIX + "/enum/get-byChild-oid"; |
| | | String GET_VALUE = API_PREFIX + "/enum/get-value"; |
| | | String GET_LIST = API_PREFIX + "/enum/get-list"; |
| | | |
| | | /** |
| | | * è·åæä¸¾å®ä¹å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<Enum> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | /** |
| | | * è·åæä¸¾å®ä¹å表 |
| | | * |
| | | * @param name ç¶èç¹name |
| | | * @param nameChild åèç¹name |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(GET_VALUE) |
| | | R<String> getValue(@RequestParam("name") String name,@RequestParam("nameChild") String nameChild); |
| | | |
| | | /** |
| | | * è·ååå
¸å®ä½ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_BY_ID) |
| | | R<Enum> getById(@RequestParam("oid") String oid); |
| | | |
| | | /** |
| | | * è·ååå
¸å®ä½ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_BYCHILD_ID) |
| | | R<EnumItem> getByChildId(@RequestParam("oid") String oid); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * |
| | | * @param name æä¸¾ç¼å· |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_LIST) |
| | | R<List<EnumVO>> getList(@RequestParam("name") String name); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Feign失败é
ç½® |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Component |
| | | public class IEnumFallback implements IEnumClient { |
| | | @Override |
| | | public BladePage<Enum> top(Integer current, Integer size) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public R<String> getValue(String name, String nameChild) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<Enum> getById(String oid) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<EnumItem> getByChildId(String oid) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<EnumVO>> getList(String name) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IEnumItemFallback.class |
| | | ) |
| | | public interface IEnumItemClient { |
| | | |
| | | String API_PREFIX = "/clientEnumItem"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åæä¸¾å®ä¹å表å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<EnumItem> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodePhaseattrVO.java
copy to Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/feign/IEnumItemFallback.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodePhaseattrVO.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.vo; |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ è§å¾å®ä½ç±» |
| | | * Feign失败é
ç½® |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | * @author Chill |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodePhaseattrVO extends CodePhaseattrEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | @Component |
| | | public class IEnumItemFallback implements IEnumItemClient { |
| | | @Override |
| | | public BladePage<EnumItem> top(Integer current, Integer size) { |
| | | return null; |
| | | } |
| | | |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodePhaseattrVO.java ÐÞ¸Ä |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.vo; |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ è§å¾å®ä½ç±» |
| | | * æä¸¾å®ä¹å表 è§å¾å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodePhaseattrVO extends CodePhaseattrEntity { |
| | | public class EnumItemVO extends EnumItem { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | String parentName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.starter.util.node.INodeOid; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ è§å¾å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class EnumVO extends Enum implements INodeOid<EnumItem> { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ååèç¹ |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<EnumItem> children = new ArrayList<>(); |
| | | /** |
| | | * æ¯å¦æååèç¹ |
| | | */ |
| | | private Boolean hasChildren = false; |
| | | /** |
| | | * åèç¹OID |
| | | */ |
| | | private String itemOid; |
| | | /** |
| | | * åèç¹æä¸¾ç¼ç |
| | | */ |
| | | private String itemName; |
| | | /** |
| | | * åèç¹æä¸¾å¼ |
| | | */ |
| | | private String itemValue; |
| | | /** |
| | | * åèç¹ææè¿° |
| | | */ |
| | | private String itemDescription; |
| | | |
| | | @Override |
| | | public String getParentOid() { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<EnumItem> getChildren() { |
| | | return this.children; |
| | | } |
| | | |
| | | } |
| | |
| | | <artifactId>poi-ooxml-schemas</artifactId> |
| | | <version>4.1.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.github.yulichang</groupId> |
| | | <artifactId>mybatis-plus-join-boot-starter</artifactId> |
| | | <version>${mybatisplus.join.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | </project> |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | import com.alibaba.druid.util.StringUtils; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | |
| | | import java.lang.reflect.Field; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.Locale; |
| | | |
| | | /** |
| | | * æ°å¢æ¶é»è®¤å¼å±æ§èµå¼ |
| | |
| | | public static <T extends BaseModel> T addDefaultAttrAssimt(T object,String btmName) throws VciBaseException { |
| | | BaseModel baseModel = object; |
| | | try { |
| | | baseModel.setOid(VciBaseUtil.getPk()); |
| | | baseModel.setOid(VciBaseUtil.getPk().toUpperCase()); |
| | | baseModel.setCreateTime(new Date()); |
| | | baseModel.setNameOid(VciBaseUtil.getPk()); |
| | | baseModel.setLastModifyTime(new Date()); |
| | | baseModel.setTs(new Date()); |
| | | baseModel.setRevisionOid(VciBaseUtil.getPk()); |
| | | //ç¨æ·id |
| | | String userId = AuthUtil.getUserId().toString(); |
| | | baseModel.setBtmname(btmName); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | |
| | | import java.util.Map; |
| | | |
| | | public class MPJLambdaWrapperSqlKeyword { |
| | | |
| | | private static final String SQL_REGEX = "'|%|--|insert|delete|select|count|group|union|drop|truncate|alter|grant|execute|exec|xp_cmdshell|call|declare|sql"; |
| | | private static final String EQUAL = "_equal"; |
| | | private static final String NOT_EQUAL = "_notequal"; |
| | | private static final String LIKE = "_like"; |
| | | private static final String LIKE_LEFT = "_likeleft"; |
| | | private static final String LIKE_RIGHT = "_likeright"; |
| | | private static final String NOT_LIKE = "_notlike"; |
| | | private static final String GE = "_ge"; |
| | | private static final String LE = "_le"; |
| | | private static final String GT = "_gt"; |
| | | private static final String LT = "_lt"; |
| | | private static final String DATE_GE = "_datege"; |
| | | private static final String DATE_GT = "_dategt"; |
| | | private static final String DATE_EQUAL = "_dateequal"; |
| | | private static final String DATE_LT = "_datelt"; |
| | | private static final String DATE_LE = "_datele"; |
| | | private static final String IS_NULL = "_null"; |
| | | private static final String NOT_NULL = "_notnull"; |
| | | private static final String IGNORE = "_ignore"; |
| | | |
| | | public MPJLambdaWrapperSqlKeyword() { |
| | | } |
| | | |
| | | public static void buildCondition(Map<String, Object> query, MPJLambdaWrapper<?> qw) { |
| | | if (!Func.isEmpty(query)) { |
| | | query.forEach((k, v) -> { |
| | | if (!Func.hasEmpty(new Object[]{k, v}) && !k.endsWith("_ignore")) { |
| | | if (k.endsWith("_equal")) { |
| | | qw.eq(getColumn(k, "_equal"), v); |
| | | } else if (k.endsWith("_notequal")) { |
| | | qw.ne(getColumn(k, "_notequal"), v); |
| | | } else if (k.endsWith("_likeleft")) { |
| | | qw.likeLeft(getColumn(k, "_likeleft"), v); |
| | | } else if (k.endsWith("_likeright")) { |
| | | qw.likeRight(getColumn(k, "_likeright"), v); |
| | | } else if (k.endsWith("_notlike")) { |
| | | qw.notLike(getColumn(k, "_notlike"), v); |
| | | } else if (k.endsWith("_ge")) { |
| | | qw.ge(getColumn(k, "_ge"), v); |
| | | } else if (k.endsWith("_le")) { |
| | | qw.le(getColumn(k, "_le"), v); |
| | | } else if (k.endsWith("_gt")) { |
| | | qw.gt(getColumn(k, "_gt"), v); |
| | | } else if (k.endsWith("_lt")) { |
| | | qw.lt(getColumn(k, "_lt"), v); |
| | | } else if (k.endsWith("_datege")) { |
| | | qw.ge(getColumn(k, "_datege"), DateUtil.parse(String.valueOf(v), "yyyy-MM-dd HH:mm:ss")); |
| | | } else if (k.endsWith("_dategt")) { |
| | | qw.gt(getColumn(k, "_dategt"), DateUtil.parse(String.valueOf(v), "yyyy-MM-dd HH:mm:ss")); |
| | | } else if (k.endsWith("_dateequal")) { |
| | | qw.eq(getColumn(k, "_dateequal"), DateUtil.parse(String.valueOf(v), "yyyy-MM-dd HH:mm:ss")); |
| | | } else if (k.endsWith("_datele")) { |
| | | qw.le(getColumn(k, "_datele"), DateUtil.parse(String.valueOf(v), "yyyy-MM-dd HH:mm:ss")); |
| | | } else if (k.endsWith("_datelt")) { |
| | | qw.lt(getColumn(k, "_datelt"), DateUtil.parse(String.valueOf(v), "yyyy-MM-dd HH:mm:ss")); |
| | | } else if (k.endsWith("_null")) { |
| | | qw.isNull(getColumn(k, "_null")); |
| | | } else if (k.endsWith("_notnull")) { |
| | | qw.isNotNull(getColumn(k, "_notnull")); |
| | | } else { |
| | | qw.like(getColumn(k, "_like"), v); |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | private static String getColumn(String column, String keyword) { |
| | | return StringUtil.humpToUnderline(StringUtil.removeSuffix(column, keyword)); |
| | | } |
| | | |
| | | public static String filter(String param) { |
| | | return param == null ? null : param.replaceAll("(?i)'|%|--|insert|delete|select|count|group|union|drop|truncate|alter|grant|execute|exec|xp_cmdshell|call|declare|sql", ""); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.mp.support.SqlKeyword; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | |
| | | import java.util.Map; |
| | | |
| | | public class Map2MPLLambdaUtil { |
| | | |
| | | public Map2MPLLambdaUtil() { |
| | | } |
| | | |
| | | public static <T> IPage<T> getPage(Query query) { |
| | | Page<T> page = new Page((long) Func.toInt(query.getCurrent(), 1), (long)Func.toInt(query.getSize(), 10)); |
| | | String[] ascArr = Func.toStrArray(query.getAscs()); |
| | | String[] descArr = ascArr; |
| | | int var4 = ascArr.length; |
| | | |
| | | int var5; |
| | | for(var5 = 0; var5 < var4; ++var5) { |
| | | String asc = descArr[var5]; |
| | | page.addOrder(new OrderItem[]{OrderItem.asc(StringUtil.cleanIdentifier(asc))}); |
| | | } |
| | | |
| | | descArr = Func.toStrArray(query.getDescs()); |
| | | String[] var8 = descArr; |
| | | var5 = descArr.length; |
| | | |
| | | for(int var9 = 0; var9 < var5; ++var9) { |
| | | String desc = var8[var9]; |
| | | page.addOrder(new OrderItem[]{OrderItem.desc(StringUtil.cleanIdentifier(desc))}); |
| | | } |
| | | |
| | | return page; |
| | | } |
| | | |
| | | public static <T> MPJLambdaWrapper<T> getMPJLambdaWrapper(T entity) { |
| | | return new MPJLambdaWrapper(entity); |
| | | } |
| | | |
| | | public static <T> MPJLambdaWrapper<T> getMPJLambdaWrapper(Map<String, Object> query, Class<T> clazz) { |
| | | Kv exclude = Kv.create().set("Blade-Auth", "Blade-Auth").set("current", "current").set("size", "size").set("ascs", "ascs").set("descs", "descs"); |
| | | return getMPJLambdaWrapper(query, exclude, clazz); |
| | | } |
| | | |
| | | /** |
| | | * map转æ¢ä¸ºMPJLambdaWrapper |
| | | * @param query |
| | | * @param exclude |
| | | * @param clazz |
| | | * @param <T> |
| | | * @return |
| | | */ |
| | | public static <T> MPJLambdaWrapper<T> getMPJLambdaWrapper(Map<String, Object> query, Map<String, Object> exclude, Class<T> clazz) { |
| | | exclude.forEach((k, v) -> { |
| | | query.remove(k); |
| | | }); |
| | | MPJLambdaWrapper<T> qw = new MPJLambdaWrapper(); |
| | | qw.setEntity(BeanUtil.newInstance(clazz)); |
| | | MPJLambdaWrapperSqlKeyword.buildCondition(query, qw); |
| | | return qw; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.support.SFunction; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.springblade.core.mp.support.SqlKeyword; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * in åæ°æªåï¼è¿åwrapper |
| | |
| | | */ |
| | | public class MybatisParameterUtil { |
| | | |
| | | /** |
| | | * inä½ä¸ºæ¥è¯¢æ¡ä»¶æ¶ï¼é²æ¢å¤§äº1000åºç°æ¥éï¼å¯¹æ¡ä»¶è¿è¡æªåï¼è¿è¡¨æ¥è¯¢çwrapper |
| | | * @param wrapper MPJLambdaWrapper,ä¸è¿è¡è¿è¡¨æ¥è¯¢æ¶ä½¿ç¨ |
| | | * @param column ä½ä¸ºinçæ¡ä»¶å |
| | | * @param coll æ¥è¯¢åæ° |
| | | * @param <T> LambdaQueryWrapperçæ³å |
| | | * @param <F> æ¥è¯¢åæ°ç±»å |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | public static <T, F> MPJLambdaWrapper<T> cutInParameter(MPJLambdaWrapper<T> wrapper, SFunction<T, ?> column, List<F> coll) throws VciBaseException { |
| | | List<List<F>> newList = splitList(coll, 900); |
| | | if (ObjectUtils.isEmpty(newList)) { |
| | | throw new VciBaseException("åæ°é误"); |
| | | } else if (newList.size() == 1) { |
| | | wrapper.in(column, newList.get(0)); |
| | | return wrapper; |
| | | } |
| | | wrapper.and(i -> { |
| | | i.in(column, newList.get(0)); |
| | | newList.remove(0); |
| | | for (List<F> objects : newList) { |
| | | i.or().in(column, objects); |
| | | } |
| | | }); |
| | | return wrapper; |
| | | } |
| | | |
| | | /** |
| | | * inä½ä¸ºæ¥è¯¢æ¡ä»¶æ¶ï¼é²æ¢å¤§äº1000åºç°æ¥éï¼å¯¹æ¡ä»¶è¿è¡æªåï¼ä¸å
·å¤è¿è¡¨æ¥è¯¢çwrapper |
| | | * @param wrapper LambdaQueryWrapper,ä¸è¿è¡è¿è¡¨æ¥è¯¢æ¶ä½¿ç¨ |
| | | * @param column ä½ä¸ºinçæ¡ä»¶å |
| | | * @param coll æ¥è¯¢åæ° |
| | | * @param <T> LambdaQueryWrapperçæ³å |
| | | * @param <F> æ¥è¯¢åæ°ç±»å |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | public static <T, F> LambdaQueryWrapper<T> cutInParameter(LambdaQueryWrapper<T> wrapper, SFunction<T, ?> column, List<F> coll) throws VciBaseException { |
| | | List<List<F>> newList = splitList(coll, 900); |
| | | if (ObjectUtils.isEmpty(newList)) { |
| | |
| | | return wrapper; |
| | | } |
| | | |
| | | /** |
| | | * notinä½ä¸ºæ¥è¯¢æ¡ä»¶æ¶ï¼é²æ¢å¤§äº1000åºç°æ¥éï¼å¯¹æ¡ä»¶è¿è¡æªåï¼è¿è¡¨æ¥è¯¢çwrapper |
| | | * @param wrapper MPJLambdaWrapper,ä¸è¿è¡è¿è¡¨æ¥è¯¢æ¶ä½¿ç¨ |
| | | * @param column ä½ä¸ºinçæ¡ä»¶å |
| | | * @param coll æ¥è¯¢åæ° |
| | | * @param <T> LambdaQueryWrapperçæ³å |
| | | * @param <F> æ¥è¯¢åæ°ç±»å |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | public static <T, F> MPJLambdaWrapper<T> cutNotInParameter(MPJLambdaWrapper<T> wrapper, SFunction<T, ?> column, List<F> coll) throws VciBaseException { |
| | | List<List<F>> newList = splitList(coll, 900); |
| | | if (ObjectUtils.isEmpty(newList)) { |
| | | throw new VciBaseException("åæ°é误"); |
| | | } else if (newList.size() == 1) { |
| | | wrapper.notIn(column, newList.get(0)); |
| | | return wrapper; |
| | | } |
| | | wrapper.and(i -> { |
| | | i.in(column, newList.get(0)); |
| | | newList.remove(0); |
| | | for (List<F> objects : newList) { |
| | | i.or().notIn(column, objects); |
| | | } |
| | | }); |
| | | return wrapper; |
| | | } |
| | | |
| | | /** |
| | | * notinä½ä¸ºæ¥è¯¢æ¡ä»¶æ¶ï¼é²æ¢å¤§äº1000åºç°æ¥éï¼å¯¹æ¡ä»¶è¿è¡æªåï¼ä¸å
·å¤è¿è¡¨æ¥è¯¢çwrapper |
| | | * @param wrapper LambdaQueryWrapper,ä¸è¿è¡è¿è¡¨æ¥è¯¢æ¶ä½¿ç¨ |
| | | * @param column ä½ä¸ºinçæ¡ä»¶å |
| | | * @param coll æ¥è¯¢åæ° |
| | | * @param <T> LambdaQueryWrapperçæ³å |
| | | * @param <F> æ¥è¯¢åæ°ç±»å |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | public static <T, F> LambdaQueryWrapper<T> cutNotInParameter(LambdaQueryWrapper<T> wrapper, SFunction<T, ?> column, List<F> coll) throws VciBaseException { |
| | | List<List<F>> newList = splitList(coll, 900); |
| | | if (ObjectUtils.isEmpty(newList)) { |
| | |
| | | return newList; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | public class PatternUtil { |
| | | |
| | | //*${xxx}* |
| | | public static Pattern dynamic = Pattern.compile(".*\\$\\{([a-z]+)\\}.*"); |
| | | public static Pattern dynamicLimitCount = Pattern.compile("\\$\\{([a-z]+)\\}"); |
| | | /** |
| | | * 夿å
容䏿¯å¦å
å«å¨æåæ°(${key}å½¢å¼ç) |
| | | * |
| | | * @param content è¦å¤æçå
容 |
| | | * @return |
| | | */ |
| | | public static boolean isContainsDynamicParameter(String content) { |
| | | if(StringUtils.isBlank(content)){ |
| | | return false; |
| | | } |
| | | return dynamic.matcher(content).matches(); |
| | | } |
| | | |
| | | /** |
| | | * æç
§å¨æå
容çåæ°åºç°é¡ºåº,å°åæ°æ¾å°Listä¸ |
| | | * |
| | | * @param content |
| | | * @return |
| | | */ |
| | | public static List<String> getKeyListByContent(String content) { |
| | | if(StringUtils.isBlank(content)){ |
| | | return new ArrayList<>(); |
| | | } |
| | | Set<String> paramSet = new LinkedHashSet<>(); |
| | | Matcher m = dynamicLimitCount.matcher(content); |
| | | while (m.find()) { |
| | | paramSet.add(m.group(1)); |
| | | } |
| | | return new ArrayList<>(paramSet); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util.node; |
| | | |
| | | |
| | | import com.google.common.collect.ImmutableMap; |
| | | import com.google.common.collect.Maps; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public class ForestNodeManagerOid<T extends INodeOid<T>> { |
| | | private final ImmutableMap<String, T> nodeMap; |
| | | private final Map<String, Object> parentIdMap = Maps.newHashMap(); |
| | | |
| | | public ForestNodeManagerOid(List<T> nodes) { |
| | | this.nodeMap = Maps.uniqueIndex(nodes, INodeOid::getOid); |
| | | } |
| | | |
| | | public INodeOid<T> getTreeNodeAt(String id) { |
| | | return this.nodeMap.containsKey(id) ? (INodeOid)this.nodeMap.get(id) : null; |
| | | } |
| | | |
| | | public void addParentId(String parentId) { |
| | | this.parentIdMap.put(parentId, ""); |
| | | } |
| | | |
| | | public List<T> getRoot() { |
| | | List<T> roots = new ArrayList(); |
| | | this.nodeMap.forEach((key, node) -> { |
| | | if (node.getParentOid() == null || this.parentIdMap.containsKey(node.getOid())) { |
| | | roots.add(node); |
| | | } |
| | | |
| | | }); |
| | | return roots; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util.node; |
| | | |
| | | |
| | | |
| | | import java.util.List; |
| | | |
| | | public class ForestNodeMergerOid { |
| | | public ForestNodeMergerOid() { |
| | | } |
| | | |
| | | public static <T extends INodeOid<T>> List<T> merge(List<T> items) { |
| | | ForestNodeManagerOid forestNodeManager = new ForestNodeManagerOid(items); |
| | | items.forEach((forestNode) -> { |
| | | if (forestNode.getParentOid() != null) { |
| | | INodeOid<T> node = forestNodeManager.getTreeNodeAt(forestNode.getParentOid()); |
| | | if (node != null) { |
| | | node.getChildren().add(forestNode); |
| | | } else { |
| | | forestNodeManager.addParentId(forestNode.getOid()); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | return forestNodeManager.getRoot(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util.node; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | public interface INodeOid<T> extends Serializable { |
| | | String getOid(); |
| | | |
| | | String getParentOid(); |
| | | |
| | | List<T> getChildren(); |
| | | |
| | | default Boolean getHasChildren() { |
| | | return false; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.web.constant; |
| | | |
| | | |
| | | import com.vci.ubcs.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciDateUtil; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | public class VciSystemVarConstants { |
| | | public static final String CURRENTUSER_OID = "#CURRENTUSER.OID#"; |
| | | public static final String CURRENTUSER_ID = "#CURRENTUSER.ID#"; |
| | | public static final String CURRENTTIME = "#CURRENTTIME#"; |
| | | public static final String CURRENTDATE = "#CURRENTDATE#"; |
| | | public static final String CURRENTDATETIME = "#CURRENTDATETIME#"; |
| | | public static final String CURRENTUSER_NAME = "#CURRENTUSER_NAME#"; |
| | | public static final String CURRENTUSER_SECRETGRADE = "#CURRENTUSER.SECRETGRADE#"; |
| | | public static final String CURRENTUSER_IP_SECRET = "#CURRENTUSER.IPSECRET#"; |
| | | public static final String CURRENTUSER_BUSINESS_UNIT = "#CURRENTUSER.BUSINESSUNIT#"; |
| | | public static final String CURRENTUSER_BUSINESS_UNIT_NAME = "#CURRENTUSER.BUSINESSUNITNAME#"; |
| | | public static final String CURRENTUSER_GROUPOID = "#CURRENTUSER.GROUPOID#"; |
| | | public static final String CURRENTUSER_GROUPNAME = "#CURRENTUSER.GROUPNAME#"; |
| | | public static final String CURRENTUSER_EMAIL = "#CURRENTUSER.EMAIL#"; |
| | | public static final String CURRENTUSER_ROLENAME = "#CURRENTUSER.ROLENAME#"; |
| | | public static final String[] SYSTEM_VAR_KEYS = new String[]{"#CURRENTUSER.OID#", "#CURRENTUSER.ID#", "#CURRENTDATE#", "#CURRENTTIME#", "#CURRENTDATETIME#", "#CURRENTUSER.GROUPOID#", "#CURRENTUSER_NAME#", "#CURRENTUSER.SECRETGRADE#", "#CURRENTUSER.GROUPNAME#", "#CURRENTUSER.EMAIL#", "#CURRENTUSER.ROLENAME#", "#CURRENTUSER.IPSECRET#", "#CURRENTUSER.BUSINESSUNIT#", "#CURRENTUSER.BUSINESSUNITNAME#"}; |
| | | public static final Map<String, String> SYSTEM_VAR_KEYNAMEMAP = new HashMap(); |
| | | |
| | | public VciSystemVarConstants() { |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTTIME#", "å½åæ¶é´"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTDATE#", "å½åæ¥æ"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTDATETIME#", "å½åæ¥ææ¶é´"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.OID#", "å½åç¨æ·ä¸»é®"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.ID#", "å½åç¨æ·è´¦æ·"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER_NAME#", "å½åç¨æ·å§å"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.SECRETGRADE#", "å½åç¨æ·å¯çº§"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.IPSECRET#", "å½åç¨æ·çæºå¨å¯çº§"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.GROUPOID#", "å½åç¨æ·çé¨é¨ç主é®"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.GROUPNAME#", "å½åç¨æ·æå±é¨é¨åç§°"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.EMAIL#", "å½åç¨æ·é®ä»¶å°å"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.ROLENAME#", "å½åç¨æ·æå±è§è²åç§°"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.BUSINESSUNIT#", "å½åç¨æ·æå±ä¸å¡åå
主é®"); |
| | | SYSTEM_VAR_KEYNAMEMAP.put("#CURRENTUSER.BUSINESSUNITNAME#", "å½åç¨æ·æå±ä¸å¡åå
"); |
| | | } |
| | | |
| | | public static Map<String, String> getSystemVarValueMap() { |
| | | Map<String, String> systemVarMap = new HashMap(); |
| | | SessionInfo sessionInfo = VciBaseUtil.getCurrentUserSessionInfo(); |
| | | if (sessionInfo != null) { |
| | | systemVarMap.put("#CURRENTUSER.OID#", sessionInfo.getUserOid()); |
| | | systemVarMap.put("#CURRENTUSER.ID#", sessionInfo.getUserId()); |
| | | systemVarMap.put("#CURRENTUSER_NAME#", sessionInfo.getUserName()); |
| | | systemVarMap.put("#CURRENTDATETIME#", VciDateUtil.getNowString()); |
| | | systemVarMap.put("#CURRENTDATE#", VciDateUtil.getNowString("yyyy-MM-dd")); |
| | | systemVarMap.put("#CURRENTTIME#", VciDateUtil.getNowString("HH:mm:ss")); |
| | | systemVarMap.put("#CURRENTUSER.SECRETGRADE#", sessionInfo.getUserSecret()); |
| | | systemVarMap.put("#CURRENTUSER.GROUPNAME#", sessionInfo.getDeptName()); |
| | | systemVarMap.put("#CURRENTUSER.GROUPOID#", sessionInfo.getDeptOid()); |
| | | systemVarMap.put("#CURRENTUSER.EMAIL#", sessionInfo.getEmail()); |
| | | systemVarMap.put("#CURRENTUSER.ROLENAME#", (String) ((Collection) Optional.ofNullable(sessionInfo.getRolesName().values()).orElseGet(() -> { |
| | | return new ArrayList(); |
| | | })).stream().collect(Collectors.joining(","))); |
| | | systemVarMap.put("#CURRENTUSER.IPSECRET#", sessionInfo.getIpSecret()); |
| | | systemVarMap.put("#CURRENTUSER.BUSINESSUNIT#", sessionInfo.getOrgsOid()); |
| | | systemVarMap.put("#CURRENTUSER.BUSINESSUNITNAME#", sessionInfo.getOrgsName()); |
| | | } |
| | | |
| | | return systemVarMap; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.web.util; |
| | | |
| | | // |
| | | // Source code recreated from a .class file by IntelliJ IDEA |
| | | // (powered by FernFlower decompiler) |
| | | // |
| | | |
| | | |
| | | import java.security.MessageDigest; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | public class Md5 { |
| | | private static Logger logger = LoggerFactory.getLogger(Md5.class); |
| | | |
| | | public Md5() { |
| | | } |
| | | |
| | | public static String md5(String v) { |
| | | if (v == null) { |
| | | return null; |
| | | } else { |
| | | try { |
| | | MessageDigest md = MessageDigest.getInstance("MD5"); |
| | | return toHex(md.digest(v.getBytes())); |
| | | } catch (Exception var2) { |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | | |
| | | public static String twoTimesMd5(String sourceString) throws Exception { |
| | | return sourceString == null ? null : md5(md5(sourceString)); |
| | | } |
| | | |
| | | public static boolean equalMd5(String md5String, String sourceString) { |
| | | if (md5String != null && sourceString != null) { |
| | | try { |
| | | return md5String.equals(twoTimesMd5(sourceString)); |
| | | } catch (Exception var3) { |
| | | var3.printStackTrace(); |
| | | return false; |
| | | } |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | public static boolean equalOneMd5(String md5String, String sourceString) { |
| | | if (md5String != null && sourceString != null) { |
| | | try { |
| | | String ms = md5(sourceString); |
| | | return md5String.equals(ms); |
| | | } catch (Exception var3) { |
| | | if (logger.isErrorEnabled()) { |
| | | logger.error("对æ¯md5çæ¶ååºç°äºé误", var3); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | private static String toHex(byte[] buffer) { |
| | | StringBuffer sb = new StringBuffer(32); |
| | | String s = null; |
| | | |
| | | for(int i = 0; i < buffer.length; ++i) { |
| | | s = Integer.toHexString(buffer[i] & 255); |
| | | if (s.length() < 2) { |
| | | sb.append('0'); |
| | | } |
| | | |
| | | sb.append(s); |
| | | } |
| | | |
| | | return sb.toString(); |
| | | } |
| | | } |
| | | |
| | |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfo() throws VciBaseException { |
| | | SessionInfo si = getCurrentUserSessionInfoNotException(); |
| | | if (si == null) { |
| | | throw new VciBaseException("noLogin", new String[]{"没æå½åç¨æ·ä¿¡æ¯"}); |
| | | } else { |
| | | return si; |
| | | } |
| | | } |
| | | public static long getLong(String s) { |
| | | long l = 0L; |
| | | if (s == null) { |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodePhaseattrController.java ÐÞ¸Ä |
| | |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.code.wrapper.CodePhaseattrWrapper; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseAttrService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import com.vci.ubcs.code.wrapper.CodePhaseAttrWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | @AllArgsConstructor |
| | | @RequestMapping("/CodePhaseattr") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§", tags = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§æ¥å£") |
| | | public class CodePhaseattrController extends BladeController { |
| | | public class CodePhaseAttrController extends BladeController { |
| | | |
| | | private final ICodePhaseattrService CodePhaseattrService; |
| | | private final ICodePhaseAttrService CodePhaseattrService; |
| | | |
| | | private CodePhaseattrMapper codePhaseAttrMapper; |
| | | private CodePhaseAttrMapper codePhaseAttrMapper; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ 详æ
|
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<CodePhaseattrVO> detail(CodePhaseAttr codePhaseattr) { |
| | | public R<CodePhaseAttrVO> detail(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseAttr detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().entityVO(detail)); |
| | | return R.data(CodePhaseAttrWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ å页 |
| | |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> list(CodePhaseAttr codePhaseattr, Query query) { |
| | | public R<IPage<CodePhaseAttrVO>> list(CodePhaseAttr codePhaseattr, Query query) { |
| | | IPage<CodePhaseAttr> pages = CodePhaseattrService.page(Condition.getPage(query), Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().pageVO(pages)); |
| | | return R.data(CodePhaseAttrWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> page(CodePhaseattrVO CodePhaseattr, Query query) { |
| | | IPage<CodePhaseattrVO> pages = CodePhaseattrService.selectCodePhaseattrPage(Condition.getPage(query), CodePhaseattr); |
| | | public R<IPage<CodePhaseAttrVO>> page(CodePhaseAttrVO CodePhaseattr, Query query) { |
| | | IPage<CodePhaseAttrVO> pages = CodePhaseattrService.selectCodePhaseattrPage(Condition.getPage(query), CodePhaseattr); |
| | | return R.data(pages); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | |
| | | @AllArgsConstructor |
| | | public class CodePhaseattrClient implements ICodePhaseattrClient { |
| | | |
| | | private final CodePhaseattrMapper codePhaseAttrMapper; |
| | | private final CodePhaseAttrMapper codePhaseAttrMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseattrMapper.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface CodePhaseattrMapper extends BaseMapper<CodePhaseAttr> { |
| | | public interface CodePhaseAttrMapper extends BaseMapper<CodePhaseAttr> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | |
| | | * @param CodePhaseattr |
| | | * @return |
| | | */ |
| | | List<CodePhaseattrVO> selectCodePhaseattrPage(IPage page, CodePhaseattrVO CodePhaseattr); |
| | | List<CodePhaseAttrVO> selectCodePhaseattrPage(IPage page, CodePhaseAttrVO CodePhaseattr); |
| | | |
| | | List<CodePhaseAttr> selectByPhasea(String oid); |
| | | |
| | |
| | | |
| | | import com.vci.ubcs.code.dto.CodeClassifyValueDTO; |
| | | import com.vci.ubcs.code.entity.CodeClassifyValue; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyValueVO; |
| | | |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * åç±»ç æ®µçç 弿塿¥å£ |
| | |
| | | * åºå®ç 段çç 弿塿¥å£ |
| | | * |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | * @date 2023-04-24 |
| | | */ |
| | | public interface ICodeFixedValueService extends IService<CodeFixedValue> { |
| | | |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java ÐÞ¸Ä |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡ç±» |
| | |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface ICodePhaseattrService extends IService<CodePhaseAttr> { |
| | | public interface ICodePhaseAttrService extends IService<CodePhaseAttr> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | |
| | | * @param CodePhaseattr |
| | | * @return |
| | | */ |
| | | IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr); |
| | | IPage<CodePhaseAttrVO> selectCodePhaseattrPage(IPage<CodePhaseAttrVO> page, CodePhaseAttrVO CodePhaseattr); |
| | | |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.wrapper.CodeBasicSecWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.enumpck.OsCodeFillTypeEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.web.pagemodel.UIFormReferVO; |
| | |
| | | if (! "success".equals(attrKv.getKey())){ |
| | | throw new VciBaseException(attrKv.getValue() + "ä¸è½ä¸ºç©º"); |
| | | } |
| | | |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeBasicSec codeBasicSecDO = new CodeBasicSec(); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeBasicSecDTO, codeBasicSecDO); |
| | |
| | | codeBasicSecDO.setValueCutTypeText(CodeCutTypeEnum.getValueByText(codeBasicSecDTO.getValueCutType())); |
| | | codeBasicSecDO.setCodeGetValueTypeText(CodeGetValueTypeEnum.getValueByText(codeBasicSecDTO.getCodeGetValueType())); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | codeBasicSecDO.setOid(VciBaseUtil.getPk()); |
| | | codeBasicSecDO.setRevisionOid(VciBaseUtil.getPk()); |
| | | codeBasicSecDO.setNameOid(VciBaseUtil.getPk()); |
| | | codeBasicSecDO.setBtmname(MdmBtmTypeConstant.CODE_BASIC_SEC); |
| | | codeBasicSecDO.setTs(new Date()); |
| | | codeBasicSecDO.setCreateTime(new Date()); |
| | | codeBasicSecDO.setCreator(AuthUtil.getUserId().toString()); |
| | | codeBasicSecDO.setLastModifier(AuthUtil.getUserId().toString()); |
| | | codeBasicSecDO.setLastModifyTime(new Date()); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeBasicSecDO,MdmBtmTypeConstant.CODE_BASIC_SEC); |
| | | //æåºå·ï¼é»è®¤çäºå½åå·²æçæ°éå 1 |
| | | Long total = codeBasicSecMapper.selectCount(Wrappers.<CodeBasicSec>query() |
| | | .lambda() |
| | |
| | | } |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeBasicSec codeBasicSecDO = selectByOid(codeBasicSecDTO.getOid()); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(codeBasicSecDO); |
| | | boolean status = codeRuleService.checkEditDelStatus(codeRuleService.getObjectByOid(codeBasicSecDO.getPkCodeRule()).getLcStatus()); |
| | | boolean resBoolean; |
| | | if (!status){ |
| | |
| | | BeanMap beanMap = BeanMap.create(codeClassifyProcessTemp); |
| | | beanMap.putAll(conditionMap); |
| | | IPage<CodeClassifyProcessTemp> doList = codeClassifyProcessTempMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(codeClassifyProcessTemp)); |
| | | IPage<CodeClassifyProcessTempVO> voList = new Page<CodeClassifyProcessTempVO>(); |
| | | IPage<CodeClassifyProcessTempVO> voList = new Page<>(); |
| | | //DataGrid<CodeClassifyProcessTempVO> dataGrid=new DataGrid<>(); |
| | | if (!CollectionUtils.isEmpty(doList.getRecords())) { |
| | | voList.setRecords(CodeClassifyProcessTempWrapper.build().listVO(doList.getRecords())); |
| | | //åé¡µåæ°è½¬å°pageVO对象 |
| | | voList = PageDO2PageVO.pageDO2PageVO(doList,voList); |
| | | voList = CodeClassifyProcessTempWrapper.build().pageVO(doList); |
| | | } |
| | | return voList; |
| | | } |
| | |
| | | query.setSize(pageHelper.getLimit()); |
| | | } |
| | | //pageHelper.addDefaultAsc("ordernum"); |
| | | query.setAscs("ordernum"); |
| | | query.setAscs("ORDERNUM"); |
| | | //è¿å¿æ¯ä¸ªè¿è¡¨æ¥è¯¢ |
| | | IPage<CodeClassifyTemplateAttr> doList = codeClassifyTemplateAttrMapper.selectPage(Condition.getPage(query), mpjLambdaWrapper); |
| | | IPage<CodeClassifyTemplateAttrVO> voList = new Page<>(); |
| | | if (!CollectionUtils.isEmpty(doList.getRecords())) { |
| | | voList.setRecords(CodeClstempattrWrapper.build().listVO(doList.getRecords())); |
| | | PageDO2PageVO.pageDO2PageVO(doList,voList); |
| | | voList = CodeClstempattrWrapper.build().pageVO(doList); |
| | | } |
| | | return voList; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeClassifyValueDTO; |
| | | import com.vci.ubcs.code.entity.CodeBasicSec; |
| | | import com.vci.ubcs.code.entity.CodeClassifyValue; |
| | | import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus; |
| | | import com.vci.ubcs.code.enumpack.*; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyValueMapper; |
| | | import com.vci.ubcs.code.service.ICodeBasicSecService; |
| | | import com.vci.ubcs.code.service.ICodeClassifyValueService; |
| | |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.revision.model.TreeWrapperOptions; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.LC_STATUS; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.*; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_CASCADE_LINKED_NOT_DELETE; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | @Service |
| | | public class CodeClassifyValueServiceImpl extends ServiceImpl<CodeClassifyValueMapper, CodeClassifyValue> implements ICodeClassifyValueService { |
| | |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼å¯ä¸é¡¹ï¼å¿
è¾é¡¹ä¸éè¿æ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean addSave(CodeClassifyValueDTO codeClassifyValueDTO) throws VciBaseException{ |
| | | VciBaseUtil.alertNotNull(codeClassifyValueDTO,"éè¦æ·»å çæ°æ®å¯¹è±¡"); |
| | | //æ·»å 对ç å¼åç¶çº§ç夿 |
| | | if(StringUtils.isNotBlank(codeClassifyValueDTO.getParentclassifyvalueoid())){ |
| | | String parentclassifyvalueoid = codeClassifyValueDTO.getParentclassifyvalueoid(); |
| | | String codeclassifysecoid = codeClassifyValueDTO.getCodeclassifysecoid(); |
| | | if(StringUtils.isNotBlank(codeClassifyValueDTO.getParentClassifyValueOid())){ |
| | | String parentclassifyvalueoid = codeClassifyValueDTO.getParentClassifyValueOid(); |
| | | String codeclassifysecoid = codeClassifyValueDTO.getCodeClassifySecOid(); |
| | | CodeClassifyValue parentDO = codeClassifyValueMapper.selectById(parentclassifyvalueoid); |
| | | if (parentDO.getCodeClassifySecOid().equalsIgnoreCase(codeclassifysecoid)){ |
| | | throw new VciBaseException("ä¸å
许å¨ç¶ç å¼ä¸ç´æ¥æ·»å åç å¼"); |
| | |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeClassifyValue codeClassifyValueDO = new CodeClassifyValue(); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeClassifyValueDTO,codeClassifyValueDO); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeClassifyValueDO,MdmBtmTypeConstant.CODE_CLASSIFY_VALUE); |
| | | //æ¥è¯¢ |
| | | List<CodeClassifyValue> existList = codeClassifyValueMapper.selectList(Wrappers.<CodeClassifyValue>query() |
| | | .lambda().eq(CodeClassifyValue::getCodeClassifySecOid, codeClassifyValueDO.getCodeClassifySecOid()) |
| | |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼å¯ä¸é¡¹ï¼å¿
è¾é¡¹ä¸éè¿æ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean editSave(CodeClassifyValueDTO codeClassifyValueDTO) throws VciBaseException{ |
| | | VciBaseUtil.alertNotNull(codeClassifyValueDTO,"æ°æ®å¯¹è±¡",codeClassifyValueDTO.getOid(),"åç±»ç æ®µçç å¼ä¸»é®"); |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeClassifyValue codeClassifyValueDO = selectByOid(codeClassifyValueDTO.getOid()); |
| | | revisionModelUtil.copyFromDTOIgnore(codeClassifyValueDTO,codeClassifyValueDO); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(codeClassifyValueDO); |
| | | boolean resBoolean = codeClassifyValueMapper.updateById(codeClassifyValueDO) > 0; |
| | | return resBoolean; |
| | | } |
| | |
| | | * @return success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | private R checkIsCanDeleteForDO(CodeClassifyValueDTO codeClassifyValueDTO, CodeClassifyValue codeClassifyValueDO) { |
| | | if (!checkTs(codeClassifyValueDTO,codeClassifyValueDO)) { |
| | | return R.fail(TS_NOT_PROCESS); |
| | | } |
| | | //boService.checkTs(codeClassifyValueDTO); |
| | | //æ ¡éªä¸çº§æ¯å¦æå¼ç¨ |
| | | if(checkChildIsLinked(codeClassifyValueDO.getOid())){ |
| | | return R.fail(DATA_CASCADE_LINKED_NOT_DELETE); |
| | |
| | | VciBaseUtil.alertNotNull(codeClassifyValueDTO,"åç±»ç æ®µçç 弿°æ®å¯¹è±¡",codeClassifyValueDTO.getOid(),"åç±»ç æ®µçç å¼ç主é®"); |
| | | CodeClassifyValue codeClassifyValueDO = selectByOid(codeClassifyValueDTO.getOid()); |
| | | R baseResult = checkIsCanDeleteForDO(codeClassifyValueDTO,codeClassifyValueDO); |
| | | if(baseResult.isSuccess()) { |
| | | if(!baseResult.isSuccess()) { |
| | | //æ¾ä¸çº§çï¼è¿ä¸ªæ¯å¯ä»¥å é¤çæ¶åR |
| | | List<String> childrenOids = codeClassifyValueMapper.selectAllLevelChildOid(codeClassifyValueDO.getOid().trim()); |
| | | if (!CollectionUtils.isEmpty(childrenOids)) { |
| | |
| | | return dto.getOid().equals(value.getOid()); |
| | | }).collect(Collectors.toList()); |
| | | collect.forEach(ccv -> { |
| | | ccv.setOrderNum(dto.getOrdernum()); |
| | | ccv.setOrderNum(dto.getOrderNum()); |
| | | ccv.setId(dto.getId()); |
| | | ccv.setName(dto.getName()); |
| | | updateList.add(ccv); |
| | |
| | | List<String> oids = codeBasicSecService.getOidByCodeclassifysecOid(conditionMap.get("codeclassifysecoid")); |
| | | LambdaQueryWrapper<CodeClassifyValue> wrapper = Wrappers.<CodeClassifyValue>query() |
| | | .lambda().in(CodeClassifyValue::getCodeClassifySecOid,oids) |
| | | .orderByDesc(CodeClassifyValue::getOrderNum); |
| | | .orderByAsc(CodeClassifyValue::getOrderNum); |
| | | return codeClassifyValueMapper.selectList(wrapper); |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥ts |
| | | * @param tempDO |
| | | * @return |
| | | */ |
| | | private boolean checkTs(CodeClassifyValueDTO tempDO,CodeClassifyValue codeClassifyValueDO){ |
| | | Date dbTs = codeClassifyValueDO.getTs(); |
| | | Date currentTs = tempDO.getTs(); |
| | | if(currentTs == null ? dbTs == null:currentTs.compareTo(dbTs)==0){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |
| | |
| | | @Autowired(required = false) |
| | | private CodeClassifyTemplateButtonMapper codeTempbuttonMapper; |
| | | @Autowired(required = false) |
| | | private CodePhaseattrMapper codePhaseattrMapper; |
| | | private CodePhaseAttrMapper codePhaseattrMapper; |
| | | @Autowired(required = false) |
| | | private CodeClassifyMapper codeClassifyMapper; |
| | | @Autowired(required = false) |
| | |
| | | @Autowired(required = false) |
| | | private CodeClstemplateMapper codeClstemplateMapper; |
| | | @Autowired(required = false) |
| | | private CodePhaseattrServiceImpl codePhaseattrServiceImpl; |
| | | private CodePhaseAttrServiceImpl codePhaseattrServiceImpl; |
| | | |
| | | @Override |
| | | public IPage<CodeClstemplateVO> selectPlCodeClstemplatePage(IPage<CodeClstemplateVO> page, CodeClstemplateVO plCodeClstemplate) { |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeFixedValueDTO; |
| | | import com.vci.ubcs.code.entity.CodeClassifyProcessTemp; |
| | | import com.vci.ubcs.code.entity.CodeFixedValue; |
| | | import com.vci.ubcs.code.mapper.CodeFixedValueMapper; |
| | | import com.vci.ubcs.code.service.ICodeFixedValueService; |
| | |
| | | import com.vci.ubcs.code.wrapper.CodeFixedValueWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.*; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_LINKED_NOT_DELETE; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | /** |
| | | * åºå®ç 段çç å¼æå¡ |
| | |
| | | CodeFixedValue codeFixedValueDO = new CodeFixedValue(); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeFixedValueDTO,codeFixedValueDO); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | codeFixedValueDO.setOid(VciBaseUtil.getPk()); |
| | | codeFixedValueDO.setRevisionOid(VciBaseUtil.getPk()); |
| | | codeFixedValueDO.setNameOid(VciBaseUtil.getPk()); |
| | | codeFixedValueDO.setBtmname(MdmBtmTypeConstant.CODE_FIXED_VALUE); |
| | | codeFixedValueDO.setCreateTime(new Date()); |
| | | codeFixedValueDO.setCreator(AuthUtil.getUserId().toString()); |
| | | codeFixedValueDO.setLastModifier(AuthUtil.getUserId().toString()); |
| | | codeFixedValueDO.setLastModifyTime(new Date()); |
| | | codeFixedValueDO.setTs(new Date()); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeFixedValueDO,MdmBtmTypeConstant.CODE_FIXED_VALUE); |
| | | Long count = this.codeFixedValueMapper.selectCount(Wrappers.<CodeFixedValue>query() |
| | | .lambda().eq(CodeFixedValue::getCodeFixedSecOid, codeFixedValueDO.getCodeFixedSecOid()) |
| | | )+1L; |
| | |
| | | CodeFixedValue codeFixedValueDO = selectByOid(codeFixedValueDTO.getOid()); |
| | | revisionModelUtil.copyFromDTOIgnore(codeFixedValueDTO,codeFixedValueDO); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | codeFixedValueDO.setLastModifier(AuthUtil.getUserId().toString()); |
| | | codeFixedValueDO.setLastModifyTime(new Date()); |
| | | codeFixedValueDO.setTs(new Date()); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(codeFixedValueDO); |
| | | boolean resBoolean = codeFixedValueMapper.updateById(codeFixedValueDO) > 0; |
| | | return resBoolean; |
| | | } |
| | |
| | | * @return success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | private R checkIsCanDeleteForDO(CodeFixedValueDTO codeFixedValueDTO, CodeFixedValue codeFixedValueDO) { |
| | | if(!checkTs(codeFixedValueDTO,codeFixedValueDO)) { |
| | | return R.fail(TS_NOT_PROCESS); |
| | | } |
| | | //boService.checkTs(codeFixedValueDTO); |
| | | if(!checkIsLinked(codeFixedValueDO.getOid())) { |
| | | return R.status(true); |
| | | }else{ |
| | | return R.fail(DATA_LINKED_NOT_DELETE); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥ts |
| | | * @param tempDO |
| | | * @return |
| | | */ |
| | | private boolean checkTs(CodeFixedValueDTO tempDO,CodeFixedValue codeFixedValueDO){ |
| | | Date dbTs = codeFixedValueDO.getTs(); |
| | | Date currentTs = tempDO.getTs(); |
| | | if(currentTs == null ? dbTs == null:currentTs.compareTo(dbTs)==0){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | boolean resBoolean = codeFixedValueMapper.deleteBatchIds(doList.stream().map(CodeFixedValue::getOid).collect(Collectors.toList())) > 0; |
| | | return resBoolean; |
| | | } |
| | | |
| | | |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodePhaseattrServiceImpl.java ÐÞ¸Ä |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseAttrService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Service |
| | | public class CodePhaseattrServiceImpl extends ServiceImpl<CodePhaseattrMapper, CodePhaseAttr> implements ICodePhaseattrService { |
| | | public class CodePhaseAttrServiceImpl extends ServiceImpl<CodePhaseAttrMapper, CodePhaseAttr> implements ICodePhaseAttrService { |
| | | |
| | | @Override |
| | | public IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr) { |
| | | return page.setRecords(baseMapper.selectCodePhaseattrPage(page, CodePhaseattr)); |
| | | public IPage<CodePhaseAttrVO> selectCodePhaseattrPage(IPage<CodePhaseAttrVO> page, CodePhaseAttrVO codePhaseAttr) { |
| | | return page.setRecords(baseMapper.selectCodePhaseattrPage(page, codePhaseAttr)); |
| | | } |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeBasicSecDTO; |
| | | import com.vci.ubcs.code.dto.CodeRuleDTO; |
| | | import com.vci.ubcs.code.entity.*; |
| | |
| | | import com.vci.ubcs.code.wrapper.CodeRuleWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeRule codeRule = Objects.requireNonNull(BeanUtil.copy(codeRuleDTO, CodeRule.class)); |
| | | String userId = AuthUtil.getUserId().toString(); |
| | | codeRule.setOid(VciBaseUtil.getPk()); |
| | | |
| | | codeRule.setRevisionOid(VciBaseUtil.getPk()); |
| | | codeRule.setNameOid(VciBaseUtil.getPk()); |
| | | codeRule.setBtmname("coderule"); |
| | | codeRule.setLastR("1"); |
| | | codeRule.setLastV("1"); |
| | | codeRule.setFirstR("1"); |
| | | codeRule.setFirstV("1"); |
| | | codeRule.setCreator(userId); |
| | | codeRule.setCreateTime(new Date()); |
| | | codeRule.setLastModifier("1"); |
| | | codeRule.setLastModifyTime(new Date()); |
| | | codeRule.setVersionRule("0"); |
| | | codeRule.setVersionSeq(1); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeRule, MdmBtmTypeConstant.CODE_RULE); |
| | | codeRule.setLctid(CODE_RULE_LC); |
| | | codeRule.setLcStatus(FRAMEWORK_RELEASE_EDITING); |
| | | codeRule.setOwner("1"); |
| | | codeRule.setCreator(userId); |
| | | codeRule.setLastModifier(userId); |
| | | return codeRuleMapper.insert(codeRule)>0; |
| | | } |
| | | |
| | |
| | | //å°DTO转æ¢ä¸ºDO |
| | | CodeRule codeRule = selectByOid(codeRuleDTO.getOid()); |
| | | revisionModelUtil.copyFromDTOIgnore(codeRuleDTO, codeRule); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(codeRule); |
| | | return codeRuleMapper.updateById(codeRule)>0; |
| | | } |
| | | |
| | |
| | | IPage<CodeClassifyTemplateButton> doList = codeClassifyTemplateButtonMapper.selectPage(Condition.getPage(query),getMPJLambdaWrapper(conditionMap)); |
| | | IPage<CodeClassifyTemplateButtonVO> voList = new Page<>(); |
| | | if (!CollectionUtils.isEmpty(doList.getRecords())) { |
| | | voList.setRecords(codeClassifyTemplateButtonDO2VOs(doList.getRecords())); |
| | | voList = PageDO2PageVO.pageDO2PageVO(doList,voList); |
| | | voList = CodeTempbuttonWrapper.build().pageVO(doList); |
| | | } |
| | | return voList; |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeTemplatePhaseDTO; |
| | | import com.vci.ubcs.code.entity.*; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import com.vci.ubcs.code.mapper.CodeTemplatePhaseMapper; |
| | | import com.vci.ubcs.code.mapper.CommonsMapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateAttrService; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.service.ICodePhaseAttrService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeTemplatePhaseVO; |
| | | import com.vci.ubcs.code.wrapper.CodeTemplatePhaseWapper; |
| | |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.MybatisParameterUtil; |
| | | import com.vci.ubcs.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import com.vci.ubcs.starter.web.util.BeanUtil; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | |
| | | public class CodeTempphaseServiceImpl extends ServiceImpl<CodeTemplatePhaseMapper, CodeTemplatePhase> implements ICodeTempphaseService { |
| | | |
| | | @Autowired(required = false) |
| | | private CodePhaseattrMapper codePhaseAttrMapper; |
| | | private CodePhaseAttrMapper codePhaseAttrMapper; |
| | | |
| | | @Autowired(required = false) |
| | | private CodeTemplatePhaseMapper codeTemplatePhaseMapper; |
| | |
| | | private CommonsMapper commonsMapper; |
| | | |
| | | @Autowired(required = false) |
| | | private ICodePhaseattrService codePhaseattrService; |
| | | private ICodePhaseAttrService codePhaseattrService; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | |
| | | query.setSize(pageHelper.getLimit()); |
| | | query.setCurrent(pageHelper.getPage()); |
| | | } |
| | | query.setDescs("createTime"); |
| | | query.setDescs("CREATETIME"); |
| | | CodeTemplatePhase codeTemplatePhase = new CodeTemplatePhase(); |
| | | BeanMap beanMap = BeanMap.create(codeTemplatePhase); |
| | | beanMap.putAll(conditionMap); |
| | | IPage<CodeTemplatePhase> doList = codeTemplatePhaseMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(codeTemplatePhase)); |
| | | IPage<CodeTemplatePhaseVO> voList = new Page<>(); |
| | | if (!CollectionUtils.isEmpty(doList.getRecords())) { |
| | | voList.setRecords(CodeTemplatePhaseWapper.build().listVO(doList.getRecords())); |
| | | //åé¡µåæ°è½¬å°pageVO对象 |
| | | voList = PageDO2PageVO.pageDO2PageVO(doList,voList); |
| | | CodeTemplatePhaseWapper.build().pageVO(doList); |
| | | } |
| | | return voList; |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodePhaseattrWrapper.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public class CodePhaseattrWrapper extends BaseEntityWrapper<CodePhaseAttr, CodePhaseattrVO> { |
| | | public class CodePhaseAttrWrapper extends BaseEntityWrapper<CodePhaseAttr, CodePhaseAttrVO> { |
| | | |
| | | public static CodePhaseattrWrapper build() { |
| | | return new CodePhaseattrWrapper(); |
| | | public static CodePhaseAttrWrapper build() { |
| | | return new CodePhaseAttrWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodePhaseattrVO entityVO(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseattrVO CodePhaseattrVO = Objects.requireNonNull(BeanUtil.copy(codePhaseattr, CodePhaseattrVO.class)); |
| | | public CodePhaseAttrVO entityVO(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseAttrVO CodePhaseattrVO = Objects.requireNonNull(BeanUtil.copy(codePhaseattr, CodePhaseAttrVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodePhaseattr.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodePhaseattr.getUpdateUser()); |
| | |
| | | and PL_CODE_BASICSEC.TS = #{codeBasicSec.ts} |
| | | </if> |
| | | <if test="codeBasicSec.id != null and codeBasicSec.id != ''"> |
| | | |
| | | and PL_CODE_BASICSEC.ID like CONCAT(CONCAT('%', #{codeBasicSec.id}), '%') |
| | | </if> |
| | | <if test="codeBasicSec.name != null and codeBasicSec.name != ''"> |
| | |
| | | <result column="OWNER" property="owner"/> |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | <result column="CODEPHASEOID" property="codePhaseOid"/> |
| | | <result column="ATTRIBUTEGROUP" property="attributegroup"/> |
| | | <result column="ATTRIBUTEGROUP" property="attributeGroup"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectCodePhaseattrPage" resultMap="CodePhaseattrResultMap"> |
| | |
| | | description, |
| | | oid, |
| | | versionseq, |
| | | checkinby, |
| | | revisionrule, |
| | | lctid, |
| | | id, |
| | | owner, |
| | | checkoutby, |
| | | creator, |
| | | createtime, |
| | | isfirstv, |
| | | firstv, |
| | | attributegroup, |
| | | revisionoid, |
| | | btmname, |
| | | checkouttime, |
| | | revisionvalue, |
| | | versionrule, |
| | | name, |
| | | islastr, |
| | | lastr, |
| | | lastmodifytime, |
| | | copyfromversion, |
| | | nameoid, |
| | | lcstatus, |
| | | islastv, |
| | | checkintime, |
| | | lastv, |
| | | codephaseoid, |
| | | isfirstr |
| | | firstr |
| | | from PL_CODE_PHASEATTR |
| | | where codephaseoid in |
| | | (select oid |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.controller; |
| | | |
| | | import com.vci.ubcs.omd.wrapper.EnumWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.vci.ubcs.omd.service.IEnumService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/enum") |
| | | @Api(value = "æä¸¾å®ä¹", tags = "æä¸¾å®ä¹æ¥å£") |
| | | public class EnumController extends BladeController { |
| | | |
| | | private final IEnumService omdEnumService; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥omdEnum") |
| | | public R<EnumVO> detail(Enum omdEnum) { |
| | | Enum detail = omdEnumService.getOne(Condition.getQueryWrapper(omdEnum)); |
| | | return R.data(EnumWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * æä¸¾å®ä¹ å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnum") |
| | | public R<IPage<EnumVO>> list(Enum omdEnum, Query query) { |
| | | IPage<Enum> pages = omdEnumService.page(Condition.getPage(query), Condition.getQueryWrapper(omdEnum)); |
| | | return R.data(EnumWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnum") |
| | | public R<IPage<EnumVO>> page(EnumVO omdEnum, Query query) { |
| | | IPage<EnumVO> pages = omdEnumService.selectOmdEnumPage(Condition.getPage(query), omdEnum); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥omdEnum") |
| | | public R save(@Valid @RequestBody Enum omdEnum) { |
| | | return R.status(omdEnumService.save(omdEnum)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥omdEnum") |
| | | public R update(@Valid @RequestBody Enum omdEnum) { |
| | | return R.status(omdEnumService.updateById(omdEnum)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥omdEnum") |
| | | public R submit(@Valid @RequestBody Enum omdEnum) { |
| | | return R.status(omdEnumService.saveOrUpdate(omdEnum)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(omdEnumService.deleteLogic(Func.toStrList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ å页 |
| | | */ |
| | | @GetMapping("/parent-list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnum") |
| | | public R<IPage<EnumVO>> parentList(@ApiIgnore @RequestParam Map<String, Object> dict , Query query) { |
| | | return R.data(omdEnumService.parentList(dict, query)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·ååå
¸æ å½¢ç»æ |
| | | */ |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "æ å½¢ç»æ", notes = "æ å½¢ç»æ") |
| | | public R<List<EnumVO>> tree(@ApiIgnore @RequestParam Map<String, Object> dict , Query query) { |
| | | List<EnumVO> tree = omdEnumService.tree(dict, query); |
| | | return R.data(tree); |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾ |
| | | */ |
| | | @GetMapping("/dictionary") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "è·åæä¸¾", notes = "è·åæä¸¾") |
| | | public R<List<EnumVO>> dictionary(String code) { |
| | | List<EnumVO> tree = omdEnumService.getList(code); |
| | | return R.data(tree); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.controller; |
| | | |
| | | import com.vci.ubcs.omd.wrapper.EnumitemWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumItemVO; |
| | | import com.vci.ubcs.omd.service.IEnumItemService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/enumItem") |
| | | @Api(value = "æä¸¾å®ä¹å表", tags = "æä¸¾å®ä¹å表æ¥å£") |
| | | public class EnumItemController extends BladeController { |
| | | |
| | | private final IEnumItemService omdEnumitemService; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥omdEnumitem") |
| | | public R<EnumItemVO> detail(EnumItem enumitem) { |
| | | EnumItem detail = omdEnumitemService.getOne(Condition.getQueryWrapper(enumitem)); |
| | | return R.data(EnumitemWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * æä¸¾å®ä¹å表 å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnumitem") |
| | | public R<IPage<EnumItemVO>> list(EnumItem enumitem, Query query) { |
| | | IPage<EnumItem> pages = omdEnumitemService.page(Condition.getPage(query), Condition.getQueryWrapper(enumitem).orderByAsc("sort")); |
| | | return R.data(EnumitemWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 å页 |
| | | */ |
| | | @GetMapping("/listAll") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnumitem") |
| | | public R<List<EnumItemVO>> listAll(@ApiIgnore @RequestParam Map<String, Object> omdEnumitem, Query query) { |
| | | return R.data(omdEnumitemService.childList(Condition.getQueryWrapper(omdEnumitem, EnumItem.class).orderByAsc("sort"))); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥omdEnumitem") |
| | | public R<IPage<EnumItemVO>> page(EnumItemVO omdEnumitem, Query query) { |
| | | IPage<EnumItemVO> pages = omdEnumitemService.selectOmdEnumitemPage(Condition.getPage(query), omdEnumitem); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥omdEnumitem") |
| | | public R save(@Valid @RequestBody EnumItem enumitem) { |
| | | return R.status(omdEnumitemService.save(enumitem)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥omdEnumitem") |
| | | public R update(@Valid @RequestBody EnumItem enumitem) { |
| | | return R.status(omdEnumitemService.updateById(enumitem)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥omdEnumitem") |
| | | public R submit(@Valid @RequestBody EnumItem enumitem) { |
| | | |
| | | if(enumitem.getOid() == null){ |
| | | enumitem.setCreatetime(new Date()); |
| | | enumitem.setCreator(AuthUtil.getUser().getUserName()); |
| | | } |
| | | enumitem.setModifier(AuthUtil.getUser().getUserName()); |
| | | enumitem.setModifytime(new Date()); |
| | | enumitem.setTs(new Date()); |
| | | return R.status(omdEnumitemService.saveOrUpdate(enumitem)); |
| | | } |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(omdEnumitemService.deleteLogic(Func.toStrList(ids))); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.omd.entity.BtmTypeAttribute; |
| | | import com.vci.ubcs.omd.service.IBtmTypeAttributeService; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.wrapper.BtmTypeAttributeWrapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Description: ä¸å¡ç±»åå
³è屿§æå¡Feignå®ç°ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/10 |
| | | */ |
| | | @NonDS |
| | | @ApiIgnore |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class BtmAttributeClient implements IBtmAttributeClient{ |
| | | |
| | | private final IBtmTypeAttributeService btmTypeAttributeService; |
| | | |
| | | @GetMapping(LIST_BY_BTM_OID) |
| | | @Override |
| | | public R<List<BtmTypeAttributeVO>> listByBtmOid(String oid) { |
| | | return R.data(BtmTypeAttributeWrapper.build().listEntityVO( |
| | | btmTypeAttributeService.list(Wrappers.<BtmTypeAttribute>query().lambda().eq(BtmTypeAttribute::getPkBtmType,oid)) |
| | | )); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.mapper.EnumMapper; |
| | | import com.vci.ubcs.omd.service.IEnumItemService; |
| | | import com.vci.ubcs.omd.service.IEnumService; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class EnumClient implements IEnumClient { |
| | | private final EnumMapper enumMapper; |
| | | |
| | | private IEnumService iEnumService; |
| | | private IEnumItemService iEnumItemService; |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<Enum> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<Enum> page = enumMapper.selectPage(Condition.getPage(query), |
| | | Wrappers.emptyWrapper()); |
| | | // service.page(Condition.getPage(query)); |
| | | return BladePage.of(page); |
| | | } |
| | | /** |
| | | * è·åæä¸¾å®ä¹å表 |
| | | * |
| | | * @param name ç¶èç¹name |
| | | * @param nameChild åèç¹name |
| | | * @return BladePage |
| | | */ |
| | | @Override |
| | | public R<String> getValue(String name,String nameChild) { |
| | | return R.data(iEnumService.getValue(name, nameChild)); |
| | | } |
| | | |
| | | @Override |
| | | public R<Enum> getById(String oid) { |
| | | return R.data(iEnumService.getById(oid)); |
| | | } |
| | | |
| | | @Override |
| | | public R<EnumItem> getByChildId(String oid) { |
| | | return R.data(iEnumItemService.getById(oid)); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<EnumVO>> getList(String name) { |
| | | return R.data(iEnumService.getList(name)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.mapper.EnumItemMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class EnumItemClient implements IEnumItemClient { |
| | | |
| | | private final EnumItemMapper enumItemMapper; |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<EnumItem> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<EnumItem> page = enumItemMapper.selectPage(Condition.getPage(query), |
| | | Wrappers.emptyWrapper()); |
| | | // service.page(Condition.getPage(query)); |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java
copy to Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/EnumItemMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumItemVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡ç±» |
| | | * æä¸¾å®ä¹å表 Mapper æ¥å£ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | * @since 2023-05-08 |
| | | */ |
| | | public interface ICodePhaseattrService extends IService<CodePhaseAttr> { |
| | | public interface EnumItemMapper extends BaseMapper<EnumItem> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodePhaseattr |
| | | * @param omdEnumitem |
| | | * @return |
| | | */ |
| | | IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr); |
| | | |
| | | List<EnumItemVO> selectOmdEnumitemPage(IPage page, EnumItemVO omdEnumitem); |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java
copy to Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/EnumMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡ç±» |
| | | * æä¸¾å®ä¹ Mapper æ¥å£ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | * @since 2023-05-08 |
| | | */ |
| | | public interface ICodePhaseattrService extends IService<CodePhaseAttr> { |
| | | public interface EnumMapper extends BaseMapper<Enum> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodePhaseattr |
| | | * @param omdEnum |
| | | * @return |
| | | */ |
| | | IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr); |
| | | List<EnumVO> selectOmdEnumPage(IPage page, EnumVO omdEnum); |
| | | |
| | | |
| | | String getValue(String name, String nameChild); |
| | | |
| | | List<EnumVO> getList(String name); |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java
copy to Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IEnumItemService.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodePhaseattrService.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | package com.vci.ubcs.omd.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumItemVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡ç±» |
| | | * æä¸¾å®ä¹å表 æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | * @since 2023-05-08 |
| | | */ |
| | | public interface ICodePhaseattrService extends IService<CodePhaseAttr> { |
| | | public interface IEnumItemService extends IService<EnumItem> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodePhaseattr |
| | | * @param omdEnumitem |
| | | * @return |
| | | */ |
| | | IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr); |
| | | IPage<EnumItemVO> selectOmdEnumitemPage(IPage<EnumItemVO> page, EnumItemVO omdEnumitem); |
| | | |
| | | |
| | | boolean deleteLogic(List<String> toStringList); |
| | | |
| | | List<EnumItemVO> childList(QueryWrapper<EnumItem> queryWrapper); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.support.Query; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | public interface IEnumService extends IService<Enum> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param omdEnum |
| | | * @return |
| | | */ |
| | | IPage<EnumVO> selectOmdEnumPage(IPage<EnumVO> page, EnumVO omdEnum); |
| | | |
| | | |
| | | boolean deleteLogic(List<String> toStringList); |
| | | |
| | | IPage<EnumVO> parentList(Map<String, Object> dict, Query query); |
| | | /** |
| | | * æ å½¢ç»æ |
| | | * |
| | | * @return |
| | | */ |
| | | List<EnumVO> tree(Map<String, Object> dict , Query query); |
| | | /** |
| | | * è·åæä¸¾å®ä¹å表 |
| | | * |
| | | * @param name ç¶èç¹name |
| | | * @param nameChild åèç¹name |
| | | * @return BladePage |
| | | */ |
| | | String getValue(String name, String nameChild); |
| | | |
| | | List<EnumVO> getList(String name); |
| | | } |
| | |
| | | domainMap.forEach((k,v)-> { |
| | | if (domain.contains(k)){ |
| | | BtmTypeTreeVO parent = new BtmTypeTreeVO(); |
| | | parent.setOid(k); |
| | | parent.setName(k); |
| | | parent.setChildList(v.stream().map(s -> { |
| | | BtmTypeTreeVO child = new BtmTypeTreeVO(); |
| | |
| | | attribute.setReferToName(attr.getReferBtmTypeName()); |
| | | attribute.setTs(now); |
| | | attribute.setCreateTime(now); |
| | | attribute.setIsDeleted(0); |
| | | attribute.setCreateUser(AuthUtil.getUserId()); |
| | | idAttrMap.put(attribute.getKey(),attribute); |
| | | // å¨è¿éç»ä¸å¡ç±»åè®¾ç½®çæ¬æ§å¶ãçå½å¨ææ§å¶ãå¯çº§æ§å¶ç¸å
³çä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumItemVO; |
| | | import com.vci.ubcs.omd.mapper.EnumItemMapper; |
| | | import com.vci.ubcs.omd.service.IEnumItemService; |
| | | import com.vci.ubcs.omd.wrapper.EnumitemWrapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Service |
| | | public class EnumItemServiceImpl extends ServiceImpl<EnumItemMapper, EnumItem> implements IEnumItemService { |
| | | |
| | | @Override |
| | | public IPage<EnumItemVO> selectOmdEnumitemPage(IPage<EnumItemVO> page, EnumItemVO omdEnumitem) { |
| | | return page.setRecords(baseMapper.selectOmdEnumitemPage(page, omdEnumitem)); |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteLogic(List<String> toStringList) { |
| | | return SqlHelper.retBool(baseMapper.deleteBatchIds(toStringList)); |
| | | } |
| | | |
| | | @Override |
| | | public List<EnumItemVO> childList(QueryWrapper<EnumItem> queryWrapper) { |
| | | |
| | | return EnumitemWrapper.build().listVO(baseMapper.selectList(queryWrapper)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.mapper.EnumItemMapper; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.vci.ubcs.omd.mapper.EnumMapper; |
| | | import com.vci.ubcs.omd.service.IEnumService; |
| | | import com.vci.ubcs.omd.wrapper.EnumWrapper; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | @Service |
| | | public class EnumServiceImpl extends ServiceImpl<EnumMapper, Enum> implements IEnumService { |
| | | |
| | | @Resource |
| | | EnumItemMapper enumItemMapper; |
| | | @Override |
| | | public IPage<EnumVO> selectOmdEnumPage(IPage<EnumVO> page, EnumVO omdEnum) { |
| | | return page.setRecords(baseMapper.selectOmdEnumPage(page, omdEnum)); |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteLogic(List<String> toStringList) { |
| | | return SqlHelper.retBool(baseMapper.deleteBatchIds(toStringList)); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<EnumVO> parentList(Map<String, Object> dict, Query query) { |
| | | IPage<Enum> page = this.page(Condition.getPage(query), |
| | | Condition.getQueryWrapper(dict, Enum.class).lambda() |
| | | .orderByDesc(Enum::getCreatetime)); |
| | | return EnumWrapper.build().pageVO(page); |
| | | } |
| | | |
| | | @Override |
| | | public List<EnumVO> tree(Map<String, Object> dict, Query query) { |
| | | List<Enum> pages = this.page(Condition.getPage(query),Condition.getQueryWrapper(dict, Enum.class).lambda() |
| | | .orderByDesc(Enum::getCreatetime)).getRecords(); |
| | | List<EnumVO> listVo = new ArrayList<>(); |
| | | pages.stream().forEach(page->{ |
| | | EnumVO enumVO = new EnumVO(); |
| | | QueryWrapper<EnumItem> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("parentOid",page.getOid()); |
| | | List<EnumItem> enumItems = enumItemMapper.selectList(wrapper); |
| | | BeanUtils.copyProperties(page, enumVO); |
| | | if(enumItems.size()>0){ |
| | | enumVO.setChildren(enumItems); |
| | | enumVO.setHasChildren(true); |
| | | } |
| | | listVo.add(enumVO); |
| | | }); |
| | | |
| | | return listVo; |
| | | } |
| | | |
| | | @Override |
| | | public String getValue(String name, String nameChild) { |
| | | return Func.toStr(baseMapper.getValue(name, nameChild), StringPool.EMPTY); |
| | | } |
| | | |
| | | @Override |
| | | public List<EnumVO> getList(String name) { |
| | | return baseMapper.getList(name); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹ å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | public class EnumWrapper extends BaseEntityWrapper<Enum, EnumVO> { |
| | | |
| | | public static EnumWrapper build() { |
| | | return new EnumWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public EnumVO entityVO(Enum omdEnum) { |
| | | EnumVO enumVO = Objects.requireNonNull(BeanUtil.copy(omdEnum, EnumVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(omdEnum.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(omdEnum.getUpdateUser()); |
| | | //omdEnumVO.setCreateUserName(createUser.getName()); |
| | | //omdEnumVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return enumVO; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.entity.Enum; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.omd.entity.EnumItem; |
| | | import com.vci.ubcs.omd.vo.EnumItemVO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * æä¸¾å®ä¹å表 å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-08 |
| | | */ |
| | | public class EnumitemWrapper extends BaseEntityWrapper<EnumItem, EnumItemVO> { |
| | | |
| | | public static EnumitemWrapper build() { |
| | | return new EnumitemWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public EnumItemVO entityVO(EnumItem enumitem) { |
| | | |
| | | EnumItemVO enumItemVO = Objects.requireNonNull(BeanUtil.copy(enumitem, EnumItemVO.class)); |
| | | if (enumitem.getParentoid() == null ) { |
| | | enumItemVO.setParentName(BladeConstant.TOP_PARENT_NAME); |
| | | } else { |
| | | Enum parent = EnumCache.getById(enumitem.getParentoid()); |
| | | enumItemVO.setParentName(parent.getLabel()); |
| | | } |
| | | return enumItemVO; |
| | | } |
| | | public List<EnumVO> listNodeVO(List<EnumItem> list) { |
| | | List<EnumItem> collect = list.stream().map(omdEnumItem -> BeanUtil.copy(omdEnumItem, EnumItem.class)).collect(Collectors.toList()); |
| | | return ForestNodeMerger.merge((List)collect); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.omd.mapper.EnumItemMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="enumitemResultMap" type="com.vci.ubcs.omd.entity.EnumItem"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="VALUE" property="value"/> |
| | | <result column="DESCRIPTION" property="description"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createtime"/> |
| | | <result column="MODIFIER" property="modifier"/> |
| | | <result column="MODIFYTIME" property="modifytime"/> |
| | | <result column="PARENTOID" property="parentoid"/> |
| | | <result column="SORT" property="sort"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectOmdEnumitemPage" resultMap="enumitemResultMap"> |
| | | select * from PL_OMD_ENUMITEM where 1 = 1 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.omd.mapper.EnumMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="enumResultMap" type="com.vci.ubcs.omd.entity.Enum"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="LABEL" property="label"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createtime"/> |
| | | <result column="MODIFIER" property="modifier"/> |
| | | <result column="MODIFYTIME" property="modifytime"/> |
| | | <result column="REMARK" property="remark"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectOmdEnumPage" resultMap="enumResultMap"> |
| | | select * from PL_OMD_ENUM where 1 = 0 |
| | | </select> |
| | | |
| | | <select id="getValue" resultType="java.lang.String"> |
| | | select POE.NAME |
| | | from PL_OMD_ENUM PO, PL_OMD_ENUMITEM POE |
| | | WHERE PO.OID = POE.PARENTOID |
| | | AND PO.NAME = #{param1} |
| | | AND POE.VALUE = #{param2} |
| | | </select> |
| | | |
| | | <select id="getList" resultType="com.vci.ubcs.omd.vo.EnumVO"> |
| | | select PO.OID, |
| | | PO.NAME, |
| | | PO.LABEL, |
| | | PO.TS, |
| | | PO.CREATOR, |
| | | PO.CREATOR, |
| | | PO.CREATETIME, |
| | | PO.MODIFIER, |
| | | PO.MODIFYTIME, |
| | | PO.REMARK, |
| | | POE.OID ITEM_OID, |
| | | POE.NAME ITEM_NAME, |
| | | POE.VALUE ITEM_VALUE, |
| | | POE.DESCRIPTION ITEM_DESCRIPTION |
| | | from PL_OMD_ENUM PO, PL_OMD_ENUMITEM POE |
| | | WHERE PO.OID = POE.PARENTOID |
| | | AND PO.NAME = #{param1} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |