Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
已修改20个文件
已删除3个文件
已重命名2个文件
已添加22个文件
| | |
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | export const findLike = (data) => {
|
| | | return request({
|
| | | url: 'api/mdmEngineController/resembleQuery',
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/resembleQuery',
|
| | | method: 'post',
|
| | | data
|
| | | })
|
| | | }
|
| | |
|
| | | // è·åæ°æ®
|
| | | export const getCodeRule = (params) => {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getCodeRuleByClassifyOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // ä¸»æ°æ®åç±»æ |
| | | export const referCodeClassifyTree = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/referCodeClassifyTree', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // ä¸»æ°æ®åç±»å±æ§ä¿¡æ¯ |
| | | export const listCodeAttributeByClassId = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/listCodeAttributeByClassId', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // éå¢åç±»æ |
| | | export const referTree = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/referTree', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // éå¢åç±»æ ï¼æ¥è¯¢éå¢åç±»å±æ§æ¥å£ï¼ |
| | | export const referTreeByClassId = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/listViewModelAttributeByClassId', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // 屿§æ å° |
| | | export const gridAttrMapping = (params) => { |
| | | return request({ |
| | | url: '/api//ubcs-applyjtcodeservice/DockingPreApplyCode/gridAttrMapping', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // 屿§åå¼èå´æ å° |
| | | export const gridAttrRanges = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/gridAttrRanges', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // 屿§æ å°ä¿åæ¹æ³ |
| | | export const batchAddSave = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/batchAddSave', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <div></div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getCodeRule } from "@/api/formTemplate.js";
|
| | |
|
| | | export default {
|
| | | name: "CodeApply",
|
| | | props: {
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: ''
|
| | | }
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | secVOList: [],
|
| | | formItems: [],
|
| | | trendsSpan: 8
|
| | | };
|
| | | },
|
| | | created() {
|
| | | this.handleResize();
|
| | | this.getCodeRule();
|
| | | },
|
| | | mounted() {
|
| | | |
| | | },
|
| | | methods: {
|
| | | getCodeRule() {
|
| | | getCodeRule({ codeClassifyOid: this.codeClassifyOid }).then((res) => {
|
| | | if (res.data && res.data.code === 200) {
|
| | | this.defaultValue = res.data.data;
|
| | | this.secVOList = res.data.data.secVOList || [];
|
| | | this.codeRuleOid = res.data.data.oid;
|
| | | }
|
| | | });
|
| | | },
|
| | | handleResize() {
|
| | | let windowWidth = document.body.clientWidth;
|
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500);
|
| | | },
|
| | | },
|
| | | watch: {
|
| | | secVOList: {
|
| | | deep: true,
|
| | | handler(newV) {
|
| | | this.formItems = [];
|
| | | newV.forEach((item) => {
|
| | | let itemObj = {};
|
| | | let options = [];
|
| | | //åºå®ç 段
|
| | | if (item.sectype == "codefixedsec") {
|
| | | options = item.fixedValueVOList.map((item) => {
|
| | | item.key = item.id;
|
| | | item.value = item.id;
|
| | | });
|
| | | itemObj = {
|
| | | field: item.oid,
|
| | | title: item.name,
|
| | | required: item.nullableFlag != "true",
|
| | | type: "combox",
|
| | | data: options,
|
| | | search: true,
|
| | | };
|
| | | //å¯åç æ®µ
|
| | | } else if (item.sectype == "codevariablesec") {
|
| | | itemObj = {
|
| | | field: item.oid,
|
| | | title: item.name,
|
| | | required: item.nullableFlag != "true",
|
| | | type: "text",
|
| | | };
|
| | | }
|
| | | itemObj.span = item.type === "textarea" ? 24 : this.trendsSpan,
|
| | | this.formItems.push(itemObj);
|
| | | });
|
| | | },
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <avue-form v-model="form" :option="option" v-loading="loading" ref="form">
|
| | | <template :slot="item.prop + 'Label'" v-for="item in option.column">
|
| | | <span>
|
| | | <span>{{ item.label }} </span>
|
| | | <el-tooltip
|
| | | v-if="item.keyAttr"
|
| | | class="item"
|
| | | effect="dark"
|
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§"
|
| | | placement="top-start"
|
| | | >
|
| | | <i class="el-icon-star-on key_attr_icon"></i>
|
| | | </el-tooltip>
|
| | | </span>
|
| | | </template>
|
| | | </avue-form>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate } from "@/api/formTemplate";
|
| | | import { getDictionary } from "../../api/system/dict";
|
| | | export default {
|
| | | name: "FormTemplate",
|
| | | props: {
|
| | | disabledProp: {
|
| | | type: Array,
|
| | | default: () => ["id"],
|
| | | },
|
| | | templateOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | editForm: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | | },
|
| | | dialogOpen: {
|
| | | type: Boolean,
|
| | | default: false,
|
| | | },
|
| | | selfColumnType: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | selfColumnConfig: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | formIndex: 0,
|
| | | form: {},
|
| | | option: {
|
| | | emptyBtn: false,
|
| | | submitBtn: false,
|
| | | labelWidth: "130",
|
| | | column: [],
|
| | | group: [],
|
| | | },
|
| | | loading: false,
|
| | | templateData: {},
|
| | | columnType: {
|
| | | text: "input",
|
| | | combox: "select",
|
| | | truefalse: "switch",
|
| | | number: "number",
|
| | | textarea: "textarea",
|
| | | datetime: "datetime",
|
| | | date: "date",
|
| | | },
|
| | | // åæ°æ®
|
| | | testItems: [
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "id",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "ä¼ å¼ç¦ç¨åè½",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "state",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: true,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¥å£ç¦ç¨åè½",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "oldcode",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "el-icon-search",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "ææ¬åç¼æµè¯",
|
| | | text: "ååç¼åè½",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "materialname",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: true,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ£åæ ¡éªåè½",
|
| | | tooltips: "请è¾å
¥æ°å",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "/[0-9]/",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: [
|
| | | {
|
| | | attributes: {},
|
| | | key: "model_type",
|
| | | value: "模å",
|
| | | },
|
| | | {
|
| | | attributes: {},
|
| | | key: "part_type",
|
| | | value: "é¶ä»¶",
|
| | | },
|
| | | ],
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "dataSelect",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "ç´æ¥è¿å䏿",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: "formTemplateTest",
|
| | | customClass: null,
|
| | | data: [],
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "dictSelect",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "åå
¸è¿å䏿",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "firstfl",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ°åè¾å
¥æ¡",
|
| | | tooltips: "",
|
| | | type: "number",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "yyyy-MM-dd HH:mm:ss",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "datetime",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¥ææ¶é´éæ©å¨",
|
| | | tooltips: "",
|
| | | type: "datetime",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "time",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¶é´éæ©å¨",
|
| | | tooltips: "",
|
| | | type: "date",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "false",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "xiaoshouwl",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "å¼å
³",
|
| | | tooltips: "",
|
| | | type: "truefalse",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "ææ¯é»è®¤å¼",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "tuhao",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "é»è®¤å¼åè½",
|
| | | tooltips: "æç¤º",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "xinghaoguige",
|
| | | hidden: false,
|
| | | keyAttr: true,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "屿§å
³é®å¼",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "jiliangdw",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | tip: "ææ¯æç¤ºåè½",
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: "jiliangdwname",
|
| | | suffix: "",
|
| | | text: "æç¤ºåè½",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2",
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "fun1",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "åæ°1æµè¯js",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2",
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "fun2",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: "hesuanfenleiname",
|
| | | suffix: "",
|
| | | text: "åæ°2æµè¯js",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: "",
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "sum",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: true,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: "",
|
| | | suffix: "",
|
| | | text: "åæ°1åæ°2æ±å",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "textarea",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "ææ¬å",
|
| | | tooltips: "",
|
| | | type: "textarea",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "cz",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: true,
|
| | | referConfig: true,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: "depId",
|
| | | suffix: "",
|
| | | text: "åç
§",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | ],
|
| | | trendsSpan: 8,
|
| | | defaultValue: {},
|
| | | // 表å屿§
|
| | | attributes: [],
|
| | | // 表åå
ç´
|
| | | items: [],
|
| | | };
|
| | | },
|
| | | mounted() {
|
| | | this.handleResize();
|
| | | },
|
| | | methods: {
|
| | | getFormTemplate() {
|
| | | this.loading = true;
|
| | | getFormTemplate({
|
| | | templateOid: this.templateOid,
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | })
|
| | | .then((res) => {
|
| | | if (res.status === 200) {
|
| | | this.templateData = res.data;
|
| | | // 表åå
ç´ ï¼è¿æ»¤éè¦éèç屿§ï¼
|
| | | this.items = res.data.formDefineVO.items;
|
| | | this.templateRender();
|
| | | this.$emit("getFormTemplateEnd", res.data);
|
| | | }
|
| | | this.loading = false;
|
| | | })
|
| | | .catch((err) => {
|
| | | this.loading = false;
|
| | | console.log(err);
|
| | | });
|
| | | },
|
| | | templateRender() {
|
| | | // æ éåç»æ°æ®
|
| | | let column = [];
|
| | | let group = [];
|
| | | let dictKeys = [];
|
| | | this.items.forEach((formItem) => {
|
| | | if (formItem.type === "line") {
|
| | | group.push({
|
| | | label: formItem.text,
|
| | | prop: formItem.text,
|
| | | collapse: true,
|
| | | column: [],
|
| | | });
|
| | | }
|
| | | if (
|
| | | formItem.type === "combox" &&
|
| | | formItem.comboxKey &&
|
| | | (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0)
|
| | | ) {
|
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field });
|
| | | }
|
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼
|
| | | if (
|
| | | this.disabledProp.includes(formItem.field) ||
|
| | | this.$utilFunc.isValuableObj(formItem.referConfig)
|
| | | ) {
|
| | | formItem.readOnly = true;
|
| | | }
|
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬
|
| | | let message = "è¯·éæ©";
|
| | | let trigger = "change";
|
| | | if (formItem.type === "text") {
|
| | | message = "请è¾å
¥";
|
| | | trigger = "blur";
|
| | | } else if (formItem.type === "file") {
|
| | | message = "请ä¸ä¼ ";
|
| | | }
|
| | | let columnItem = {
|
| | | label: formItem.text,
|
| | | labelslot: true,
|
| | | prop: this.$utilFunc.isValuableObj(formItem.referConfig)
|
| | | ? formItem.showField || formItem.field
|
| | | : formItem.field,
|
| | | field: formItem.field,
|
| | | type: this.columnType[formItem.type],
|
| | | dicData: this.getDataList(formItem.type, formItem.data),
|
| | | disabled: this.type === "detail" ? true : formItem.readOnly,
|
| | | prepend: this.preOrSufFixShow("text", formItem.prefix),
|
| | | append: this.preOrSufFixShow("text", formItem.suffix),
|
| | | prefixIcon: this.preOrSufFixShow("icon", formItem.prefix),
|
| | | suffixIcon: this.preOrSufFixShow("icon", formItem.suffix),
|
| | | valueFormat: formItem.dateFormate,
|
| | | format: formItem.dateFormate,
|
| | | keyAttr: formItem.keyAttr,
|
| | | value: formItem.defaultValue,
|
| | | tip: formItem.tooltips,
|
| | | tipPlacement: "right",
|
| | | comboxKey: formItem.comboxKey,
|
| | | display: !formItem.hidden,
|
| | | filterable: true,
|
| | | change: () => {
|
| | | this.changeFun(formItem.displayExtension, formItem.prop);
|
| | | },
|
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan,
|
| | | click: this.clickFun(formItem.referConfig),
|
| | | rules: [
|
| | | {
|
| | | required: formItem.required,
|
| | | message: `请${message}${formItem.text}`,
|
| | | trigger,
|
| | | },
|
| | | {
|
| | | // å¦ææ²¡ææ£ååå¹é
ä»»ä½å符
|
| | | pattern: formItem.verify ? formItem.verify : /[\s\S.]*/g,
|
| | | message: formItem.tooltips,
|
| | | trigger,
|
| | | },
|
| | | ],
|
| | | props: {
|
| | | label: "value",
|
| | | value: "key",
|
| | | },
|
| | | };
|
| | | columnItem = this.resetFormConfig(columnItem);
|
| | | if (group.length === 0) {
|
| | | column.push(columnItem);
|
| | | } else {
|
| | | group[group.length - 1]["column"].push(columnItem);
|
| | | }
|
| | | });
|
| | | this.$set(this.option, "column", column);
|
| | | this.$set(this.option, "group", group);
|
| | | this.formIndex++;
|
| | | this.geDictData(dictKeys);
|
| | | },
|
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½®
|
| | | resetFormConfig(formItem) {
|
| | | for (const key in this.selfColumnConfig) {
|
| | | if (Object.hasOwnProperty.call(this.selfColumnConfig, key)) {
|
| | | const element = this.selfColumnConfig[key];
|
| | | formItem[key] = element;
|
| | | }
|
| | | }
|
| | | return formItem;
|
| | | },
|
| | | handleResize() {
|
| | | let windowWidth = document.body.clientWidth;
|
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500);
|
| | | this.formIndex++;
|
| | | },
|
| | | // ååç¼
|
| | | preOrSufFixShow(type, val) {
|
| | | if (this.$utilFunc.isEmpty(val) && typeof val !== "string") return;
|
| | | const isIcon = val.slice(0, 8) === "el-icon-";
|
| | | if ((type === "text" && !isIcon) || (type === "icon" && isIcon)) {
|
| | | return val;
|
| | | }
|
| | | },
|
| | | changeFun(displayExtension, prop) {
|
| | | // executeCode({displayExtension, data: this.form}).then(res => {
|
| | | // this.form[prop] = res.data.data
|
| | | // })
|
| | | },
|
| | | clickFun(referConfig) {
|
| | | if (this.type === "detail") {
|
| | | return;
|
| | | }
|
| | | },
|
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ®
|
| | | getDataList(type, dicData) {
|
| | | if (type === "truefalse") {
|
| | | return [
|
| | | {
|
| | | key: false,
|
| | | value: "å¦",
|
| | | },
|
| | | {
|
| | | key: true,
|
| | | value: "æ¯",
|
| | | },
|
| | | ];
|
| | | } else if (type === "combox") {
|
| | | return dicData;
|
| | | }
|
| | | return [];
|
| | | },
|
| | | // è·ååå
¸æ°æ®
|
| | | geDictData(dictKeys) {
|
| | | dictKeys.forEach((dictObj) => {
|
| | | getDictionary({ code: dictObj.dictKey }).then((res) => {
|
| | | if (res.data && res.data.code === 200) {
|
| | | this.option.column = this.option.column.map((item) => {
|
| | | if (item.field === dictObj.field) {
|
| | | let dictData = (res.data.data || []).map((itm) => {
|
| | | itm.value = itm.dictValue;
|
| | | itm.key = itm.dictKey;
|
| | | return itm;
|
| | | });
|
| | | item.dicData = dictData;
|
| | | }
|
| | | return item;
|
| | | });
|
| | | }
|
| | | });
|
| | | });
|
| | | },
|
| | | },
|
| | | watch: {
|
| | | dialogOpen: {
|
| | | immediate: true,
|
| | | handler(newV) {
|
| | | if (newV) {
|
| | | this.getFormTemplate();
|
| | | }
|
| | | },
|
| | | },
|
| | | form: {
|
| | | deep: true,
|
| | | immediate: true,
|
| | | handler(newV) {
|
| | | this.$emit("getFormData", newV);
|
| | | },
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <div>
|
| | | <el-table :data="tableData" v-loading="loading" height="250" :border="true">
|
| | | <el-table-column
|
| | | type="index"
|
| | | width="60"
|
| | | label="åºå·"
|
| | | align="center"
|
| | | ></el-table-column>
|
| | | <el-table-column
|
| | | v-for="item in column[0]"
|
| | | :key="item.field"
|
| | | :prop="item.field"
|
| | | :label="item.title"
|
| | | :min-width="item.width"
|
| | | align="center"
|
| | | >
|
| | | <template #default="{ row }" v-if="item.field === 'id'">
|
| | | <el-button type="text" @click="openFormTemlpate(row)">{{
|
| | | row.id
|
| | | }}</el-button>
|
| | | </template>
|
| | | <template #default="{ row }" v-else>
|
| | | <span>{{ row[item.field] }}</span>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | <FormTemplate
|
| | | ref="FormTemplate"
|
| | | type="detail"
|
| | | :visible.sync="formTemplateVisible"
|
| | | :templateOid="this.resembleTemplateOid"
|
| | | :codeClassifyOid="this.resembleCodeClassifyOid"
|
| | | ></FormTemplate>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { findLike } from "@/api/formTemplate.js";
|
| | |
|
| | | export default {
|
| | | name: "ResembleQuery",
|
| | | props: {
|
| | | column: {
|
| | | type: Array,
|
| | | default: () => [],
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | templateOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | hasResemble: {
|
| | | type: Boolean,
|
| | | default: false,
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | | },
|
| | | form: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: ''
|
| | | }
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | tableVisible: true,
|
| | | formTemplateVisible: false,
|
| | | activeName: "findlike",
|
| | | tableData: [],
|
| | | loading: false,
|
| | | resembleTemplateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | resembleCodeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | defaultValue: {},
|
| | | secVOList: [],
|
| | | defaultKeys: [
|
| | | "oid",
|
| | | "id",
|
| | | "name",
|
| | | "description",
|
| | | "revisionoid",
|
| | | "nameoid",
|
| | | "btmname",
|
| | | "lastr",
|
| | | "firstr",
|
| | | "lastv",
|
| | | "firstv",
|
| | | "creator",
|
| | | "createtime",
|
| | | "lastModifier",
|
| | | "lastmodifytime",
|
| | | "revisionrule",
|
| | | "revisionseq",
|
| | | "revisionvalue",
|
| | | "versionrule",
|
| | | "versionseq",
|
| | | "versionvalue",
|
| | | "lcstatus",
|
| | | "ts",
|
| | | "owner",
|
| | | "checkinby",
|
| | | "checkintime",
|
| | | "checkoutby",
|
| | | "checkouttime",
|
| | | "copyfromversion",
|
| | | "secretgrade",
|
| | | ],
|
| | | formItems: [],
|
| | | };
|
| | | },
|
| | | created() {
|
| | | this.getCodeRule();
|
| | | },
|
| | | computed: {
|
| | | showCodeOrder() {
|
| | | if (this.type === "add") {
|
| | | if (this.secVOList.length == 0 && this.hasResemble) {
|
| | | return false;
|
| | | }
|
| | | } else {
|
| | | if (this.hasResemble) {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return true;
|
| | | },
|
| | | },
|
| | | methods: {
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | resembleQuery(form) {
|
| | | this.loading = true;
|
| | | this.activeName = "findlike";
|
| | | const { defaultValue, formValue } = this.getDefaultValueAndFormValues(form);
|
| | | let params = {
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | codeRuleOid: this.codeRuleOid,
|
| | | templateOid: this.templateOid,
|
| | | data: formValue,
|
| | | };
|
| | | params = Object.assign(params, defaultValue);
|
| | | this.tableVisible = true;
|
| | | findLike(params).then((res) => {
|
| | | this.loading = false;
|
| | | this.tableData = res.data.data || [];
|
| | | });
|
| | | },
|
| | | |
| | | openFormTemlpate(row) {
|
| | | this.$nextTick(() => {
|
| | | console.log(this.$refs.FormTemplate);
|
| | | });
|
| | | this.codetemplateoid = row.codetemplateoid;
|
| | | this.formTemplateVisible = true;
|
| | | },
|
| | | getDefaultValueAndFormValues(form) {
|
| | | let defaultValue = {};
|
| | | let formValue = {};
|
| | | for (const key in form) {
|
| | | if (Object.hasOwnProperty.call(form, key)) {
|
| | | const element = form[key];
|
| | | if (this.defaultKeys.includes(key)) {
|
| | | defaultValue[key] = element;
|
| | | } else {
|
| | | formValue[key] = element;
|
| | | }
|
| | | }
|
| | | }
|
| | | return {
|
| | | defaultValue,
|
| | | formValue,
|
| | | };
|
| | | },
|
| | | },
|
| | | |
| | | };
|
| | | </script> |
| | |
| | | top="0vh" |
| | | :title="title" |
| | | class="avue-dialog avue-dialog--top" |
| | | :width="dialogOptions.width" |
| | | :width="width" |
| | | append-to-body |
| | | v-if="dialogVisible" |
| | | > |
| | | <avue-form |
| | | v-model="form" |
| | | :option="option" |
| | | v-loading="loading" |
| | | ref="form" |
| | | :key="index" |
| | | > |
| | | <template :slot="item.prop + 'Label'" v-for="item in option.column"> |
| | | <span> |
| | | <span>{{ item.label }} </span> |
| | | <el-tooltip |
| | | v-if="item.keyAttr" |
| | | class="item" |
| | | effect="dark" |
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-star-on key_attr_icon"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | v-if="item.tip" |
| | | class="item" |
| | | effect="dark" |
| | | :content="item.tip" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-warning"></i> |
| | | </el-tooltip> |
| | | </span> |
| | | </template> |
| | | <template :slot="item.prop + ''" v-for="item in option.column"> |
| | | <vciWebRefer v-if="item.type=='refer'" :value="item.value" :options="item.referConfig"></vciWebRefer> |
| | | </template> |
| | | </avue-form> |
| | | <FindLike ref="findLike"></FindLike> |
| | | <FormTempalte |
| | | v-bind="$attrs" |
| | | :dialogOpen="visible" |
| | | :type="type" |
| | | @getFormTemplateEnd="getFormTemplate" |
| | | @getFormData="getFormData" |
| | | ></FormTempalte> |
| | | |
| | | <div class="tab_box"> |
| | | <el-tabs v-model="activeName" type="card"> |
| | | <el-tab-pane label="ç å¼ç³è¯·" name="codeApply" v-if="showCodeApply"> |
| | | <CodeApply v-bind="$attrs"></CodeApply> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | label="ç¸ä¼¼é¡¹æ¥è¯¢" |
| | | name="resembleQuery" |
| | | v-if="showResembleQuery" |
| | | > |
| | | <ResembleQuery |
| | | v-bind="$attrs" |
| | | ref="resembleQueryRef" |
| | | :hasResemble="this.hasResemble" |
| | | :column="this.resembleTableColumn" |
| | | :form="this.form" |
| | | ></ResembleQuery> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="avue-dialog__footer" v-if="type !== 'detail'"> |
| | | <el-button @click="close()">å æ¶</el-button> |
| | | <el-button @click="close()" type="primary" :loading="submitBtnLoading">ç¡® å®</el-button> |
| | | <el-button @click="findLinkSubmit" type="primary">ç¸ä¼¼åæ¥è¯¢</el-button> |
| | | <el-button @click="close()" type="primary" :loading="submitBtnLoading" |
| | | >ç¡® å®</el-button |
| | | > |
| | | <el-button @click="resembleQuerySubmit" type="primary" v-if="hasResemble" |
| | | >ç¸ä¼¼åæ¥è¯¢</el-button |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFormTemplate, executeCode, findLike } from "@/api/formTemplate"; |
| | | import { getDictionary } from "../../api/system/dict"; |
| | | import FindLike from "./FindLike.vue"; |
| | | import vciWebRefer from "../refer/vciWebRefer.vue"; |
| | | import FormTempalte from "./FormTempalte"; |
| | | import ResembleQuery from "./ResembleQuery"; |
| | | import CodeApply from "./CodeApply"; |
| | | export default { |
| | | name: "FormTemplate", |
| | | components: { FindLike ,vciWebRefer}, |
| | | name: "FormTemplateDialog", |
| | | components: { ResembleQuery, FormTempalte, CodeApply }, |
| | | props: { |
| | | visible: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | disabledProp: { |
| | | type: Array, |
| | | default: () => ["id"], |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | codeClassifyOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | type: { |
| | | type: String, |
| | | default: 'add' |
| | | default: "add", |
| | | }, |
| | | title: { |
| | | type: String, |
| | | default: 'è¡¨åæ¨¡æ¿' |
| | | } |
| | | default: "è¡¨åæ¨¡æ¿", |
| | | }, |
| | | width: { |
| | | type: String, |
| | | default: "80%", |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | index: 0, |
| | | form: {}, |
| | | loading: false, |
| | | dialogOptions: { |
| | | width: "60%", |
| | | }, |
| | | option: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "120", |
| | | column: [], |
| | | }, |
| | | templateData: {}, |
| | | columnType: { |
| | | text: "input", |
| | | combox: "select", |
| | | truefalse: "switch", |
| | | number: "number", |
| | | textarea: "textarea", |
| | | datetime: "datetime", |
| | | date: "date", |
| | | refer:'refer' |
| | | }, |
| | | // åæ°æ® |
| | | testItems: [ |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "id", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ä¼ å¼ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "state", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥å£ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "oldcode", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "el-icon-search", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "ææ¬åç¼æµè¯", |
| | | text: "ååç¼åè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "materialname", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: true, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ£åæ ¡éªåè½", |
| | | tooltips: "请è¾å
¥æ°å", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "/[0-9]/", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: [ |
| | | { |
| | | attributes: {}, |
| | | key: "model_type", |
| | | value: "模å", |
| | | }, |
| | | { |
| | | attributes: {}, |
| | | key: "part_type", |
| | | value: "é¶ä»¶", |
| | | }, |
| | | ], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dataSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ç´æ¥è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: "formTemplateTest", |
| | | customClass: null, |
| | | data: [], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dictSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åå
¸è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "firstfl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ°åè¾å
¥æ¡", |
| | | tooltips: "", |
| | | type: "number", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "yyyy-MM-dd HH:mm:ss", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "datetime", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥ææ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "datetime", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "time", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "date", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "false", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xiaoshouwl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "å¼å
³", |
| | | tooltips: "", |
| | | type: "truefalse", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "ææ¯é»è®¤å¼", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "tuhao", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "é»è®¤å¼åè½", |
| | | tooltips: "æç¤º", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xinghaoguige", |
| | | hidden: false, |
| | | keyAttr: true, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "屿§å
³é®å¼", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "jiliangdw", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | tip: "ææ¯æç¤ºåè½", |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "jiliangdwname", |
| | | suffix: "", |
| | | text: "æç¤ºåè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "fun1", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åæ°1æµè¯js", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "fun2", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "hesuanfenleiname", |
| | | suffix: "", |
| | | text: "åæ°2æµè¯js", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "sum", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "", |
| | | suffix: "", |
| | | text: "åæ°1åæ°2æ±å", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "textarea", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ææ¬å", |
| | | tooltips: "", |
| | | type: "textarea", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "cz", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: true, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "depId", |
| | | suffix: "", |
| | | text: "åç
§", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | ], |
| | | submitBtnLoading: false |
| | | submitBtnLoading: false, |
| | | hasResemble: false, |
| | | resembleTableColumn: [], |
| | | activeName: "resembleQuery", |
| | | form: {} |
| | | }; |
| | | }, |
| | | created() {}, |
| | |
| | | this.$emit("update:visible", val); |
| | | }, |
| | | }, |
| | | showCodeApply() { |
| | | if (this.type === "add") { |
| | | if (this.hasResemble && this.resembleTableColumn.length === 0) { |
| | | return false; |
| | | } |
| | | } else { |
| | | if (this.hasResemble) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | }, |
| | | showResembleQuery() { |
| | | return this.hasResemble; |
| | | }, |
| | | }, |
| | | methods: { |
| | | getFormTemplate() { |
| | | this.loading = true; |
| | | getFormTemplate({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }) |
| | | .then((res) => { |
| | | if (res.status === 200) { |
| | | this.templateData = res.data; |
| | | this.templateRender(); |
| | | } |
| | | this.loading = false; |
| | | console.log(res.data); |
| | | }) |
| | | .catch((err) => { |
| | | this.loading = false; |
| | | console.log(err); |
| | | }); |
| | | close() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | templateRender() { |
| | | const items = this.templateData.formDefineVO.items; |
| | | let column = []; |
| | | let dictKeys = []; |
| | | items.forEach((item) => { |
| | | // éè表åå
ç´ |
| | | if (item.hide) { |
| | | return; |
| | | } |
| | | if ( |
| | | item.type === "combox" && |
| | | item.comboxKey && |
| | | (!Array.isArray(item.dicData) || item.dicData.length === 0) |
| | | ) { |
| | | dictKeys.push({ dictKey: item.comboxKey, field: item.field }); |
| | | } |
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼ |
| | | if (this.disabledProp.includes(item.field) || this.$utilFunc.isValuableObj(item.referConfig)) { |
| | | item.readOnly = true; |
| | | } |
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬ |
| | | let message = "è¯·éæ©"; |
| | | let trigger = "change"; |
| | | if (item.type === "text") { |
| | | message = "请è¾å
¥"; |
| | | trigger = "blur"; |
| | | } else if (item.type === "file") { |
| | | message = "请ä¸ä¼ "; |
| | | } |
| | | let columnItem = { |
| | | label: item.text, |
| | | labelslot: true, |
| | | prop: this.$utilFunc.isValuableObj(item.referConfig) ? (item.showField || item.field) : item.field, |
| | | type: this.columnType[item.type], |
| | | dicData: this.getDataList(item.type, item.data), |
| | | disabled: this.type === 'detail' ? true : item.readOnly, |
| | | prepend: this.preOrSufFixShow("text", item.prefix), |
| | | append: this.preOrSufFixShow("text", item.suffix), |
| | | prefixIcon: this.preOrSufFixShow("icon", item.prefix), |
| | | suffixIcon: this.preOrSufFixShow("icon", item.suffix), |
| | | valueFormat: item.dateFormate, |
| | | format: item.dateFormate, |
| | | keyAttr: item.keyAttr, |
| | | value: item.defaultValue, |
| | | tip: item.tip, |
| | | comboxKey: item.comboxKey, |
| | | referConfig:item.referConfig, |
| | | change: () => { |
| | | this.changeFun(item.displayExtension, item.prop); |
| | | }, |
| | | span: item.type === "file" || item.type === "textarea" ? 24 : null, |
| | | click: this.clickFun(item.referConfig), |
| | | rules: [ |
| | | { |
| | | required: item.required, |
| | | message: `请${message}${item.text}`, |
| | | trigger, |
| | | }, |
| | | { |
| | | // å¦ææ²¡ææ£ååå¹é
ä»»ä½å符 |
| | | pattern: item.verify ? item.verify : /[\s\S.]*/g, |
| | | message: item.tooltips, |
| | | trigger, |
| | | }, |
| | | ], |
| | | props: { |
| | | label: "value", |
| | | value: "key", |
| | | }, |
| | | }; |
| | | column.push(columnItem); |
| | | this.$set(this.option, "column", column); |
| | | }); |
| | | this.index++; |
| | | this.geDictData(dictKeys); |
| | | getFormTemplate(data) { |
| | | this.hasResemble = |
| | | data.resembleTableVO && |
| | | data.resembleTableVO.cols && |
| | | data.resembleTableVO.cols.length > 0; |
| | | this.resembleTableColumn = data.resembleTableVO.cols || []; |
| | | }, |
| | | changeFun(displayExtension, prop) { |
| | | // executeCode({displayExtension, data: this.form}).then(res => { |
| | | // this.form[prop] = res.data.data |
| | | // }) |
| | | getFormData(form) { |
| | | this.form = form |
| | | }, |
| | | clickFun(referConfig) { |
| | | if (this.type === 'detail') { |
| | | return |
| | | } |
| | | }, |
| | | // ååç¼ |
| | | preOrSufFixShow(type, val) { |
| | | if (this.$utilFunc.isEmpty(val) && typeof val !== "string") return; |
| | | const isIcon = val.slice(0, 8) === "el-icon-"; |
| | | if ((type === "text" && !isIcon) || (type === "icon" && isIcon)) { |
| | | return val; |
| | | } |
| | | }, |
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ® |
| | | getDataList(type, dicData) { |
| | | if (type === "truefalse") { |
| | | return [ |
| | | { |
| | | key: false, |
| | | value: "å¦", |
| | | }, |
| | | { |
| | | key: true, |
| | | value: "æ¯", |
| | | }, |
| | | ]; |
| | | } else if (type === "combox") { |
| | | return dicData; |
| | | } |
| | | return []; |
| | | }, |
| | | // è·ååå
¸æ°æ® |
| | | geDictData(dictKeys) { |
| | | dictKeys.forEach((dictObj) => { |
| | | getDictionary({ code: dictObj.dictKey }).then((res) => { |
| | | if (res.data && res.data.code === 200) { |
| | | this.option.column = this.option.column.map((item) => { |
| | | if (item.field === dictObj.field) { |
| | | let dictData = (res.data.data || []).map((itm) => { |
| | | itm.value = itm.dictValue; |
| | | itm.key = itm.dictKey; |
| | | return itm; |
| | | }); |
| | | item.dicData = dictData; |
| | | } |
| | | return item; |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | findLinkSubmit() { |
| | | this.templateData.templateVO.data = this.form |
| | | console.log(this.$refs.findLike, 'this.$refs.findLike'); |
| | | this.$refs.findLike.findLinkClick(this.templateData.templateVO) |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(newV) { |
| | | if (newV) { |
| | | this.getFormTemplate(); |
| | | // this.templateRender() |
| | | } |
| | | resembleQuerySubmit() { |
| | | this.$refs.resembleQueryRef.resembleQuery(this.form); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | import TableCrud from "@/components/Crud/Crud" |
| | | import originalAdd from "@/views/modeling/originalAdd" |
| | | import FormTemplateDialog from "@/components/FormTemplate/index" |
| | | |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | |
| | | Vue.component('attrCrud',attrCrud) |
| | | Vue.component('TableCrud',TableCrud) |
| | | Vue.component('originalAdd',originalAdd) |
| | | |
| | | Vue.component('FormTemplateDialog',FormTemplateDialog) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | import 'nprogress/nprogress.css'; |
| | | |
| | | //é»è®¤è¶
æ¶æ¶é´ |
| | | axios.defaults.timeout = 10000; |
| | | axios.defaults.timeout = 20000; |
| | | //è¿åå
¶ä»ç¶æç |
| | | axios.defaults.validateStatus = function (status) { |
| | | return status >= 200 && status <= 500; |
| | |
| | | <template>
|
| | | <div>
|
| | | <el-button @click="visible = true">æµè¯</el-button>
|
| | | <FormTemplate :visible.sync="visible" templateOid="78B8C7C5-A042-0B96-FE6D-65421451782A" codeClassifyOid="4524E801-6CC6-92E8-1AC3-2AB9604E8F96"></FormTemplate>
|
| | | <FormTemplateDialog
|
| | | :visible.sync="visible"
|
| | | :FormTemplateProp="FormTemplateProp"
|
| | | :type="this.type"
|
| | | :editForm="editForm"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :disabledProp="disabledProp"
|
| | | ></FormTemplateDialog>
|
| | | </div>
|
| | | </template>codeClassifyOid
|
| | | </template>
|
| | | codeClassifyOid
|
| | |
|
| | | <script>
|
| | | import FormTemplate from "../../components/FormTemplate/index";
|
| | | export default {
|
| | | name: "FormTempalteTest",
|
| | | components: { FormTemplate },
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | // é»è®¤ç¦ç¨ç表å
ç´
|
| | | disabledProp: ["id"],
|
| | | // ä¿®æ¹åæ¾çæ°æ®
|
| | | editForm: {},
|
| | | // 表åç±»å
|
| | | type: "add",
|
| | | templateOid: "D32FC682-4376-A148-DF8D-6261206E6412",
|
| | | codeClassifyOid: "91E05D2B-FEB2-6D41-5CE5-5B489615A29C",
|
| | | };
|
| | | },
|
| | | };
|
| | |
| | | <el-input placeholder="è¾å
¥å
³é®åè¿è¡è¿æ»¤" v-model="filterText"> |
| | | </el-input> |
| | | <el-menu :default-openeds="['1', '3']"> |
| | | <el-tree class="filter-tree" :data="treeData" :props="defaultProps" default-expand-all |
| | | :filter-node-method="filterNode" ref="tree"> |
| | | <el-tree class="filter-tree" :data="treeData" accordion :props="defaultProps" |
| | | :filter-node-method="filterNode" empty-text="ææ æ°æ®" ref="tree" @node-click="handelTreeCell"> |
| | | </el-tree> |
| | | </el-menu> |
| | | </el-aside> |
| | | </el-card> |
| | | <el-main> |
| | | <el-card> |
| | | <avue-crud :data="tableData" :option="option" ref="crud" @row-update="addUpdate" @row-save="rowSave" |
| | | @row-click="handleRowClick"> |
| | | <el-form :model="form"> |
| | | <el-form-item label="éå¢åç±»" label-width="70px" size="small"> |
| | | <el-select clearable ref="selectTree" v-model="form.groupValue" placeholder="è¯·éæ©" |
| | | popper-class="popperTreeSelect"> |
| | | <el-option :value="groupVal" :label="groupVal"> |
| | | <el-tree ref="groupTree" :data="groupTreeData" empty-text="ææ æ°æ®" :props="defaultProps" |
| | | @node-click="handleNodeClick"> |
| | | </el-tree> |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | </el-form> |
| | | <avue-crud :table-loading="loading" :data="tableData" :option="option" ref="crud" @cell-class-name="handelCellRow" |
| | | @cell-click="handleCellClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="dialogPush = true">æ° å¢ |
| | | </el-button> |
| | |
| | | <el-button icon="el-icon-connection" size="small" type="primary" @click="handleSync">åæ¥æ¨¡å |
| | | </el-button> |
| | | </template> |
| | | <template slot="defaultValue" slot-scope="{scope}"> |
| | | <!-- <el-input v-model="scope.row.defaultValue" v-if="scope.row.index === tableRowIndex && scope.column.index === tableColumnIndex" @blur="inputBlur"> </el-input> --> |
| | | <span>{{ scope }}</span> |
| | | </template> |
| | | </avue-crud> |
| | | <el-card :style="{ marginTop: '20px' }"> |
| | | <avue-crud :data="tableData" :option="optinos" ref="crud" @row-update="addUpdate" |
| | | @row-save="rowSave" @row-click="handleRowClick"> |
| | | <avue-crud :data="tablesData" :option="optinos" ref="crud" |
| | | @cell-click="handleCellClick"> |
| | | </avue-crud> |
| | | </el-card> |
| | | </el-card> |
| | | <el-dialog title="ç¼ç 屿§" :visible.sync="dialogPush" destroy-on-close append-to-body="true" width="30%" |
| | | :before-close="handleClose"> |
| | | <el-form :model="form"> |
| | | <el-form-item label="æ¥è¯¢æ¡ä»¶" label-width="70px" size="small"> |
| | | <el-input v-model="form.name" autocomplete="off" @change="handleQuery"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <p class="text_tip">*éæ©åç±»è¿è¡å±æ§è¿æ»¤, æè
è¾å
¥å±æ§çå
¨æ¼æè
ç®æ¼è¿è¡æ¥è¯¢! å¦: å§å (å¯è¾å
¥xmæxinming )</p> |
| | | <transfer v-model="transferValue" :data="transferData" :filter-method="filterMethod" |
| | | filter-placeholder="请è¾å
¥å±æ§æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" @left-check-change="handelLeftCheck"></transfer> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogPush = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">ä¿ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </el-main> |
| | | </el-container> |
| | | <el-dialog title="ç¼ç 屿§" :visible.sync="dialogPush" append-to-body="true" destroy-on-close width="30%" |
| | | :before-close="handleClose"> |
| | | <el-form :model="form"> |
| | | <el-form-item label="æ¥è¯¢æ¡ä»¶" label-width="70px" size="small"> |
| | | <el-input v-model="form.name" autocomplete="off" @change="handleQuery"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <p class="text_tip">*éæ©åç±»è¿è¡å±æ§è¿æ»¤, æè
è¾å
¥å±æ§çå
¨æ¼æè
ç®æ¼è¿è¡æ¥è¯¢! å¦: å§å (å¯è¾å
¥xmæxinming )</p> |
| | | <transfer v-model="transferValue" :data="transferData" :filter-method="filterMethod" |
| | | filter-placeholder="请è¾å
¥å±æ§æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" @left-check-change="handelLeftCheck"></transfer> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogPush = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialogPush = false">ä¿ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import transfer from '@/components/transfer/index' |
| | | import pinyin from 'js-pinyin' |
| | | import { referCodeClassifyTree, referTree, gridAttrMapping } from '@/api/integration/integration.js' |
| | | export default { |
| | | components: { |
| | | transfer |
| | |
| | | return { |
| | | form: { |
| | | name: '', |
| | | groupValue: '' |
| | | }, |
| | | loading: false, |
| | | ishowTree: false, |
| | | search: '', |
| | | transferData: generateData(), |
| | | transferValue: [], |
| | | dialogPush: false, |
| | | tableData: [ |
| | | tableData: [], |
| | | tablesData: [ |
| | | { |
| | | id: 1, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 2, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | id:'01', |
| | | groupTypeName:'æå', |
| | | codeView:'å¼ ä¸', |
| | | sex:'', |
| | | typeName:'' |
| | | } |
| | | ], |
| | | filterText: '', |
| | | tableRowIndex:null, |
| | | tableColumnIndex:null, |
| | | optinos: { |
| | | title: 'éå¢å±æ§', |
| | | maxHeight: '300px', |
| | |
| | | column: [ |
| | | { label: '屿§é墿䏾å¼', prop: 'groupTypeName', minWidth: 80, }, |
| | | { label: 'éå¢å±æ§æä¸¾æ¾ç¤ºåç§°', prop: 'codeView', minWidth: 80 }, |
| | | { label: 'MDMæä¸¾å¼', prop: 'sex', minWidth: 80 }, |
| | | { label: 'MDMæä¸¾æ¾ç¤ºåç§°', prop: 'typeName', minWidth: 80, overHidden: true }, |
| | | { label: 'MDMæä¸¾å¼', prop: 'sex', minWidth: 80, cell: true }, |
| | | { label: 'MDMæä¸¾æ¾ç¤ºåç§°', prop: 'typeName', minWidth: 80, cell: true }, |
| | | ] |
| | | }, |
| | | option: { |
| | |
| | | emptyBtn: false, |
| | | searchBtn: false, |
| | | searchShowBtn: false, |
| | | cellBtn: true, |
| | | cellBtn: false, |
| | | border: true, |
| | | searchMenuSpan: 8, |
| | | column: [ |
| | | { |
| | | label: 'éå¢åç±»', |
| | | prop: 'groupTypeName', |
| | | minWidth: 80, |
| | | type: "select", |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=org_category", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | slot: true, |
| | | search: true, |
| | | rules: [{ |
| | | message: "请è¾å
¥éå¢åç±»åç§°" |
| | | }] |
| | | }, |
| | | { label: 'æå±è§å¾', prop: 'codeView', minWidth: 80 }, |
| | | { label: 'éå¢å±æ§', prop: 'sex', minWidth: 80 }, |
| | | { label: 'åç±»åç§°', prop: 'typeName', minWidth: 80, overHidden: true }, |
| | | { label: '屿§åç§°', prop: 'attributeName', minWidth: 80, cell: true }, |
| | | { label: 'éå¢åç±»', prop: 'sourceClassifyName', minWidth: 80, }, |
| | | { label: 'æå±è§å¾', prop: 'viewName', minWidth: 80 }, |
| | | { label: 'éå¢å±æ§', prop: 'sourceAttrName', minWidth: 80 }, |
| | | { label: 'åç±»åç§°', prop: 'targetClassifyName', minWidth: 80, overHidden: true }, |
| | | { label: '屿§åç§°', prop: 'targetAttrName', minWidth: 80}, |
| | | { label: 'é»è®¤å¼', prop: 'defaultValue', minWidth: 140, cell: true }, |
| | | ] |
| | | }, |
| | | treeData: [{ |
| | | id: 1, |
| | | label: 'ä¸çº§ 1', |
| | | children: [{ |
| | | id: 4, |
| | | label: 'äºçº§ 1-1', |
| | | children: [{ |
| | | id: 9, |
| | | label: 'ä¸çº§ 1-1-1' |
| | | }, { |
| | | id: 10, |
| | | label: 'ä¸çº§ 1-1-2' |
| | | }] |
| | | }] |
| | | }, { |
| | | id: 2, |
| | | label: 'ä¸çº§ 2', |
| | | children: [{ |
| | | id: 5, |
| | | label: 'äºçº§ 2-1' |
| | | }, { |
| | | id: 6, |
| | | label: 'äºçº§ 2-2' |
| | | }] |
| | | }, { |
| | | id: 3, |
| | | label: 'ä¸çº§ 3', |
| | | children: [{ |
| | | id: 7, |
| | | label: 'äºçº§ 3-1' |
| | | }, { |
| | | id: 8, |
| | | label: 'äºçº§ 3-2' |
| | | }] |
| | | }], |
| | | treeData: [], |
| | | groupTreeData: [], |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label' |
| | | } |
| | | label: 'name', |
| | | id: 'oid', |
| | | isLeaf: '' |
| | | }, |
| | | groupVal: '', |
| | | treeParam: {} |
| | | } |
| | | }, |
| | | watch: { |
| | | filterText(val) { |
| | | console.log(this.$refs.tree) |
| | | this.$refs.tree.filter(val); |
| | | } |
| | | }, |
| | | created() { |
| | | this.getReferCodeClassifyTree() |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | console.log(pinyin.getFullChars('管çå')) |
| | | console.log(pinyin.getCamelChars('管çå')) |
| | | |
| | | }, |
| | | methods: { |
| | | async getReferCodeClassifyTree() { |
| | | const param = { |
| | | parentBtmName: "jclass", |
| | | valueField: "oid", |
| | | textField: "name", |
| | | parentFieldName: "id" |
| | | } |
| | | const response = await referCodeClassifyTree(param) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | let data = response.data; |
| | | this.treeData = data.map(item => item.children ? { ...item, ...{ isLeaf: false } } : { ...item, ...{ isLeaf: true } }) |
| | | } |
| | | }, |
| | | async getlistCodeAttributeByClassId(oid) { |
| | | this.loading = true |
| | | console.log(this.treeParam) |
| | | const response = await gridAttrMapping({ sourceClassifyId: oid, ...this.treeParam }) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | this.loading = false |
| | | this.tableData = response.data.data |
| | | } |
| | | }, |
| | | async referTree(oid, checked) { |
| | | this.groupTreeData = [] |
| | | const response = await referTree({ 'conditionMap[codeclsfid]': oid, parentOid: null }) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | if (checked) { |
| | | let items = response.data.map(item => { |
| | | let obj = {} |
| | | if (item.checked) obj = { ...item } |
| | | else obj = null |
| | | return obj |
| | | }) |
| | | var r = items.filter(s => { return s && s.trim() }); |
| | | this.groupTreeData = r |
| | | } else { |
| | | this.groupTreeData = response.data |
| | | } |
| | | } |
| | | }, |
| | | filterNode(value, data) { |
| | | console.log(value) |
| | | console.log(data) |
| | | if (!value) return true; |
| | | return data.label.indexOf(value) !== -1; |
| | | return data.name.indexOf(value) !== -1; |
| | | }, |
| | | handleSave() { |
| | | |
| | |
| | | handelLeftCheck(event) { |
| | | console.log(event) |
| | | }, |
| | | addUpdate(event, done) { |
| | | console.log(event) |
| | | done() |
| | | }, |
| | | rowSave(event, done) { |
| | | console.log(event) |
| | | done() |
| | | }, |
| | | handleRowClick(row, event, column) { |
| | | console.log(row) |
| | | console.log(event) |
| | | console.log(column) |
| | | handelCellRow( {row, column, rowIndex, columnIndex }) { |
| | | row.index = rowIndex |
| | | column.index = columnIndex |
| | | }, |
| | | handleQuery(event) { |
| | | console.log(event) |
| | | this.form.name = event |
| | | }, |
| | | filterMethod(query, item) { |
| | | filterMethod(item) { |
| | | return item.pinyins.indexOf(this.form.name) > -1; |
| | | }, |
| | | handelTreeCell(event) { |
| | | console.log(event) |
| | | if (event.leaf) { |
| | | this.treeParam.codeClassifyId = event.oid |
| | | this.form.groupValue = '' |
| | | this.groupVal = '' |
| | | this.tableData = [] |
| | | this.referTree(event.oid, event.checked) |
| | | } |
| | | }, |
| | | handleNodeClick(data) { |
| | | console.log(data) |
| | | this.form.groupValue = data.name |
| | | this.groupVal = data.name |
| | | this.$refs.selectTree.blur() |
| | | this.getlistCodeAttributeByClassId(data.oid) |
| | | }, |
| | | handleCellClick(row, column,cell, event) { |
| | | console.log(row) |
| | | console.log(column) |
| | | console.log(cell) |
| | | console.log(event) |
| | | this.tableRowIndex = row.index |
| | | this.tableColumnIndex = column.index |
| | | }, |
| | | inputBlur() { |
| | | this.tableColumnIndex = '' |
| | | this.tableRowIndex = null |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | color: #F56C6C; |
| | | } |
| | | |
| | | .setstyle { |
| | | min-height: 200px; |
| | | padding: 0 !important; |
| | | margin: 0; |
| | | overflow: auto; |
| | | cursor: default !important; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__list { |
| | | width: 100%; |
| | | } |
| | |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://192.168.3.7:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | //target: 'http://dev.vci-tech.com:37000', |
| | | //target: 'http://192.168.1.51:37000/', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntParamVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç³»ç»éæåºç¡ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * |
| | | * @author lihang |
| | | * @date 2022-03-07 |
| | | */ |
| | | public class DockingSystemConfigDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707120053955466L; |
| | | |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | private String authorityOid; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String authorityOidName; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | private String authorityType; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String authorityTypeText; |
| | | |
| | | /** |
| | | * éªè¯ç¨æ· |
| | | */ |
| | | private String userAccount; |
| | | |
| | | /** |
| | | * éªè¯å¯ç |
| | | */ |
| | | private String userCode; |
| | | |
| | | /** |
| | | * éªè¯ä»¤ç |
| | | */ |
| | | private String token; |
| | | |
| | | /** |
| | | * æ¥å£å½æ° |
| | | */ |
| | | private String interfaceFunction; |
| | | |
| | | /** |
| | | * æ¥å£æè¿° |
| | | */ |
| | | private String description; |
| | | |
| | | |
| | | /** |
| | | * æ¥å£ç±»å |
| | | */ |
| | | private String interfaceType; |
| | | |
| | | |
| | | /** |
| | | * æ¥å£ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String interfaceTypeText; |
| | | /** |
| | | * åæ°ç±»å |
| | | */ |
| | | private String paramType; |
| | | |
| | | |
| | | /** |
| | | * åæ°ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String paramTypeText; |
| | | /** |
| | | * è¯·æ±æ¹å¼ |
| | | */ |
| | | private String requestMethod; |
| | | |
| | | |
| | | /** |
| | | * è¯·æ±æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String requestMethodText; |
| | | /** |
| | | * åç±»oid |
| | | */ |
| | | private String classifyOid; |
| | | |
| | | /** |
| | | * å¯ç¨ãåç¨true/falseï¼ä¸ç¨å¹³å°çæä¸¾ï¼åå°å¯¹å¹³å°çè¦å |
| | | */ |
| | | private String usedFlag; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»oid |
| | | */ |
| | | private String sysBaseOid; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»ç¼å· |
| | | */ |
| | | private String sysBaseId; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»åç§° |
| | | */ |
| | | private String sysBaseName; |
| | | |
| | | /** |
| | | * 请æ±å°å |
| | | */ |
| | | private String requestUrl; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»å |
| | | */ |
| | | private String returnType; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String returnTypeText; |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é® |
| | | */ |
| | | private String sourceSystemOid; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»åç§° |
| | | */ |
| | | private String sourceSysName; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»æ è¯ |
| | | */ |
| | | private String sourceSysId; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | private String sourceSystemOidName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é® |
| | | */ |
| | | private String targetSystemOid; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»åç§° |
| | | */ |
| | | private String targetSysName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»æ è¯ |
| | | */ |
| | | private String targetSysId; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | private String targetSystemOidName; |
| | | |
| | | /** |
| | | * ç±»è·¯å¾ |
| | | */ |
| | | private String classPath; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼ |
| | | */ |
| | | private String dataFlowType; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼çæ¾ç¤ºå段 |
| | | */ |
| | | private String dataFlowTypeText; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»å |
| | | */ |
| | | private String btmTypeId; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»åç䏿åç§° |
| | | */ |
| | | private String btmTypeName; |
| | | |
| | | /** |
| | | * å½åç©ºé´ |
| | | */ |
| | | private String namespace; |
| | | |
| | | /** |
| | | * soapAction |
| | | */ |
| | | private String soapAction; |
| | | |
| | | /** |
| | | * cxfaxis |
| | | */ |
| | | private String cxfAxis; |
| | | |
| | | /** |
| | | * åæ°åç§° |
| | | */ |
| | | private String targetName; |
| | | |
| | | /*** |
| | | * æ¨éç±»å 1:æ°æ®æ¨é/2åç±»æ¨éï¼é»è®¤æ°æ®æ¨é |
| | | */ |
| | | private String pushType; |
| | | /*** |
| | | * æ¨éç±»åæ¾ç¤ºå¼ |
| | | */ |
| | | private String pushTypeText; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | private String classifyId; |
| | | |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | private String classifyName; |
| | | |
| | | /*** |
| | | * åæ°ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntParamVO> sysIntParamVOs; |
| | | /*** |
| | | * headerä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntHeaderVO> sysIntHeaderVOs; |
| | | |
| | | public String getAuthorityOid() { |
| | | return authorityOid; |
| | | } |
| | | |
| | | public void setAuthorityOid(String authorityOid) { |
| | | this.authorityOid = authorityOid; |
| | | } |
| | | |
| | | public String getAuthorityOidName() { |
| | | return authorityOidName; |
| | | } |
| | | |
| | | public void setAuthorityOidName(String authorityOidName) { |
| | | this.authorityOidName = authorityOidName; |
| | | } |
| | | |
| | | public String getAuthorityType() { |
| | | return authorityType; |
| | | } |
| | | |
| | | public void setAuthorityType(String authorityType) { |
| | | this.authorityType = authorityType; |
| | | } |
| | | |
| | | public String getAuthorityTypeText() { |
| | | return authorityTypeText; |
| | | } |
| | | |
| | | public void setAuthorityTypeText(String authorityTypeText) { |
| | | this.authorityTypeText = authorityTypeText; |
| | | } |
| | | |
| | | public String getUserAccount() { |
| | | return userAccount; |
| | | } |
| | | |
| | | public void setUserAccount(String userAccount) { |
| | | this.userAccount = userAccount; |
| | | } |
| | | |
| | | public String getUserCode() { |
| | | return userCode; |
| | | } |
| | | |
| | | public void setUserCode(String userCode) { |
| | | this.userCode = userCode; |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | | } |
| | | |
| | | public void setToken(String token) { |
| | | this.token = token; |
| | | } |
| | | |
| | | public String getInterfaceFunction() { |
| | | return interfaceFunction; |
| | | } |
| | | |
| | | public void setInterfaceFunction(String interfaceFunction) { |
| | | this.interfaceFunction = interfaceFunction; |
| | | } |
| | | |
| | | @Override |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | @Override |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getInterfaceType() { |
| | | return interfaceType; |
| | | } |
| | | |
| | | public void setInterfaceType(String interfaceType) { |
| | | this.interfaceType = interfaceType; |
| | | } |
| | | |
| | | public String getInterfaceTypeText() { |
| | | return interfaceTypeText; |
| | | } |
| | | |
| | | public void setInterfaceTypeText(String interfaceTypeText) { |
| | | this.interfaceTypeText = interfaceTypeText; |
| | | } |
| | | |
| | | public String getParamType() { |
| | | return paramType; |
| | | } |
| | | |
| | | public void setParamType(String paramType) { |
| | | this.paramType = paramType; |
| | | } |
| | | |
| | | public String getParamTypeText() { |
| | | return paramTypeText; |
| | | } |
| | | |
| | | public void setParamTypeText(String paramTypeText) { |
| | | this.paramTypeText = paramTypeText; |
| | | } |
| | | |
| | | public String getRequestMethod() { |
| | | return requestMethod; |
| | | } |
| | | |
| | | public void setRequestMethod(String requestMethod) { |
| | | this.requestMethod = requestMethod; |
| | | } |
| | | |
| | | public String getRequestMethodText() { |
| | | return requestMethodText; |
| | | } |
| | | |
| | | public void setRequestMethodText(String requestMethodText) { |
| | | this.requestMethodText = requestMethodText; |
| | | } |
| | | |
| | | public String getClassifyOid() { |
| | | return classifyOid; |
| | | } |
| | | |
| | | public void setClassifyOid(String classifyOid) { |
| | | this.classifyOid = classifyOid; |
| | | } |
| | | |
| | | public String getUsedFlag() { |
| | | return usedFlag; |
| | | } |
| | | |
| | | public void setUsedFlag(String usedFlag) { |
| | | this.usedFlag = usedFlag; |
| | | } |
| | | |
| | | public String getSysBaseOid() { |
| | | return sysBaseOid; |
| | | } |
| | | |
| | | public void setSysBaseOid(String sysBaseOid) { |
| | | this.sysBaseOid = sysBaseOid; |
| | | } |
| | | |
| | | public String getSysBaseId() { |
| | | return sysBaseId; |
| | | } |
| | | |
| | | public void setSysBaseId(String sysBaseId) { |
| | | this.sysBaseId = sysBaseId; |
| | | } |
| | | |
| | | public String getSysBaseName() { |
| | | return sysBaseName; |
| | | } |
| | | |
| | | public void setSysBaseName(String sysBaseName) { |
| | | this.sysBaseName = sysBaseName; |
| | | } |
| | | |
| | | public String getRequestUrl() { |
| | | return requestUrl; |
| | | } |
| | | |
| | | public void setRequestUrl(String requestUrl) { |
| | | this.requestUrl = requestUrl; |
| | | } |
| | | |
| | | public String getReturnType() { |
| | | return returnType; |
| | | } |
| | | |
| | | public void setReturnType(String returnType) { |
| | | this.returnType = returnType; |
| | | } |
| | | |
| | | public String getReturnTypeText() { |
| | | return returnTypeText; |
| | | } |
| | | |
| | | public void setReturnTypeText(String returnTypeText) { |
| | | this.returnTypeText = returnTypeText; |
| | | } |
| | | |
| | | public String getSourceSystemOid() { |
| | | return sourceSystemOid; |
| | | } |
| | | |
| | | public void setSourceSystemOid(String sourceSystemOid) { |
| | | this.sourceSystemOid = sourceSystemOid; |
| | | } |
| | | |
| | | public String getSourceSysName() { |
| | | return sourceSysName; |
| | | } |
| | | |
| | | public void setSourceSysName(String sourceSysName) { |
| | | this.sourceSysName = sourceSysName; |
| | | } |
| | | |
| | | public String getSourceSysId() { |
| | | return sourceSysId; |
| | | } |
| | | |
| | | public void setSourceSysId(String sourceSysId) { |
| | | this.sourceSysId = sourceSysId; |
| | | } |
| | | |
| | | public String getSourceSystemOidName() { |
| | | return sourceSystemOidName; |
| | | } |
| | | |
| | | public void setSourceSystemOidName(String sourceSystemOidName) { |
| | | this.sourceSystemOidName = sourceSystemOidName; |
| | | } |
| | | |
| | | public String getTargetSystemOid() { |
| | | return targetSystemOid; |
| | | } |
| | | |
| | | public void setTargetSystemOid(String targetSystemOid) { |
| | | this.targetSystemOid = targetSystemOid; |
| | | } |
| | | |
| | | public String getTargetSysName() { |
| | | return targetSysName; |
| | | } |
| | | |
| | | public void setTargetSysName(String targetSysName) { |
| | | this.targetSysName = targetSysName; |
| | | } |
| | | |
| | | public String getTargetSysId() { |
| | | return targetSysId; |
| | | } |
| | | |
| | | public void setTargetSysId(String targetSysId) { |
| | | this.targetSysId = targetSysId; |
| | | } |
| | | |
| | | public String getTargetSystemOidName() { |
| | | return targetSystemOidName; |
| | | } |
| | | |
| | | public void setTargetSystemOidName(String targetSystemOidName) { |
| | | this.targetSystemOidName = targetSystemOidName; |
| | | } |
| | | |
| | | public String getClassPath() { |
| | | return classPath; |
| | | } |
| | | |
| | | public void setClassPath(String classPath) { |
| | | this.classPath = classPath; |
| | | } |
| | | |
| | | public String getDataFlowType() { |
| | | return dataFlowType; |
| | | } |
| | | |
| | | public void setDataFlowType(String dataFlowType) { |
| | | this.dataFlowType = dataFlowType; |
| | | } |
| | | |
| | | public String getDataFlowTypeText() { |
| | | return dataFlowTypeText; |
| | | } |
| | | |
| | | public void setDataFlowTypeText(String dataFlowTypeText) { |
| | | this.dataFlowTypeText = dataFlowTypeText; |
| | | } |
| | | |
| | | public String getBtmTypeId() { |
| | | return btmTypeId; |
| | | } |
| | | |
| | | public void setBtmTypeId(String btmTypeId) { |
| | | this.btmTypeId = btmTypeId; |
| | | } |
| | | |
| | | public String getBtmTypeName() { |
| | | return btmTypeName; |
| | | } |
| | | |
| | | public void setBtmTypeName(String btmTypeName) { |
| | | this.btmTypeName = btmTypeName; |
| | | } |
| | | |
| | | public String getNamespace() { |
| | | return namespace; |
| | | } |
| | | |
| | | public void setNamespace(String namespace) { |
| | | this.namespace = namespace; |
| | | } |
| | | |
| | | public String getSoapAction() { |
| | | return soapAction; |
| | | } |
| | | |
| | | public void setSoapAction(String soapAction) { |
| | | this.soapAction = soapAction; |
| | | } |
| | | |
| | | public String getCxfAxis() { |
| | | return cxfAxis; |
| | | } |
| | | |
| | | public void setCxfAxis(String cxfAxis) { |
| | | this.cxfAxis = cxfAxis; |
| | | } |
| | | |
| | | public String getTargetName() { |
| | | return targetName; |
| | | } |
| | | |
| | | public void setTargetName(String targetName) { |
| | | this.targetName = targetName; |
| | | } |
| | | |
| | | public String getPushType() { |
| | | return pushType; |
| | | } |
| | | |
| | | public void setPushType(String pushType) { |
| | | this.pushType = pushType; |
| | | } |
| | | |
| | | public String getPushTypeText() { |
| | | return pushTypeText; |
| | | } |
| | | |
| | | public void setPushTypeText(String pushTypeText) { |
| | | this.pushTypeText = pushTypeText; |
| | | } |
| | | |
| | | public String getClassifyId() { |
| | | return classifyId; |
| | | } |
| | | |
| | | public void setClassifyId(String classifyId) { |
| | | this.classifyId = classifyId; |
| | | } |
| | | |
| | | public String getClassifyName() { |
| | | return classifyName; |
| | | } |
| | | |
| | | public void setClassifyName(String classifyName) { |
| | | this.classifyName = classifyName; |
| | | } |
| | | |
| | | public List<SysIntParamVO> getSysIntParamVOs() { |
| | | return sysIntParamVOs; |
| | | } |
| | | |
| | | public void setSysIntParamVOs(List<SysIntParamVO> sysIntParamVOs) { |
| | | this.sysIntParamVOs = sysIntParamVOs; |
| | | } |
| | | |
| | | public List<SysIntHeaderVO> getSysIntHeaderVOs() { |
| | | return sysIntHeaderVOs; |
| | | } |
| | | |
| | | public void setSysIntHeaderVOs(List<SysIntHeaderVO> sysIntHeaderVOs) { |
| | | this.sysIntHeaderVOs = sysIntHeaderVOs; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "SysIntInfoDTO{" + |
| | | "authorityOid='" + authorityOid + '\'' + |
| | | ", authorityOidName='" + authorityOidName + '\'' + |
| | | ", authorityType='" + authorityType + '\'' + |
| | | ", authorityTypeText='" + authorityTypeText + '\'' + |
| | | ", userAccount='" + userAccount + '\'' + |
| | | ", userCode='" + userCode + '\'' + |
| | | ", token='" + token + '\'' + |
| | | ", interfaceFunction='" + interfaceFunction + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", interfaceType='" + interfaceType + '\'' + |
| | | ", interfaceTypeText='" + interfaceTypeText + '\'' + |
| | | ", paramType='" + paramType + '\'' + |
| | | ", paramTypeText='" + paramTypeText + '\'' + |
| | | ", requestMethod='" + requestMethod + '\'' + |
| | | ", requestMethodText='" + requestMethodText + '\'' + |
| | | ", classifyOid='" + classifyOid + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", sysBaseOid='" + sysBaseOid + '\'' + |
| | | ", sysBaseId='" + sysBaseId + '\'' + |
| | | ", sysBaseName='" + sysBaseName + '\'' + |
| | | ", requestUrl='" + requestUrl + '\'' + |
| | | ", returnType='" + returnType + '\'' + |
| | | ", returnTypeText='" + returnTypeText + '\'' + |
| | | ", sourceSystemOid='" + sourceSystemOid + '\'' + |
| | | ", sourceSysName='" + sourceSysName + '\'' + |
| | | ", sourceSysId='" + sourceSysId + '\'' + |
| | | ", sourceSystemOidName='" + sourceSystemOidName + '\'' + |
| | | ", targetSystemOid='" + targetSystemOid + '\'' + |
| | | ", targetSysName='" + targetSysName + '\'' + |
| | | ", targetSysId='" + targetSysId + '\'' + |
| | | ", targetSystemOidName='" + targetSystemOidName + '\'' + |
| | | ", classPath='" + classPath + '\'' + |
| | | ", dataFlowType='" + dataFlowType + '\'' + |
| | | ", dataFlowTypeText='" + dataFlowTypeText + '\'' + |
| | | ", btmTypeId='" + btmTypeId + '\'' + |
| | | ", btmTypeName='" + btmTypeName + '\'' + |
| | | ", namespace='" + namespace + '\'' + |
| | | ", soapAction='" + soapAction + '\'' + |
| | | ", cxfAxis='" + cxfAxis + '\'' + |
| | | ", targetName='" + targetName + '\'' + |
| | | ", pushType='" + pushType + '\'' + |
| | | ", pushTypeText='" + pushTypeText + '\'' + |
| | | ", classifyId='" + classifyId + '\'' + |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", sysIntParamVOs=" + sysIntParamVOs + |
| | | ", sysIntHeaderVOs=" + sysIntHeaderVOs + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/SysIntBaseDTO.java ÐÞ¸Ä |
| | |
| | | * @author lihang |
| | | * @date 2022-03-07 |
| | | */ |
| | | public class SysIntBaseDTO extends BaseModelVO { |
| | | public class DockingSystemDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | |
| | | import java.util.List; |
| | | |
| | | public class SysIntInfoBseDTO extends BaseModelVO { |
| | | private SysIntInfoDTO sysIntInfoDTO; |
| | | private DockingSystemConfigDTO sysIntInfoDTO; |
| | | |
| | | private List<SysIntParamDTO> sysIntParamDTO; |
| | | |
| | | private List<SysIntHeaderDTO> sysIntHeaderDTOS; |
| | | |
| | | public SysIntInfoDTO getSysIntInfoDTO() { |
| | | public DockingSystemConfigDTO getSysIntInfoDTO() { |
| | | return sysIntInfoDTO; |
| | | } |
| | | |
| | | public void setSysIntInfoDTO(SysIntInfoDTO sysIntInfoDTO) { |
| | | public void setSysIntInfoDTO(DockingSystemConfigDTO sysIntInfoDTO) { |
| | | this.sysIntInfoDTO = sysIntInfoDTO; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /**** |
| | | * éæç®¡çæ¥å£-éæç³»ç»ç»´æ¤å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_SYSINTBASE") |
| | | @ApiModel(value = "DockingSystem", description = "éæç®¡çæ¥å£-éæç³»ç»ç»´æ¤å¯¹è±¡") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class DockingSystem extends BaseModel { |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117716142023L; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntParamVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éææ¥å£-éææ¥å£ç®¡ç对象 |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_SYSINTINFO") |
| | | @ApiModel(value = "DockingSystemConfig", description = "éææ¥å£-éææ¥å£ç®¡ç对象") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class DockingSystemConfig extends BaseModel{ |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117716142069L; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | /*** |
| | | * éå¢åç±»oid |
| | | */ |
| | | @ApiModelProperty(value = "è®¤è¯æ¹å¼") |
| | | //@TableField(value = "authorityOid") |
| | | private String authorityOid; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "è®¤è¯æ¹å¼æ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String authorityOidName; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | @ApiModelProperty(value = "è®¤è¯æ¹å¼") |
| | | @TableField(exist = false) |
| | | private String authorityType; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "è®¤è¯æ¹å¼æ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String authorityTypeText; |
| | | |
| | | /** |
| | | * éªè¯ç¨æ· |
| | | */ |
| | | @ApiModelProperty(value = "éªè¯ç¨æ·") |
| | | @TableField(exist = false) |
| | | private String userAccount; |
| | | |
| | | /** |
| | | * éªè¯å¯ç |
| | | */ |
| | | @ApiModelProperty(value = "éªè¯å¯ç ") |
| | | @TableField(exist = false) |
| | | private String userCode; |
| | | |
| | | /** |
| | | * éªè¯ä»¤ç |
| | | */ |
| | | @ApiModelProperty(value = "éªè¯ä»¤ç") |
| | | @TableField(exist = false) |
| | | private String token; |
| | | |
| | | /** |
| | | * æ¥å£å½æ° |
| | | */ |
| | | @ApiModelProperty(value = "æ¥å£å½æ°") |
| | | private String interfaceFunction; |
| | | |
| | | /** |
| | | * æ¥å£æè¿° |
| | | *//* |
| | | @ApiModelProperty(value = "æ¥å£æè¿°") |
| | | private String description;*/ |
| | | |
| | | |
| | | /** |
| | | * æ¥å£ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "æ¥å£ç±»å") |
| | | private String interfaceType; |
| | | |
| | | /** |
| | | * æ¥å£ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "æ¥å£ç±»åæ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String interfaceTypeText; |
| | | /** |
| | | * åæ°ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "åæ°ç±»å") |
| | | private String paramType; |
| | | |
| | | |
| | | /** |
| | | * åæ°ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "åæ°ç±»åæ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String paramTypeText; |
| | | /** |
| | | * è¯·æ±æ¹å¼ |
| | | */ |
| | | @ApiModelProperty(value = "è¯·æ±æ¹å¼") |
| | | private String requestMethod; |
| | | |
| | | /** |
| | | * è¯·æ±æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "è¯·æ±æ¹å¼æ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String requestMethodText; |
| | | /** |
| | | * åç±»oid |
| | | */ |
| | | @ApiModelProperty(value = "åç±»oid") |
| | | private String classifyOid; |
| | | |
| | | /** |
| | | * å¯ç¨ãåç¨true/falseï¼ä¸ç¨å¹³å°çæä¸¾ï¼åå°å¯¹å¹³å°çè¦å |
| | | */ |
| | | @ApiModelProperty(value = "å¯ç¨ãåç¨true/falseï¼ä¸ç¨å¹³å°çæä¸¾ï¼åå°å¯¹å¹³å°çè¦å") |
| | | private String usedFlag; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»oid |
| | | */ |
| | | @ApiModelProperty(value = "æ¨éç³»ç»oid") |
| | | private String sysBaseOid; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "æ¨éç³»ç»ç¼å·") |
| | | private String sysBaseId; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æ¨éç³»ç»åç§°") |
| | | private String sysBaseName; |
| | | |
| | | /** |
| | | * 请æ±å°å |
| | | */ |
| | | @ApiModelProperty(value = "请æ±å°å") |
| | | private String requestUrl; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "è¿åå¼ç±»å") |
| | | private String returnType; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "è¿åå¼ç±»åæ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String returnTypeText; |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "æ¥æºç³»ç»ä¸»é®") |
| | | private String sourceSystemOid; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æ¥æºç³»ç»åç§°") |
| | | private String sourceSysName; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ¥æºç³»ç»æ è¯") |
| | | private String sourceSysId; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "æ¥æºç³»ç»ä¸»é®æ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String sourceSystemOidName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»ä¸»é®") |
| | | private String targetSystemOid; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»åç§°") |
| | | private String targetSysName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»æ è¯") |
| | | private String targetSysId; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»ä¸»é®æ¾ç¤ºææ¬") |
| | | @TableField(exist = false) |
| | | private String targetSystemOidName; |
| | | |
| | | /** |
| | | * ç±»è·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "类路å¾") |
| | | private String classPath; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼ |
| | | */ |
| | | @ApiModelProperty(value = "è®¤è¯æ¹å¼æ¾ç¤ºææ¬") |
| | | private String dataFlowType; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼çæ¾ç¤ºå段 |
| | | */ |
| | | @ApiModelProperty(value = "æ°æ®æµåæ¹å¼çæ¾ç¤ºå段") |
| | | @TableField(exist = false) |
| | | private String dataFlowTypeText; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "åå¨çä¸å¡ç±»å") |
| | | private String btmTypeId; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»åç䏿åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åå¨çä¸å¡ç±»åç䏿åç§°") |
| | | private String btmTypeName; |
| | | |
| | | /** |
| | | * å½åç©ºé´ |
| | | */ |
| | | @ApiModelProperty(value = "å½å空é´") |
| | | private String namespace; |
| | | |
| | | /** |
| | | * soapAction |
| | | */ |
| | | @ApiModelProperty(value = "soapAction") |
| | | private String soapAction; |
| | | |
| | | /** |
| | | * cxfaxis |
| | | */ |
| | | @ApiModelProperty(value = "cxfaxis") |
| | | private String cxfAxis; |
| | | |
| | | /** |
| | | * åæ°åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åæ°åç§°") |
| | | @TableField(value = "targname") |
| | | private String targetName; |
| | | |
| | | |
| | | /*** |
| | | * æ¨éç±»å 1:æ°æ®æ¨é/2åç±»æ¨éï¼é»è®¤æ°æ®æ¨é |
| | | */ |
| | | @ApiModelProperty(value = "æ¨éç±»å 1:æ°æ®æ¨é/2åç±»æ¨éï¼é»è®¤æ°æ®æ¨é") |
| | | private String pushType; |
| | | /*** |
| | | * æ¨éç±»åæ¾ç¤ºå¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¨éç±»åæ¾ç¤ºå¼") |
| | | @TableField(exist = false) |
| | | private String pushTypeText; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @ApiModelProperty(value = "åç±»id") |
| | | private String classifyId; |
| | | |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åç±»åç§°") |
| | | private String classifyName; |
| | | } |
| | |
| | | String TOP = API_PREFIX + "/top"; |
| | | String CODE_CLASSIFY_TREE=API_PREFIX+"/referCodeClassifyTree"; |
| | | String CODE_ATTRIBUTE_LIST=API_PREFIX+"/listCodeAttributeByClassId"; |
| | | |
| | | String CODE_GETBYID="/getById"; |
| | | /** |
| | | * è·å主é¢åºå®ä¹è¡¨å表 |
| | | * |
| | |
| | | */ |
| | | @GetMapping(CODE_ATTRIBUTE_LIST) |
| | | public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(@RequestParam("codeClassifyId") String codeClassifyId); |
| | | |
| | | /*** |
| | | * æ ¹æ®åç±»idå·®ç±å¿åç±»ä¿¡æ¯ |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | @GetMapping(CODE_GETBYID) |
| | | CodeClassify getById(@RequestParam("classifyId")String classifyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç³»ç»éæåºç¡ä¿¡æ¯æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author lihang |
| | | * @date 2022-03-07 |
| | | */ |
| | | public class DockingSystemConfigVO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117716142069L; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | private String authorityOid; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String authorityOidName; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼ |
| | | */ |
| | | private String authorityType; |
| | | |
| | | /** |
| | | * è®¤è¯æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String authorityTypeText; |
| | | |
| | | /** |
| | | * éªè¯ç¨æ· |
| | | */ |
| | | private String userAccount; |
| | | |
| | | /** |
| | | * éªè¯å¯ç |
| | | */ |
| | | private String userCode; |
| | | |
| | | /** |
| | | * éªè¯ä»¤ç |
| | | */ |
| | | private String token; |
| | | |
| | | /** |
| | | * æ¥å£å½æ° |
| | | */ |
| | | private String interfaceFunction; |
| | | |
| | | /** |
| | | * æ¥å£æè¿° |
| | | */ |
| | | private String description; |
| | | |
| | | |
| | | /** |
| | | * æ¥å£ç±»å |
| | | */ |
| | | private String interfaceType; |
| | | |
| | | |
| | | /** |
| | | * æ¥å£ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String interfaceTypeText; |
| | | /** |
| | | * åæ°ç±»å |
| | | */ |
| | | private String paramType; |
| | | |
| | | |
| | | /** |
| | | * åæ°ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String paramTypeText; |
| | | /** |
| | | * è¯·æ±æ¹å¼ |
| | | */ |
| | | private String requestMethod; |
| | | |
| | | |
| | | /** |
| | | * è¯·æ±æ¹å¼æ¾ç¤ºææ¬ |
| | | */ |
| | | private String requestMethodText; |
| | | /** |
| | | * åç±»oid |
| | | */ |
| | | private String classifyOid; |
| | | |
| | | /** |
| | | * å¯ç¨ãåç¨true/falseï¼ä¸ç¨å¹³å°çæä¸¾ï¼åå°å¯¹å¹³å°çè¦å |
| | | */ |
| | | private String usedFlag; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»oid |
| | | */ |
| | | private String sysBaseOid; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»ç¼å· |
| | | */ |
| | | private String sysBaseId; |
| | | |
| | | /** |
| | | * æ¨éç³»ç»åç§° |
| | | */ |
| | | private String sysBaseName; |
| | | |
| | | /** |
| | | * 请æ±å°å |
| | | */ |
| | | private String requestUrl; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»å |
| | | */ |
| | | private String returnType; |
| | | |
| | | |
| | | /** |
| | | * è¿åå¼ç±»åæ¾ç¤ºææ¬ |
| | | */ |
| | | private String returnTypeText; |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é® |
| | | */ |
| | | private String sourceSystemOid; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»åç§° |
| | | */ |
| | | private String sourceSysName; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»æ è¯ |
| | | */ |
| | | private String sourceSysId; |
| | | |
| | | /** |
| | | * æ¥æºç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | private String sourceSystemOidName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é® |
| | | */ |
| | | private String targetSystemOid; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»åç§° |
| | | */ |
| | | private String targetSysName; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»æ è¯ |
| | | */ |
| | | private String targetSysId; |
| | | |
| | | /** |
| | | * ç®æ ç³»ç»ä¸»é®æ¾ç¤ºææ¬ |
| | | */ |
| | | private String targetSystemOidName; |
| | | |
| | | /** |
| | | * ç±»è·¯å¾ |
| | | */ |
| | | private String classPath; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼ |
| | | */ |
| | | private String dataFlowType; |
| | | |
| | | /** |
| | | * æ°æ®æµåæ¹å¼çæ¾ç¤ºå段 |
| | | */ |
| | | private String dataFlowTypeText; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»å |
| | | */ |
| | | private String btmTypeId; |
| | | |
| | | /** |
| | | * åå¨çä¸å¡ç±»åç䏿åç§° |
| | | */ |
| | | private String btmTypeName; |
| | | |
| | | /** |
| | | * å½åç©ºé´ |
| | | */ |
| | | private String namespace; |
| | | |
| | | /** |
| | | * soapAction |
| | | */ |
| | | private String soapAction; |
| | | |
| | | /** |
| | | * cxfaxis |
| | | */ |
| | | private String cxfAxis; |
| | | |
| | | /** |
| | | * åæ°åç§° |
| | | */ |
| | | private String targetName; |
| | | |
| | | /*** |
| | | * æ¨éç±»å 1:æ°æ®æ¨é/2åç±»æ¨éï¼é»è®¤æ°æ®æ¨é |
| | | */ |
| | | private String pushType; |
| | | /*** |
| | | * æ¨éç±»åæ¾ç¤ºå¼ |
| | | */ |
| | | private String pushTypeText; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | private String classifyId; |
| | | |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | private String classifyName; |
| | | |
| | | /*** |
| | | * åæ°ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntParamVO> sysIntParamVOs; |
| | | /*** |
| | | * headerä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntHeaderVO> sysIntHeaderVOs; |
| | | |
| | | |
| | | public String getAuthorityOid() { |
| | | return authorityOid; |
| | | } |
| | | |
| | | public void setAuthorityOid(String authorityOid) { |
| | | this.authorityOid = authorityOid; |
| | | } |
| | | |
| | | public String getAuthorityOidName() { |
| | | return authorityOidName; |
| | | } |
| | | |
| | | public void setAuthorityOidName(String authorityOidName) { |
| | | this.authorityOidName = authorityOidName; |
| | | } |
| | | |
| | | public String getAuthorityType() { |
| | | return authorityType; |
| | | } |
| | | |
| | | public void setAuthorityType(String authorityType) { |
| | | this.authorityType = authorityType; |
| | | } |
| | | |
| | | public String getAuthorityTypeText() { |
| | | return authorityTypeText; |
| | | } |
| | | |
| | | public void setAuthorityTypeText(String authorityTypeText) { |
| | | this.authorityTypeText = authorityTypeText; |
| | | } |
| | | |
| | | public String getUserAccount() { |
| | | return userAccount; |
| | | } |
| | | |
| | | public void setUserAccount(String userAccount) { |
| | | this.userAccount = userAccount; |
| | | } |
| | | |
| | | public String getUserCode() { |
| | | return userCode; |
| | | } |
| | | |
| | | public void setUserCode(String userCode) { |
| | | this.userCode = userCode; |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | | } |
| | | |
| | | public void setToken(String token) { |
| | | this.token = token; |
| | | } |
| | | |
| | | public String getInterfaceFunction() { |
| | | return interfaceFunction; |
| | | } |
| | | |
| | | public void setInterfaceFunction(String interfaceFunction) { |
| | | this.interfaceFunction = interfaceFunction; |
| | | } |
| | | |
| | | @Override |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | @Override |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getInterfaceType() { |
| | | return interfaceType; |
| | | } |
| | | |
| | | public void setInterfaceType(String interfaceType) { |
| | | this.interfaceType = interfaceType; |
| | | } |
| | | |
| | | public String getInterfaceTypeText() { |
| | | return interfaceTypeText; |
| | | } |
| | | |
| | | public void setInterfaceTypeText(String interfaceTypeText) { |
| | | this.interfaceTypeText = interfaceTypeText; |
| | | } |
| | | |
| | | public String getParamType() { |
| | | return paramType; |
| | | } |
| | | |
| | | public void setParamType(String paramType) { |
| | | this.paramType = paramType; |
| | | } |
| | | |
| | | public String getParamTypeText() { |
| | | return paramTypeText; |
| | | } |
| | | |
| | | public void setParamTypeText(String paramTypeText) { |
| | | this.paramTypeText = paramTypeText; |
| | | } |
| | | |
| | | public String getRequestMethod() { |
| | | return requestMethod; |
| | | } |
| | | |
| | | public void setRequestMethod(String requestMethod) { |
| | | this.requestMethod = requestMethod; |
| | | } |
| | | |
| | | public String getRequestMethodText() { |
| | | return requestMethodText; |
| | | } |
| | | |
| | | public void setRequestMethodText(String requestMethodText) { |
| | | this.requestMethodText = requestMethodText; |
| | | } |
| | | |
| | | public String getClassifyOid() { |
| | | return classifyOid; |
| | | } |
| | | |
| | | public void setClassifyOid(String classifyOid) { |
| | | this.classifyOid = classifyOid; |
| | | } |
| | | |
| | | public String getUsedFlag() { |
| | | return usedFlag; |
| | | } |
| | | |
| | | public void setUsedFlag(String usedFlag) { |
| | | this.usedFlag = usedFlag; |
| | | } |
| | | |
| | | public String getSysBaseOid() { |
| | | return sysBaseOid; |
| | | } |
| | | |
| | | public void setSysBaseOid(String sysBaseOid) { |
| | | this.sysBaseOid = sysBaseOid; |
| | | } |
| | | |
| | | public String getSysBaseId() { |
| | | return sysBaseId; |
| | | } |
| | | |
| | | public void setSysBaseId(String sysBaseId) { |
| | | this.sysBaseId = sysBaseId; |
| | | } |
| | | |
| | | public String getSysBaseName() { |
| | | return sysBaseName; |
| | | } |
| | | |
| | | public void setSysBaseName(String sysBaseName) { |
| | | this.sysBaseName = sysBaseName; |
| | | } |
| | | |
| | | public String getRequestUrl() { |
| | | return requestUrl; |
| | | } |
| | | |
| | | public void setRequestUrl(String requestUrl) { |
| | | this.requestUrl = requestUrl; |
| | | } |
| | | |
| | | public String getReturnType() { |
| | | return returnType; |
| | | } |
| | | |
| | | public void setReturnType(String returnType) { |
| | | this.returnType = returnType; |
| | | } |
| | | |
| | | public String getReturnTypeText() { |
| | | return returnTypeText; |
| | | } |
| | | |
| | | public void setReturnTypeText(String returnTypeText) { |
| | | this.returnTypeText = returnTypeText; |
| | | } |
| | | |
| | | public String getSourceSystemOid() { |
| | | return sourceSystemOid; |
| | | } |
| | | |
| | | public void setSourceSystemOid(String sourceSystemOid) { |
| | | this.sourceSystemOid = sourceSystemOid; |
| | | } |
| | | |
| | | public String getSourceSysName() { |
| | | return sourceSysName; |
| | | } |
| | | |
| | | public void setSourceSysName(String sourceSysName) { |
| | | this.sourceSysName = sourceSysName; |
| | | } |
| | | |
| | | public String getSourceSysId() { |
| | | return sourceSysId; |
| | | } |
| | | |
| | | public void setSourceSysId(String sourceSysId) { |
| | | this.sourceSysId = sourceSysId; |
| | | } |
| | | |
| | | public String getSourceSystemOidName() { |
| | | return sourceSystemOidName; |
| | | } |
| | | |
| | | public void setSourceSystemOidName(String sourceSystemOidName) { |
| | | this.sourceSystemOidName = sourceSystemOidName; |
| | | } |
| | | |
| | | public String getTargetSystemOid() { |
| | | return targetSystemOid; |
| | | } |
| | | |
| | | public void setTargetSystemOid(String targetSystemOid) { |
| | | this.targetSystemOid = targetSystemOid; |
| | | } |
| | | |
| | | public String getTargetSysName() { |
| | | return targetSysName; |
| | | } |
| | | |
| | | public void setTargetSysName(String targetSysName) { |
| | | this.targetSysName = targetSysName; |
| | | } |
| | | |
| | | public String getTargetSysId() { |
| | | return targetSysId; |
| | | } |
| | | |
| | | public void setTargetSysId(String targetSysId) { |
| | | this.targetSysId = targetSysId; |
| | | } |
| | | |
| | | public String getTargetSystemOidName() { |
| | | return targetSystemOidName; |
| | | } |
| | | |
| | | public void setTargetSystemOidName(String targetSystemOidName) { |
| | | this.targetSystemOidName = targetSystemOidName; |
| | | } |
| | | |
| | | public String getClassPath() { |
| | | return classPath; |
| | | } |
| | | |
| | | public void setClassPath(String classPath) { |
| | | this.classPath = classPath; |
| | | } |
| | | |
| | | public String getDataFlowType() { |
| | | return dataFlowType; |
| | | } |
| | | |
| | | public void setDataFlowType(String dataFlowType) { |
| | | this.dataFlowType = dataFlowType; |
| | | } |
| | | |
| | | public String getDataFlowTypeText() { |
| | | return dataFlowTypeText; |
| | | } |
| | | |
| | | public void setDataFlowTypeText(String dataFlowTypeText) { |
| | | this.dataFlowTypeText = dataFlowTypeText; |
| | | } |
| | | |
| | | public String getBtmTypeId() { |
| | | return btmTypeId; |
| | | } |
| | | |
| | | public void setBtmTypeId(String btmTypeId) { |
| | | this.btmTypeId = btmTypeId; |
| | | } |
| | | |
| | | public String getBtmTypeName() { |
| | | return btmTypeName; |
| | | } |
| | | |
| | | public void setBtmTypeName(String btmTypeName) { |
| | | this.btmTypeName = btmTypeName; |
| | | } |
| | | |
| | | public String getNamespace() { |
| | | return namespace; |
| | | } |
| | | |
| | | public void setNamespace(String namespace) { |
| | | this.namespace = namespace; |
| | | } |
| | | |
| | | public String getSoapAction() { |
| | | return soapAction; |
| | | } |
| | | |
| | | public void setSoapAction(String soapAction) { |
| | | this.soapAction = soapAction; |
| | | } |
| | | |
| | | public String getCxfAxis() { |
| | | return cxfAxis; |
| | | } |
| | | |
| | | public void setCxfAxis(String cxfAxis) { |
| | | this.cxfAxis = cxfAxis; |
| | | } |
| | | |
| | | public String getTargetName() { |
| | | return targetName; |
| | | } |
| | | |
| | | public void setTargetName(String targetName) { |
| | | this.targetName = targetName; |
| | | } |
| | | |
| | | public String getPushType() { |
| | | return pushType; |
| | | } |
| | | |
| | | public void setPushType(String pushType) { |
| | | this.pushType = pushType; |
| | | } |
| | | |
| | | public String getPushTypeText() { |
| | | return pushTypeText; |
| | | } |
| | | |
| | | public void setPushTypeText(String pushTypeText) { |
| | | this.pushTypeText = pushTypeText; |
| | | } |
| | | |
| | | public String getClassifyId() { |
| | | return classifyId; |
| | | } |
| | | |
| | | public void setClassifyId(String classifyId) { |
| | | this.classifyId = classifyId; |
| | | } |
| | | |
| | | public String getClassifyName() { |
| | | return classifyName; |
| | | } |
| | | |
| | | public void setClassifyName(String classifyName) { |
| | | this.classifyName = classifyName; |
| | | } |
| | | |
| | | public List<SysIntParamVO> getSysIntParamVOs() { |
| | | return sysIntParamVOs; |
| | | } |
| | | |
| | | public void setSysIntParamVOs(List<SysIntParamVO> sysIntParamVOs) { |
| | | this.sysIntParamVOs = sysIntParamVOs; |
| | | } |
| | | |
| | | public List<SysIntHeaderVO> getSysIntHeaderVOs() { |
| | | return sysIntHeaderVOs; |
| | | } |
| | | |
| | | public void setSysIntHeaderVOs(List<SysIntHeaderVO> sysIntHeaderVOs) { |
| | | this.sysIntHeaderVOs = sysIntHeaderVOs; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "SysIntInfoVO{" + |
| | | "authorityOid='" + authorityOid + '\'' + |
| | | ", authorityOidName='" + authorityOidName + '\'' + |
| | | ", authorityType='" + authorityType + '\'' + |
| | | ", authorityTypeText='" + authorityTypeText + '\'' + |
| | | ", userAccount='" + userAccount + '\'' + |
| | | ", userCode='" + userCode + '\'' + |
| | | ", token='" + token + '\'' + |
| | | ", interfaceFunction='" + interfaceFunction + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", interfaceType='" + interfaceType + '\'' + |
| | | ", interfaceTypeText='" + interfaceTypeText + '\'' + |
| | | ", paramType='" + paramType + '\'' + |
| | | ", paramTypeText='" + paramTypeText + '\'' + |
| | | ", requestMethod='" + requestMethod + '\'' + |
| | | ", requestMethodText='" + requestMethodText + '\'' + |
| | | ", classifyOid='" + classifyOid + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", sysBaseOid='" + sysBaseOid + '\'' + |
| | | ", sysBaseId='" + sysBaseId + '\'' + |
| | | ", sysBaseName='" + sysBaseName + '\'' + |
| | | ", requestUrl='" + requestUrl + '\'' + |
| | | ", returnType='" + returnType + '\'' + |
| | | ", returnTypeText='" + returnTypeText + '\'' + |
| | | ", sourceSystemOid='" + sourceSystemOid + '\'' + |
| | | ", sourceSysName='" + sourceSysName + '\'' + |
| | | ", sourceSysId='" + sourceSysId + '\'' + |
| | | ", sourceSystemOidName='" + sourceSystemOidName + '\'' + |
| | | ", targetSystemOid='" + targetSystemOid + '\'' + |
| | | ", targetSysName='" + targetSysName + '\'' + |
| | | ", targetSysId='" + targetSysId + '\'' + |
| | | ", targetSystemOidName='" + targetSystemOidName + '\'' + |
| | | ", classPath='" + classPath + '\'' + |
| | | ", dataFlowType='" + dataFlowType + '\'' + |
| | | ", dataFlowTypeText='" + dataFlowTypeText + '\'' + |
| | | ", btmTypeId='" + btmTypeId + '\'' + |
| | | ", btmTypeName='" + btmTypeName + '\'' + |
| | | ", namespace='" + namespace + '\'' + |
| | | ", soapAction='" + soapAction + '\'' + |
| | | ", cxfAxis='" + cxfAxis + '\'' + |
| | | ", targetName='" + targetName + '\'' + |
| | | ", pushType='" + pushType + '\'' + |
| | | ", pushTypeText='" + pushTypeText + '\'' + |
| | | ", classifyId='" + classifyId + '\'' + |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", sysIntParamVOs=" + sysIntParamVOs + |
| | | ", sysIntHeaderVOs=" + sysIntHeaderVOs + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/SysIntBaseVO.java ÐÞ¸Ä |
| | |
| | | * @author lihang |
| | | * @date 2022-03-07 |
| | | */ |
| | | public class SysIntBaseVO extends BaseModelVO { |
| | | public class DockingSystemVO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | |
| | | /**** |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | private String getNodeLinkName; |
| | | private String nodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | |
| | | this.nodeLink = nodeLink; |
| | | } |
| | | |
| | | public String getGetNodeLinkName() { |
| | | return getNodeLinkName; |
| | | public String getNodeLinkName() { |
| | | return nodeLinkName; |
| | | } |
| | | |
| | | public void setGetNodeLinkName(String getNodeLinkName) { |
| | | this.getNodeLinkName = getNodeLinkName; |
| | | public void setNodeLinkName(String nodeLinkName) { |
| | | this.nodeLinkName = nodeLinkName; |
| | | } |
| | | |
| | | public String getPid() { |
| | |
| | | return "DockingPreClassifyDTO{" + |
| | | "className='" + className + '\'' + |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", nodeLinkName='" + nodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", dockingPreViewModelDTOList=" + dockingPreViewModelDTOList + |
| | | '}'; |
| | |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | @ApiModelProperty(value = "龿¥åç§°") |
| | | private String getNodeLinkName; |
| | | private String nodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | |
| | | /**** |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | private String getNodeLinkName; |
| | | private String nodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | |
| | | this.nodeLink = nodeLink; |
| | | } |
| | | |
| | | public String getGetNodeLinkName() { |
| | | return getNodeLinkName; |
| | | public String getNodeLinkName() { |
| | | return nodeLinkName; |
| | | } |
| | | |
| | | public void setGetNodeLinkName(String getNodeLinkName) { |
| | | this.getNodeLinkName = getNodeLinkName; |
| | | public void setNodeLinkName(String nodeLinkName) { |
| | | this.nodeLinkName = nodeLinkName; |
| | | } |
| | | |
| | | public String getPid() { |
| | |
| | | return "DockingPreClassifyVO{" + |
| | | "className='" + className + '\'' + |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", nodeLinkName='" + nodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", dockingPreViewModelVOList=" + dockingPreViewModelVOList + |
| | | '}'; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo.collection; |
| | | |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * 屿§æ å°ä¿åæ¶åéå对象æ å° |
| | | */ |
| | | public class DockingPreAttrMappingVOList implements Serializable { |
| | | |
| | | private List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList; |
| | | |
| | | public List<DockingPreAttrMappingVO> getDockingPreAttrMappingVOList() { |
| | | return dockingPreAttrMappingVOList; |
| | | } |
| | | |
| | | public void setDockingPreAttrMappingVOList(List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList) { |
| | | this.dockingPreAttrMappingVOList = dockingPreAttrMappingVOList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrMappingVOList{" + |
| | | "dockingPreAttrMappingVOList=" + dockingPreAttrMappingVOList + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.dto.DockingSystemDTO; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.service.IDockingSystemConfigService; |
| | | import com.vci.ubcs.code.service.IDockingSystemService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemConfigVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import com.vci.ubcs.code.wrapper.CodeRuleWrapper; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemConfigWrapper; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemWrapper; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | 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.*; |
| | | |
| | | /** |
| | | * ç æ®µåºç¡ä¿¡æ¯æ§å¶å¨ |
| | | * |
| | | * @author xiejun |
| | | * @date 2023-05-31 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/dockingManagement") |
| | | @Api(value = "æ¥å£ç®¡ç", tags = "ç¼ç ç¸å
³æ¥å£ç®¡çä¿¡æ¯") |
| | | public class DockingManagementController { |
| | | /*** |
| | | * éæç³»ç»ç®¡çæå¡ |
| | | */ |
| | | private final IDockingSystemService dockingSystemService; |
| | | /*** |
| | | * éææ¥å£é
ç½®æå¡ |
| | | */ |
| | | private final IDockingSystemConfigService dockingSystemConfigService; |
| | | |
| | | |
| | | |
| | | |
| | | /**ç³»ç»éæçç³»ç»ä¿¡æ¯å表 |
| | | * @param dockingSystem åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | *@return ç³»ç»éæçç³»ç»ä¿¡æ¯æ¾ç¤ºå¯¹è±¡å表 |
| | | */ |
| | | @GetMapping("/gridSysIntBase") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "dockingSystem") |
| | | public R<IPage<DockingSystemVO>> page(DockingSystem dockingSystem, Query query) { |
| | | IPage<DockingSystem> pages = dockingSystemService.page(Condition.getPage(query), Condition.getQueryWrapper(dockingSystem)); |
| | | return R.data(DockingSystemWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * å¢å ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PostMapping( "/addSave") |
| | | public R<DockingSystemVO> addSave(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | boolean res= dockingSystemService.addSave(dockingSystemDTO); |
| | | return R.status(res); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹ ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PutMapping("/editSave") |
| | | public R<DockingSystemVO> editSave(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | DockingSystemVO dockingSystemVO = dockingSystemService.editSave(dockingSystemDTO); |
| | | return R.data(dockingSystemVO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å é¤ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delSystemData( DockingSystemDTO dockingSystemDTO) { |
| | | return R.status(dockingSystemService.delSystemData(dockingSystemDTO)); |
| | | } |
| | | /** |
| | | * ç³»ç»éæåºç¡ä¿¡æ¯å表 |
| | | * @param DockingSystemConfig åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | * @return ç³»ç»éæåºç¡ä¿¡æ¯æ¾ç¤ºå¯¹è±¡å表 |
| | | */ |
| | | @GetMapping("/gridSysIntInfo") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "DockingSystemConfig") |
| | | public R<IPage<DockingSystemConfigVO>> gridSysIntInfo(DockingSystemConfig DockingSystemConfig, Query query){ |
| | | IPage<DockingSystemConfig> pages = dockingSystemConfigService.page(Condition.getPage(query), Condition.getQueryWrapper(DockingSystemConfig)); |
| | | return R.data(DockingSystemConfigWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | } |
| | |
| | | return codeClassifyTemplateVO.getAttributes(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç±»idï¼è·ååç±» |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | |
| | | @Override |
| | | @GetMapping(CODE_GETBYID) |
| | | public CodeClassify getById(String classifyId) { |
| | | return plCodeClassifyService.getById(classifyId); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | |
| | | public interface DockingSystemConfigMapper extends BaseMapper<DockingSystemConfig> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | |
| | | public interface DockingSystemMapper extends BaseMapper<DockingSystem> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | public interface IDockingManagement { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-æ¥å£é
ç½®æå¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | public interface IDockingSystemConfigService extends IService<DockingSystemConfig> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.dto.DockingSystemDTO; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-éæç³»ç»æå¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | public interface IDockingSystemService extends IService<DockingSystem> { |
| | | /** |
| | | * å¢å ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | public boolean addSave(DockingSystemDTO dockingSystemDTO); |
| | | /** |
| | | * ä¿®æ¹ ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | DockingSystemVO editSave(DockingSystemDTO dockingSystemDTO); |
| | | |
| | | |
| | | boolean delSystemData(DockingSystemDTO dockingSystemDTO); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | /*** |
| | | * 系統管çç¸å
³æå¡ |
| | | */ |
| | | public interface IDokingSysManaentService { |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | /** |
| | | * ç¼ç ä¿¡æ¯ æå¡å®ç°ç±» |
| | | * |
| | | * @author xiej |
| | | * @author xiejun |
| | | * @since 2023-05-17 |
| | | */ |
| | | @Service |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.mapper.DockingSystemConfigMapper; |
| | | import com.vci.ubcs.code.service.IDockingSystemConfigService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Map; |
| | | import java.util.function.Function; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-æ¥å£é
ç½®æå¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | @Service |
| | | public class DockingSystemConfigServiceImpl extends ServiceImpl<DockingSystemConfigMapper, DockingSystemConfig> implements IDockingSystemConfigService{ |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.DockingSystemDTO; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.mapper.DockingSystemMapper; |
| | | import com.vci.ubcs.code.service.IDockingSystemService; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemWrapper; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_EDITING; |
| | | import static com.vci.ubcs.code.constant.MdmLifeCycleConstant.CODE_RULE_LC; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-éæç³»ç»æå¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | @Service |
| | | public class DockingSystemServiceImpl extends ServiceImpl<DockingSystemMapper, DockingSystem> implements IDockingSystemService { |
| | | /*** |
| | | * éæç³»ç»ç®¡çæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingSystemMapper dockingSystemMapper; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | | */ |
| | | @Autowired |
| | | private RevisionModelUtil revisionModelUtil; |
| | | @Override |
| | | public boolean addSave(DockingSystemDTO dockingSystemDTO) { |
| | | |
| | | VciBaseUtil.alertNotNull(dockingSystemDTO, "éè¦æ·»å çæ°æ®å¯¹è±¡"); |
| | | //å°DTO转æ¢ä¸ºDO |
| | | DockingSystem dockingSystem = Objects.requireNonNull(BeanUtil.copy(dockingSystemDTO, DockingSystem.class)); |
| | | String userId = AuthUtil.getUserId().toString(); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingSystem, MdmBtmTypeConstant.SYS_INT_BASE); |
| | | dockingSystem.setLctid(CODE_RULE_LC); |
| | | dockingSystem.setLcStatus(FRAMEWORK_RELEASE_EDITING); |
| | | return dockingSystemMapper.insert(dockingSystem)>0; |
| | | } |
| | | /** |
| | | * ä¿®æ¹ ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public DockingSystemVO editSave(DockingSystemDTO dockingSystemDTO) { |
| | | VciBaseUtil.alertNotNull(dockingSystemDTO,"æ°æ®å¯¹è±¡",dockingSystemDTO.getOid(),"ç³»ç»éæçç³»ç»ä¿¡æ¯ä¸»é®"); |
| | | //å°DTO转æ¢ä¸ºDO |
| | | DockingSystem dockingSystem = dockingSystemMapper.selectById(dockingSystemDTO.getOid()); |
| | | revisionModelUtil.copyFromDTOIgnore(dockingSystemDTO,dockingSystem); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingSystem); |
| | | dockingSystemMapper.updateById(dockingSystem); |
| | | return DockingSystemWrapper.build().entityVO(dockingSystem); |
| | | } |
| | | |
| | | @Override |
| | | public boolean delSystemData(DockingSystemDTO dockingSystemDTO) { |
| | | VciBaseUtil.alertNotNull(dockingSystemDTO,"ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®å¯¹è±¡",dockingSystemDTO.getOid(),"ç³»ç»éæçç³»ç»ä¿¡æ¯ç主é®"); |
| | | /*DockingSystem dockingSystem = dockingSystemMapper.selectById(dockingSystemDTO.getOid()); |
| | | BaseResult baseResult = checkIsCanDeleteForDO(sysIntBaseDTO,sysIntBaseDO); |
| | | if(baseResult.isSuccess()) { |
| | | |
| | | }else{ |
| | | return baseResult; |
| | | } |
| | | //æ§è¡å é¤æä½ |
| | | BatchCBO batchCBO = sysIntBaseMapper.deleteByPrimaryKey(sysIntBaseDO.getOid()); |
| | | return (batchCBO!=null && batchCBO.getDeleteCbos() !=null &&batchCBO.getDeleteCbos().size() > 0)?BaseResult.successMsg(DELETE_SUCCESS):BaseResult.fail(DELETE_FAIL); |
| | | */ |
| | | return false; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemConfigVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | public class DockingSystemConfigWrapper extends BaseEntityWrapper<DockingSystemConfig, DockingSystemConfigVO> { |
| | | public static DockingSystemConfigWrapper build() { |
| | | return new DockingSystemConfigWrapper(); |
| | | } |
| | | @Override |
| | | public DockingSystemConfigVO entityVO(DockingSystemConfig entity) { |
| | | DockingSystemConfigVO vo = Objects.requireNonNull(BeanUtil.copy(entity, DockingSystemConfigVO.class)); |
| | | return vo; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingSystemConfigVO> entityVOs(Collection<DockingSystemConfig> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<DockingSystemConfigVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(DockingSystem -> { |
| | | vos.add(entityVO(DockingSystem)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingSystemConfig> voentitys(Collection<DockingSystemConfigVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingSystemConfig>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingSystemConfig voentity(DockingSystemConfigVO vo) { |
| | | DockingSystemConfig entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingSystemConfig.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | public class DockingSystemWrapper extends BaseEntityWrapper<DockingSystem, DockingSystemVO> { |
| | | public static DockingSystemWrapper build() { |
| | | return new DockingSystemWrapper(); |
| | | } |
| | | @Override |
| | | public DockingSystemVO entityVO(DockingSystem entity) { |
| | | DockingSystemVO vo = Objects.requireNonNull(BeanUtil.copy(entity, DockingSystemVO.class)); |
| | | return vo; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingSystemVO> entityVOs(Collection<DockingSystem> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<DockingSystemVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(DockingSystem -> { |
| | | vos.add(entityVO(DockingSystem)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingSystem> voentitys(Collection<DockingSystemVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingSystem>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingSystem voentity(DockingSystemVO vo) { |
| | | DockingSystem entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingSystem.class)); |
| | | return entity; |
| | | } |
| | | } |
| | |
| | | <if test="oid != null "> |
| | | codeclassify0.parentCodeClassifyOid = '${oid}' |
| | | </if> |
| | | <if test="oid = null "> |
| | | <if test="oid == null "> |
| | | codeclassify0.parentCodeClassifyOid is null |
| | | </if> |
| | | CONNECT BY PRIOR codeclassify0.OID = codeclassify0.parentCodeClassifyOid |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.code.mapper.DockingSystemConfigMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="plDockingLogResultMap" type="com.vci.ubcs.code.entity.DockingSystemConfig"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | | <result column="BTMNAME" property="btmname"/> |
| | | <result column="LASTR" property="lastR"/> |
| | | <result column="FIRSTR" property="firstR"/> |
| | | <result column="LASTV" property="lastV"/> |
| | | <result column="FIRSTV" property="firstV"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createTime"/> |
| | | <result column="LASTMODIFIER" property="lastModifier"/> |
| | | <result column="LASTMODIFYTIME" property="lastModifyTime"/> |
| | | <result column="REVISIONRULE" property="revisionRule"/> |
| | | <result column="VERSIONRULE" property="versionRule"/> |
| | | <result column="REVISIONSEQ" property="revisionSeq"/> |
| | | <result column="REVISIONVALUE" property="revisionValue"/> |
| | | <result column="VERSIONSEQ" property="versionSeq"/> |
| | | <result column="VERSIONVALUE" property="versionValue"/> |
| | | <result column="LCTID" property="lctid"/> |
| | | <result column="LCSTATUS" property="lcStatus"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="ID" property="id"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="DESCRIPTION" property="description"/> |
| | | <result column="OWNER" property="owner"/> |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | <result column="AUTHORITYOID" property="authorityOid"/> |
| | | <result column="INTERFACEFUNCTION" property="interfaceFunction"/> |
| | | <result column="INTERFACETYPE" property="interfaceType"/> |
| | | <result column="PARAMTYPE" property="paramType"/> |
| | | <result column="REQUESTMETHOD" property="requestMethod"/> |
| | | <result column="TYPE" property="pushType"/> |
| | | <result column="CLASSIFYID" property="classifyId"/> |
| | | <result column="CLASSIFYNAME" property="classifyName"/> |
| | | <result column="PUSHTYPE" property="pushType"/> |
| | | <result column="USEDFLAG" property="usedFlag"/> |
| | | <result column="SYSBASEOID" property="sysBaseOid"/> |
| | | <result column="SYSBASEID" property="sysBaseId"/> |
| | | <result column="SYSBASENAME" property="sysBaseName"/> |
| | | <result column="RETURNTYPE" property="returnType"/> |
| | | <result column="REQUESTURL" property="requestUrl"/> |
| | | <result column="SOURCESYSTEMOID" property="sourceSystemOid"/> |
| | | <result column="SOURCESYSNAME" property="sourceSysName"/> |
| | | <result column="SOURCESYSID" property="sourceSysId"/> |
| | | <result column="TARGETSYSTEMOID" property="targetSystemOid"/> |
| | | <result column="TARGETSYSNAME" property="targetSysName"/> |
| | | <result column="TARGETSYSID" property="targetSysId"/> |
| | | <result column="CLASSPATH" property="classPath"/> |
| | | <result column="DATAFLOWTYPE" property="dataFlowType"/> |
| | | |
| | | <result column="BTMTYPEID" property="btmTypeId"/> |
| | | <result column="BTMTYPENAME" property="btmTypeName"/> |
| | | <result column="NAMESPACE" property="namespace"/> |
| | | <result column="SOAPACTION" property="soapAction"/> |
| | | <result column="CXFAXIS" property="cxfAxis"/> |
| | | |
| | | </resultMap> |
| | | |
| | | |
| | | </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.code.mapper.DockingSystemMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="plDockingLogResultMap" type="com.vci.ubcs.code.entity.DockingSystem"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | | <result column="BTMNAME" property="btmname"/> |
| | | <result column="LASTR" property="lastR"/> |
| | | <result column="FIRSTR" property="firstR"/> |
| | | <result column="LASTV" property="lastV"/> |
| | | <result column="FIRSTV" property="firstV"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createTime"/> |
| | | <result column="LASTMODIFIER" property="lastModifier"/> |
| | | <result column="LASTMODIFYTIME" property="lastModifyTime"/> |
| | | <result column="REVISIONRULE" property="revisionRule"/> |
| | | <result column="VERSIONRULE" property="versionRule"/> |
| | | <result column="REVISIONSEQ" property="revisionSeq"/> |
| | | <result column="REVISIONVALUE" property="revisionValue"/> |
| | | <result column="VERSIONSEQ" property="versionSeq"/> |
| | | <result column="VERSIONVALUE" property="versionValue"/> |
| | | <result column="LCTID" property="lctid"/> |
| | | <result column="LCSTATUS" property="lcStatus"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="ID" property="id"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="DESCRIPTION" property="description"/> |
| | | <result column="OWNER" property="owner"/> |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.code.webservice.vo.collection.DockingPreAttrMappingVOList; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreApplyFormWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.validation.Valid; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | @PostMapping( "/batchAddSave") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "ä¿å屿§æ å°é
ç½®", notes = "dockingPreAttrMappingVOList") |
| | | public R batchSave(@Valid @RequestBody List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList){ |
| | | public R batchSave(@RequestBody DockingPreAttrMappingVOList dockingPreAttrMappingVOList){ |
| | | List<DockingPreAttrMappingVO> dockingPreAttrMappingVOs = dockingPreAttrMappingVOList.getDockingPreAttrMappingVOList(); |
| | | List<DockingPreAttrMappingVO> dockingPreAttrRangeVOS=new ArrayList<>(); |
| | | try { |
| | | dockingPreAttrRangeVOS = dockingPreAttrMappingService.batchAddSave(dockingPreAttrMappingVOList); |
| | | dockingPreAttrRangeVOS = dockingPreAttrMappingService.batchAddSave(dockingPreAttrMappingVOs); |
| | | }catch (Exception e){ |
| | | return R.fail("éå¢éæå±æ§æ å°é
ç½®ä¿å失败ï¼"+e.getMessage()); |
| | | } |
| | |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassifyArrayList.add(dockingPreClassify); |
| | | // è·å对åºçåç±»è§å¾æ¨¡å |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.webservice.entity.*; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrRangeService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.code.webservice.vo.DokingAttributeSerchVO; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrMappingWrapper; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrRangeWrapper; |
| | |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingPreAttrMappingMapper dockingPreAttrMappingMapper; |
| | | /*** |
| | | * ä¸»æ°æ®åç±»æå¡ |
| | | */ |
| | | @Autowired(required = true) |
| | | private ICodeClassifyClient codeClassifyClient; |
| | | |
| | | /*** |
| | | * ä¸å¡æ°æ®å±æ§æå¡ |
| | |
| | | private IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | |
| | | /*** |
| | | * éå¢åç±»è§å¾æ¨¡åæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | |
| | | private IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | @Lazy |
| | | private IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | /*** |
| | | * æ ¹æ®ä¸»æ°æ®å类主é®è·åå类信æ¯é
ç½® |
| | |
| | | VciBaseUtil.alertNotNull(codeClassifyId,"ä¸»æ°æ®å类主é®"); |
| | | VciBaseUtil.alertNotNull(sourceClassifyId,"éå¢å类主é®"); |
| | | //é¦å
è·åå类模æ¿å±æ§ï¼ç¶åä¸å±æ§é
ç½®åæ¯è¾ï¼ä»¥é²è¢«æå¢å 屿§çå¯è½ |
| | | DockingPreClassify dockingPreClassify=dockingPreClassifyService.getById(sourceClassifyId); |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList= dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getSourceClassifyId,sourceClassifyId)); |
| | | List<DockingPreAttrMapping> dockingPreAttrMappings=this.selectByWrapper(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getSourceClassifyId, sourceClassifyId).eq(DockingPreAttrMapping::getTargetClassifyId, codeClassifyId)); |
| | | Map<String/**屿§ä¸»é®**/, DockingPreAttrMapping> dockingPreAttrMappingMap = dockingPreAttrMappings.stream().filter(cbo -> cbo != null).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getMetaListId(), t -> t)); |
| | | |
| | | List<DockingPreViewModel> dockingPreViewModelList= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,sourceClassifyId)); |
| | | Map<String,DockingPreViewModel> dockingPreViewModelMap=dockingPreViewModelList.stream().filter(cbo -> cbo != null).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getOid(), t -> t)); |
| | | CodeClassify codeClassify= codeClassifyClient.getById(codeClassifyId); |
| | | List<DockingPreAttrMapping> newDockingPreAttrMappingList=new ArrayList<>(); |
| | | dockingPreMetaAttrList.stream().forEach(dockingPreMetaAttr -> { |
| | | String attrOid=dockingPreMetaAttr.getOid(); |
| | | DockingPreAttrMapping dockingPreAttrMapping=new DockingPreAttrMapping(); |
| | | if(dockingPreAttrMappingMap.containsKey(attrOid)){ |
| | | dockingPreAttrMapping= dockingPreAttrMappingMap.get(attrOid); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreAttrMapping); |
| | | }else{ |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreAttrMapping, MdmBtmTypeConstant.DOCKING_PRE_JAPPLYFORM); |
| | | dockingPreAttrMapping.setMetaListId(dockingPreMetaAttr.getOid());//屿§ä¸»é® |
| | | dockingPreAttrMapping.setSourceAttrKey(dockingPreMetaAttr.getEnglishName());//è±æåç§° |
| | | dockingPreAttrMapping.setSourceAttrName(dockingPreMetaAttr.getChineseName());//䏿åç§° |
| | | dockingPreAttrMapping.setSourceClassifyId(dockingPreMetaAttr.getSourceClassifyId());//éå¢åç±»oid |
| | | dockingPreAttrMapping.setSourceClassifyName("");//åç±»åç§° |
| | | DockingPreViewModel dockingPreViewModel=new DockingPreViewModel(); |
| | | if(dockingPreViewModelMap.containsKey(dockingPreMetaAttr.getViewModelId())){ |
| | | dockingPreViewModel=dockingPreViewModelMap.get(dockingPreMetaAttr.getViewModelId()); |
| | | } |
| | | dockingPreAttrMapping.setSourceClassifyName(dockingPreClassify.getClassName());//åç±»åç§° |
| | | dockingPreAttrMapping.setViewModeId(dockingPreMetaAttr.getViewModelId());//模åè§å¾id |
| | | dockingPreAttrMapping.setViewModelName("");//å类模ååç§° |
| | | dockingPreAttrMapping.setViewName("");//å类模ååç§° |
| | | |
| | | dockingPreAttrMapping.setViewModelName(dockingPreViewModel.getName());//å类模ååç§° |
| | | dockingPreAttrMapping.setViewName(dockingPreViewModel.getViewName());//å类模ååç§° |
| | | dockingPreAttrMapping.setTargetClassifyId(codeClassifyId); |
| | | dockingPreAttrMapping.setTargetClassifyName(codeClassify.getName()); |
| | | } |
| | | newDockingPreAttrMappingList.add(dockingPreAttrMapping); |
| | | }); |
| | | return dockingPreAttrMappingDO2VOS(dockingPreAttrMappings,false); |
| | | return dockingPreAttrMappingDO2VOS(newDockingPreAttrMappingList,false); |
| | | } |
| | | |
| | | /*** |
| | |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassify.setVersionValue(version); |
| | | dockingPreClassifyList.add(dockingPreClassify); |
| | |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassifyArrayList.add(dockingPreClassify); |
| | | // è·å对åºçåç±»è§å¾æ¨¡å |
| | |
| | | DockingMainData mainData = new DockingMainData(); |
| | | mainData.setApplyEntId(dockingApplyUnitCode);//ç³è¯·åä½ä»£ç |
| | | mainData.setApplyId(apllyCode);//ç³è¯·åå· |
| | | mainData.setClassName(dockingPreClassify.getGetNodeLinkName());//åç±»åç§° |
| | | mainData.setClassName(dockingPreClassify.getNodeLinkName());//åç±»åç§° |
| | | mainData.setCreateBy(curUserName);// |
| | | mainData.setSecretLevel("å
é¨");//å¯çº§ï¼é»è®¤ä¸ºå
é¨ |
| | | mainData.setViewInfos(getviewInfos(optationtype,dockingPreClassify, dataBusinessObject));//è·åè§å¾æ¨¡å |
| | |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | <result column="CLASSNAME" property="className"/> |
| | | <result column="NODELINK" property="nodeLink"/> |
| | | <result column="NODELINKNAME" property="getNodeLinkName"/> |
| | | <result column="NODELINKNAME" property="nodeLinkName"/> |
| | | <result column="PID" property="pid"/> |
| | | </resultMap> |
| | | <select id="selectCompanyGroupClassifyVOByTree" resultMap="plDockingClassifyResultMap"> |
| | |
| | | codeclassify0.NODELINKNAME as nodelinkname, |
| | | codeclassify0.PID as pid |
| | | from PL_CODE_JCLASSIFY codeclassify0 |
| | | start with |
| | | <!--<where>--> |
| | | <if test="oid != null and oid != ''"> |
| | | start with |
| | | <if test="oid != null"> |
| | | codeclassify0.pid = '${oid}' |
| | | connect by prior codeclassify0.oid =codeclassify0.pid |
| | | </if> |
| | | <!-- <if test="oid = null"> |
| | | <if test="oid == null "> |
| | | codeclassify0.pid is null |
| | | </if>--> |
| | | </if> |
| | | <!--</where>--> |
| | | |
| | | connect by prior codeclassify0.oid =codeclassify0.pid |
| | | order by id asc |
| | | </select> |
| | | |