Merge remote-tracking branch 'origin/master'
已修改78个文件
已删除31个文件
已重命名1个文件
已添加18个文件
| | |
| | | "classlist-polyfill": "^1.2.0", |
| | | "crypto-js": "^4.0.0", |
| | | "element-ui": "^2.15.6", |
| | | "instead": "^1.0.3", |
| | | "js-base64": "^2.5.1", |
| | | "js-cookie": "^2.2.0", |
| | | "js-md5": "^0.7.3", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const referDataGrid = (page, limit, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/referBtmTypeController/referDataGrid', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | page, |
| | | limit, |
| | | } |
| | | }) |
| | | } |
| | | export const gridAttributesByBtmId = (page, limit, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/referBtmTypeController/gridAttributesByBtmId', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | page, |
| | | limit, |
| | | } |
| | | }) |
| | | } |
| | |
| | | import request from "@/router/axios";
|
| | |
|
| | | // è·åè¡¨åæ¨¡æ¿æ°æ®
|
| | | export const getFormTemplate = (params) => {
|
| | | export function getFormTemplate(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | |
| | | })
|
| | | }
|
| | | // è¡¨åæ°æ®æ§è¡ä»£ç
|
| | | export const executeCode = (params) => {
|
| | | export function executeCode(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | |
| | | })
|
| | | }
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | export const findLike = (data) => {
|
| | | export function findLike(data) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/resembleQuery',
|
| | | method: 'post',
|
| | |
| | | })
|
| | | }
|
| | |
|
| | | // è·åæ°æ®
|
| | | export const getCodeRule = (params) => {
|
| | | // è·åç å¼ç³è¯·æ°æ®
|
| | | export function getCodeRule(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getCodeRuleByClassifyOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | |
|
| | | // è·å详æ
|
| | | export function getFormDetail(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getDataByOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | } |
| | |
| | | return request({ |
| | | url: '/api/ubcs-omd/link-type/get-from-table', |
| | | method: 'get', |
| | | params: { |
| | | params: { |
| | | domain: domain |
| | | } |
| | | }) |
| | |
| | | }) |
| | | } |
| | | |
| | | export const btmPage = (current,size,params) => { |
| | | export const linkPage = (current,size,params) => { |
| | | return request ({ |
| | | url: '/api/ubcs-omd/link-type/page', |
| | | method: 'get', |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" |
| | | v-loading="loading" |
| | | :data="data" |
| | | :option="option" |
| | | :page="page" |
| | | @sort-change="sortChange" |
| | | @selection-change="selectionChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menu"> |
| | | <el-button type="text">æåæé®</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <div> |
| | | <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick" @cell-dblclick="dbclick"> |
| | | <div v-for="(item,index) in this.tableHeadData" :key="index"> |
| | | <el-table-column :label="item.label" :prop="item.prop"> |
| | | <!-- ç¼è¾åå±ç¤ºé»è¾ --> |
| | | <template slot-scope="{ row }"> |
| | | <el-input v-if="editingRow === row && editShow== item.prop" v-model="row[item.prop]" @blur="saveRow"></el-input> |
| | | <span v-else>{{row[item.prop]}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </div> |
| | | <el-table-column fixed="right" label="æä½" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="small" type="text" @click.native.prevent="enumDeleteRow(scope.$index, tableData)"> |
| | | ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <template> |
| | | <div style="display: flex;justify-content: right;margin-top: 15px"> |
| | | <el-button type="primary" size="small">ä¿å</el-button> |
| | | <el-button size="small" @click="enumVisible=false">åæ¶</el-button> |
| | | </div> |
| | | </template> |
| | | <!-- <avue-crud ref="crud"--> |
| | | <!-- v-loading="loading"--> |
| | | <!-- :data="data"--> |
| | | <!-- :option="option"--> |
| | | <!-- :page="page"--> |
| | | <!-- @sort-change="sortChange"--> |
| | | <!-- @selection-change="selectionChange"--> |
| | | <!-- @on-load="onLoad">--> |
| | | <!-- <template slot="menu">--> |
| | | <!-- <el-button type="text">æåæé®</el-button>--> |
| | | <!-- </template>--> |
| | | <!-- <template slot="menuLeft">--> |
| | | <!-- </template>--> |
| | | <!-- </avue-crud>--> |
| | | |
| | | <div class="testbox"> |
| | | <div style="margin-top: 10px;display: flex;flex-wrap: wrap;width: 100%;"> |
| | | <el-button size="small" type="primary" plain @click="addvisible=true">å¢å |
| | | <FormTemplateDialog |
| | | :visible.sync="addvisible" |
| | | :type="add" |
| | | :templateOid="this.templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | > |
| | | </FormTemplateDialog></el-button> |
| | | |
| | | <el-button size="small" type="primary" plain @click="editvisible=true">ç¼è¾ |
| | | <FormTemplateDialog |
| | | :visible.sync="editvisible" |
| | | :type="edit" |
| | | :templateOid="this.templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | ></FormTemplateDialog></el-button> |
| | | |
| | | <el-button size="small" type="primary" plain>æ¹é导å
¥ç³è¯·</el-button> |
| | | <el-button size="small" type="primary" plain>å岿°æ®å¯¼å
¥</el-button> |
| | | <el-button size="small" type="primary" plain>æ¹éç³è¯·ç¼ç </el-button> |
| | | <el-button size="small" type="primary" plain>æ¹éåå¸</el-button> |
| | | <el-button size="small" type="primary" plain>æ¥çæµç¨åå²</el-button> |
| | | <el-button size="small" type="primary" plain>å é¤</el-button> |
| | | <el-button size="small" type="primary" plain>åå¸</el-button> |
| | | <el-button size="small" type="primary" plain>æ°æ®æ´æ¹</el-button> |
| | | <el-button size="small" type="primary" plain>åæ¶</el-button> |
| | | <el-button size="small" type="primary" plain>å¯¼åº |
| | | <transfer filter-placeholder="请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" ></transfer> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain @click="findvisible=true">æ¥è¯¢ |
| | | <advancedQuery :visible.sync="findvisible" :options="this.options"></advancedQuery> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain>ç¸ä¼¼é¡¹æ¥è¯¢</el-button> |
| | | <el-button size="small" type="primary" plain style="margin-left: 1px;margin-top:10px">å·æ°</el-button> |
| | | <el-input placeholder="请è¾å
¥å
³é®åæå车æ¥è¯¢" style="width: 180px;margin-left: 5px;margin-top:10px" size="small"></el-input> |
| | | </div> |
| | | <el-row style="height: 700px;width: 100%"> |
| | | <el-table :data="tableData" style="" @cell-click="handleCellClick" max-height="700" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table-column |
| | | type="selection" |
| | | fixed |
| | | width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | type="index" |
| | | fixed |
| | | label="åºå·" |
| | | width="55"> |
| | | </el-table-column> |
| | | <div v-for="(item,index) in this.tableHeadData" :key="index"> |
| | | <el-table-column :label="item.label" :prop="item.prop" :sortable="item.sortable" :width="item.width"> |
| | | <!-- ç¼è¾åå±ç¤ºé»è¾ --> |
| | | <template slot-scope="{ row }"> |
| | | <el-input v-if="editingRow === row && editShow== item.prop" v-model="row[item.prop]" @blur="saveRow"></el-input> |
| | | <span v-else>{{row[item.prop]}}</span> |
| | | <el-switch |
| | | v-if="editShow === 'true'" |
| | | v-model="row[item.prop]" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949"> |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | <!-- <el-table-column fixed="right" label="æä½" width="120" >--> |
| | | <!-- <template slot-scope="scope" >--> |
| | | <!-- <el-button size="small" type="text" @click.native.prevent="enumDeleteRow(scope.$index, tableData)">--> |
| | | <!-- ç§»é¤--> |
| | | <!-- </el-button>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | |
| | | </el-row> |
| | | </div> |
| | | <div class="block" style="display: flex;justify-content: flex-end"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage4" |
| | | :page-sizes="page.pageSizes" |
| | | :page-size="page.pageSizes" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="page.total"> |
| | | </el-pagination> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {MasterTable, TableData} from "@/api/GetItem"; |
| | | |
| | | export default { |
| | | name: "Crud.vue", |
| | | data() { |
| | | return { |
| | | addvisible:false, |
| | | editvisible:false, |
| | | findvisible:false, |
| | | templateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A", |
| | | codeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96", |
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96", |
| | | rowOid: '6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9', |
| | | disabledProp: ["id"], |
| | | editingRow:null, |
| | | editShow: "", |
| | | editAttr:"", |
| | | loading: false, |
| | | data: [], |
| | | options:{}, |
| | | option: { |
| | | //é»è®¤é«åº¦, |
| | | align: 'center', |
| | |
| | | } |
| | | }, |
| | | computed:{ |
| | | editable(){ |
| | | this.tableData.forEach(item=>{ |
| | | this.items=item |
| | | }) |
| | | return this.editShow === this.editingRow[this.items.prop]; |
| | | } |
| | | |
| | | }, |
| | | created() { |
| | | this.CrudHeaderRend(); |
| | |
| | | this.doLayout() |
| | | }, |
| | | methods: { |
| | | handleSizeChange(val){ |
| | | console.log(val) |
| | | }, |
| | | // çå¬åå
æ ¼ç¹å»äºä»¶å¹¶å卿£å¨ç¼è¾çè¡ |
| | | handleCellClick(row, column) { |
| | | this.editingRow = row; |
| | | this.editShow = column.property; |
| | | console.log( this.editingRow['name'], this.editShow) |
| | | }, |
| | | //æä¸¾æ³¨å
¥å é¤ |
| | | //å é¤ |
| | | enumDeleteRow(row) { |
| | | console.log(row) |
| | | this.tableData.splice(row, 1) |
| | |
| | | functionId: 5, |
| | | _: 1685067339479 |
| | | }).then(res => { |
| | | this.options=res.data.tableDefineVO.seniorQueryColumns |
| | | this.List = res.data.tableDefineVO.cols[0]; |
| | | this.List.forEach(item => { |
| | | let columnItem = { |
| | |
| | | templateOid: "A12826E4-2B66-6D56-DE30-92BB1D7F607F", |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | limit:9, |
| | | _: 1685089123575 |
| | | }).then(res => { |
| | | this.page.total = res.data.total; |
| | |
| | | }, |
| | | //å页巿° |
| | | async onLoad(val) { |
| | | console.log(val) |
| | | await TableData({ |
| | | templateOid: "A12826E4-2B66-6D56-DE30-92BB1D7F607F", |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | |
| | | }) |
| | | }, |
| | | //å¤é |
| | | selectionChange(row) { |
| | | handleSelectionChange(row) { |
| | | console.log(row) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style lang="scss" scoped> |
| | | .testbox { |
| | | .el-table--scrollable-x .el-table__body-wrapper { |
| | | overflow: auto !important; |
| | | } |
| | | |
| | | .el-table__fixed-right-patch { |
| | | background-color: #f5f7fa !important; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template>
|
| | | <FormTempalte
|
| | | ref="FormTempalte"
|
| | | :visible="visible"
|
| | | :selfColumnType="selfColumnType"
|
| | | :selfColumnConfig="selfColumnConfig"
|
| | | :columnList="columnList"
|
| | |
| | |
|
| | | <script>
|
| | | import { getCodeRule } from "@/api/formTemplate.js";
|
| | | import FormTempalte from "./FormTempalte.vue";
|
| | | export default {
|
| | | name: "CodeApply",
|
| | | components: { FormTempalte },
|
| | | components: { FormTempalte: () => import('./FormTempalte.vue') },
|
| | | props: {
|
| | | visible: {
|
| | | type: Boolean,
|
| | | default: false
|
| | | default: false,
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | |
| | | },
|
| | | },
|
| | | },
|
| | | columnList: [],
|
| | | columnList: [
|
| | | {
|
| | | btmname: "codebasicsec",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codeDateFormatStr: "",
|
| | | codeFillFlag: "",
|
| | | codeFillLength: "",
|
| | | codeFillLimit: 0,
|
| | | codeFillSeparator: "",
|
| | | codeFillType: "",
|
| | | codeFillTypeText: "",
|
| | | codeGetValueType: "",
|
| | | codeGetValueTypeText: "",
|
| | | codeLevelType: "",
|
| | | codeLevelTypeText: "",
|
| | | codeLevelValue: 0,
|
| | | codeSecLength: "10",
|
| | | codeSecLengthType: "code_sec_length_variable",
|
| | | codeSecLengthTypeText: "",
|
| | | componentCodeFlag: "false",
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:23:33.000",
|
| | | creator: "1",
|
| | | customCodeSerialClass: "",
|
| | | data: null,
|
| | | description: "",
|
| | | displayFlag: "false",
|
| | | filterSql: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | fixedValueVOList: [
|
| | | {
|
| | | btmname: "codefixedvalue",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codefixedsecoid: "5591ED23-D218-8B84-9789-1E5EB21A49B9",
|
| | | codefixedsecoidName: null,
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:47:45.000",
|
| | | creator: "1",
|
| | | data: null,
|
| | | description: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | id: "002",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:47:45.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | name: "",
|
| | | nameOid: "B8BB82F0-9B9E-3E7C-4324-62F13A64B369",
|
| | | oid: "375AE030-DCB2-B116-1C71-DA1AB971E249",
|
| | | ordernum: 0,
|
| | | owner: "1",
|
| | | revisionOid: "9BF1CABA-EB6D-0B80-0938-D4DC779D5AF0",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | ts: "2023-06-02 10:47:45.635",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | {
|
| | | btmname: "codefixedvalue",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codefixedsecoid: "5591ED23-D218-8B84-9789-1E5EB21A49B9",
|
| | | codefixedsecoidName: null,
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:47:42.000",
|
| | | creator: "1",
|
| | | data: null,
|
| | | description: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | id: "001",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:47:42.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | name: "",
|
| | | nameOid: "804FA254-1158-C355-9CE2-7CA444955AFC",
|
| | | oid: "821F6250-C763-FB0E-92F5-A9C07F1B951C",
|
| | | ordernum: 0,
|
| | | owner: "1",
|
| | | revisionOid: "6CF50C9D-2606-948A-03B1-26158627CE33",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | ts: "2023-06-02 10:47:42.527",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | ],
|
| | | getValueClass: "",
|
| | | id: "0001",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:23:33.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | matchClassifyValueFlag: "",
|
| | | name: "åºå®ç 段",
|
| | | nameOid: "C01CA64B-8358-D3A7-D38D-9DE7A5D748C8",
|
| | | nullableFlag: "false",
|
| | | oid: "5591ED23-D218-8B84-9789-1E5EB21A49B9",
|
| | | orderNum: 1,
|
| | | owner: "1",
|
| | | parentClassifySecOid: "",
|
| | | parentClassifySecText: "",
|
| | | pkCodeRule: "B95872A6-9CEA-D490-8F1B-9D26548CAF96",
|
| | | referAttributeId: "",
|
| | | referAttributeName: "",
|
| | | referBtmId: "",
|
| | | referBtmName: "",
|
| | | referCodeClassifyOid: "",
|
| | | referCodeClassifyOidName: "",
|
| | | referConfig: "",
|
| | | referValueInfo: "",
|
| | | revisionOid: "EE7A9BC0-FEF3-061B-A750-132121D86D83",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | sectype: "codefixedsec",
|
| | | sectypeText: "åºå®ç 段",
|
| | | serialDependFlag: "false",
|
| | | serialDependOrder: 0,
|
| | | serialStart: "",
|
| | | serialStep: 0,
|
| | | ts: "2023-06-02 10:23:33.733",
|
| | | valueCutLength: 0,
|
| | | valueCutType: "code_cut_none",
|
| | | valueCutTypeText: "䏿ªå",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | {
|
| | | btmname: "codebasicsec",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codeDateFormatStr: "",
|
| | | codeFillFlag: "",
|
| | | codeFillLength: "",
|
| | | codeFillLimit: 0,
|
| | | codeFillSeparator: "0",
|
| | | codeFillType: "code_fill_right",
|
| | | codeFillTypeText: "",
|
| | | codeGetValueType: "",
|
| | | codeGetValueTypeText: "",
|
| | | codeLevelType: "",
|
| | | codeLevelTypeText: "",
|
| | | codeLevelValue: 0,
|
| | | codeSecLength: "10",
|
| | | codeSecLengthType: "",
|
| | | codeSecLengthTypeText: "",
|
| | | componentCodeFlag: "false",
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:24:07.000",
|
| | | creator: "1",
|
| | | customCodeSerialClass: "",
|
| | | data: null,
|
| | | description: "å¯åç æ®µ",
|
| | | displayFlag: "false",
|
| | | filterSql: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | fixedValueVOList: null,
|
| | | getValueClass: "",
|
| | | id: "0002",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:24:07.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | matchClassifyValueFlag: "",
|
| | | name: "å¯åç æ®µ",
|
| | | nameOid: "02AED8DD-C40D-7E00-C88A-3DB65A3027A4",
|
| | | nullableFlag: "false",
|
| | | oid: "A4508759-4213-2F07-04ED-A8C224303F44",
|
| | | orderNum: 2,
|
| | | owner: "1",
|
| | | parentClassifySecOid: "",
|
| | | parentClassifySecText: "",
|
| | | pkCodeRule: "B95872A6-9CEA-D490-8F1B-9D26548CAF96",
|
| | | referAttributeId: "",
|
| | | referAttributeName: "",
|
| | | referBtmId: "",
|
| | | referBtmName: "",
|
| | | referCodeClassifyOid: "",
|
| | | referCodeClassifyOidName: "",
|
| | | referConfig: "",
|
| | | referValueInfo: "",
|
| | | revisionOid: "E4C77B6E-13AE-55EB-4147-64B4526BFEE4",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | sectype: "codevariablesec",
|
| | | sectypeText: "å¯åç æ®µ",
|
| | | serialDependFlag: "false",
|
| | | serialDependOrder: 0,
|
| | | serialStart: "",
|
| | | serialStep: 0,
|
| | | ts: "2023-06-02 10:24:07.804",
|
| | | valueCutLength: 0,
|
| | | valueCutType: "",
|
| | | valueCutTypeText: "",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | {
|
| | | btmname: "codebasicsec",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codeDateFormatStr: "",
|
| | | codeFillFlag: "",
|
| | | codeFillLength: "",
|
| | | codeFillLimit: 0,
|
| | | codeFillSeparator: "",
|
| | | codeFillType: "",
|
| | | codeFillTypeText: "",
|
| | | codeGetValueType: "",
|
| | | codeGetValueTypeText: "",
|
| | | codeLevelType: "",
|
| | | codeLevelTypeText: "",
|
| | | codeLevelValue: 0,
|
| | | codeSecLength: "10",
|
| | | codeSecLengthType: "code_sec_length_static",
|
| | | codeSecLengthTypeText: "",
|
| | | componentCodeFlag: "false",
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:25:07.000",
|
| | | creator: "1",
|
| | | customCodeSerialClass: "",
|
| | | data: null,
|
| | | description: "åç±»ç æ®µå",
|
| | | displayFlag: "false",
|
| | | filterSql: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | fixedValueVOList: [
|
| | | {
|
| | | btmname: "codefixedvalue",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codefixedsecoid: "8FD660BF-BA04-AB4F-8076-B5C43845621B",
|
| | | codefixedsecoidName: null,
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:43:44.000",
|
| | | creator: "1",
|
| | | data: null,
|
| | | description: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | id: "000101",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:43:44.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | name: "",
|
| | | nameOid: "D135277F-E638-EB02-CEF1-AD99B889CA94",
|
| | | oid: "F7FEFFB7-0832-8CAF-2965-50757D01B878",
|
| | | ordernum: 0,
|
| | | owner: "1",
|
| | | revisionOid: "AF362124-06FD-F209-442F-8A13842CEB40",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | ts: "2023-06-02 10:43:44.838",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | {
|
| | | btmname: "codefixedvalue",
|
| | | checkInBy: "",
|
| | | checkInTime: null,
|
| | | checkOutBy: "",
|
| | | checkOutTime: null,
|
| | | codefixedsecoid: "8FD660BF-BA04-AB4F-8076-B5C43845621B",
|
| | | codefixedsecoidName: null,
|
| | | copyFromVersion: "",
|
| | | createTime: "2023-06-02 10:43:49.000",
|
| | | creator: "1",
|
| | | data: null,
|
| | | description: "",
|
| | | firstR: "1",
|
| | | firstV: "1",
|
| | | id: "000102",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:43:49.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | name: "",
|
| | | nameOid: "4F0F0F48-6146-5E62-7E4C-C1ED5E7D788C",
|
| | | oid: "F11E47E7-1360-5914-BA03-B6844E37AFB4",
|
| | | ordernum: 0,
|
| | | owner: "1",
|
| | | revisionOid: "B4797510-7232-B6FF-077D-918F9B36D3C3",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | ts: "2023-06-02 10:43:49.254",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | ],
|
| | | getValueClass: "",
|
| | | id: "00031",
|
| | | lastModifier: "1",
|
| | | lastModifyTime: "2023-06-02 10:25:07.000",
|
| | | lastR: "1",
|
| | | lastV: "1",
|
| | | lcStatus: "Exist",
|
| | | lcStatusText: "åå¨",
|
| | | lctid: "defaultLC",
|
| | | matchClassifyValueFlag: "",
|
| | | name: "åç±»ç æ®µå",
|
| | | nameOid: "69BEE3EC-F560-1C41-F56B-107F5B43C051",
|
| | | nullableFlag: "false",
|
| | | oid: "8FD660BF-BA04-AB4F-8076-B5C43845621B",
|
| | | orderNum: 4,
|
| | | owner: "1",
|
| | | parentClassifySecOid: "",
|
| | | parentClassifySecText: "",
|
| | | pkCodeRule: "B95872A6-9CEA-D490-8F1B-9D26548CAF96",
|
| | | referAttributeId: "",
|
| | | referAttributeName: "",
|
| | | referBtmId: "",
|
| | | referBtmName: "",
|
| | | referCodeClassifyOid: "",
|
| | | referCodeClassifyOidName: "",
|
| | | referConfig: "",
|
| | | referValueInfo: "",
|
| | | revisionOid: "EA98821E-60A0-1D18-4F70-96B0E0740B44",
|
| | | revisionRule: "",
|
| | | revisionSeq: 1,
|
| | | revisionValue: "",
|
| | | secretGrade: null,
|
| | | secretGradeText: "",
|
| | | sectype: "codefixedsec",
|
| | | sectypeText: "åºå®ç 段",
|
| | | serialDependFlag: "false",
|
| | | serialDependOrder: 0,
|
| | | serialStart: "",
|
| | | serialStep: 0,
|
| | | ts: "2023-06-02 10:25:07.764",
|
| | | valueCutLength: 0,
|
| | | valueCutType: "code_cut_none",
|
| | | valueCutTypeText: "䏿ªå",
|
| | | versionRule: "0",
|
| | | versionSeq: 1,
|
| | | versionValue: "1",
|
| | | },
|
| | | ],
|
| | | };
|
| | | },
|
| | | created() {
|
| | |
| | | getCodeRule() {
|
| | | getCodeRule({ codeClassifyOid: this.codeClassifyOid }).then((res) => {
|
| | | if (res.data && res.data.code === 200) {
|
| | | this.defaultValue = res.data.data;
|
| | | this.columnList = res.data.data.secVOList || [];
|
| | | console.log(res.data.data.secVOList, 'res.data.data.secVOList');
|
| | | this.codeRuleOid = res.data.data.oid;
|
| | | // this.defaultValue = res.data.data;
|
| | | // this.columnList = res.data.data.secVOList || [];
|
| | | // this.codeRuleOid = res.data.data.oid;
|
| | | this.$nextTick(() => {
|
| | | this.$refs.FormTempalte.init(res.data.data.secVOList)
|
| | | })
|
| | | // æµè¯æ°æ®å±ç¤º
|
| | | // this.$refs.FormTempalte.init(res.data.data.secVOList);
|
| | | this.$refs.FormTempalte.init(this.columnList);
|
| | | });
|
| | | }
|
| | | });
|
| | | },
|
| | |
| | | return [];
|
| | | }
|
| | | },
|
| | | async validate() {
|
| | | return await this.$refs.FormTempalte.validate();
|
| | | },
|
| | | },
|
| | | watch: {
|
| | | },
|
| | | watch: {},
|
| | | };
|
| | | </script>
|
| | |
|
| | |
| | | <!-- eslint-disable vue/valid-v-for --> |
| | | <!-- eslint-disable vue/require-v-for-key --> |
| | | <template> |
| | | <div> |
| | | <avue-form v-model="form" :option="option" v-loading="loading" ref="form" :style="{minHeight: loading ? '300px' : ''}"> |
| | | <template :slot="item.prop + 'Label'" v-for="item in slotColumnList"> |
| | | <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> |
| | | <template :slot="item.prop + ''" v-for="item in slotColumnList"> |
| | | <vciWebRefer v-if="item.type=='refer'" :value="item.value" :options="item.referConfig"></vciWebRefer> |
| | | </template> |
| | | </avue-form> |
| | | <avue-form |
| | | v-model="form" |
| | | :option="option" |
| | | v-loading="loading" |
| | | ref="form" |
| | | :style="{ minHeight: loading ? '300px' : '' }" |
| | | > |
| | | <template :slot="item.prop + 'Label'" v-for="item in slotColumnList"> |
| | | <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> |
| | | <template :slot="item.prop + ''" v-for="item in slotColumnList"> |
| | | <vciWebRefer |
| | | v-if="item.type == 'refer'" |
| | | :value="item.value" |
| | | :options="item.referConfig || {}" |
| | | ></vciWebRefer> |
| | | </template> |
| | | </avue-form> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFormTemplate } from "@/api/formTemplate"; |
| | | import { getFormTemplate, getFormDetail } from "@/api/formTemplate"; |
| | | import { getDictionary } from "../../api/system/dict"; |
| | | import vciWebRefer from "../refer/vciWebRefer.vue"; |
| | | export default { |
| | | name: "FormTemplate", |
| | | components: { vciWebRefer}, |
| | | components: { vciWebRefer }, |
| | | props: { |
| | | // é»è®¤ç¦ç¨å
ç´ |
| | | disabledProp: { |
| | |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | // ä¿®æ¹åæ¾çæ°æ® |
| | | editForm: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | // åè¡¨æ°æ®oid |
| | | rowOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | // 表åç±»åï¼add, edit, detailï¼ |
| | | type: { |
| | |
| | | option: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "130", |
| | | labelWidth: "140", |
| | | column: [], |
| | | group: [], |
| | | }, |
| | |
| | | textarea: "textarea", |
| | | datetime: "datetime", |
| | | date: "date", |
| | | refer:"refer" |
| | | 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: "", |
| | | // }, |
| | | // ], |
| | | 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]+$/g, |
| | | }, |
| | | { |
| | | 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: 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: {}, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "depId", |
| | | suffix: "", |
| | | text: "åç
§", |
| | | tooltips: "", |
| | | type: "refer", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | ], |
| | | trendsSpan: 8, |
| | | defaultValue: {}, |
| | | // 表å屿§ |
| | | attributes: [], |
| | | slotColumnList: [] |
| | | slotColumnList: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.handleResize(); |
| | | }, |
| | | methods: { |
| | | // åå§å |
| | | init(columnList) { |
| | | if (Array.isArray(columnList)) { |
| | | this.templateRender(columnList); |
| | |
| | | this.getFormTemplate(); |
| | | } |
| | | }, |
| | | // æ¥å£è·åè¡¨åæ°æ® |
| | | getFormTemplate() { |
| | | getFormTemplate({ |
| | | templateOid: this.templateOid, |
| | |
| | | }) |
| | | .then((res) => { |
| | | if (res.status === 200) { |
| | | this.templateRender(res.data.formDefineVO.items); |
| | | this.templateRender(this.testItems); |
| | | // æµè¯æ°æ®å±ç¤º |
| | | // this.templateRender(res.data.formDefineVO.items); |
| | | this.$emit("getFormTemplateEnd", res.data); |
| | | } |
| | | }) |
| | |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // 渲æè¡¨åæ¨¡æ¿ |
| | | templateRender(formItemList) { |
| | | // æ éåç»æ°æ® |
| | | let column = []; |
| | | let group = []; |
| | | let dictKeys = []; |
| | | let slotColumnList = [] |
| | | let slotColumnList = []; |
| | | formItemList.forEach((formItem) => { |
| | | formItem = this.resetFormConfig(formItem); |
| | | if (formItem.type === "line") { |
| | |
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field }); |
| | | } |
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼ |
| | | if ( |
| | | this.disabledProp.includes(formItem.field) //|| |
| | | //this.$utilFunc.isValuableObj(formItem.referConfig) |
| | | ) { |
| | | if (this.disabledProp.includes(formItem.field)) { |
| | | formItem.readOnly = true; |
| | | } |
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬ |
| | |
| | | format: formItem.dateFormate, |
| | | keyAttr: formItem.keyAttr, |
| | | value: formItem.defaultValue, |
| | | tip: formItem.tooltips, |
| | | tipPlacement: "right", |
| | | placeholder: formItem.inputTip, |
| | | comboxKey: formItem.comboxKey, |
| | | display: !formItem.hidden, |
| | | maxlength: formItem.maxlength, |
| | | filterable: true, |
| | | referConfig:formItem.referConfig, |
| | | referConfig: formItem.referConfig, |
| | | change: () => { |
| | | this.changeFun(formItem.displayExtension, formItem.prop); |
| | | }, |
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan, |
| | | click: () => { |
| | | this.clickFun(formItem.referConfig) |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: formItem.required, |
| | |
| | | value: "key", |
| | | }, |
| | | }; |
| | | slotColumnList.push(columnItem) |
| | | slotColumnList.push(columnItem); |
| | | if (group.length === 0) { |
| | | column.push(columnItem); |
| | | } else { |
| | |
| | | this.$set(this.option, "column", column); |
| | | this.$set(this.option, "group", group); |
| | | this.formIndex++; |
| | | this.loading = false |
| | | this.loading = false; |
| | | this.geDictData(dictKeys); |
| | | // æµè¯æ°æ®å±ç¤º |
| | | // this.getFormDetail(); |
| | | }, |
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½® |
| | | resetFormConfig(formItem) { |
| | |
| | | } |
| | | return formItem; |
| | | }, |
| | | // æ ¹æ®å±å¹å¨æé
置表åå¸å± |
| | | handleResize() { |
| | | let windowWidth = document.body.clientWidth; |
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500); |
| | |
| | | // executeCode({displayExtension, data: this.form}).then(res => { |
| | | // this.form[prop] = res.data.data |
| | | // }) |
| | | }, |
| | | clickFun(referConfig) { |
| | | console.log(123123); |
| | | if (this.type === "detail") { |
| | | return; |
| | | } |
| | | }, |
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ® |
| | | getDataList(type, dicData) { |
| | |
| | | } |
| | | return []; |
| | | }, |
| | | // è·ååå
¸æ°æ® |
| | | // 弿¥è·ååå
¸æ°æ® |
| | | geDictData(dictKeys) { |
| | | dictKeys.forEach((dictObj) => { |
| | | getDictionary({ code: dictObj.dictKey }).then((res) => { |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | // è¡¨åæ ¡éª |
| | | validate() { |
| | | return new Promise((resolve) => { |
| | | this.$refs.form.validate((valid, done, msg) => { |
| | | console.error(msg, valid); |
| | | if (valid) { |
| | | done(); |
| | | resolve(true); |
| | | } else { |
| | | resolve(false); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | // è·å表å详æ
æ°æ® |
| | | getFormDetail() { |
| | | if (this.type === "add") return; |
| | | getFormDetail({ templateOid: this.templateOid, oid: this.rowOid }).then( |
| | | (res) => { |
| | | console.log(res, "res"); |
| | | } |
| | | ); |
| | | }, |
| | | }, |
| | | watch: { |
| | | // è¡¨åæ°æ®ä¿®æ¹åé¦å°ç¶ç»ä»¶ |
| | | form: { |
| | | deep: true, |
| | | immediate: true, |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped></style> |
| | | <style lang="scss" scoped> |
| | | .key_attr_icon { |
| | | font-size: 20px !important; |
| | | vertical-align: baseline; |
| | | color: red; |
| | | } |
| | | </style> |
| | |
| | | <template>
|
| | | <div>
|
| | | <el-table :data="tableData" v-loading="loading" height="250" :border="true">
|
| | | <el-table
|
| | | :data="tableData"
|
| | | v-loading="loading"
|
| | | height="250"
|
| | | :border="true"
|
| | | size="small"
|
| | | >
|
| | | <el-table-column
|
| | | v-if="column.length > 0"
|
| | | type="index"
|
| | | width="60"
|
| | | label="åºå·"
|
| | |
| | | type="detail"
|
| | | :visible.sync="formTemplateVisible"
|
| | | :templateOid="this.resembleTemplateOid"
|
| | | :rowOid="rowOid"
|
| | | :codeClassifyOid="this.resembleCodeClassifyOid"
|
| | | ></FormTemplateDialog>
|
| | | </div>
|
| | |
| | |
|
| | | <script>
|
| | | import { findLike } from "@/api/formTemplate.js";
|
| | | import FormTemplateDialog from "./index.vue";
|
| | |
|
| | | export default {
|
| | | name: "ResembleQuery",
|
| | | components: { FormTemplateDialog },
|
| | | components: { FormTemplateDialog: () => import('./index.vue') },
|
| | | props: {
|
| | | column: {
|
| | | type: Array,
|
| | |
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | |
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | tableVisible: true,
|
| | | formTemplateVisible: false,
|
| | | activeName: "findlike",
|
| | | tableData: [],
|
| | | tableData: [
|
| | | {id: '*****', materialclassifyText: '001', tuhao: 'tuhao', iod: '123123131312'}
|
| | | ],
|
| | | loading: false,
|
| | | resembleTemplateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | resembleCodeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | rowOid: '',
|
| | | defaultValue: {},
|
| | | secVOList: [],
|
| | | defaultKeys: [
|
| | |
| | | formItems: [],
|
| | | };
|
| | | },
|
| | | created() {},
|
| | | computed: {},
|
| | | methods: {
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | resembleQuery(form) {
|
| | |
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | codeRuleOid: this.codeRuleOid,
|
| | | templateOid: this.templateOid,
|
| | | data: formValue
|
| | | data: formValue,
|
| | | };
|
| | | params = Object.assign(params, defaultValue);
|
| | | this.tableVisible = true;
|
| | | findLike(params).then((res) => {
|
| | | this.loading = false;
|
| | | this.tableData = res.data.data || [];
|
| | | // this.tableData = res.data.data || [];
|
| | | });
|
| | | },
|
| | |
|
| | | openFormTemlpate(row) {
|
| | | this.$forceUpdate()
|
| | | console.log(row, 'row.oid');
|
| | | this.codetemplateoid = row.codetemplateoid;
|
| | | this.rowOid = row.oid
|
| | | this.formTemplateVisible = true;
|
| | | },
|
| | | getDefaultValueAndFormValues(form) {
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <el-dialog
|
| | | :visible.sync="dialogVisible"
|
| | | v-dialogDrag
|
| | | top="0vh"
|
| | | title="ç¸ä¼¼é¡¹æ¥è¯¢"
|
| | | :width="width"
|
| | | append-to-body
|
| | | @opened="openDialog"
|
| | | class="avue-dialog avue-dialog--top"
|
| | | >
|
| | | <ResembleQuery
|
| | | v-loading="loading"
|
| | | ref="ResembleQuery"
|
| | | v-bind="$attrs"
|
| | | :column="column"
|
| | | :templateOid="templateOid"
|
| | | :codeRuleOid="codeRuleOid"
|
| | | :codeClassifyOid="codeClassifyOid"
|
| | | ></ResembleQuery>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate } from "@/api/formTemplate";
|
| | | import ResembleQuery from "./ResembleQuery";
|
| | | export default {
|
| | | name: "ResembleQueryDialog",
|
| | | components: { ResembleQuery },
|
| | | props: {
|
| | | visible: {
|
| | | type: Boolean,
|
| | | default: false,
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | templateOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | | },
|
| | | form: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | column: [],
|
| | | loading: false
|
| | | };
|
| | | },
|
| | | computed: {
|
| | | dialogVisible: {
|
| | | get() {
|
| | | return this.visible;
|
| | | },
|
| | | set(val) {
|
| | | this.$emit("update:visible", val);
|
| | | },
|
| | | },
|
| | | },
|
| | | methods: {
|
| | | openDialog() {
|
| | | this.loading = true
|
| | | getFormTemplate({
|
| | | templateOid: this.templateOid,
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | }).then((res) => {
|
| | | this.loading = false
|
| | | if (
|
| | | res.data &&
|
| | | res.data.resembleTableVO.cols &&
|
| | | res.data.resembleTableVO.cols.length > 0
|
| | | ) {
|
| | | this.column = res.data.resembleTableVO.cols;
|
| | | this.$refs.ResembleQuery.resembleQuery();
|
| | | } else {
|
| | | this.column = [];
|
| | | }
|
| | | });
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
| | |
| | | v-bind="$attrs" |
| | | :visible="visible" |
| | | :type="type" |
| | | :rowOid="rowOid" |
| | | v-if="dialogVisible" |
| | | ref="FormTempalte" |
| | | @getFormTemplateEnd="getFormTemplate" |
| | | @getFormData="getFormData" |
| | | ></FormTempalte> |
| | | |
| | | <div class="tab_box" v-if="type !== 'detail' && dialogVisible"> |
| | | <el-tabs v-model="activeName" type="card"> |
| | | <div |
| | | class="tab_box" |
| | | v-if=" |
| | | type !== 'detail' && |
| | | dialogVisible && |
| | | (showCodeApply || showResembleQuery) |
| | | " |
| | | > |
| | | <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tab-pane label="ç å¼ç³è¯·" name="codeApply" v-if="showCodeApply"> |
| | | <CodeApply ref="CodeApply" v-bind="$attrs" @getCodeRuleOid="getCodeRuleOid"></CodeApply> |
| | | <CodeApply |
| | | ref="CodeApply" |
| | | v-bind="$attrs" |
| | | @getCodeRuleOid="getCodeRuleOid" |
| | | ></CodeApply> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | label="ç¸ä¼¼é¡¹æ¥è¯¢" |
| | |
| | | :hasResemble="this.hasResemble" |
| | | :column="this.resembleTableColumn" |
| | | :form="this.form" |
| | | :codeRuleOid="codeRuleOid" |
| | | ></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 @click="submit()" type="primary" :loading="submitBtnLoading" |
| | | >ç¡® å®</el-button |
| | | > |
| | | <el-button @click="resembleQuerySubmit" type="primary" v-if="hasResemble" |
| | | <el-button |
| | | @click="resembleQuerySubmit" |
| | | type="primary" |
| | | v-if="showResembleQuery" |
| | | >ç¸ä¼¼åæ¥è¯¢</el-button |
| | | > |
| | | </div> |
| | |
| | | }, |
| | | title: { |
| | | type: String, |
| | | default: "è¡¨åæ¨¡æ¿", |
| | | default: "ç¼ç ç³è¯·", |
| | | }, |
| | | width: { |
| | | type: String, |
| | | default: "80%", |
| | | }, |
| | | rowOid: '' |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | hasResemble: false, |
| | | resembleTableColumn: [], |
| | | secVOList: [], |
| | | activeName: "resembleQuery", |
| | | codeRuleOid: '', |
| | | form: {} |
| | | form: {}, |
| | | activeName: "", |
| | | }; |
| | | }, |
| | | created() {}, |
| | |
| | | }, |
| | | }, |
| | | showCodeApply() { |
| | | if (this.type === "add") { |
| | | if (this.hasResemble && this.secVOList.length === 0) { |
| | | return false; |
| | | } |
| | | } else { |
| | | if (this.hasResemble) { |
| | | return false; |
| | | } |
| | | } |
| | | // æµè¯æ°æ®å±ç¤º |
| | | // if (this.type === "add") { |
| | | // if (this.hasResemble && this.secVOList.length === 0) { |
| | | // return false; |
| | | // } |
| | | // } else { |
| | | // return false; |
| | | // } |
| | | return true; |
| | | }, |
| | | showResembleQuery() { |
| | |
| | | methods: { |
| | | openDialog() { |
| | | this.$nextTick(() => { |
| | | this.$refs.FormTempalte.init() |
| | | this.$refs.CodeApply.getCodeRule() |
| | | }) |
| | | this.$refs.FormTempalte.init(); |
| | | this.$refs.CodeApply.getCodeRule(); |
| | | }); |
| | | }, |
| | | close() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | getCodeRuleOid(data) { |
| | | this.codeRuleOid = data.oid |
| | | this.secVOList = data.secVOList |
| | | this.secVOList = data.secVOList; |
| | | }, |
| | | getFormTemplate(data) { |
| | | this.hasResemble = |
| | |
| | | data.resembleTableVO.cols && |
| | | data.resembleTableVO.cols.length > 0; |
| | | this.resembleTableColumn = data.resembleTableVO.cols || []; |
| | | this.activeName = |
| | | (this.showCodeApply && "codeApply") || |
| | | (this.showResembleQuery && "resembleQuery"); |
| | | }, |
| | | getFormData(form) { |
| | | this.form = form |
| | | this.form = form; |
| | | }, |
| | | resembleQuerySubmit() { |
| | | this.$refs.resembleQueryRef.resembleQuery(this.form); |
| | | }, |
| | | handleClick() { |
| | | if (this.activeName === 'resembleQuery') { |
| | | this.resembleQuerySubmit() |
| | | } |
| | | }, |
| | | async submit() { |
| | | const formValidate = await this.$refs.FormTempalte.validate(); |
| | | let codeValidate = true; |
| | | if (this.showCodeApply) { |
| | | codeValidate = await this.$refs.CodeApply.validate(); |
| | | } |
| | | this.$emit("submit", { |
| | | form: this.form, |
| | | flag: formValidate && codeValidate, |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | } |
| | | }) |
| | | //è°ç¨ä¿®æ¹å±æ§åæ¹æ³ |
| | | this.ModifyProperties(this.Treedata, 'text', 'label'); |
| | | this.ModifyProperties(this.CloneTreedata, 'text', 'label'); |
| | | this.ModifyProperties(this.CloneTreedata, 'name', 'label'); |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- é«çº§æ¥è¯¢å¯¹è¯æ¡ç»ä»¶ |
| | | 1ãæå¼ä¸å
³éä¸el-dialogç¨æ³ä¸è´ï¼ |
| | | 2ãç¨æ·ç¼è¾å¥½çæ¥è¯¢æ¡ä»¶éè¿@echoContionäºä»¶ç»å®ç¸åºç彿°ï¼å®ç°åç»ä»¶å¼ä¼ éåç¶ç»ä»¶ï¼ |
| | | 3ãç¨æ·è¾å
¥çå¼ä¼ä»¥conditionMap[field]çæ ¼å¼æ¼æ¥å¥½è¿è¡åä¼ ï¼ç¶åå°±éè¦ä½¿ç¨çå°æ¹èªè¡è¿è¡æ¥è¯¢çè°ç¨ï¼ |
| | | --> |
| | | <template> |
| | | <el-dialog |
| | | title="é«çº§æ¥è¯¢" |
| | | append-to-body |
| | | width="55vw" |
| | | style="height: 115vh; margin-top: -10vh; overflow: hidden" |
| | | :visible.sync="isShowDialog" |
| | | @close="recoverPage" |
| | | destroy-on-close> |
| | | <div class="search-total"> |
| | | <!-- 头鍿é®åºå --> |
| | | <div class="dialog-search-button"> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | @click="searchSubmit"> |
| | | æ¥è¯¢ |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | @click="resetInput"> |
| | | éç½® |
| | | </el-button> |
| | | </div> |
| | | <!-- 页é¢ä¸»ä½å
容åºå --> |
| | | <div class="search-content"> |
| | | <el-row |
| | | v-for="(item,index) in initOptions" |
| | | :key="item.queryField" |
| | | v-show="!item.hidden" |
| | | :span="24"> |
| | | <el-col :span="5"> |
| | | <div class="grid-content"> |
| | | <el-select placeholder="è¯·éæ©" v-model="searchFormArrays[index].queryField"> |
| | | <el-option |
| | | v-for="feildName in initOptions" |
| | | :key="feildName.queryField" |
| | | :label="feildName.title" |
| | | :value="feildName.queryField"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div class="grid-content"> |
| | | <el-select placeholder="è¯·éæ©" v-model="searchFormArrays[index].condition"> |
| | | <el-option |
| | | v-for="condition in item.fieldType=='text' ? searchConditions:switchSearchConditions" |
| | | :key="condition.value" |
| | | |
| | | :label="condition.label" |
| | | :value="condition.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="grid-content"> |
| | | <el-input v-show="item.fieldType==='text' || item.fieldType===''" v-model="searchFormArrays[index].fieldValue" type="text" placeholder="请è¾å
¥"></el-input> |
| | | <el-select v-show="item.fieldType==='combox'" v-model="searchFormArrays[index].fieldValue" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="option in item.data" |
| | | :key="option.value" |
| | | :label="option.key" |
| | | :value="option.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-switch v-show="item.fieldType==='truefalse'" v-model="searchFormArrays[index].fieldValue"></el-switch> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <div class="grid-content"> |
| | | <i class="el-icon-close" @click="removeInput(index)"></i> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "advancedQuery", |
| | | props: { |
| | | // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | visible: { |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | // 页颿¾ç¤ºé
ç½® |
| | | options: { |
| | | type: "Object", |
| | | default: {}, |
| | | }, |
| | | conditionMapParams: { |
| | | type: "Object", |
| | | default: {}, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | // å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | isShowDialog: this.visible, |
| | | initOptions: [], |
| | | // åæ®µæ¯è¾å
¥æ¡ç±»åçæ¡ä»¶æ°ç» |
| | | searchConditions: [ |
| | | { |
| | | value: "=", |
| | | label: "çäº", |
| | | },{ |
| | | value: "like", |
| | | label: "å
å«", |
| | | },{ |
| | | value: "!=", |
| | | label: "ä¸çäº", |
| | | },{ |
| | | value: ">", |
| | | label: "大äº", |
| | | },{ |
| | | value: "<", |
| | | label: "å°äº", |
| | | }, |
| | | ], |
| | | // åæ®µæ¯åéæä¸ææ¡ç±»åçæ¡ä»¶æ°ç» |
| | | switchSearchConditions: [ |
| | | { |
| | | value: "=", |
| | | label: "çäº", |
| | | },{ |
| | | value: "!=", |
| | | label: "ä¸çäº", |
| | | }, |
| | | ], |
| | | searchFormArrays: [], |
| | | } |
| | | }, |
| | | watch: { |
| | | // çå¬ç¶ç»ä»¶ä¼ ççªå£æ¾ç¤ºéèçå¼ |
| | | visible (){ |
| | | this.isShowDialog = this.visible; |
| | | }, |
| | | // å¯¹è¯æ¡å
容渲æé
ç½® |
| | | options(){ |
| | | // å°optionsé
ç½®èµå¼å°dataä¸çoptionä¸ï¼é¿å
æ·±æµ
æ·è´çé®é¢æä»¥éè¦è½¬jsonä¹ååèµå¼ |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | // console.log(this.initOptions); |
| | | this.initOptions.forEach((item,index) => { |
| | | let add = { |
| | | queryField: String(item.queryField), |
| | | condition: item.fieldType=='text' ? String("like"):String("="), |
| | | fieldValue: item.fieldType=='truefalse' ? Boolean(false):String(''), |
| | | } |
| | | this.searchFormArrays.push(add) |
| | | }); |
| | | //console.log(this.searchFormArrays); |
| | | } |
| | | }, |
| | | created () { |
| | | |
| | | }, |
| | | methods: { |
| | | // ç§»é¤æç´¢æ¡ |
| | | removeInput(index){ |
| | | //console.log(this.initOptions); |
| | | this.$delete(this.initOptions,index); |
| | | this.$delete(this.searchFormArrays,index); |
| | | }, |
| | | // éç½®å½åçé¢çè¾å
¥æ¡ |
| | | resetInput(){ |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | let array = []; |
| | | this.initOptions.forEach((item,index) => { |
| | | let add = { |
| | | queryField: String(item.queryField), |
| | | condition:item.fieldType=='text' ? String("like"):String("="), |
| | | fieldValue: item.fieldType=='truefalse' ? Boolean(false):String(''), |
| | | } |
| | | array.push(add) |
| | | }); |
| | | this.searchFormArrays = array; |
| | | //console.log(this.initOptions); |
| | | //console.log(this.searchFormArrays); |
| | | }, |
| | | // æ¢å¤é¡µé¢ |
| | | recoverPage(){ |
| | | this.resetInput(); |
| | | this.$emit('update:visible', false); |
| | | }, |
| | | // æäº¤å½å页é¢çè¾å
¥çæ¥è¯¢æ¡ä»¶å¹¶å对åºçè¿æ»¤ä¸æ£æ¥ |
| | | searchSubmit(){ |
| | | let condtionParam = {}; |
| | | const searchConditions = this.searchFormArrays; |
| | | for(let index = 0; index < searchConditions.length; index++) { |
| | | //console.log(condtionParam['conditionMap['+searchConditions[index].queryField+']']+'' == 'undefined'); |
| | | if(searchConditions[index].fieldValue != '' || searchConditions[index].fieldValue+''==='false') { |
| | | // åå¨ç¸åçæ¥è¯¢æ¡ä»¶ |
| | | if(condtionParam['conditionMap['+searchConditions[index].queryField+']']+''.trim() != 'undefined' ) { |
| | | this.$message.warning("åå¨é夿¥è¯¢æ¡ä»¶ï¼è¯·ä»ç»æ ¸å¯¹!"); |
| | | return false; |
| | | } |
| | | condtionParam['conditionMap['+searchConditions[index].queryField+']'] = searchConditions[index].fieldValue; |
| | | } |
| | | } |
| | | //æ¥è¯¢æ¡ä»¶æ²¡æåºç°éå¤å±æ§ï¼å¹¶ä¸è¿æ»¤æäºç©ºå¼ï¼ä¼ éç»ç¶ç»ä»¶ |
| | | //console.log(condtionParam); |
| | | // if(){ |
| | | |
| | | // } |
| | | this.$emit('echoContion',condtionParam) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .search-total { |
| | | border-radius: 4px; |
| | | min-height: 70vh; |
| | | // margin-left: 35px; |
| | | margin-top: -8px; |
| | | overflow-y: auto; |
| | | height: 70vh; |
| | | } |
| | | .dialog-search-button { |
| | | border-top: 1px solid #E9E7E7; |
| | | border-bottom: 1px solid #E9E7E7; |
| | | padding: 10px 10px 10px; |
| | | position: fixed; |
| | | display: block; |
| | | background-color: #fff; |
| | | top: 90px; |
| | | width: 50%; |
| | | z-index: 1000; |
| | | } |
| | | // .search-total > .search-content > .el-row{ |
| | | // margin-bottom: 5px; |
| | | // &:last-child { |
| | | // margin-bottom: 0; |
| | | // } |
| | | // } |
| | | .search-total > .search-content { |
| | | margin-top: 40px; |
| | | } |
| | | .search-total > .search-content > .el-row > .el-col { |
| | | border-radius: 4px; |
| | | } |
| | | .search-total > .search-content > .el-row > .el-col > .grid-content { |
| | | border-radius: 4px; |
| | | min-height: 36px; |
| | | } |
| | | .search-total > .search-content > .el-row > .el-col { |
| | | margin-right: 6px; |
| | | &:last-child { |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | .grid-content > .el-icon-close { |
| | | font-size: 35px; |
| | | cursor: pointer; |
| | | color: rgb(222, 130, 105); |
| | | } |
| | | .grid-content > .el-icon-close:hover{ |
| | | font-size: 38px; |
| | | color: rgb(219, 52, 6); |
| | | } |
| | | .grid-content > .el-select { |
| | | width: 100%; |
| | | } |
| | | .grid-content > .el-switch { |
| | | line-height: 40px; |
| | | height: 40px; |
| | | } |
| | | |
| | | |
| | | </style> |
| | |
| | | export default { |
| | | name: "formulaEditor", |
| | | props: { |
| | | // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | visible: { |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | //æ¬åºæ¯åé |
| | | thisSceneTableData: { |
| | | type: Array, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isShowformulaEdit: false, //å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | isShowformulaEdit: this.visible, //å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | formulaContent: '', //å
¬å¼ç¼è¾æ¡å
容,æ¹ä¾¿å¼çåä¼ |
| | | activeName: 'first', //å½åæ´»å¨çtab |
| | | activeNameAttr: 'first', //åéä¸çå½åæ´»å¨tab |
| | |
| | | ], |
| | | }; |
| | | }, |
| | | watch: { |
| | | // çå¬ç¶ç»ä»¶ä¼ ççªå£æ¾ç¤ºéèçå¼ |
| | | visible (){ |
| | | this.isShowformulaEdit = this.visible; |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | //å廿·»å å
¬å¼å
容 |
| | |
| | | //å
³éæ¶æ¸
ç©ºä¸æ¬¡å
¬å¼å
容 |
| | | closeFormulaEdit(){ |
| | | this.resetFormulaContent(); |
| | | this.$emit('update:visible',false); |
| | | }, |
| | | //ç¼è¾å®æå
¬å¼å
容忾并å
³éå¯¹è¯æ¡ |
| | | saveFormulaContent(){ |
| | |
| | | return; |
| | | } |
| | | //å
¬å¼å
容忾 |
| | | this.$emit('updateFormulaContent', this.formulaContent) // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.$emit('updateFormulaContent', this.formulaContent) |
| | | this.isShowformulaEdit = false; |
| | | }, |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | title="为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼" |
| | | append-to-body |
| | | :visible.sync="referBtmDialogParams.isShowDialog" |
| | | @close="recoverPage" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;"> |
| | | <avue-crud |
| | | :page.sync="referBtmDialogParams.referBtmDataPage" |
| | | :ref="referBtmDialogParams.ref" |
| | | :option="referBtmDialogParams.referBtmOption" |
| | | :table-loading="referBtmDialogParams.referBtmDialogLoading" |
| | | :data="referBtmDialogParams.referBtmData" |
| | | @refresh-change="referBtmDataChange" |
| | | @search-change="referBtmSearchChange" |
| | | @search-reset="referBtmSearchReset" |
| | | @selection-change="referBtmSelectionChange" |
| | | @current-change="referBtmCurrentChange" |
| | | @size-change="referBtmSizeChange" |
| | | @on-load="referBtmOnLoad" |
| | | @row-click="referBtmRowClick"> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="saveSelectedReferBtm">ä¿ å</el-button> |
| | | <el-button @click="referBtmDialogParams.isShowDialog = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import referBtmOption from "@/const/code/referBtmDialog"; |
| | | import {referDataGrid} from "@/api/code/referBtmType"; |
| | | export default { |
| | | name: "referBtmTypeCrudDialog", |
| | | props: { |
| | | // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | visible: { |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | }, |
| | | watch: { |
| | | // çå¬ç¶ç»ä»¶ä¼ ççªå£æ¾ç¤ºéèçå¼ |
| | | visible (){ |
| | | this.referBtmDialogParams.isShowDialog = this.visible; |
| | | } |
| | | }, |
| | | data() { |
| | | return{ |
| | | /** åç
§å¼ç¨çä¸å¡ç±»åå¯¹è¯æ¡ç¸å
³æ°æ® */ |
| | | referBtmDialogParams: { |
| | | ref: 'crudReferBtm', |
| | | isShowDialog: this.visible, //å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | referBtmDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | referBtmDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | referBtmOption: referBtmOption, //è¡¨æ ¼é
ç½® |
| | | referBtmData: [], //è¡¨æ ¼æ°æ® |
| | | referBtmQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | referBtmSelectionList: [], //å½åéä¸è¡ |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // æ¢å¤é¡µé¢ |
| | | recoverPage(){ |
| | | this.referBtmSelectionClear(); |
| | | this.$emit('update:visible', false); |
| | | }, |
| | | /** 为åç
§å¼ç¨çä¸å¡ç±»åéåå¼ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // è¡¨æ ¼æ°æ®å·æ°æé® |
| | | referBtmDataChange() { |
| | | this.referBtmOnLoad(this.referBtmDialogParams.referBtmDataPage, this.referBtmDialogParams.referBtmQuery); |
| | | }, |
| | | saveSelectedReferBtm() { |
| | | if(this.referBtmDialogParams.referBtmSelectionList.length != 1){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | // è°ç¨ç¶ç»ä»¶çæ¹æ³å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.$emit('echoReferBtmType', this.referBtmDialogParams.referBtmSelectionList[0]) |
| | | //æ¸
空å½åéä¸çè¡ |
| | | this.referBtmSelectionClear(); |
| | | this.referBtmDialogParams.isShowDialog = false; |
| | | }, |
| | | referBtmSearchReset() { |
| | | this.referBtmDialogParams.referBtmQuery = {}; |
| | | this.referBtmOnLoad(); |
| | | }, |
| | | referBtmSearchChange(params, done) { |
| | | this.referBtmDialogParams.referBtmQuery = params; |
| | | this.referBtmDialogParams.referBtmDataPage.currentPage = 1; |
| | | this.referBtmOnLoad(); |
| | | done(); |
| | | }, |
| | | // åå»éä¸è¡¨æ ¼è¡æ¶è§¦å |
| | | referBtmRowClick(row){ |
| | | this.$refs[this.referBtmDialogParams.ref].toggleSelection(); |
| | | this.referBtmDialogParams.referBtmSelectionList = row; |
| | | this.$refs[this.referBtmDialogParams.ref].setCurrentRow(row); |
| | | this.$refs[this.referBtmDialogParams.ref].toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | referBtmSelectionChange(list) { |
| | | this.referBtmDialogParams.referBtmSelectionList = list; |
| | | this.$refs[this.referBtmDialogParams.ref].setCurrentRow(this.referBtmDialogParams.referBtmSelectionList[list.length-1]); |
| | | }, |
| | | referBtmSelectionClear() { |
| | | this.referBtmDialogParams.referBtmSelectionList = []; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.referBtmDialogParams.ref].toggleSelection(); |
| | | }); |
| | | }, |
| | | referBtmCurrentChange(currentPage){ |
| | | this.referBtmDialogParams.referBtmDataPage.currentPage = currentPage; |
| | | }, |
| | | referBtmSizeChange(pageSize){ |
| | | this.referBtmDialogParams.referBtmDataPage.pageSize = pageSize; |
| | | }, |
| | | refreshReferBtmDataChange() { |
| | | this.referBtmOnLoad(this.referBtmDialogParams.referBtmDataPage, this.referBtmDialogParams.referBtmQuery); |
| | | }, |
| | | //å è½½ä¸åç
§å¼ç¨çä¸å¡ç±»åçæ°æ® |
| | | referBtmOnLoad() { |
| | | let referBtmParams = this.referBtmDialogParams; |
| | | this.referBtmDialogParams.referBtmDialogLoading = true; |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(referBtmParams.referBtmQuery){ |
| | | Object.keys(referBtmParams.referBtmQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = referBtmParams.referBtmQuery[key]; |
| | | }); |
| | | } |
| | | referDataGrid( |
| | | referBtmParams.referBtmDataPage.currentPage, |
| | | referBtmParams.referBtmDataPage.pageSize, |
| | | param |
| | | ).then(res => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.referBtmDialogParams.referBtmDataPage.total = data.total; |
| | | this.referBtmDialogParams.referBtmData = data.records; |
| | | this.referBtmDialogParams.referBtmDialogLoading = false; |
| | | //this.referBtmSelectionClear(); |
| | | //è¡¨æ ¼è¡éä½é®é¢ |
| | | this.$nextTick(() => { |
| | | this.$refs[this.referBtmDialogParams.ref].doLayout(); |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | import { getReferConfigPage } from "@/api/code/codeReferConfig"; |
| | | export default { |
| | | name: "referConfigDialog", |
| | | props: { |
| | | }, |
| | | data() { |
| | | return{ |
| | | isShowReferConfigCrud:false, |
| | | referConfigCrudOption: { |
| | | border: true, |
| | | height: '45vh', |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: '-', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: 'åç
§é
ç½®ç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: 'åç
§é
ç½®åç§°', |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | search: false, |
| | | prop: 'referTypeName' |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | search: false, |
| | | prop: 'textField' |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | search: false, |
| | | prop: 'valueField' |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | search: false, |
| | | prop: 'typeText', |
| | | } |
| | | ], |
| | | }, |
| | | referConfigParams: { |
| | | ref: "referConfigCrud", |
| | | referConfigLoading: false, |
| | | referConfigData: [], |
| | | referConfigPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | referConfigQuery: {}, |
| | | referConfigSelectedRowData: '', |
| | | // å½åéä¸è¡ |
| | | referConfigSelectedRow: '', |
| | | }, |
| | | formOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '150', //é»è®¤æ ç¾å®½åº¦ |
| | | // é»è®¤é
置就为æ 形类åï¼æ¹äºä¼åºç°é®é¢ |
| | | column: [ |
| | | { |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }, |
| | | ], |
| | | }, |
| | | referConfigForm:{}, |
| | | // æåºç±»åç表åé
ç½® |
| | | sortColumn:[{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }], |
| | | // æ 形类åç表åé
ç½® |
| | | treeColumn:[{ |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | { |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }, |
| | | props: { |
| | | }, |
| | | data() { |
| | | return{ |
| | | isShowReferConfigCrud:false, |
| | | referConfigCrudOption: { |
| | | border: true, |
| | | height: '45vh', |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: '-', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: 'åç
§é
ç½®ç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: 'åç
§é
ç½®åç§°', |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | search: false, |
| | | prop: 'referTypeName' |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | search: false, |
| | | prop: 'textField' |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | search: false, |
| | | prop: 'valueField' |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | search: false, |
| | | prop: 'typeText', |
| | | } |
| | | ], |
| | | // å¹³å°ç±»åç表åé
ç½® |
| | | standColumn:[{ |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'referContent', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | referConfigParams: { |
| | | ref: "referConfigCrud", |
| | | referConfigLoading: false, |
| | | referConfigData: [], |
| | | referConfigPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'displayTable', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | referConfigQuery: {}, |
| | | referConfigSelectedRowData: '', |
| | | // å½åéä¸è¡ |
| | | referConfigSelectedRow: '', |
| | | }, |
| | | formOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '150', //é»è®¤æ ç¾å®½åº¦ |
| | | // é»è®¤é
置就为æ 形类åï¼æ¹äºä¼åºç°é®é¢ |
| | | column: [ |
| | | { |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }, |
| | | ], |
| | | }, |
| | | referConfigForm:{}, |
| | | // æåºç±»åç表åé
ç½® |
| | | sortColumn:[{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }], |
| | | // æ 形类åç表åé
ç½® |
| | | treeColumn:[{ |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | { |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }, |
| | | ], |
| | | // å¹³å°ç±»åç表åé
ç½® |
| | | standColumn:[{ |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'referContent', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'displayTable', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }], |
| | | |
| | | // æ¥è¯¢æ¡ä»¶è¡¨æ ¼åºå |
| | | srchCondOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¥è¯¢æ¡ä»¶', |
| | | children: [ |
| | | { |
| | | label: 'çéåæ®µ', |
| | | prop: 'filterField', |
| | | },{ |
| | | label: 'çéç±»å', |
| | | prop: 'filterType', |
| | | },{ |
| | | label: 'çéçå¼', |
| | | prop: 'filterValue', |
| | | } |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | srchCondParams: { |
| | | ref: "srchCondCrud", |
| | | srchCondLoading: false, |
| | | srchCondData: [], |
| | | isShow: true, |
| | | }, |
| | | toggleSrchCrudWidth: { |
| | | width: '40%', |
| | | height: '100%', |
| | | }, |
| | | // æ¥è¯¢æ¡ä»¶è¡¨æ ¼åºå |
| | | srchCondOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¥è¯¢æ¡ä»¶', |
| | | children: [ |
| | | { |
| | | label: 'çéåæ®µ', |
| | | prop: 'filterField', |
| | | },{ |
| | | label: 'çéç±»å', |
| | | prop: 'filterType', |
| | | },{ |
| | | label: 'çéçå¼', |
| | | prop: 'filterValue', |
| | | } |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | srchCondParams: { |
| | | ref: "srchCondCrud", |
| | | srchCondLoading: false, |
| | | srchCondData: [], |
| | | isShow: true, |
| | | }, |
| | | toggleSrchCrudWidth: { |
| | | width: '40%', |
| | | height: '100%', |
| | | }, |
| | | |
| | | //æ¾ç¤ºç屿§è¡¨æ ¼é
ç½®åºå |
| | | showAttrOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¾ç¤ºç屿§', |
| | | children: [ |
| | | { |
| | | label: 'ååæ®µ', |
| | | // width: 120, |
| | | prop: 'field', |
| | | //type: 'select', |
| | | // props: { |
| | | // label: 'name', |
| | | // value: 'code' |
| | | // }, |
| | | // dicUrl: 'https://cli.avuejs.com/api/area/getProvince' |
| | | },{ |
| | | label: 'åå', |
| | | prop: 'title' |
| | | },{ |
| | | label: 'åæ®µç±»å', |
| | | prop: 'fieldTypeText' |
| | | },{ |
| | | label: 'åè¡¨å¯æåº', |
| | | prop: 'sort' |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'attrSortField' |
| | | },{ |
| | | label: 'åæ®µå®½åº¦', |
| | | prop: 'width' |
| | | },{ |
| | | label: 'ååºå®ä½ç½®', |
| | | prop: 'fixedPositionText' |
| | | },{ |
| | | label: 'jsæ¾ç¤ºä»£ç ', |
| | | prop: 'templet' |
| | | },{ |
| | | label: 'æ¯å¦å¿«éæ¥è¯¢', |
| | | prop: 'isQuery' |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | showAttrParams: { |
| | | ref: "showAttrCrud", |
| | | showAttrLoading: false, |
| | | showAttrData: [], |
| | | isShow: true, |
| | | }, |
| | | //æ¾ç¤ºç屿§è¡¨æ ¼é
ç½®åºå |
| | | showAttrOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¾ç¤ºç屿§', |
| | | children: [ |
| | | { |
| | | label: 'ååæ®µ', |
| | | // width: 120, |
| | | prop: 'field', |
| | | //type: 'select', |
| | | // props: { |
| | | // label: 'name', |
| | | // value: 'code' |
| | | // }, |
| | | // dicUrl: 'https://cli.avuejs.com/api/area/getProvince' |
| | | },{ |
| | | label: 'åå', |
| | | prop: 'title' |
| | | },{ |
| | | label: 'åæ®µç±»å', |
| | | prop: 'fieldTypeText' |
| | | },{ |
| | | label: 'åè¡¨å¯æåº', |
| | | prop: 'sort' |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'attrSortField' |
| | | },{ |
| | | label: 'åæ®µå®½åº¦', |
| | | prop: 'width' |
| | | },{ |
| | | label: 'ååºå®ä½ç½®', |
| | | prop: 'fixedPositionText' |
| | | },{ |
| | | label: 'jsæ¾ç¤ºä»£ç ', |
| | | prop: 'templet' |
| | | },{ |
| | | label: 'æ¯å¦å¿«éæ¥è¯¢', |
| | | prop: 'isQuery' |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | showAttrParams: { |
| | | ref: "showAttrCrud", |
| | | showAttrLoading: false, |
| | | showAttrData: [], |
| | | isShow: true, |
| | | }, |
| | | |
| | | // æ¯å¦æ¾ç¤ºåå¨ç表ååºå |
| | | isShowForm: true, |
| | | toggleBasicCrudWidth: { |
| | | height: '100%', |
| | | width: '70%', |
| | | }, |
| | | |
| | | // æ¯å¦æ¾ç¤ºå±æ§è¡¨æ ¼ |
| | | isShowAttrCrud: true, |
| | | |
| | | defaultOrGridForm: ['limit','sortField','sortType'], |
| | | standForm: ['referContent','displayTable'], |
| | | treeForm: [ |
| | | 'parentFieldName', |
| | | // æ¯å¦æ¾ç¤ºåå¨ç表ååºå |
| | | isShowForm: true, |
| | | toggleBasicCrudWidth: { |
| | | height: '100%', |
| | | width: '70%', |
| | | }, |
| | | |
| | | // æ¯å¦æ¾ç¤ºå±æ§è¡¨æ ¼ |
| | | isShowAttrCrud: true, |
| | | |
| | | defaultOrGridForm: ['limit','sortField','sortType'], |
| | | standForm: ['referContent','displayTable'], |
| | | treeForm: [ |
| | | 'parentFieldName', |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortField', |
| | | 'sortType' |
| | | ], |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // ä¸ä¸æ¥è¦è¿è¡çæä½éæ©å¹¶ä¿åæéæ©å¹¶ä¿®æ¹ |
| | | selectedreferConfig(condition) { |
| | | // å½åéä¸çåç
§é
ç½®è¡ |
| | | let currentSeletedRow = this.referConfigParams.referConfigSelectedRowData; |
| | | if(!currentSeletedRow){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®ï¼"); |
| | | return; |
| | | } |
| | | let filterForm = this.filterForm(currentSeletedRow); |
| | | if(condition == "selectedSave"){ |
| | | // ç´æ¥ä¿å,æä»¥ç´æ¥è°ç¨codeçé¢ççé¢åæ¾ |
| | | this.$emit('echoReferConfig',filterForm); |
| | | // console.log(filterForm); |
| | | }else { |
| | | // éæ©å¹¶ä¿®æ¹,æ§è¡codeæå¡ä¸çæå¼çé¢ï¼æä»¥è¦å
æé åºæéçæ°æ® |
| | | let submitForm = { |
| | | referBtmName: filterForm.referType, |
| | | referBtmId: filterForm.referTypeName, |
| | | referConfig: JSON.stringify(filterForm), |
| | | } |
| | | this.$emit('openReconfigInterFace',submitForm); |
| | | } |
| | | this.isShowReferConfigCrud = false; |
| | | }, |
| | | // è¿æ»¤åºå½åç±»åæéè¦ç屿§ |
| | | filterForm(currentRow){ |
| | | // éè¦ä¿ççåºç¡å±æ§ |
| | | let submittDefaultForm = [ |
| | | 'referTypeName', |
| | | 'referType', |
| | | 'textField', |
| | | 'valueField', |
| | | 'type', //åç
§çªå£ç±»å |
| | | 'url', |
| | | 'backPath', |
| | | 'method', |
| | | 'height', |
| | | 'useFormKey', |
| | | 'paramForFormKey', |
| | | 'isMuti', |
| | | 'mapFields', |
| | | 'isOpenGlobal', //æ¯å¦å¼å¯å
¨å± |
| | | 'isPersistence', |
| | | 'id', |
| | | 'name', |
| | | ]; |
| | | // éè¦æ ¹æ®ç±»åæ·»å ç屿§ |
| | | let addArray = []; |
| | | let newForm ={}; |
| | | // æ ¹æ®ä¸åç±»åè¿æ»¤åºä¸åçç表å屿§ |
| | | if(currentRow.type == 'stand'){ |
| | | addArray = ['referContent', 'displayTable']; |
| | | } else if(currentRow.type == 'default' || currentRow.type == 'grid'){ |
| | | addArray = ['limit', 'sortField', 'sortType']; |
| | | } else if(currentRow.type == 'tree'){ |
| | | addArray = [ |
| | | "parentFieldName", |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortField', |
| | | 'sortType' |
| | | ], |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // ä¸ä¸æ¥è¦è¿è¡çæä½éæ©å¹¶ä¿åæéæ©å¹¶ä¿®æ¹ |
| | | selectedreferConfig(condition) { |
| | | // å½åéä¸çåç
§é
ç½®è¡ |
| | | let currentSeletedRow = this.referConfigParams.referConfigSelectedRowData; |
| | | if(!currentSeletedRow){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®ï¼"); |
| | | return; |
| | | } |
| | | let filterForm = this.filterForm(currentSeletedRow); |
| | | if(condition == "selectedSave"){ |
| | | // ç´æ¥ä¿å,æä»¥ç´æ¥è°ç¨codeçé¢ççé¢åæ¾ |
| | | this.$emit('echoReferConfig',filterForm); |
| | | // console.log(filterForm); |
| | | }else { |
| | | // éæ©å¹¶ä¿®æ¹,æ§è¡codeæå¡ä¸çæå¼çé¢ï¼æä»¥è¦å
æé åºæéçæ°æ® |
| | | let submitForm = { |
| | | referBtmName: filterForm.referType, |
| | | referBtmId: filterForm.referTypeName, |
| | | referConfig: JSON.stringify(filterForm), |
| | | } |
| | | this.$emit('openReconfigInterFace',submitForm); |
| | | } |
| | | this.isShowReferConfigCrud = false; |
| | | }, |
| | | // è¿æ»¤åºå½åç±»åæéè¦ç屿§ |
| | | filterForm(currentRow){ |
| | | // éè¦ä¿ççåºç¡å±æ§ |
| | | let submittDefaultForm = [ |
| | | 'referTypeName', |
| | | 'referType', |
| | | 'textField', |
| | | 'valueField', |
| | | 'type', //åç
§çªå£ç±»å |
| | | 'url', |
| | | 'backPath', |
| | | 'method', |
| | | 'height', |
| | | 'useFormKey', |
| | | 'paramForFormKey', |
| | | 'isMuti', |
| | | 'mapFields', |
| | | 'isOpenGlobal', //æ¯å¦å¼å¯å
¨å± |
| | | 'isPersistence', |
| | | 'id', |
| | | 'name', |
| | | ]; |
| | | // éè¦æ ¹æ®ç±»åæ·»å ç屿§ |
| | | let addArray = []; |
| | | let newForm ={}; |
| | | // æ ¹æ®ä¸åç±»åè¿æ»¤åºä¸åçç表å屿§ |
| | | if(currentRow.type == 'stand'){ |
| | | addArray = ['referContent', 'displayTable']; |
| | | } else if(currentRow.type == 'default' || currentRow.type == 'grid'){ |
| | | addArray = ['limit', 'sortField', 'sortType']; |
| | | } else if(currentRow.type == 'tree'){ |
| | | addArray = [ |
| | | "parentFieldName", |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortField', |
| | | 'sortType' |
| | | ]; |
| | | } |
| | | // æ¼æ¥ä¸¤ä¸ªæ°ç» |
| | | submittDefaultForm = submittDefaultForm.concat(addArray); |
| | | if(currentRow.codeSrchCondConfigVOS.length > 0){ |
| | | //console.log(currentRow.codeSrchCondConfigVOS); |
| | | newForm = { |
| | | codeSrchCondConfigVOS: currentRow.codeSrchCondConfigVOS, |
| | | } |
| | | // æ¼æ¥ä¸¤ä¸ªæ°ç» |
| | | submittDefaultForm = submittDefaultForm.concat(addArray); |
| | | if(currentRow.codeSrchCondConfigVOS.length > 0){ |
| | | //console.log(currentRow.codeSrchCondConfigVOS); |
| | | newForm = { |
| | | codeSrchCondConfigVOS: currentRow.codeSrchCondConfigVOS, |
| | | } |
| | | } |
| | | if((currentRow.type == 'default' || currentRow.type == 'grid') && currentRow.codeShowFieldConfigVOS.length >= 0){ |
| | | newForm = Object.assign(newForm,{codeShowFieldConfigVOS: currentRow.codeShowFieldConfigVOS}); |
| | | } |
| | | // è¿æ»¤åºç©ºå¼å±æ§åä¸éè¦ç屿§ |
| | | submittDefaultForm.forEach(item=>{ |
| | | // console.log(!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item])); |
| | | if((item == 'isMuti' || item == 'onlyLeaf') || (!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item]))){ |
| | | //console.log(item,currentRow[item]); |
| | | newForm = Object.assign(newForm,{[item]:currentRow[item]}); |
| | | } |
| | | if((currentRow.type == 'default' || currentRow.type == 'grid') && currentRow.codeShowFieldConfigVOS.length >= 0){ |
| | | newForm = Object.assign(newForm,{codeShowFieldConfigVOS: currentRow.codeShowFieldConfigVOS}); |
| | | } |
| | | // è¿æ»¤åºç©ºå¼å±æ§åä¸éè¦ç屿§ |
| | | submittDefaultForm.forEach(item=>{ |
| | | // console.log(!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item])); |
| | | if((item == 'isMuti' || item == 'onlyLeaf') || (!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item]))){ |
| | | //console.log(item,currentRow[item]); |
| | | newForm = Object.assign(newForm,{[item]:currentRow[item]}); |
| | | } |
| | | }); |
| | | // console.log(newForm); |
| | | return newForm; |
| | | }, |
| | | /** |
| | | * 为空 |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkStringIsEmpty(val){ |
| | | if ( |
| | | val === null || |
| | | typeof val === 'undefined' || |
| | | (typeof val === 'string' && val === "" && val !== 'undefined') |
| | | ) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | /** |
| | | * æ¯å¦ä¸ºå®ä¹ |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkArrayIsUndefined(val){ |
| | | return typeof val === 'array' && (val.length === 0 || val === null || typeof val === 'undefined' || val === []); |
| | | }, |
| | | referConfigOnload(){ |
| | | let refer = this.referConfigParams; |
| | | refer.referConfigLoading = true; |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(refer.referConfigQuery){ |
| | | Object.keys(refer.referConfigQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = refer.referConfigQuery[key]; |
| | | }); |
| | | } |
| | | getReferConfigPage( |
| | | refer.referConfigPage.currentPage, |
| | | refer.referConfigPage.pageSize, |
| | | param |
| | | ).then(res=>{ |
| | | const data = res.data.data; |
| | | this.referConfigParams.referConfigPage.total = data.total; |
| | | this.referConfigParams.referConfigData = data.records; |
| | | this.referConfigParams.referConfigLoading = false; |
| | | //console.log(this.referConfigParams.referConfigData.length > 0); |
| | | // 渲æå
¶ä»åºåæ°æ® |
| | | if(this.referConfigParams.referConfigData.length > 0) { |
| | | this.$nextTick(() => { |
| | | // è¡¨æ ¼éè¡é®é¢ |
| | | this.$refs[this.referConfigParams.ref].doLayout() |
| | | // é»è®¤éä¸ç¬¬ä¸è¡ |
| | | this.referConfigParams.referConfigSelectedRow = 0; |
| | | this.$refs[this.referConfigParams.ref].setCurrentRow(this.referConfigParams.referConfigData[0]); |
| | | this.referConfigParams.referConfigSelectedRowData = this.referConfigParams.referConfigData[0]; |
| | | this.attrAndSrchCondOnload(this.referConfigParams.referConfigData[0]); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(this.referConfigParams.referConfigData[0]); |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | referBtmTypeSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | referBtmTypeCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigRowClick(row){ |
| | | // 对å½åéä¸è¡è¿è¡è®°å½ |
| | | this.referConfigParams.referConfigSelectedRowData = row; |
| | | // åéæ¡éä¸ |
| | | this.referConfigParams.referConfigSelectedRow = row.$index |
| | | this.attrAndSrchCondOnload(row); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(row); |
| | | }, |
| | | referConfigSearchChange(params, done){ |
| | | this.referConfigParams.referConfigQuery = params; |
| | | this.referConfigParams.referConfigPage.currentPage = 1; |
| | | this.referConfigOnload(); |
| | | done(); |
| | | }, |
| | | referConfigSearchReset(){ |
| | | this.referConfigParams.referConfigQuery = {}; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage); |
| | | }, |
| | | referConfigCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | // å è½½è¡¨åæ¾ç¤ºå
容 |
| | | loadDefaultOrGridOrStandOrTreeForm(currentFormData){ |
| | | if(currentFormData.type != 'tree' & |
| | | currentFormData.type != 'stand' & |
| | | currentFormData.type != 'default'& |
| | | currentFormData.type != 'grid') { |
| | | //æ§å¶åç
§é
ç½®è¡¨æ ¼åè¡¨åæ¾ç¤ºæ¯ä¾ |
| | | this.isShowForm = false; |
| | | this.toggleBasicCrudWidth.width = '100%'; |
| | | }else { |
| | | this.isShowForm = true; |
| | | this.toggleBasicCrudWidth.width = '70%'; |
| | | this.toggleFormOption(currentFormData); |
| | | } |
| | | this.toggleCurdWidth(currentFormData); |
| | | //console.log(this.isShowForm); |
| | | //console.log(this.toggleBasicCrudWidth.width); |
| | | }, |
| | | |
| | | // æ ¹æ®typeçåå¨åæ¢è¡¨åçé
ç½®option |
| | | toggleFormOption(data){ |
| | | //console.log(data); |
| | | let currentForm = ''; |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.formOption.column = this.sortColumn; |
| | | currentForm = 'defaultOrGridForm'; |
| | | }else if(data.type == 'stand'){ |
| | | this.formOption.column = this.standColumn; |
| | | currentForm = 'standForm'; |
| | | }else if(data.type == 'tree'){ |
| | | this.formOption.column = this.treeColumn; |
| | | currentForm = 'treeForm' |
| | | } |
| | | this.referConfigForm = {}, |
| | | //console.log( this.formOption); |
| | | this[currentForm].forEach(item=>{ |
| | | Vue.set(this.referConfigForm, item, data[item]) |
| | | //this.referConfigForm = Object.assign(this.referConfigForm,{[item]:data[item]}) |
| | | }) |
| | | // console.log(this.referConfigForm); |
| | | }, |
| | | // æ ¹æ®typeçåå¨åæ¢attrè¡¨æ ¼çæ¾ç¤ºéèï¼è°æ´æ¥è¯¢æ¡ä»¶è¡¨æ ¼ç宽度 |
| | | toggleCurdWidth(data) { |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.showAttrParams.isShow = true; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '40%'; |
| | | }else { |
| | | this.showAttrParams.isShow = false; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '100%'; |
| | | } |
| | | // console.log(this.toggleSrchCrudWidth); |
| | | // console.log(this.showAttrParams.isShow); |
| | | }, |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶ç¸å
³æ¹æ³ |
| | | attrAndSrchCondOnload(row){ |
| | | this.srchCondParams.srchCondLoading = true; |
| | | this.showAttrParams.showAttrLoading = true; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.srchCondParams.ref].doLayout() |
| | | this.$refs[this.showAttrParams.ref].doLayout() |
| | | }); |
| | | this.srchCondParams.srchCondData = row.codeSrchCondConfigVOS |
| | | this.showAttrParams.showAttrData = row.codeShowFieldConfigVOS |
| | | //console.log(this.showAttrParams.showAttrData); |
| | | this.srchCondParams.srchCondLoading = false; |
| | | this.showAttrParams.showAttrLoading = false; |
| | | }, |
| | | |
| | | }); |
| | | // console.log(newForm); |
| | | return newForm; |
| | | }, |
| | | /** |
| | | * 为空 |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkStringIsEmpty(val){ |
| | | if ( |
| | | val === null || |
| | | typeof val === 'undefined' || |
| | | (typeof val === 'string' && val === "" && val !== 'undefined') |
| | | ) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | /** |
| | | * æ¯å¦ä¸ºå®ä¹ |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkArrayIsUndefined(val){ |
| | | return typeof val === 'array' && (val.length === 0 || val === null || typeof val === 'undefined' || val === []); |
| | | }, |
| | | referConfigOnload(){ |
| | | let refer = this.referConfigParams; |
| | | refer.referConfigLoading = true; |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(refer.referConfigQuery){ |
| | | Object.keys(refer.referConfigQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = refer.referConfigQuery[key]; |
| | | }); |
| | | } |
| | | getReferConfigPage( |
| | | refer.referConfigPage.currentPage, |
| | | refer.referConfigPage.pageSize, |
| | | param |
| | | ).then(res=>{ |
| | | const data = res.data.data; |
| | | this.referConfigParams.referConfigPage.total = data.total; |
| | | this.referConfigParams.referConfigData = data.records; |
| | | this.referConfigParams.referConfigLoading = false; |
| | | //console.log(this.referConfigParams.referConfigData.length > 0); |
| | | // 渲æå
¶ä»åºåæ°æ® |
| | | if(this.referConfigParams.referConfigData.length > 0) { |
| | | this.$nextTick(() => { |
| | | // è¡¨æ ¼éè¡é®é¢ |
| | | this.$refs[this.referConfigParams.ref].doLayout() |
| | | // é»è®¤éä¸ç¬¬ä¸è¡ |
| | | this.referConfigParams.referConfigSelectedRow = 0; |
| | | this.$refs[this.referConfigParams.ref].setCurrentRow(this.referConfigParams.referConfigData[0]); |
| | | this.referConfigParams.referConfigSelectedRowData = this.referConfigParams.referConfigData[0]; |
| | | this.attrAndSrchCondOnload(this.referConfigParams.referConfigData[0]); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(this.referConfigParams.referConfigData[0]); |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | referBtmTypeSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | referBtmTypeCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigRowClick(row){ |
| | | // 对å½åéä¸è¡è¿è¡è®°å½ |
| | | this.referConfigParams.referConfigSelectedRowData = row; |
| | | // åéæ¡éä¸ |
| | | this.referConfigParams.referConfigSelectedRow = row.$index |
| | | this.attrAndSrchCondOnload(row); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(row); |
| | | }, |
| | | referConfigSearchChange(params, done){ |
| | | this.referConfigParams.referConfigQuery = params; |
| | | this.referConfigParams.referConfigPage.currentPage = 1; |
| | | this.referConfigOnload(); |
| | | done(); |
| | | }, |
| | | referConfigSearchReset(){ |
| | | this.referConfigParams.referConfigQuery = {}; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage); |
| | | }, |
| | | referConfigCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | // å è½½è¡¨åæ¾ç¤ºå
容 |
| | | loadDefaultOrGridOrStandOrTreeForm(currentFormData){ |
| | | if(currentFormData.type != 'tree' & |
| | | currentFormData.type != 'stand' & |
| | | currentFormData.type != 'default'& |
| | | currentFormData.type != 'grid') { |
| | | //æ§å¶åç
§é
ç½®è¡¨æ ¼åè¡¨åæ¾ç¤ºæ¯ä¾ |
| | | this.isShowForm = false; |
| | | this.toggleBasicCrudWidth.width = '100%'; |
| | | }else { |
| | | this.isShowForm = true; |
| | | this.toggleBasicCrudWidth.width = '70%'; |
| | | this.toggleFormOption(currentFormData); |
| | | } |
| | | this.toggleCurdWidth(currentFormData); |
| | | //console.log(this.isShowForm); |
| | | //console.log(this.toggleBasicCrudWidth.width); |
| | | }, |
| | | |
| | | // æ ¹æ®typeçåå¨åæ¢è¡¨åçé
ç½®option |
| | | toggleFormOption(data){ |
| | | //console.log(data); |
| | | let currentForm = ''; |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.formOption.column = this.sortColumn; |
| | | currentForm = 'defaultOrGridForm'; |
| | | }else if(data.type == 'stand'){ |
| | | this.formOption.column = this.standColumn; |
| | | currentForm = 'standForm'; |
| | | }else if(data.type == 'tree'){ |
| | | this.formOption.column = this.treeColumn; |
| | | currentForm = 'treeForm' |
| | | } |
| | | this.referConfigForm = {}, |
| | | //console.log( this.formOption); |
| | | this[currentForm].forEach(item=>{ |
| | | Vue.set(this.referConfigForm, item, data[item]) |
| | | //this.referConfigForm = Object.assign(this.referConfigForm,{[item]:data[item]}) |
| | | }) |
| | | // console.log(this.referConfigForm); |
| | | }, |
| | | // æ ¹æ®typeçåå¨åæ¢attrè¡¨æ ¼çæ¾ç¤ºéèï¼è°æ´æ¥è¯¢æ¡ä»¶è¡¨æ ¼ç宽度 |
| | | toggleCurdWidth(data) { |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.showAttrParams.isShow = true; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '40%'; |
| | | }else { |
| | | this.showAttrParams.isShow = false; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '100%'; |
| | | } |
| | | // console.log(this.toggleSrchCrudWidth); |
| | | // console.log(this.showAttrParams.isShow); |
| | | }, |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶ç¸å
³æ¹æ³ |
| | | attrAndSrchCondOnload(row){ |
| | | this.srchCondParams.srchCondLoading = true; |
| | | this.showAttrParams.showAttrLoading = true; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.srchCondParams.ref].doLayout() |
| | | this.$refs[this.showAttrParams.ref].doLayout() |
| | | }); |
| | | this.srchCondParams.srchCondData = row.codeSrchCondConfigVOS |
| | | this.showAttrParams.showAttrData = row.codeShowFieldConfigVOS |
| | | //console.log(this.showAttrParams.showAttrData); |
| | | this.srchCondParams.srchCondLoading = false; |
| | | this.showAttrParams.showAttrLoading = false; |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | |
| | | <el-button @click="isShowReferConfigForm = false">å æ¶</el-button> |
| | | </div> |
| | | |
| | | <el-dialog title="为ãåç
§çä¸å¡ç±»åãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowReferBtmType" |
| | | width="70%" |
| | | destroy-on-close |
| | | @close="clearTableRowSelection('referType')" |
| | | style="height: 110vh; margin-top: -12vh; overflow-y: hidden"> |
| | | <avue-crud :option="selectionReferBtmTypeOption" |
| | | :table-loading="selectReferBtmTypeLoading" |
| | | :data="selectReferBtmTypeData" |
| | | :page.sync="selectReferBtmTypePage" |
| | | ref="selectReferBtmTypeCrud" |
| | | class="referBtmType-crud" |
| | | @row-click="referBtmTypeRowClick" |
| | | @search-change="referBtmTypeSearchChange" |
| | | @search-reset="referBtmTypeSearchReset" |
| | | @current-change="referBtmTypeCurrentChange" |
| | | @size-change="referBtmTypeSizeChange"> |
| | | <template #radio="{row}"> |
| | | <el-radio v-model="referBtmTypeSelectRow" |
| | | :label="row.$index"> |
| | | |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="selectedReferBtmType">ç¡® å®</el-button> |
| | | <el-button @click="isShowReferBtmType = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¯¹è¯æ¡ --> |
| | | <refer-btm-type-crud-dialog |
| | | :visible.sync="referBtmDialogParams.selectReferBtmSettingBox" |
| | | :ref="referBtmDialogParams.ref" |
| | | @echoReferBtmType="echoReferBtmType"> |
| | | </refer-btm-type-crud-dialog> |
| | | |
| | | <el-dialog title="为ãæåºå段ãéåå¼" |
| | | <!-- <el-dialog title="为ãæåºå段ãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSortField" |
| | | width="70%" |
| | |
| | | <el-button type="primary" @click="selectedSortField">ç¡® å®</el-button> |
| | | <el-button @click="isShowSortField = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </el-dialog> --> |
| | | |
| | | <refer-select-btm-attr-dialog |
| | | title="为ãæåºå段ãéåå¼" |
| | | :visible.sync="selectedBtmTypeAttrParams.selectedBtmTypeAttrSettingBox" |
| | | :ref="selectedBtmTypeAttrParams.ref" |
| | | @echoSelectedAttr="echoSelectedAttr"> |
| | | </refer-select-btm-attr-dialog> |
| | | |
| | | <el-dialog title="éæ©æ¾ç¤ºå段" |
| | | append-to-body |
| | |
| | | activeName: 'first', //å½åæ´»å¨çtabs |
| | | |
| | | |
| | | //为ãåç
§çä¸å¡ç±»åãéåå¼å¯¹è¯æ¡ |
| | | selectionReferBtmTypeOption: { |
| | | border: true, |
| | | height: '260', |
| | | tip: false, |
| | | //searchShow: false, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [{ |
| | | label: '-', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: 'ä¸å¡ç±»åç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: 'ä¸å¡ç±»ååç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: 'æè¿°', |
| | | search: false, |
| | | prop: 'description' |
| | | }], |
| | | /** åç
§å¼ç¨çä¸å¡ç±»åå¯¹è¯æ¡ç¸å
³åæ° */ |
| | | referBtmDialogParams: { |
| | | ref: 'crudReferBtm', |
| | | selectReferBtmSettingBox: false, |
| | | }, |
| | | selectReferBtmTypeLoading: false, |
| | | selectReferBtmTypeData: [], |
| | | selectReferBtmTypePage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | /** éæ©å
³èçä¸å¡ç±»å屿§ç¸å
³çå¯¹è¯æ¡ç¸å
³åæ° */ |
| | | selectedBtmTypeAttrParams: { |
| | | ref: 'selectedBtmTypeAttrCrud', |
| | | selectedBtmTypeAttrSettingBox: false, |
| | | }, |
| | | referBtmTypeQuery: {}, |
| | | isShowReferBtmType: false, |
| | | referBtmTypeSelectRowData: '', |
| | | referBtmTypeSelectRow: '', |
| | | |
| | | |
| | | // 为ãæåºå段ãéåå¼å¯¹è¯æ¡ |
| | | isShowSortField: false, |
| | | selectionSortFieldOption: { |
| | | border: true, |
| | | height: '220px', |
| | | tip: false, |
| | | //searchShow: false, |
| | | index: true, |
| | | selection: false, |
| | | addBtn: false, |
| | | menu: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | border: true, |
| | | column: [{ |
| | | label: '-', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | seletedBtmTypeAttrOptions: { |
| | | title: '', //å¯¹è¯æ¡æ¾ç¤ºçæ é¢ |
| | | condition: '', //å½åæå¼å¯¹è¯æ¡çç±»å |
| | | btmTypeId: '', //æ¥è¯¢æ¡ä»¶ï¼ä¸å¡ç±»åid |
| | | }, |
| | | selectSortFieldLoading: false, |
| | | selectSortFieldData: [], |
| | | selectSortFieldPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | sortFieldQuery: {}, |
| | | sortFieldSelectRow: '', |
| | | sortFieldSelectRowData: '', |
| | | |
| | | |
| | | //éæ©æ¾ç¤ºå段 |
| | | isShowShowField: false, |
| | | selectionShowFieldOption: { |
| | | border: true, |
| | | height: '220px', |
| | | tip: false, |
| | | //searchShow: false, |
| | | index: true, |
| | | selection: true, |
| | | addBtn: false, |
| | | menu: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | showFieldQuery: {}, |
| | | selectShowFieldLoading: false, |
| | | selectShowFieldData: [], |
| | | showFieldSelectList: [], |
| | | |
| | | //æ·»å æ¥è¯¢æ¡ä»¶ |
| | | isShowSearchCondition: false, |
| | | selectionSearchConditionOption: { |
| | | border: true, |
| | | height: '220px', |
| | | tip: false, |
| | | //searchShow: false, |
| | | index: true, |
| | | selection: true, |
| | | addBtn: false, |
| | | menu: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | selectSearchConditionLoading: false, |
| | | selectSearchConditionData: [], |
| | | searchConditionQuery: {}, |
| | | searchConditionSelectList: [], |
| | | |
| | | //ä¸ä¸æ¬¡ç¹å»çè¡ç¼è¾æ°æ® |
| | | preClickAttrRow: '', |
| | |
| | | checkArrayIsUndefined(val){ |
| | | return typeof val === 'array' && (val.length === 0 ||val === null || typeof val === 'undefined'); |
| | | }, |
| | | // æå¼è¡¨æ ¼éæ©æ¡ |
| | | openSelectionTable(condition){ |
| | | if (condition == 'referType'){ |
| | | this.isShowReferBtmType = true; |
| | | this.referBtmTypeOnLoad(); |
| | | }else if (condition == 'sortField'){ |
| | | this.isShowSortField = true; |
| | | this.sortFieldOnLoad(); |
| | | }else { |
| | | if(this.form.referType == '' || this.form.referType == null){ |
| | | this.$message.warning("请è¾å
¥åç
§çä¸å¡ç±»å") |
| | | return; |
| | | } |
| | | if(condition == 'addSearchCondition'){ |
| | | this.isShowSearchCondition = true; |
| | | this.selectSearchConditionDataOnload(); |
| | | }else { |
| | | this.isShowShowField = true; |
| | | this.selectShowFieldDataOnload(); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // æ¸
ç©ºè¡¨æ ¼éæ©æ¡ |
| | | clearSelectionTable(condition){ |
| | | if(condition == 'referType'){ |
| | |
| | | this.form.sortField = ''; |
| | | } |
| | | }, |
| | | // å
³éå¯¹è¯æ¡æ¶å¯¹éä¸å
容è¿è¡æ¸
空ï¼å¹¶è§£ç»å
¨å±çå¬äºä»¶ |
| | | clearTableRowSelection(condition){ |
| | | // æå¼è¡¨æ ¼éæ©æ¡ |
| | | openSelectionTable(condition){ |
| | | // æå¼éæ©åç
§å¼ç¨å¯¹è¯æ¡ |
| | | if (condition == 'referType'){ |
| | | this.referBtmDialogParams.selectReferBtmSettingBox = true; |
| | | // console.log(this.referBtmDialogParams.ref); |
| | | // è°ç¨åç»ä»¶å·æ°è¡¨æ ¼æ°æ® |
| | | this.$refs[this.referBtmDialogParams.ref].referBtmOnLoad(); |
| | | return; |
| | | } |
| | | // æç¤º |
| | | if(this.form.referType == '' || this.form.referType == null){ |
| | | this.$message.warning("请è¾å
¥åç
§çä¸å¡ç±»å") |
| | | return; |
| | | } |
| | | let params = this.seletedBtmTypeAttrOptions; |
| | | params.btmTypeId = this.form.referType |
| | | // éæ©æåºå段 |
| | | if(condition == 'sortField'){ |
| | | this.sortFieldSelectRow = ''; |
| | | this.sortFieldSelectRowData = ''; |
| | | }else if(condition == 'referType'){ |
| | | this.referBtmTypeSelectRow=''; |
| | | this.referBtmTypeSelectRowData = ''; |
| | | params.title = '为ãæåºå段ãéåå¼å¯¹è¯æ¡'; |
| | | params.condition = 'sortField'; |
| | | }else if(condition == 'addSearchCondition'){ |
| | | // éæ©æ¥è¯¢æ¡ä»¶ |
| | | params.title = 'éæ©æ¥è¯¢æ¡ä»¶'; |
| | | params.condition = 'addSearchCondition'; |
| | | }else{ |
| | | // 鿩屿§ |
| | | params.title = 'éæ©æ¾ç¤ºå段'; |
| | | params.condition = 'selectAttr'; |
| | | } |
| | | |
| | | this.$refs[this.selectedBtmTypeAttrParams.ref].selectedBtmTypeAttrOnLoad(params); |
| | | this.selectedBtmTypeAttrParams.selectedBtmTypeAttrSettingBox = true; |
| | | }, |
| | | |
| | | /** 为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼ä¹åçå
容忾æ¶è°ç¨ */ |
| | | echoReferBtmType(content){ |
| | | // å®ç°åæ¾ |
| | | this.form.referTypeName = content.name; |
| | | this.form.referType = content.id; |
| | | }, |
| | | /** æåºåæ®µãæ¾ç¤ºç屿§ãæ¥è¯¢æ¡ä»¶çè¡¨æ ¼è¡éæ©ä¹ååæ¾ */ |
| | | echoSelectedAttr(data){ |
| | | console.log(data); |
| | | // 为ãæåºå段ãéåå¼ |
| | | if(data.condition === 'sortField'){ |
| | | this.form.sortField = data.selectedArrary[0].id; |
| | | }else if(data.condition === 'addSearchCondition') { |
| | | data.selectedArrary.forEach(item => { |
| | | this.form.codeSrchCondConfigVOS.push( |
| | | { |
| | | filterField: item.id, |
| | | filterType: '=', |
| | | filterTypeText: item.name, |
| | | filterValue: '', |
| | | $cellEdit: false |
| | | } |
| | | ) |
| | | }) |
| | | }else{ |
| | | // éæ©æ¾ç¤ºå段 |
| | | data.selectedArrary.forEach(item => { |
| | | this.codeShowFieldConfigVOS.push( |
| | | { |
| | | field: item.id, |
| | | title: item.id, |
| | | fieldType: item.attrType, |
| | | fieldTypeText: item.attrTypeText, |
| | | sort: false, |
| | | attrSortField: item.id, |
| | | width: item.attrLength, |
| | | isquery: false, |
| | | $cellEdit: false |
| | | } |
| | | ) |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | // 为ãåç
§çä¸å¡ç±»åãéåå¼ |
| | | referBtmTypeOnLoad(page, params = {}){ |
| | | this.selectReferBtmTypeLoading = true; |
| | | // è°ç¨apiè¯·æ± |
| | | const data = { |
| | | total: 2, |
| | | data: [{ |
| | | id: 't2', |
| | | name: 'test2', |
| | | description: 'test2', |
| | | }, { |
| | | id: 't3', |
| | | name: 'test3', |
| | | description: 'test3', |
| | | }] |
| | | } |
| | | this.selectReferBtmTypeData = data.data; |
| | | this.selectReferBtmTypePage.total = data.total; |
| | | this.selectReferBtmTypeLoading = false; |
| | | }, |
| | | referBtmTypeSizeChange(pageSize){ |
| | | this.selectReferBtmTypePage.pageSize = pageSize; |
| | | }, |
| | | referBtmTypeSearchChange(params, done){ |
| | | this.referBtmTypeQuery = params; |
| | | this.selectReferBtmTypePage.currentPage = 1; |
| | | this.referBtmTypeOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | referBtmTypeSearchReset(){ |
| | | this.referBtmTypeQuery = {}; |
| | | this.referBtmTypeOnLoad(this.selectReferBtmTypePage); |
| | | }, |
| | | referBtmTypeRowClick(row){ |
| | | this.referBtmTypeSelectRowData = row; |
| | | this.referBtmTypeSelectRow = row.$index |
| | | //console.log( this.referBtmTypeSelectRowData); |
| | | }, |
| | | referBtmTypeCurrentChange(currentPage){ |
| | | this.selectReferBtmTypePage.currentPage = currentPage; |
| | | }, |
| | | selectedReferBtmType(){ |
| | | if(!this.referBtmTypeSelectRowData) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | this.form.referTypeName = this.referBtmTypeSelectRowData.name; |
| | | this.form.referType = this.referBtmTypeSelectRowData.id; |
| | | this.isShowReferBtmType = false; |
| | | }, |
| | | |
| | | // 为ãæåºå段ãéåå¼ |
| | | sortFieldOnLoad(page, params = {}){ |
| | | this.selectSortFieldLoading = true; |
| | | // è°ç¨apiè¯·æ± |
| | | const data = { |
| | | total: 2, |
| | | data: [{ |
| | | id: 'test', |
| | | name: 'æµè¯', |
| | | attrLength: 11, |
| | | attrType: 'å符串' |
| | | }, { |
| | | id: 'test1', |
| | | name: 'æµè¯1', |
| | | attrLength: 12, |
| | | attrType: 'æ°å' |
| | | }] |
| | | } |
| | | this.selectSortFieldData = data.data; |
| | | this.selectSortFieldPage.total = data.total; |
| | | this.selectSortFieldLoading = false; |
| | | }, |
| | | sortFieldSizeChange(pageSize){ |
| | | this.selectSortFieldPage.pageSize = pageSize; |
| | | }, |
| | | sortFieldSearchChange(params, done){ |
| | | this.sortFieldQuery = params; |
| | | this.selectSortFieldPage.currentPage = 1; |
| | | this.sortFieldOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | sortFieldSearchReset(){ |
| | | this.sortFieldQuery = {}; |
| | | this.sortFieldOnLoad(this.selectSortFieldPage); |
| | | }, |
| | | sortFieldRowClick(row){ |
| | | this.sortFieldSelectRowData = row; |
| | | this.sortFieldSelectRow = row.$index |
| | | //console.log( this.sortFieldSelectRowData); |
| | | }, |
| | | sortFieldCurrentChange(currentPage){ |
| | | this.selectReferBtmTypePage.currentPage = currentPage; |
| | | }, |
| | | selectedSortField(){ |
| | | if(!this.sortFieldSelectRowData) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | this.form.sortField = this.sortFieldSelectRowData.id; |
| | | this.isShowSortField = false; |
| | | }, |
| | | |
| | | // éæ©æ¾ç¤ºå段 |
| | | selectShowFieldDataOnload(params = {}){ |
| | | this.selectShowFieldLoading = true; |
| | | // è°ç¨apiè¯·æ± |
| | | const data = { |
| | | total: 2, |
| | | data: [{ |
| | | id: 'test', |
| | | name: 'æµè¯', |
| | | attrLength: 11, |
| | | attrType: 'text', |
| | | attrTypeText: 'ææ¬æ¡' |
| | | }, { |
| | | id: 'test1', |
| | | name: 'æµè¯1', |
| | | attrLength: 12, |
| | | attrType: 'number', |
| | | attrTypeText: 'æ°å' |
| | | }, { |
| | | id: 'test2', |
| | | name: 'æµè¯2', |
| | | attrLength: 13, |
| | | attrType: 'date', |
| | | attrTypeText: 'æ¥æ' |
| | | }] |
| | | } |
| | | this.selectShowFieldData = data.data; |
| | | this.selectShowFieldLoading = false; |
| | | }, |
| | | selectionShowFieldDataChange(list){ |
| | | this.showFieldSelectList = list; |
| | | this.$refs.selectShowFieldCrud.setCurrentRow(this.showFieldSelectList[list.length-1]); |
| | | }, |
| | | showFieldRowClick(row){ |
| | | //this.showFieldSelectList.push(row); |
| | | this.$refs.selectShowFieldCrud.setCurrentRow(row); |
| | | this.$refs.selectShowFieldCrud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | showFieldSearchChange(params, done){ |
| | | this.showFieldQuery = params; |
| | | this.selectShowFieldDataOnload(params); |
| | | done(); |
| | | }, |
| | | showFieldSearchReset(){ |
| | | this.showFieldQuery = {}; |
| | | this.sortFieldOnLoad(); |
| | | }, |
| | | selectedShowField(){ |
| | | //console.log(this.showFieldSelectList); |
| | | if(this.showFieldSelectList.length <= 0) { |
| | | this.$message.warning("请è³å°éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | //this.showFieldSelectList; |
| | | this.showFieldSelectList.forEach(item => { |
| | | this.codeShowFieldConfigVOS.push( |
| | | { |
| | | field: item.id, |
| | | title: item.id, |
| | | fieldType: item.attrType, |
| | | fieldTypeText: item.attrTypeText, |
| | | sort: false, |
| | | attrSortField: item.id, |
| | | width: item.attrLength, |
| | | isquery: false, |
| | | $cellEdit: false |
| | | } |
| | | ) |
| | | |
| | | }) |
| | | this.isShowShowField = false; |
| | | }, |
| | | |
| | | |
| | | // éæ©æ¥è¯¢æ¡ä»¶ |
| | | selectSearchConditionDataOnload(params = {}){ |
| | | this.selectSearchConditionLoading = true; |
| | | // è°ç¨apiè¯·æ± |
| | | this.selectSearchConditionData = [{ |
| | | id: 'test', |
| | | name: 'æµè¯', |
| | | attrLength: 11, |
| | | attrType: 'å符串', |
| | | $cellEdit: false, |
| | | }, { |
| | | id: 'test1', |
| | | name: 'æµè¯1', |
| | | attrLength: 12, |
| | | attrType: 'æ°å', |
| | | $cellEdit: false, |
| | | }, { |
| | | id: 'test2', |
| | | name: 'æµè¯2', |
| | | attrLength: 13, |
| | | attrType: 'æ¥æ', |
| | | $cellEdit: false, |
| | | }]; |
| | | this.selectSearchConditionLoading = false; |
| | | }, |
| | | searchConditionRowClick(row){ |
| | | this.$refs.selectSearchConditionCrud.setCurrentRow(row); |
| | | this.$refs.selectSearchConditionCrud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | searchConditionDataChange(list){ |
| | | this.searchConditionSelectList = list; |
| | | this.$refs.selectSearchConditionCrud.setCurrentRow(this.searchConditionSelectList[list.length-1]); |
| | | }, |
| | | searchConditionSearchChange(params, done){ |
| | | this.searchConditionQuery = params; |
| | | this.selectSearchConditionDataOnload(params); |
| | | done(); |
| | | }, |
| | | searchConditionSearchReset(){ |
| | | this.searchConditionQuery = {}; |
| | | this.sortFieldOnLoad(); |
| | | }, |
| | | selectedSearchCondition(){ |
| | | // console.log(this.searchConditionSelectList); |
| | | if(this.searchConditionSelectList.length <= 0) { |
| | | this.$message.warning("请è³å°éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | this.searchConditionSelectList.forEach(item => { |
| | | this.form.codeSrchCondConfigVOS.push( |
| | | { |
| | | filterField: item.id, |
| | | filterType: '=', |
| | | filterTypeText: item.name, |
| | | filterValue: '', |
| | | $cellEdit: false |
| | | } |
| | | ) |
| | | |
| | | }) |
| | | this.isShowSearchCondition = false; |
| | | }, |
| | | |
| | | } |
| | | }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | :title="options.title" |
| | | append-to-body |
| | | :visible.sync="crudParams.isShowDialog" |
| | | width="65%" |
| | | destroy-on-close |
| | | @close="clearTableRowSelection" |
| | | style="height: 110vh; margin-top: -12vh; overflow-y: hidden"> |
| | | <avue-crud :option="crudParams.crudOption" |
| | | :table-loading="crudParams.crudLoading" |
| | | :data="crudParams.crudData" |
| | | :ref="crudParams.ref" |
| | | @row-click="selectedBtmTypeAttrRowClick" |
| | | @selection-change="selectionBtmTypeAttrChange" |
| | | @search-change="selectedBtmTypeAttrSrchChange" |
| | | @search-reset="selectedBtmTypeAttrSrchReset"> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="selectedBtmTypeAttr">ç¡® å®</el-button> |
| | | <el-button @click="crudParams.isShowDialog = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import { gridAttributesByBtmId } from "@/api/code/referBtmType"; |
| | | export default { |
| | | name: "referSelectBtmAttrDialog", |
| | | props: { |
| | | // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | visible: { |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | |
| | | |
| | | }, |
| | | watch: { |
| | | // çå¬ç¶ç»ä»¶ä¼ ççªå£æ¾ç¤ºéèçå¼ |
| | | visible (){ |
| | | this.crudParams.isShowDialog = this.visible; |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | // è¡¨æ ¼ç¸å
³åæ° |
| | | crudParams: { |
| | | ref: "selectedAttrCrud", |
| | | isShowDialog: this.visible, //å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | crudLoading: false, |
| | | crudOption: { |
| | | border: true, |
| | | height: '250px', |
| | | tip: false, |
| | | //searchShow: false, |
| | | index: true, |
| | | selection: true, |
| | | addBtn: false, |
| | | menu: false, |
| | | // refreshBtn: false, |
| | | disablePage: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | searchMenuSpan: 5, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | border: true, |
| | | column: [{ |
| | | label: '屿§è±æç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: '屿§ä¸æåç§°', |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: '屿§é¿åº¦', |
| | | search: false, |
| | | prop: 'attributeLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrDataTypeText' |
| | | }], |
| | | }, |
| | | crudData: [], |
| | | crudQuery: {}, |
| | | crudSelectedRowData: [], |
| | | }, |
| | | // è°ç¨æ¹ä¼ è¿æ¥çç¸å
³åæ° |
| | | options: {}, |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // æ¸
空éä¸ |
| | | clearTableRowSelection(){ |
| | | this.crudParams.crudSelectedRow=''; |
| | | this.crudParams.crudSelectedRowData = ''; |
| | | this.$emit('update:visible', false); |
| | | }, |
| | | |
| | | // crudç¸å
³æ¹æ³ |
| | | selectedBtmTypeAttrOnLoad(params){ |
| | | this.options = params; |
| | | this.crudParams.crudLoading = true; |
| | | // è°ç¨apiè¯·æ± |
| | | // const data = { |
| | | // total: 2, |
| | | // data: [{ |
| | | // id: 'test', |
| | | // name: 'æµè¯', |
| | | // attrLength: 11, |
| | | // attrType: 'å符串' |
| | | // }, { |
| | | // id: 'test1', |
| | | // name: 'æµè¯1', |
| | | // attrLength: 12, |
| | | // attrType: 'æ°å' |
| | | // }] |
| | | // } |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(this.crudParams.crudQuery){ |
| | | Object.keys(this.crudParams.crudQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = this.crudParams.crudQuery[key]; |
| | | }); |
| | | } |
| | | param['conditionMap[btmTypeId]'] = this.options.btmTypeId; |
| | | gridAttributesByBtmId(1,-1,param).then(res=>{ |
| | | const data = res.data; |
| | | console.log(data.data.records); |
| | | this.crudParams.crudData = data.data.records; |
| | | this.crudParams.crudLoading = false; |
| | | this.$nextTick(()=>{ |
| | | this.$refs[this.crudParams.ref].doLayout(); |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | selectedBtmTypeAttrSrchChange(params, done){ |
| | | this.crudParams.crudQuery = params; |
| | | this.selectedBtmTypeAttrOnLoad(this.options); |
| | | done(); |
| | | }, |
| | | selectedBtmTypeAttrSrchReset(){ |
| | | this.crudParams.crudQuery = {}; |
| | | this.selectedBtmTypeAttrOnLoad(this.options); |
| | | }, |
| | | selectedBtmTypeAttrRowClick(row){ |
| | | this.crudParams.crudSelectedRowData = row; |
| | | this.$refs[this.crudParams.ref].toggleSelection(); |
| | | this.$refs[this.crudParams.ref].setCurrentRow(row); |
| | | this.$refs[this.crudParams.ref].toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | selectionBtmTypeAttrChange(list){ |
| | | this.crudParams.crudSelectedRowData = list; |
| | | this.$refs[this.crudParams.ref].setCurrentRow(this.crudParams.crudSelectedRowData[list.length-1]); |
| | | //å½åéä¸è¡ä¸ºç©ºçæ¶åå°±å°ç 段管çè¡¨æ ¼æ°æ®ç½®ç©º |
| | | }, |
| | | // éä¸å±æ§ä¹å |
| | | selectedBtmTypeAttr(){ |
| | | if(this.crudParams.crudSelectedRowData.length<=0 || (this.options.condition == 'sortField' && this.crudParams.crudSelectedRowData.length!=1)) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | // æé åæ¾ç¶ç»ä»¶éè¦ä¼ éçç¸å
³åæ° |
| | | let data = { |
| | | selectedArrary: this.crudParams.crudSelectedRowData, |
| | | condition: this.options.condition |
| | | }; |
| | | this.$emit('echoSelectedAttr',data); |
| | | this.crudParams.isShowDialog = false; |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | }, |
| | | |
| | | sourceData() { |
| | | return this.data.filter(item => this.value.indexOf(item[this.props.key]) === -1); |
| | | return this.data.filter(item => this.value.indexOf(item) === -1); |
| | | }, |
| | | |
| | | targetData() { |
| | | if (this.targetOrder === 'original') { |
| | | return this.data.filter(item => this.value.indexOf(item[this.props.key]) > -1); |
| | | console.log('11111') |
| | | return this.data.filter(item => this.value.indexOf(item) > -1 |
| | | ); |
| | | } else { |
| | | console.log('22222') |
| | | return this.value.reduce((arr, cur) => { |
| | | const val = this.dataObj[cur]; |
| | | if (val) { |
| | |
| | | this.leftChecked.indexOf(itemKey) > -1 && |
| | | this.value.indexOf(itemKey) === -1 |
| | | ) { |
| | | // itemsToBeMoved.push(itemKey) |
| | | itemsToBeMoved = [itemKey] |
| | | // itemsToBeMoved = [itemKey] |
| | | itemsToBeMoved = [item] |
| | | console.log(itemsToBeMoved) |
| | | } |
| | | }); |
| | | // currentValue = this.targetOrder === 'unshift' |
| | | // ? itemsToBeMoved.concat(currentValue) |
| | | // : currentValue.concat(itemsToBeMoved); |
| | | currentValue = itemsToBeMoved |
| | | // currentValue = itemsToBeMoved |
| | | currentValue = itemsToBeMoved |
| | | this.$emit('input', currentValue); |
| | | this.$emit('change', currentValue, 'right', this.leftChecked); |
| | | }, |
| | |
| | | computed: { |
| | | filteredData() { |
| | | return this.data.filter(item => { |
| | | console.log(item) |
| | | if (typeof this.filterMethod === 'function') { |
| | | return this.filterMethod(this.query, item); |
| | | } else { |
| | |
| | | "parentId": 0, |
| | | "title": classifyitem.text, |
| | | "value": classifyitem.oid, |
| | | "btmTypeOid": classifyitem.attributes.btmTypeOid, |
| | | } |
| | | return { |
| | | ...item, |
| | |
| | | viewBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | columnBtn: false, |
| | | searchShowBtn: false, // è¡¨æ ¼æç´¢æ¾éæé® |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | |
| | | prop: "id", |
| | | search: true, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 7, |
| | | searchSpan: 8, |
| | | }, |
| | | { |
| | | label: "ä¸å¡ç±»ååç§°", |
| | | prop: "name", |
| | | search: true, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 7, |
| | | searchSpan: 8, |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | |
| | | export default { |
| | | height: '41vh', |
| | | calcHeight: 30, |
| | | tip: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 5, |
| | | searchMenuSpan: 6, |
| | | disablePage: false, |
| | | border: true, |
| | | index: true, |
| | |
| | | prop: "id", |
| | | search: true, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 7, |
| | | searchSpan: 9, |
| | | }, |
| | | { |
| | | label: "屿§ä¸æåç§°", |
| | | prop: "name", |
| | | search: true, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 7, |
| | | searchSpan: 9, |
| | | }, |
| | | { |
| | | label: "屿§é¿åº¦", |
| | | prop: "attrlength", |
| | | prop: "attributeLength", |
| | | search: false, |
| | | }, |
| | | { |
| | | label: "屿§ç±»å", |
| | | prop: "attributedatatypetext", |
| | | prop: "attrDataTypeText", |
| | | search: false, |
| | | } |
| | | ] |
| | |
| | | import formulaEditor from "@/components/code-dialog-page/formulaEditor" |
| | | import referConfigCrudDialog from "@/components/code-dialog-page/referConfigCrudDialog" |
| | | import referConfigFormDialog from "@/components/code-dialog-page/referConfigFormDialog" |
| | | import referBtmTypeCrudDialog from "@/components/code-dialog-page/referBtmTypeCrudDialog" |
| | | import referSelectBtmAttrDialog from "@/components/code-dialog-page/referSelectBtmAttrDialog" |
| | | import advancedQuery from "@/components/advanced-query/advancedQuery" |
| | | 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 linkTypeAdd from "@/views/modeling/LinkTypeAdd" |
| | | |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | |
| | | Vue.component('formulaEditor',formulaEditor) |
| | | Vue.component('referConfigCrudDialog',referConfigCrudDialog) |
| | | Vue.component('referConfigFormDialog',referConfigFormDialog) |
| | | Vue.component('advancedQuery',advancedQuery) |
| | | Vue.component('businessAdd',businessAdd) |
| | | Vue.component('attrCrud',attrCrud) |
| | | Vue.component('TableCrud',TableCrud) |
| | | Vue.component('originalAdd',originalAdd) |
| | | Vue.component('referBtmTypeCrudDialog',referBtmTypeCrudDialog) |
| | | Vue.component('referSelectBtmAttrDialog',referSelectBtmAttrDialog) |
| | | Vue.component('FormTemplateDialog',FormTemplateDialog) |
| | | Vue.component('LinkTypeAdd',linkTypeAdd) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | <template>
|
| | | <div>
|
| | | <el-button @click="visible = true">æµè¯</el-button>
|
| | | <el-button @click="visible1 = true">ç¸ä¼¼é¡¹æ¥è¯¢</el-button>
|
| | | <FormTemplateDialog
|
| | | :visible.sync="visible"
|
| | | :FormTemplateProp="FormTemplateProp"
|
| | | :type="this.type"
|
| | | :editForm="editForm"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :codeRuleOid="this.codeRuleOid"
|
| | | :disabledProp="disabledProp"
|
| | | :rowOid="rowOid"
|
| | | @submit="submit"
|
| | | ></FormTemplateDialog>
|
| | | <ResembleQueryDialog
|
| | | :visible.sync="visible1"
|
| | | :type="this.type"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :codeRuleOid="this.codeRuleOid"
|
| | | ></ResembleQueryDialog>
|
| | | </div>
|
| | | </template>
|
| | | codeClassifyOid
|
| | |
|
| | | <script>
|
| | | import ResembleQueryDialog from '@/components/FormTemplate/ResembleQueryDialog.vue';
|
| | | export default {
|
| | | name: "FormTempalteTest",
|
| | | components: { ResembleQueryDialog },
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | visible1: false,
|
| | | // é»è®¤ç¦ç¨ç表å
ç´
|
| | | disabledProp: ["id"],
|
| | | // ä¿®æ¹åæ¾çæ°æ®
|
| | | editForm: {},
|
| | | // 表åç±»å
|
| | | type: "add",
|
| | | templateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | codeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96",
|
| | | rowOid: '6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9'
|
| | | };
|
| | | },
|
| | | methods: {
|
| | | submit(data) {
|
| | | console.log(data);
|
| | | }
|
| | | }
|
| | | };
|
| | | </script>
|
| | |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container style="height: 85vh; max-height: 155vh; overflow-y: scroll;"> |
| | | <avue-tree :option="option" :data="data" v-model="form" style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px"></avue-tree> |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | | style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px" |
| | | @node-click=" nodeClick" |
| | | @check-change="checkChange" |
| | | ></avue-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-main> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getAtrrList, TreeCheckDel, TreeDel, TreeSave} from "@/api/template/templateAttr"; |
| | | |
| | | export default { |
| | | name: "items.vue", |
| | | data(){ |
| | | return{ |
| | | form:{}, |
| | | data:[ |
| | | { |
| | | value:0, |
| | | label:'ä¸çº§é¨é¨', |
| | | children:[ |
| | | { |
| | | value:1, |
| | | label:'ä¸çº§é¨é¨1', |
| | | },{ |
| | | value:2, |
| | | label:'ä¸çº§é¨é¨2', |
| | | } |
| | | ] |
| | | },{ |
| | | value:3, |
| | | label:'äºçº§é¨é¨', |
| | | children:[ |
| | | { |
| | | value:4, |
| | | label:'äºçº§é¨é¨1', |
| | | },{ |
| | | value:5, |
| | | label:'äºçº§é¨é¨2', |
| | | } |
| | | ] |
| | | CloneTreeAvueform:{}, |
| | | loading:false, |
| | | CloneTreedata:[], |
| | | Treeoption: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | defaultExpandAll: false, |
| | | menu: false, |
| | | // //è¿ä¸ªæ¯å¤é |
| | | // multiple: true, |
| | | }, |
| | | nodeClickList: "", |
| | | } |
| | | }, |
| | | created() { |
| | | this.getAttr() |
| | | }, |
| | | methods:{ |
| | | getAttr() { |
| | | getAtrrList().then(res => { |
| | | this.Treedata = res.data; |
| | | this.CloneTreedata = res.data; |
| | | this.Treedata.forEach((item) => { |
| | | for (let i = 0; i < this.Treedata.length; i++) { |
| | | this.Treedata[i].value = i; |
| | | } |
| | | }) |
| | | //è°ç¨ä¿®æ¹å±æ§åæ¹æ³ |
| | | this.ModifyProperties(this.CloneTreedata, 'name', 'label'); |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | }, |
| | | //å®ä¹ä¸ä¸ªä¿®æ¹æ°æ®å±æ§åçæ¹æ³ |
| | | ModifyProperties(obj, oldName, newName) { |
| | | for (let key in obj) { |
| | | if (key === oldName) { |
| | | obj[newName] = obj[key]; |
| | | delete obj[key]; |
| | | } |
| | | ], |
| | | option:{ |
| | | title:'ææ¯æ é¢', |
| | | filterText:"æç´¢å
³é®åèªå®ä¹", |
| | | defaultExpandAll:true, |
| | | addBtnText:'æ°å¢èªå®ä¹ææ¡', |
| | | editBtnText:'ä¿®æ¹èªå®ä¹ææ¡', |
| | | delBtnText:'å é¤èªå®ä¹ææ¡', |
| | | defaultExpandedKeys:[1], |
| | | height:900, |
| | | formOption:{ |
| | | labelWidth:100, |
| | | column:[{ |
| | | label:'èªå®ä¹é¡¹', |
| | | prop:'label' |
| | | }], |
| | | }, |
| | | props:{ |
| | | labelText:'æ é¢', |
| | | label:'label', |
| | | value:'value', |
| | | children:'children' |
| | | if (typeof obj[key] === 'object') { |
| | | this.ModifyProperties(obj[key], oldName, newName); |
| | | } |
| | | } |
| | | }, |
| | | //æ èç¹æ·»å æé® |
| | | TreeAdd() { |
| | | this.TreeAddFormVisible = true; |
| | | // 夿å½åæ¯å¦æç¹å»å项 |
| | | if (this.nodeClickList !== "") { |
| | | this.TreeFlag = true |
| | | } |
| | | }, |
| | | //æ èç¹æ·»å äºä»¶ |
| | | TreeAddHandler() { |
| | | const data = this.TreeAddform |
| | | this.$set(data, "parentCodeClassifyOid", this.nodeClickList.oid) |
| | | TreeSave(data).then(() => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æ·»å æå!' |
| | | }); |
| | | this.getAttr(); |
| | | this.TreeAddFormVisible = false |
| | | this.TreeAddform = "" |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res |
| | | }); |
| | | }) |
| | | }, |
| | | //æ èç¹å é¤æé® |
| | | TreeDel() { |
| | | this.$confirm('æ¯å¦å é¤å½åéæ©çåç±»ï¼å°ä¼æååç±»ä¸å¹¶å é¤ï¼å¦æåå¨ç¼ç æ°æ®å°ä¸è½è¢«å é¤ï¼æ¯å¦ç»§ç»ï¼', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | customClass: 'my-messagebox', |
| | | }).then(() => { |
| | | TreeCheckDel(this.nodeClickList).then(res => { |
| | | if (res.data.data) { |
| | | TreeDel(this.nodeClickList).then(() => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'å 餿å!' |
| | | }); |
| | | this.getAttr(); |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res |
| | | }); |
| | | }) |
| | | } else { |
| | | this.$confirm('å½åæ°æ®å
嫿ä¸çº§æ°æ®ï¼è¦å é¤çè¯ä¼åä¸çº§æ°æ®ä¸èµ·å é¤ï¼ä½ 确认继ç»?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | customClass: 'my-messageboxs', |
| | | }).then(() => { |
| | | TreeDel(this.nodeClickList).then(() => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'å 餿å!' |
| | | }); |
| | | this.getAttr(); |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res |
| | | }); |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已忶å é¤' |
| | | }); |
| | | }); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已忶å é¤' |
| | | }); |
| | | }); |
| | | }, |
| | | nodeClick(data){ |
| | | this.nodeClickList = data |
| | | console.log(data) |
| | | } |
| | | } |
| | | } |
| | |
| | | @click="enableOrDeactivatse(scope.row.oid,'enable')">å¯ ç¨ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <!-- è¡¨æ ¼ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">å é¤ |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete"> |
| | | å é¤ |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="icon-kelong" |
| | | plain |
| | | @click="openCodeRuleDialog">å
é |
| | | icon="icon-kelong" |
| | | plain |
| | | @click="openCodeRuleDialog"> |
| | | å
é |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="icon-lianjiekelong" |
| | | style="font-size: 12px;" |
| | | plain |
| | | @click="openOtherCodeRuleDialog">ä»å
¶ä»è§åä¸å
éç æ®µ |
| | | icon="icon-lianjiekelong" |
| | | style="font-size: 12px;" |
| | | plain |
| | | @click="openOtherCodeRuleDialog"> |
| | | ä»å
¶ä»è§åä¸å
éç æ®µ |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="el-icon-s-help" |
| | | plain |
| | | @click="handleRange">使ç¨èå´ |
| | | icon="el-icon-s-help" |
| | | plain |
| | | @click="handleRange"> |
| | | 使ç¨èå´ |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="icon-qingkong" |
| | | plain |
| | | @click="clearAllCodeSec">æ¸
空ç å¼ |
| | | icon="icon-qingkong" |
| | | plain |
| | | @click="clearAllCodeSec"> |
| | | æ¸
空ç å¼ |
| | | </el-button> |
| | | <el-button size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="openAdvancedQuery"> |
| | | é«çº§æ¥è¯¢ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | |
| | | <!-- é«çº§æ¥è¯¢å¯¹è¯æ¡ --> |
| | | <advanced-query |
| | | :ref="advancedQueryParam.ref" |
| | | :options="advancedQueryParam.options" |
| | | :visible.sync="advancedQueryParam.advancedQuerySettingBox" |
| | | @echoContion="echoSeniorContionMap"> |
| | | </advanced-query> |
| | | <!-- ç¼ç è§åç¸å
³å¯¹è¯æ¡ --> |
| | | <el-dialog title="ç¼ç è§å使ç¨èå´" |
| | | append-to-body |
| | | :visible.sync="codeRangeSettingBox" |
| | | width="800px" |
| | | style="height: 116vh; margin-top: -10vh;"> |
| | | style="height: 116vh; margin-top: -10vh;"> |
| | | <avue-crud |
| | | :option="dialogeOption" |
| | | :table-loading="dialogLoading" |
| | |
| | | <el-form-item label="ç æ®µç±»å" :label-width="leftFormLabelWidth" required> |
| | | <el-select v-model="form.secType" placeholder="è¯·éæ©" @change="changeSectypeFormItems(null)" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in sectypeList" |
| | | v-for="item in enumParam.secTypeList" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="ç æ®µé¿åº¦ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | v-for="item in enumParam.codeSecLengthType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="ç¼ç è¡¥ä½æ¹å¼:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option label="左补ä½" value="codeattrsec" |
| | | v-for="item in codeFillType" |
| | | v-for="item in enumParam.codeFillType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="è¡¥ä½æ¶çå符:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeFillSeparatorSelect" @blur="inputSelectBlur" filterable placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | v-for="item in enumParam.codeFillSeparator" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="å±çº§ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeLevelType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeLevelType" |
| | | v-for="item in enumParam.codeLevelType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="å符æªåç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.valueCutType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeCutType" |
| | | v-for="item in enumParam.codeCutType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="åå¼ç±»å:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeGetValueType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeGetValueType" |
| | | v-for="item in enumParam.codeGetValueType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | placeholder="è¯·éæ©" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | v-model="form.referBtmId" |
| | | v-model="form.referBtmName" |
| | | @focus="openAttrSelectOrGetValue('referBtmId')" |
| | | :disabled="basicSecOnlyRead"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearAttrDataByIcon('referBtmId')" style="margin-right: 5px;cursor: pointer;"></i> |
| | |
| | | <el-form-item label="ç æ®µé¿åº¦ç±»å:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeSecLengthType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeSecLengthType" |
| | | v-for="item in enumParam.codeSecLengthType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="ç¼ç è¡¥ä½æ¹å¼:" :label-width="rightFormLabelWidth" required> |
| | | <el-select v-model="form.codeFillType" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillType" |
| | | v-for="item in enumParam.codeFillType" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <el-form-item label="è¡¥ä½æ¶çå符:" :label-width="rightFormLabelWidth"> |
| | | <el-select v-model="form.codeFillSeparatorSelect" filterable @blur="inputSelectBlur" placeholder="è¯·éæ©" :disabled="basicSecOnlyRead"> |
| | | <el-option |
| | | v-for="item in codeFillSeparator" |
| | | v-for="item in enumParam.codeFillSeparator" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue"> |
| | |
| | | <basic-container> |
| | | <div class="bbox"> |
| | | <avue-crud |
| | | :data="selectattrData" |
| | | :option="attrOption" |
| | | :table-loading="selectAttrOptionLoading" |
| | | ref="selectionAttrCrud" |
| | | :data="selectAttrParams.selectAttrData" |
| | | :option="selectAttrParams.attrOption" |
| | | :table-loading="selectAttrParams.selectAttrOptionLoading" |
| | | :ref="selectAttrParams.ref" |
| | | @search-change="selectAttrSearchChange" |
| | | @search-reset="searchAttrReset" |
| | | @row-click="selectionAttrRowClick" |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,屿§ç 段ï¼å
¬å¼ç¼è¾æ¡å¯¹è¯æ¡ç»ä»¶ --> |
| | | <formula-editor ref="formulaEditor" |
| | | <formula-editor |
| | | ref="formulaEditor" |
| | | @updateFormulaContent="updateFormulaContent" |
| | | :thisSceneTableData="thisSceneTableData" |
| | | :systemVariableTableData="systemVariableTableData"> |
| | | :thisSceneTableData="formulaEditorParams.thisSceneTableData" |
| | | :visible.sync="formulaEditorParams.formulaEditorSettingBox" |
| | | :systemVariableTableData="formulaEditorParams.systemVariableTableData"> |
| | | </formula-editor> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãç¶åç±»ç æ®µãéåå¼å¯¹è¯æ¡ --> |
| | | <el-dialog title="为ãç¶åç±»ç æ®µãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowParentClassifyOption" |
| | | :visible.sync="parentClsfyParams.isShowParentClassifySettingBox" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;" |
| | | destroy-on-close> |
| | | <avue-crud |
| | | :page.sync="parentClassifyDataPage" |
| | | ref="crudParentClassify" |
| | | :option="parentClassifyParentOption" |
| | | :table-loading="classifyDialogLoading" |
| | | :data="parentClassifyData" |
| | | :page.sync="parentClsfyParams.parentClassifyDataPage" |
| | | :ref="parentClsfyParams.ref" |
| | | :option="parentClsfyParams.parentClassifyParentOption" |
| | | :table-loading="parentClsfyParams.classifyDialogLoading" |
| | | :data="parentClsfyParams.parentClassifyData" |
| | | @refresh-change="refreshParentClassifyDataChange" |
| | | @search-change="parentClassifySearchChange" |
| | | @search-reset="parentClassifySearchReset" |
| | |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="saveSelectedParentClassify">ä¿ å</el-button> |
| | | <el-button @click="isShowParentClassifyOption = false">å æ¶</el-button> |
| | | <el-button @click="parentClsfyParams.isShowParentClassifySettingBox = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¼¹å¯¹è¯æ¡ --> |
| | | <el-dialog title="为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼" |
| | | append-to-body |
| | | :visible.sync="isShowSelectReferBtmOption" |
| | | width="65%" |
| | | style="height: 150vh; margin-top: -13vh;"> |
| | | <avue-crud |
| | | :page.sync="referBtmDataPage" |
| | | ref="crudReferBtm" |
| | | :option="referBtmOption" |
| | | :table-loading="referBtmDialogLoading" |
| | | :data="referBtmData" |
| | | @refresh-change="referBtmDataChange" |
| | | @search-change="referBtmSearchChange" |
| | | @search-reset="referBtmSearchReset" |
| | | @selection-change="referBtmSelectionChange" |
| | | @current-change="referBtmCurrentChange" |
| | | @size-change="referBtmSizeChange" |
| | | @row-click="referBtmRowClick"> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="saveSelectedreferBtm">ä¿ å</el-button> |
| | | <el-button @click="isShowSelectReferBtmOption = false">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 第äºå±å¯¹è¯æ¡,为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼å¯¹è¯æ¡ --> |
| | | <refer-btm-type-crud-dialog |
| | | :visible.sync="referBtmDialogParams.selectReferBtmSettingBox" |
| | | :ref="referBtmDialogParams.ref" |
| | | @echoReferBtmType="echoReferBtmType"> |
| | | </refer-btm-type-crud-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,èªå®ä¹åç
§é
ç½®Formç»ä»¶ --> |
| | | <refer-config-form-dialog |
| | |
| | | addSave, |
| | | refDataGridClassifySec, |
| | | } from "@/api/code/codebasic"; |
| | | import { treeTopCodeClassify, listClassifyLinkAttr } from "@/api/code/codeclassify"; |
| | | import { listClassifyLinkAttr } from "@/api/code/codeclassify"; |
| | | import { gridCodeFixedValue,addSaveCodeFixedValue,deleteCodeFixedValue,editCodeFixedValue,saveOrder } from "@/api/code/codeFixedValue"; |
| | | import { treeCodeClassifyValue,addSaveCodeClassifyValue,editCodeClassifyValue,deleteCodeClassifyValue,saveCodeClassifyValueOrder } from "@/api/code/codeClassifyValue"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | import optionBasic from "@/const/code/codebasic"; |
| | | import cloneOption from "@/const/code/cloneOption"; |
| | | import cloneBasicOption from "@/const/code/cloneBasicDialogOption"; |
| | | import cloneCodeRuleOption from "@/const/code/cloneCodeRuleDialogOption.js"; |
| | | import cloneCodeRuleOption from "@/const/code/cloneCodeRuleDialogOption"; |
| | | import optionRule from "@/const/code/mdmrule"; |
| | | import attrOption from "@/const/code/selectAttrOptionDialog"; |
| | | import treeOption from "@/const/code/classifyTreeOptionDialog"; |
| | | import classisyValueTreeOption from "@/const/code/classisyValueTreeDialog"; |
| | | import parentClassifyParentOption from "@/const/code/parentClassifyParentOptionDialog"; |
| | | import referBtmOption from "@/const/code/referBtmDialog"; |
| | | import fixedValueOption from "@/const/code/fixedValueMgrDialog"; |
| | | import {mapGetters} from "vuex"; |
| | | import func from "@/util/func"; |
| | | import {MasterTable} from "@/api/GetItem"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | treeOption: treeOption, |
| | | currentSelectTreeData: '', //å½åéä¸çæ èç¹ |
| | | /* ä¸ºå±æ§éå¼å³ä¾§è¡¨æ ¼ç¸å
³æ°æ® */ |
| | | attrOption: attrOption, |
| | | selectattrData: [], |
| | | selectAttrOptionLoading: false, |
| | | selectionChangeAttrList: [], |
| | | // 屿§ç 段ï¼å
¬å¼ç¼è¾æ¡ç»ä»¶çæ¬åºæ¯æ¾ç¤ºåéãä¸ç³»ç»åé |
| | | thisSceneTableData: [ |
| | | { |
| | | formula: "${}", |
| | | desc: "", |
| | | } |
| | | ], |
| | | systemVariableTableData: [ |
| | | { |
| | | formula: "#CURRENTUSER.OID#", |
| | | desc: "å½åç¨æ·ç主é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ID#", |
| | | desc: "å½åç¨æ·çè´¦æ·", |
| | | }, |
| | | { |
| | | formula: "#CURRENTTIME#", |
| | | desc: "å½åæ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATE#", |
| | | desc: "å½åæ¥æ", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATETIME#", |
| | | desc: "å½åæ¥ææ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER_NAME#", |
| | | desc: "å½åç¨æ·çå§å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.SECRETGRADE#", |
| | | desc: "å½åç¨æ·å¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.IPSECRET#", |
| | | desc: "å½åç¨æ·çIPå¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNIT#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNITNAME#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPOID#", |
| | | desc: "å½åç¨æ·çé¨é¨ä¸»é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPNAME#", |
| | | desc: "å½åç¨æ·æå±é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.EMAIL#", |
| | | desc: "å½åç¨æ·é®ä»¶å°å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ROLENAME#", |
| | | desc: "å½åç¨æ·æå±è§è²åç§°", |
| | | }, |
| | | ], |
| | | |
| | | /* ç¶åç±»ç æ®µå¯¹è¯æ¡ */ |
| | | isShowParentClassifyOption: false, //ç¶åç±»ç æ®µå¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | classifyDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | parentClassifyParentOption: parentClassifyParentOption, //è¡¨æ ¼é
ç½® |
| | | parentClassifyData: [], //è¡¨æ ¼æ°æ® |
| | | //å页忰é
ç½® |
| | | parentClassifyDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | |
| | | selectAttrParams: { |
| | | ref: "selectionAttrCrud", |
| | | attrOption: attrOption, |
| | | selectAttrData: [], |
| | | selectAttrOptionLoading: false, |
| | | selectionChangeAttrList: [], |
| | | selectAttrQeury: {}, |
| | | }, |
| | | parentClassifyQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | parentClassifySelectionList: [], //å½åéä¸è¡ |
| | | |
| | | // 屿§ç 段ï¼å
¬å¼ç¼è¾æ¡ç»ä»¶çæ¬åºæ¯æ¾ç¤ºåéãä¸ç³»ç»åé |
| | | formulaEditorParams: { |
| | | thisSceneTableData: [ |
| | | { |
| | | formula: "${}", |
| | | desc: "", |
| | | } |
| | | ], |
| | | systemVariableTableData: [ |
| | | { |
| | | formula: "#CURRENTUSER.OID#", |
| | | desc: "å½åç¨æ·ç主é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ID#", |
| | | desc: "å½åç¨æ·çè´¦æ·", |
| | | }, |
| | | { |
| | | formula: "#CURRENTTIME#", |
| | | desc: "å½åæ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATE#", |
| | | desc: "å½åæ¥æ", |
| | | }, |
| | | { |
| | | formula: "#CURRENTDATETIME#", |
| | | desc: "å½åæ¥ææ¶é´", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER_NAME#", |
| | | desc: "å½åç¨æ·çå§å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.SECRETGRADE#", |
| | | desc: "å½åç¨æ·å¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.IPSECRET#", |
| | | desc: "å½åç¨æ·çIPå¯çº§", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNIT#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.BUSINESSUNITNAME#", |
| | | desc: "å½åç¨æ·æå±ä¸å¡åå
åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPOID#", |
| | | desc: "å½åç¨æ·çé¨é¨ä¸»é®", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.GROUPNAME#", |
| | | desc: "å½åç¨æ·æå±é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.EMAIL#", |
| | | desc: "å½åç¨æ·é®ä»¶å°å", |
| | | }, |
| | | { |
| | | formula: "#CURRENTUSER.ROLENAME#", |
| | | desc: "å½åç¨æ·æå±è§è²åç§°", |
| | | }, |
| | | ], |
| | | formulaEditorSettingBox: false, |
| | | }, |
| | | |
| | | /* ç¶åç±»ç æ®µå¯¹è¯æ¡ */ |
| | | parentClsfyParams: { |
| | | ref: 'crudParentClassify', |
| | | isShowParentClassifySettingBox: false, //ç¶åç±»ç æ®µå¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | classifyDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | parentClassifyParentOption: parentClassifyParentOption, //è¡¨æ ¼é
ç½® |
| | | parentClassifyData: [], //è¡¨æ ¼æ°æ® |
| | | //å页忰é
ç½® |
| | | parentClassifyDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | parentClassifyQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | parentClassifySelectionList: [], //å½åéä¸è¡ |
| | | }, |
| | | |
| | | /** åç
§å¼ç¨çä¸å¡ç±»åå¯¹è¯æ¡ç¸å
³æ°æ® */ |
| | | isShowSelectReferBtmOption: false, //å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | referBtmDialogLoading: true, //è¡¨æ ¼æ°æ®å è½½æç¤º |
| | | referBtmDataPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | referBtmDialogParams: { |
| | | ref: 'crudReferBtm', |
| | | selectReferBtmSettingBox: false, |
| | | }, |
| | | referBtmOption: referBtmOption, //è¡¨æ ¼é
ç½® |
| | | referBtmData: [], //è¡¨æ ¼æ°æ® |
| | | referBtmQuery: {}, //æ¥è¯¢æ¡ä»¶ |
| | | referBtmSelectionList: [], //å½åéä¸è¡ |
| | | |
| | | /** åºç¡ç 段æ°å¢è¡¨å */ |
| | | form: { |
| | |
| | | componentCodeFlag: false, //æ¯å¦åä¸ç¼ç |
| | | pkCodeRule: '', //æå±ç¼ç è§å |
| | | }, |
| | | // formRules: { |
| | | // id: [ |
| | | // { required: true, message: '请è¾å
¥ç 段ç¼å·', trigger: 'blur' }, |
| | | // ], |
| | | // name: [ |
| | | // { required: true, message: '请è¾å
¥ç 段åç§°', trigger: 'blur' }, |
| | | // ], |
| | | // secType: [ |
| | | // { required: true, message: '请éä¸ç 段类å', trigger: 'change' }, |
| | | // ], |
| | | // codeSecLengthType: [ |
| | | // { required: true, message: 'è¯·éæ©ç æ®µé¿åº¦ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // codeSecLength: [ |
| | | // { required: true, message: '请è¾å
¥ç 段çé¿åº¦', trigger: ['blur', 'change']}, |
| | | // { type: 'number', message: 'ç æ®µçé¿åº¦å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // referAttributeName: [ |
| | | // { required: true, message: 'è¯·éæ©å±æ§', trigger: 'change' }, |
| | | // ], |
| | | // serialStart: [ |
| | | // { type: 'number', message: 'æµæ°´å·çèµ·å§å¼å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // serialStep: [ |
| | | // { type: 'number', message: 'æµæ°´çæ¥é¿å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeFillType: [ |
| | | // { required: true, message: 'è¯·éæ©ç¼ç è¡¥ä½æ¹å¼', trigger: ['blur', 'change']}, |
| | | // ], |
| | | // // è®¾ç½®è¡¥ä½æ¶çå符ï¼éè¦èªå®ä¹æ¥å夿 |
| | | // codeFillSeparatorSelect: [ |
| | | // { validator: validateCodeFill, trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // codeFillLength: [ |
| | | // { required: true, message: '请è¾å
¥å¡«å
é¿åº¦', trigger: ['blur', 'change'] }, |
| | | // { type: 'number', message: 'å¡«å
é¿åº¦å¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeFillLimit: [ |
| | | // { required: true, message: '请è¾å
¥æµæ°´ä¸é', trigger: ['blur', 'change'] }, |
| | | // { type: 'number', message: 'æµæ°´ä¸éå¿
须为æ°åå¼',trigger: ['blur', 'change']} |
| | | // ], |
| | | // codeLevelType: [ |
| | | // { required: true, message: 'è¯·éæ©å±çº§ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // codeLevelValue: [ |
| | | // { required: false, type: 'number', message: 'å±çº§çå¼å¿
须为æ°åå¼', trigger: 'change'} |
| | | // ], |
| | | // valueCutType: [ |
| | | // { required: true, message: 'è¯·éæ©å符æªåç±»å', trigger: 'change' }, |
| | | // ], |
| | | // referBtmId: [ |
| | | // { required: true, message: 'è¯·éæ©åç
§åºç¨çä¸å¡ç±»å', trigger: 'change' }, |
| | | // ], |
| | | // referConfig: [ |
| | | // { required: true, message: 'è¯·éæ©åç
§é
ç½®', trigger: 'change' }, |
| | | // ], |
| | | // codeDateFormatStr: [ |
| | | // { required: true, message: '请è¾å
¥æ¥ææ ¼å¼', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | |
| | | // }, |
| | | |
| | | //æä¸¾åå¯è¾å¯éæ¥è¯¢ |
| | | sectypeList:[], //ç æ®µç±»å |
| | | codeSecLengthType:[], //ç æ®µé¿åº¦ç±»å |
| | | codeFillType:[], //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparator:[], //è¡¥ä½æ¶çå符ï¼å¯è¾å¯éå
容 |
| | | codeLevelType:[], //å±çº§ç±»å |
| | | codeCutType:[], //å符æªåç±»å |
| | | codeGetValueType:[], //åå¼ç±»å |
| | | enumParam: { |
| | | secTypeList:[], //ç æ®µç±»å |
| | | codeSecLengthType:[], //ç æ®µé¿åº¦ç±»å |
| | | codeFillType:[], //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparator:[], //è¡¥ä½æ¶çå符ï¼å¯è¾å¯éå
容 |
| | | codeLevelType:[], //å±çº§ç±»å |
| | | codeCutType:[], //å符æªåç±»å |
| | | codeGetValueType:[], //åå¼ç±»å |
| | | }, |
| | | |
| | | //表åå
ç´ æ ç¾å®½åº¦ |
| | | leftFormLabelWidth: '110px', |
| | | rightFormLabelWidth: '150px', |
| | | |
| | | // é«çº§æ¥è¯¢å¯¹è¯æ¡ç¸å
³åæ° |
| | | advancedQueryParam: { |
| | | ref: 'advancedQuery', |
| | | advancedQuerySettingBox: false, |
| | | options: {}, |
| | | //conditionMapParams: {}, |
| | | }, |
| | | |
| | | }; |
| | | }, |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | created() { |
| | | MasterTable({ |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | console.log(res.data.tableDefineVO.seniorQueryColumns); |
| | | this.advancedQueryParam.options = res.data.tableDefineVO.seniorQueryColumns; |
| | | }) |
| | | // this.advancedQueryParam.options = [ |
| | | // { |
| | | // data: [], |
| | | // title: 'ç¼å·', |
| | | // fieldType: 'text', |
| | | // queryField: 'id', |
| | | // },{ |
| | | // data: [], |
| | | // title: 'åç§°', |
| | | // fieldType: 'text', |
| | | // queryField: 'name', |
| | | // },{ |
| | | // data: [], |
| | | // title: 'æè¿°', |
| | | // fieldType: 'text', |
| | | // queryField: 'description', |
| | | // }, { |
| | | // data: [], |
| | | // title: 'ç¶æ', |
| | | // fieldType: 'text', |
| | | // queryField: 'description', |
| | | // } |
| | | // ] |
| | | }, |
| | | watch:{ |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | /** é«çº§æ¥è¯¢å¯¹è¯æ¡ç»ä»¶,ç»ä»¶è¿åç弿¯condtionMap[field]å½¢å¼çæ¥è¯¢æ¡ä»¶ï¼ä¿çåä¹å䏿 · */ |
| | | echoSeniorContionMap(conditionMaps){ |
| | | console.log(conditionMaps); |
| | | |
| | | }, |
| | | |
| | | /* å
¬å¼ç¼è¾æ¡å
容æ¹å,åç»ä»¶ç¼è¾å®å
¬å¼ä¹åå
容忾æ¶è°ç¨ */ |
| | | updateFormulaContent(content){ |
| | | this.form.getValueClass = content; |
| | | }, |
| | | |
| | | /* å¼ç¨ç 段åç
§é
ç½®,åç»ä»¶å¡«å®åç
§é
ç½®ä¹åå
容忾æ¶è°ç¨ */ |
| | | echoReferConfig(content){ |
| | | // console.log(content.referTypeName); |
| | |
| | | let submitFormJson = JSON.stringify(content); |
| | | this.form.referConfig = submitFormJson; |
| | | }, |
| | | /** å¼ç¨ç 段为ãåç
§å¼ç¨çä¸å¡ç±»åãéåå¼ä¹åçå
容忾æ¶è°ç¨ */ |
| | | echoReferBtmType(content){ |
| | | // å®ç°åæ¾ |
| | | this.form.referBtmId = content.id; |
| | | this.form.referBtmName = content.name; |
| | | }, |
| | | |
| | | /** 为åç
§å¼ç¨çä¸å¡ç±»åéåå¼ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // è¡¨æ ¼æ°æ®å·æ°æé® |
| | | referBtmDataChange(){ |
| | | this.referBtmOnLoad(this.referBtmDataPage, this.referBtmQuery); |
| | | }, |
| | | saveSelectedreferBtm(){ |
| | | if(this.referBtmSelectionList.length != 1){ |
| | | this.$message.warning("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.form.referBtmId = this.referBtmSelectionList[0].id; |
| | | this.form.referBtmName = this.referBtmSelectionList[0].name; |
| | | //æ¸
空å½åéä¸çè¡ |
| | | this.referBtmSelectionClear(); |
| | | this.isShowSelectReferBtmOption = false; |
| | | }, |
| | | referBtmSearchReset() { |
| | | this.referBtmQuery = {}; |
| | | this.referBtmOnLoad(this.referBtmDataPage); |
| | | }, |
| | | referBtmSearchChange(params, done) { |
| | | this.referBtmQuery = params; |
| | | this.referBtmDataPage.currentPage = 1; |
| | | this.referBtmOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | // åå»éä¸è¡¨æ ¼è¡æ¶è§¦å |
| | | referBtmRowClick(row){ |
| | | this.$refs.crudReferBtm.toggleSelection(); |
| | | this.referBtmSelectionList = row; |
| | | this.$refs.crudReferBtm.setCurrentRow(row); |
| | | this.$refs.crudReferBtm.toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | referBtmSelectionChange(list) { |
| | | this.referBtmSelectionList = list; |
| | | this.$refs.crudReferBtm.setCurrentRow(this.referBtmSelectionList[list.length-1]); |
| | | }, |
| | | referBtmSelectionClear() { |
| | | this.referBtmSelectionList = []; |
| | | this.$refs.crudReferBtm.toggleSelection(); |
| | | }, |
| | | referBtmCurrentChange(currentPage){ |
| | | this.referBtmDataPage.currentPage = currentPage; |
| | | }, |
| | | referBtmSizeChange(pageSize){ |
| | | this.referBtmDataPage.pageSize = pageSize; |
| | | }, |
| | | refreshReferBtmDataChange() { |
| | | this.referBtmOnLoad(this.referBtmDataPage, this.referBtmQuery); |
| | | }, |
| | | //å è½½ä¸åç
§å¼ç¨çä¸å¡ç±»åçæ°æ® |
| | | referBtmOnLoad(page, params = {}) { |
| | | //è¡¨æ ¼è¡éä½é®é¢ |
| | | this.$nextTick(() => { |
| | | this.$refs.crudReferBtm.doLayout(); |
| | | }) |
| | | this.referBtmDialogLoading = true; |
| | | let oid = this.selectionList.length==0 ? this.form.pkCodeRule:this.selectionList[0].oid; |
| | | Object.assign(params,{pkCodeRule:oid}) |
| | | //æ¥å£è¿æªæä¾ï¼å¾
æ´æ¹ |
| | | refDataGridClassifySec(page.currentPage, page.pageSize, Object.assign(params, this.parentClassifyQuery)).then(res => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.referBtmDataPage.total = data.total; |
| | | this.referBtmData = data.records; |
| | | this.referBtmDialogLoading = false; |
| | | this.referBtmSelectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** ç¶åç±»éæ©å¯¹è¯æ¡ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ï¼åå
¶ç¸å
³æ¹æ³ */ |
| | | // ä¿åå½åç¶åç±»ç æ®µçéä¸è¡ï¼å¹¶è¿è¡åæ¾ |
| | | saveSelectedParentClassify(){ |
| | | //console.log(this.parentClassifySelectionList.length); |
| | | if(this.parentClassifySelectionList.length != 1){ |
| | | //console.log(this.parentClsfyParams.parentClassifySelectionList.length); |
| | | if(this.parentClsfyParams.parentClassifySelectionList.length != 1){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //åæ°å¼ï¼å®ç°åæ¾ |
| | | this.form.parentClassifySecOid = this.parentClassifySelectionList[0].oid; |
| | | this.form.parentClassifySecText = this.parentClassifySelectionList[0].name; |
| | | this.form.parentClassifySecOid = this.parentClsfyParams.parentClassifySelectionList[0].oid; |
| | | this.form.parentClassifySecText = this.parentClsfyParams.parentClassifySelectionList[0].name; |
| | | //æ¸
空å½åéä¸çè¡ |
| | | this.parentClassifySelectionClear(); |
| | | this.isShowParentClassifyOption = false; |
| | | this.parentClsfyParams.isShowParentClassifySettingBox = false; |
| | | }, |
| | | parentClassifySearchReset() { |
| | | this.parentClassifyQuery = {}; |
| | | this.parentClassifyOnLoad(this.parentClassifyDataPage); |
| | | this.parentClsfyParams.parentClassifyQuery = {}; |
| | | this.parentClassifyOnLoad(this.parentClsfyParams.parentClassifyDataPage); |
| | | }, |
| | | parentClassifySearchChange(params, done) { |
| | | this.parentClassifyQuery = params; |
| | | this.parentClassifyDataPage.currentPage = 1; |
| | | this.parentClsfyParams.parentClassifyQuery = params; |
| | | this.parentClsfyParams.parentClassifyDataPage.currentPage = 1; |
| | | this.parentClassifyOnLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | parentClassifyRowClick(row){ |
| | | this.$refs.crudParentClassify.toggleSelection(); |
| | | this.parentClassifySelectionList = row; |
| | | this.$refs.crudParentClassify.setCurrentRow(row); |
| | | this.$refs.crudParentClassify.toggleRowSelection(row); //éä¸å½åè¡ |
| | | this.$refs[this.parentClsfyParams.ref].toggleSelection(); |
| | | this.parentClsfyParams.parentClassifySelectionList = row; |
| | | this.$refs[this.parentClsfyParams.ref].setCurrentRow(row); |
| | | this.$refs[this.parentClsfyParams.ref].toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | parentClassifySelectionChange(list) { |
| | | this.parentClassifySelectionList = list; |
| | | this.$refs.crudParentClassify.setCurrentRow(this.parentClassifySelectionList[list.length-1]); |
| | | this.parentClsfyParams.parentClassifySelectionList = list; |
| | | this.$refs[this.parentClsfyParams.ref].setCurrentRow(this.parentClsfyParams.parentClassifySelectionList[list.length-1]); |
| | | }, |
| | | parentClassifySelectionClear() { |
| | | this.parentClassifySelectionList = []; |
| | | this.$refs.crudParentClassify.toggleSelection(); |
| | | this.parentClsfyParams.parentClassifySelectionList = []; |
| | | this.$refs[this.parentClsfyParams.ref].toggleSelection(); |
| | | }, |
| | | parentClassifyCurrentChange(currentPage){ |
| | | this.parentClassifyDataPage.currentPage = currentPage; |
| | | this.parentClsfyParams.parentClassifyDataPage.currentPage = currentPage; |
| | | }, |
| | | parentClassifySizeChange(pageSize){ |
| | | this.parentClassifyDataPage.pageSize = pageSize; |
| | | this.parentClsfyParams.parentClassifyDataPage.pageSize = pageSize; |
| | | }, |
| | | refreshParentClassifyDataChange() { |
| | | this.parentClassifyOnLoad(this.parentClassifyDataPage, this.parentClassifyQuery); |
| | | this.parentClassifyOnLoad(this.parentClsfyParams.parentClassifyDataPage, this.parentClsfyParams.parentClassifyQuery); |
| | | }, |
| | | parentClassifyOnLoad(page, params = {}) { |
| | | this.classifyDialogLoading = true; |
| | | let parentClsParam = this.parentClsfyParams; |
| | | parentClsParam.classifyDialogLoading = true; |
| | | let oid = this.selectionList.length==0 ? this.form.pkCodeRule:this.selectionList[0].oid; |
| | | Object.assign(params,{pkCodeRule:oid}) |
| | | refDataGridClassifySec(page.currentPage, page.pageSize, Object.assign(params, this.parentClassifyQuery)).then(res => { |
| | | refDataGridClassifySec(page.currentPage, page.pageSize, Object.assign(params, parentClsParam.parentClassifyQuery)).then(res => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | | this.parentClassifyDataPage.total = data.total; |
| | | this.parentClassifyData = data.records; |
| | | this.classifyDialogLoading = false; |
| | | parentClsParam.parentClassifyDataPage.total = data.total; |
| | | parentClsParam.parentClassifyData = data.records; |
| | | parentClsParam.classifyDialogLoading = false; |
| | | this.parentClassifySelectionClear(); |
| | | }); |
| | | }, |
| | |
| | | this.loadlistClassifyLinkAttr() |
| | | }, |
| | | // å è½½åç±»è¿æ¥å±æ§è¡¨æ ¼æ°æ® |
| | | loadlistClassifyLinkAttr(condition) { |
| | | //è¿å¿è¿éè¦å®å |
| | | this.selectAttrOptionLoading = true; |
| | | listClassifyLinkAttr({"page": 1,"limit": -1,'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid}).then(res=>{ |
| | | console.log(res.data.data); |
| | | this.selectattrData = res.data.data; |
| | | this.selectAttrOptionLoading = false; |
| | | loadlistClassifyLinkAttr() { |
| | | let attrParam = this.selectAttrParams; |
| | | //console.log(this.currentSelectTreeData); |
| | | attrParam.selectAttrOptionLoading = true; |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(attrParam.selectAttrQeury){ |
| | | Object.keys(attrParam.selectAttrQeury).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = attrParam.selectAttrQeury[key]; |
| | | }); |
| | | } |
| | | param['conditionMap[codeClassifyOid]'] = this.currentSelectTreeData.oid; |
| | | param['conditionMap[btmTypeOid]'] = this.currentSelectTreeData.btmTypeOid; |
| | | listClassifyLinkAttr(param).then(res=>{ |
| | | //console.log(res.data.data); |
| | | attrParam.selectAttrData = res.data.data; |
| | | attrParam.selectAttrOptionLoading = false; |
| | | this.$nextTick(() => { |
| | | this.$refs[attrParam.ref].doLayout() |
| | | }); |
| | | }) |
| | | }, |
| | | // ç¹å»æç´¢å触å该äºä»¶ |
| | | selectAttrSearchChange(params, done) { |
| | | this.query = params; |
| | | this.selectAttrParams.selectAttrQeury = params; |
| | | //console.log(params); //è¿å¿éè¦æ¹ |
| | | this.loadlistClassifyLinkAttr(Object.assign(params,{'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid})); |
| | | this.loadlistClassifyLinkAttr(); |
| | | done(); |
| | | }, |
| | | // ä¸ºå±æ§éå¼çé¢ï¼åå»è¡¨æ ¼è¡æ¶è§¦å该äºä»¶ |
| | | selectionAttrRowClick(row){ |
| | | this.$refs.selectionAttrCrud.toggleSelection(); |
| | | this.selectionChangeAttrList = row; |
| | | this.$refs.selectionAttrCrud.setCurrentRow(row); |
| | | this.$refs.selectionAttrCrud.toggleRowSelection(row); //éä¸å½åè¡ |
| | | this.$refs[this.selectAttrParams.ref].toggleSelection(); |
| | | this.selectAttrParams.selectionChangeAttrList = row; |
| | | this.$refs[this.selectAttrParams.ref].setCurrentRow(row); |
| | | this.$refs[this.selectAttrParams.ref].toggleRowSelection(row); //éä¸å½åè¡ |
| | | }, |
| | | // 屿§åå¼å½åéä¸è¡åçååæ¶è§¦å |
| | | selectionChangeAttr(list){ |
| | | this.selectionChangeAttrList = list; |
| | | this.$refs.selectionAttrCrud.setCurrentRow(this.selectionChangeAttrList[list.length-1]); |
| | | this.selectAttrParams.selectionChangeAttrList = list; |
| | | this.$refs[this.selectAttrParams.ref].setCurrentRow(this.selectAttrParams.selectionChangeAttrList[list.length-1]); |
| | | }, |
| | | // éç½®ä½å±æ§éåå¼è¡¨æ ¼çæç´¢æ¡ä¹åçåè° |
| | | searchAttrReset() { |
| | | this.selectAttrParams.selectAttrQeury = {}; |
| | | this.loadlistClassifyLinkAttr() |
| | | }, |
| | | // ä¸ºå±æ§éåå¼ä¹åçåæ¾ |
| | | selectedListClassifyLinkAttr(){ |
| | | if(this.selectionChangeAttrList.length != 1){ |
| | | if(this.selectAttrParams.selectionChangeAttrList.length != 1){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | return false; |
| | | } |
| | | //è°ç¨åç»ä»¶å¹¶ä¼ éå½åéä¸çåæ°å¼ï¼å®ç°åæ¾ |
| | | this.form = Object.assign({}, this.form, { |
| | | referAttributeId:this.selectionChangeAttrList[0].id, |
| | | referAttributeName:this.selectionChangeAttrList[0].name, |
| | | referAttributeId:this.selectAttrParams.selectionChangeAttrList[0].id, |
| | | referAttributeName:this.selectAttrParams.selectionChangeAttrList[0].name, |
| | | referCodeClassifyOid: this.currentSelectTreeData.key, |
| | | referCodeClassifyOidName: this.currentSelectTreeData.title, |
| | | }) |
| | |
| | | window.console.log(error); |
| | | }); |
| | | }else { |
| | | if(this.codeClassifyForm.id.trim() == ''){ |
| | | this.$message.warning("ç å¼ä¸è½ä¸ºç©ºï¼"); |
| | | return; |
| | | } |
| | | if(this.codeClassifyForm.id.trim().length > 4 ){ |
| | | this.$message.warning("ç å¼é¿åº¦ä¸è½å¤§äº4ï¼"); |
| | | return; |
| | | } |
| | | this.codeClassifyForm.codeClassifySecOid = this.codefixedsecOrCodeclassifysecOid; |
| | | console.log(this.codeClassifyForm); |
| | | // console.log(this.codeClassifyForm); |
| | | addSaveCodeClassifyValue(this.codeClassifyForm).then(() => { |
| | | this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid}); |
| | | this.clearFixedOrClassifyForm('codeclassifyvaluesec'); |
| | |
| | | |
| | | |
| | | /** ç¼ç è§åç¸å
³æ¹æ³ */ |
| | | // æå¼é«çº§æ¥è¯¢çªå£ |
| | | openAdvancedQuery(){ |
| | | this.advancedQueryParam.advancedQuerySettingBox = !this.advancedQueryParam.advancedQuerySettingBox; |
| | | }, |
| | | // æ¥è¯¢ä½¿ç¨èå´ |
| | | handleRange(){ |
| | | if(!this.tipsMessage(this.selectionList)){ |
| | |
| | | this.isShowSelectAttrOption = true; |
| | | }else if(condition === 'value'){ |
| | | //æå¼å
¬å¼ç¼è¾æ¡ï¼ç¬¬äºå±åµå¥å¯¹è¯æ¡ |
| | | this.$refs.formulaEditor.isShowformulaEdit = true; |
| | | //this.$refs.formulaEditor.isShowformulaEdit = true; |
| | | this.formulaEditorParams.formulaEditorSettingBox = true; |
| | | }else if(condition === 'parentClassifySecOid'){ |
| | | this.isShowParentClassifyOption = true; |
| | | this.parentClsfyParams.isShowParentClassifySettingBox = true; |
| | | }else if(condition === 'referBtmId'){ |
| | | this.isShowSelectReferBtmOption = true; |
| | | this.refreshReferBtmDataChange(); |
| | | this.referBtmDialogParams.selectReferBtmSettingBox = true; |
| | | // è°ç¨åç»ä»¶å·æ°è¡¨æ ¼æ°æ® |
| | | this.$refs[this.referBtmDialogParams.ref].referBtmOnLoad(); |
| | | }else if(condition === 'referConfig'){ |
| | | if(func.notEmpty(this.form.referConfig) || func.notEmpty(this.form.referBtmName)){ |
| | | this.openReconfigInterFace(this.form); |
| | | }else{ |
| | | this.openTipsChooseOrCust(); |
| | | } |
| | | //this.$refs.referConfigFormDialog.onloadAttrData(); |
| | | } |
| | | }, |
| | | |
| | | // å½åå·²åå¨ç¼è¾è¿çåå±é
ç½®ï¼æä»¥ç´æ¥æå¼åç
§é
ç½®çé¢ |
| | | // å½åå·²åå¨ç¼è¾è¿çåç
§é
ç½®ï¼æä»¥ç´æ¥æå¼åç
§é
ç½®çé¢ |
| | | openReconfigInterFace(preReferConfigForm){ |
| | | // console.log(preReferConfigForm); |
| | | this.$refs.referConfigFormDialog.isShowReferConfigForm = true; |
| | |
| | | // ç æ®µç±»åæ¹åæ¶ï¼å¢å 对åºçform表åä¸ç屿§ |
| | | changeSectypeFormItems(row){ |
| | | //console.log(row); |
| | | if(this.sectypeList.length==0){ |
| | | if(this.enumParam.secTypeList.length==0){ |
| | | this.loadCodeSecType(); |
| | | } |
| | | if(row != null){ |
| | |
| | | codeSecLength: row!=null&&row.codeSecLength != '' ? row.codeSecLength:'', //ç æ®µçé¿åº¦ |
| | | serialStart: row!=null&&row.serialStart != '' ? row.serialStart:1, //æµæ°´å·èµ·å§å¼ |
| | | serialStep: row!=null&&row.serialStep != '' ? row.serialStep:1, //æµæ°´çæ¥é¿ |
| | | codeFillType: row!=null&&row.codeFillType != '' ? row.codeFillType:'code_fill_right', //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillType: row!=null&&row.codeFillType != '' ? row.codeFillType:'code_fill_left', //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparatorSelect: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparatorSelect:0, //è¡¥ä½æ¶çå符ï¼éä¸ç䏿æ¡ç䏿 |
| | | codeFillSeparator: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparator:0, //è¡¥ä½æ¶çå符 |
| | | codeFillLength: row!=null&&row.codeFillLength != '' ? row.codeFillLength:'', //å¡«å
é¿åº¦ |
| | |
| | | //æä¸¾åå¯è¾å¯éå
容æ¥è¯¢ |
| | | loadCodeSecType(){ |
| | | getDictionary({code: "codeSecType"}).then(res=>{ |
| | | this.sectypeList = res.data.data; |
| | | this.enumParam.secTypeList = res.data.data; |
| | | }) |
| | | this.loadCodeSecLength(); |
| | | }, |
| | | loadCodeSecLength(){ |
| | | getDictionary({code: "codeSecLength"}).then(res=>{ |
| | | this.codeSecLengthType = res.data.data; |
| | | this.enumParam.codeSecLengthType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeFillType(){ |
| | | getDictionary({code: "codeFillType"}).then(res=>{ |
| | | this.codeFillType = res.data.data; |
| | | this.enumParam.codeFillType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeFillSeparator(){ |
| | | getDictionary({code: "codeFillSeparator"}).then(res=>{ |
| | | this.codeFillSeparator = res.data.data; |
| | | this.enumParam.codeFillSeparator = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeLevelType(){ |
| | | getDictionary({code: "codeLevelType"}).then(res=>{ |
| | | this.codeLevelType = res.data.data; |
| | | this.enumParam.codeLevelType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeCutType(){ |
| | | getDictionary({code: "codeCutType"}).then(res=>{ |
| | | this.codeCutType = res.data.data; |
| | | this.enumParam.codeCutType = res.data.data; |
| | | }) |
| | | }, |
| | | loadCodeGetValueType(){ |
| | | getDictionary({code: "codeGetValueType"}).then(res=>{ |
| | | this.codeGetValueType = res.data.data; |
| | | this.enumParam.codeGetValueType = res.data.data; |
| | | }) |
| | | }, |
| | | |
| | |
| | | } |
| | | |
| | | .el-card__body > .treeBox { |
| | | height: 50vh; |
| | | height: 56vh; |
| | | } |
| | | |
| | | .el-col-5 > .box { |
| | | height: 55vh; |
| | | height: 56vh; |
| | | } |
| | | |
| | | .operator_,filter, .layui-btn{ |
| | |
| | | /** æ°å¢ç 段 */ |
| | | .add-basicsec-total { |
| | | width: 100%; |
| | | padding: 20px 0 0 0; |
| | | } |
| | | |
| | | .add-basicsec-total .el-input__inner,.add-basicsec-total .el-textarea__inner { |
| | |
| | | width: 20%; |
| | | } |
| | | } |
| | | |
| | | /deep/ .el-upload, |
| | | /deep/ .el-upload-dragger { |
| | | ::v-deep(.el-upload){ |
| | | width: 100%; |
| | | height: 120px; |
| | | } |
| | | |
| | | /deep/ .el-upload-dragger .el-icon-upload { |
| | | ::v-deep(.el-upload-dragger){ |
| | | width: 100%; |
| | | height: 120px; |
| | | } |
| | | ::v-deep(.el-upload-dragger .el-icon-upload) { |
| | | margin: 15px 0 16px; |
| | | } |
| | | </style> |
| | |
| | | </el-form> |
| | | <el-card> |
| | | <avue-crud :table-loading="loading" :data="mappingData" :option="optionMapping" ref="crudMapping" |
| | | @row-update="handleUpdate" @row-click="handleMapingRowClick"> |
| | | @row-update="handleMapingUpdate" @row-click="handleMapingClick" |
| | | @row-dblclick="handleMapingRowClick" @selection-change="selectionChange" @select="setCurrentRow" |
| | | @select-all="handleSelectAll"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="dialogPush = true">æ° å¢ |
| | | <el-button icon="el-icon-plus" size="small" type="primary" :disabled="disabledPush" @click="dialogPush = true">æ° å¢ |
| | | </el-button> |
| | | <el-button icon="el-icon-check" size="small" type="primary" @click="handleSave">ä¿ å |
| | | </el-button> |
| | |
| | | </el-card> |
| | | </el-main> |
| | | </el-container> |
| | | <el-dialog title="ç¼ç 屿§" :visible.sync="dialogPush" append-to-body="true" destroy-on-close width="30%" |
| | | <!-- <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-form> |
| | | <p class="text_tip">*éæ©åç±»è¿è¡å±æ§è¿æ»¤, æè
è¾å
¥å±æ§çå
¨æ¼æè
ç®æ¼è¿è¡æ¥è¯¢! å¦: å§å (å¯è¾å
¥xmæxinming )</p> |
| | | <transfer v-model="transferValue" :data="transferData" :filter-method="filterMethod" |
| | | filter-placeholder="请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" @left-check-change="handelLeftCheck"></transfer> |
| | | filter-placeholder="请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" :props="transferProps"></transfer> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogPush = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialogPush = false">ä¿ å</el-button> |
| | | <el-button type="primary" @click="handelTransferSave">ä¿ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </el-dialog> --> |
| | | <integration-transfer :visible.sync="dialogPush" :data="transferData" :props="transferProps" |
| | | @save="handelTransferSave"></integration-transfer> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import transfer from '@/components/transfer/index' |
| | | import integrationTransfer from './integrationTransfer.vue' |
| | | import pinyin from 'js-pinyin' |
| | | import { referCodeClassifyTree, referTree, gridAttrMapping, gridAttrRanges, batchAddSave, listCodeAttributeByClassId, syncClassifyModel } from '@/api/integration/integration.js' |
| | | export default { |
| | | components: { |
| | | transfer |
| | | integrationTransfer |
| | | }, |
| | | name: 'Integration', |
| | | data() { |
| | | const generateData = () => { |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | const data = []; |
| | | const cities = ['䏿µ·', 'å京', '广å·', 'æ·±å³', 'å京', '西å®', 'æé½']; |
| | | cities.forEach((city, index) => { |
| | | data.push({ |
| | | label: city, |
| | | key: index, |
| | | pinyin: pinyin.getFullChars(city), |
| | | pinyins: pinyin.getCamelChars(city), |
| | | }); |
| | | }); |
| | | return data; |
| | | }; |
| | | const options = { |
| | | menu: false, |
| | | delBtn: false, |
| | |
| | | cellBtn: true, |
| | | border: true, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | } |
| | | return { |
| | | // 表åå¼ |
| | | form: { |
| | | name: '', |
| | | // é墿 æ¾ç¤ºå¼ |
| | | groupValue: '' |
| | | }, |
| | | // æ£æµæ°å¢æé®ç¶æ |
| | | disabledPush: true, |
| | | // è¡¨æ ¼å è½½ä¸ |
| | | loading: false, |
| | | ishowTree: false, |
| | | search: '', |
| | | transferData: generateData(), |
| | | transferValue: [], |
| | | // ç©¿æ¢æ¡æ°æ® |
| | | transferData: [], |
| | | // dialogå¼¹çªå¼å
³ |
| | | dialogPush: false, |
| | | // 屿§æ å°è¡¨æ°æ® |
| | | mappingData: [], |
| | | // 屿§æ å°åå¼è¡¨æ°æ® |
| | | rangeData: [], |
| | | // ä¸»æ°æ®æ æç´¢è¿æ»¤ |
| | | filterText: '', |
| | | tableRowIndex: null, |
| | | tableColumnIndex: null, |
| | | // 屿§æ å°åå¼è¡¨é
ç½® |
| | | optinoRange: { |
| | | title: 'éå¢å±æ§', |
| | | title: '屿§æ å°åå¼èå´', |
| | | maxHeight: '300px', |
| | | header: false, |
| | | rowKey: 'oid', |
| | |
| | | ], |
| | | ...options |
| | | }, |
| | | // 屿§æ å°è¡¨é
ç½® |
| | | optionMapping: { |
| | | maxHeight: '500px', |
| | | header: true, |
| | | rowKey: 'oid', |
| | | selection: false, |
| | | column: [ |
| | | { label: 'éå¢åç±»', prop: 'sourceClassifyName', minWidth: 80 }, |
| | | { label: 'æå±è§å¾', prop: 'viewName', minWidth: 80 }, |
| | | { label: 'éå¢å±æ§', prop: 'sourceAttrName', minWidth: 80 }, |
| | | { label: 'åç±»åç§°', prop: 'targetClassifyName', minWidth: 80 }, |
| | | { label: '屿§åç§°', prop: 'targetAttrName', minWidth: 80 }, |
| | | { label: 'é»è®¤å¼', prop: 'defaultValue', minWidth: 140, cell: true, blur: (value) => window.handleBlur(value, 'mapping') }, |
| | | { |
| | | label: '屿§åç§°', |
| | | prop: 'targetAttrName', |
| | | minWidth: 80, |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | minWidth: 140, |
| | | cell: true, |
| | | blur: (value) => window.handleBlur(value, 'mapping') |
| | | }, |
| | | ], |
| | | ...options |
| | | }, |
| | | // ä¸»æ°æ®åç±»æ |
| | | treeData: [], |
| | | // éå¢åç±»æ |
| | | groupTreeData: [], |
| | | // æ poposæ¿æ¢å¼ |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'name', |
| | | id: 'oid', |
| | | isLeaf: '' |
| | | }, |
| | | transferProps: { |
| | | key: 'oid', |
| | | label: 'name' |
| | | |
| | | }, |
| | | // éå¢åç±»æ å¼ |
| | | groupVal: '', |
| | | // 左侧æ éæ©çidå¼ |
| | | treeParam: {}, |
| | | // è¡¨æ ¼éæ©çè¡ |
| | | rangeForm: {}, |
| | | mappingForm: {}, |
| | | // 宿¶å¨ |
| | | times: null, |
| | | |
| | | } |
| | | }, |
| | | watch: { |
| | | filterText(val) { |
| | | console.log(this.$refs.tree) |
| | | this.$refs.tree.filter(val); |
| | | } |
| | | }, |
| | |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | }, |
| | | mounted() { |
| | | window.handleBlur = this.handleBlur |
| | | let that = this |
| | | window.handleBlur = that.handleBlur |
| | | |
| | | }, |
| | | methods: { |
| | | // æ¥å£å·¦ä¾§æ |
| | | async getReferCodeClassifyTree() { |
| | | this.treeData = [] |
| | | const param = { |
| | | parentBtmName: "jclass", |
| | | valueField: "oid", |
| | |
| | | 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 getGridAttrMapping(oid) { |
| | | this.mappingData = [] |
| | | 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.mappingData = response.data.data |
| | |
| | | }, |
| | | // æ¥å£è·å屿§æ å°åå¼èå´ |
| | | async getGridAttrRanges(oid) { |
| | | this.tablesData = [] |
| | | this.rangeData = [] |
| | | const response = await gridAttrRanges({ meatId: oid }) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | this.rangeData = response.data |
| | | console.log(response.data) |
| | | this.rangeData = response.data.data |
| | | } |
| | | }, |
| | | // æ¥å£è·åä¸»æ°æ®åç±»å±æ§ä¿¡æ¯ |
| | | async getListCodeByClassId(oid) { |
| | | // this.tablesData = [] |
| | | this.transferData = [] |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | const response = await listCodeAttributeByClassId({ codeClassifyId: oid }) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | const data = response.data.data |
| | | this.transferData = 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 => { |
| | |
| | | // ä¿åæé® |
| | | async handleSave() { |
| | | console.log(this.mappingData) |
| | | // const response = await batchAddSave({ dockingPreAttrMappingVOList: this.tableData }) |
| | | // console.log(response) |
| | | const response = await batchAddSave({ dockingPreAttrMappingVOList: this.mappingData }) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "ä¿åæå!" |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | // åæ¥æ°æ® |
| | | async handleSync() { |
| | | const response = await syncClassifyModel({ dockingPreAttrMappingVOList: this.tableData }) |
| | | console.log(response) |
| | | }, |
| | | handelLeftCheck(event) { |
| | | handelTransferSave(event) { |
| | | let that = this |
| | | console.log(event) |
| | | }, |
| | | // æ°å¢å¼¹çªæ¥è¯¢æé® |
| | | handleQuery(event) { |
| | | console.log(event) |
| | | this.form.name = event |
| | | }, |
| | | filterMethod(item) { |
| | | return item.pinyins.indexOf(this.form.name) > -1; |
| | | const transferValue = event.value |
| | | if (Object.keys(that.mappingForm).length == 0) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "è¯·éæ©ä¸æ¡æ°æ®!" |
| | | }); |
| | | } else { |
| | | const findRow = that.mappingData.findIndex(item => item.metaListId === that.mappingForm.metaListId) |
| | | that.mappingData[findRow].targetAttrName = transferValue[0].name |
| | | that.mappingData[findRow].targetAttrId = transferValue[0].oid |
| | | this.dialogPush =false |
| | | } |
| | | |
| | | }, |
| | | // 左侧æ ç¹å» |
| | | handelTreeCell(event) { |
| | |
| | | }, |
| | | // éå¢åç±»æ ç¹å» |
| | | handleNodeClick(data) { |
| | | console.log(data) |
| | | this.form.groupValue = data.name |
| | | this.groupVal = data.name |
| | | this.$refs.selectTree.blur() |
| | | this.getGridAttrMapping(data.oid) |
| | | }, |
| | | // éå¢å类失å»ç¦ç¹ |
| | | inputBlur() { |
| | | this.tableColumnIndex = '' |
| | | this.tableRowIndex = null |
| | | }, |
| | | // 屿§æ å°ç¹å»æ¯è¡ |
| | | handleCellClick(event) { |
| | | console.log('åå»', event) |
| | | // this.tableRowIndex = row.index |
| | | // this.tableColumnIndex = column.index |
| | | // this.getGridAttrRanges(event.metaListId) |
| | | }, |
| | | // 失å»ç¦ç¹ |
| | | handleBlur(value, event) { |
| | | console.log(value) |
| | | if (event === 'range') this.$refs.crudRange.rowCell(this.rangeForm, this.rangeForm.$index) |
| | | if (event === 'mapping') this.$refs.crudMapping.rowCell(this.mappingForm, this.mappingForm.$index) |
| | | }, |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾ |
| | | // é墿 å°å±æ§è¡éæ©åå
æ ¼ç¼è¾ï¼åå»ï¼ |
| | | handleMapingRowClick(row, column, cell, event) { |
| | | console.log(row) |
| | | clearTimeout(this.times) |
| | | this.mappingForm = row |
| | | if (column.label === 'é»è®¤å¼') this.$refs.crudMapping.rowCell(row, row.$index) |
| | | else this.getGridAttrRanges(row.metaListId) |
| | | |
| | | if (column.label === 'é»è®¤å¼' || column.label === '屿§åç§°') this.$refs.crudMapping.rowCell(row, row.$index) |
| | | }, |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾ |
| | | // é墿 å°å±æ§è¡éæ©ï¼åå»ï¼ |
| | | handleMapingClick(row, column, cell, event) { |
| | | clearTimeout(this.times) |
| | | this.mappingForm = row |
| | | this.times = setTimeout(() => { |
| | | this.$refs.crudMapping.toggleSelection([row]); |
| | | }, 300) |
| | | }, |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾ï¼åå»ï¼ |
| | | handleRowClick(row, column, cell, event) { |
| | | this.rangeForm = row |
| | | console.log('åå»', row) |
| | | this.$refs.crudRange.rowCell(row, row.$index) |
| | | }, |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾ |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾å |
| | | handleUpdate(row, index, done, loading) { |
| | | console.log(row) |
| | | console.log(index) |
| | | let data = [] |
| | | const findRow = this.mappingData.findIndex(item => item.metaListId === row.metaListId) |
| | | console.log(findRow) |
| | | this.mappingData[0].dockingPreAttrRangeVoList = [row] |
| | | this.rangeData[index] = row |
| | | console.log(this.rangeData) |
| | | this.mappingData[findRow].dockingPreAttrRangeVoList = (this.rangeData) |
| | | console.log('ä¿®æ¹å', row) |
| | | this.$message({ |
| | | showClose: true, |
| | |
| | | type: "success", |
| | | }); |
| | | done(); |
| | | }, |
| | | // 屿§åå¼èå´åå
æ ¼ç¼è¾å |
| | | handleMapingUpdate(row, index, done, loading) { |
| | | console.log(row) |
| | | console.log('ä¿®æ¹å', row) |
| | | this.$message({ |
| | | showClose: true, |
| | | message: "ä¿®æ¹æå", |
| | | type: "success", |
| | | }); |
| | | done(); |
| | | }, |
| | | // é墿 å°å±æ§éæ©ï¼åéï¼ |
| | | selectionChange(selection) { |
| | | console.log(selection) |
| | | console.log(this.mappingForm) |
| | | if (selection.length > 1) { |
| | | const nowVal = selection.shift(); |
| | | this.$refs.crudMapping.toggleRowSelection(nowVal, false); |
| | | } else if (selection.length === 1) { |
| | | // 对åéæ°æ®çæä½åå¨è¿é |
| | | this.disabledPush = false |
| | | this.getGridAttrRanges(this.mappingForm.metaListId) |
| | | } |
| | | }, |
| | | setCurrentRow(selection, row) { |
| | | console.log(row) |
| | | this.mappingForm = row |
| | | this.disabledPush = false |
| | | }, |
| | | handleSelectAll(selection) { |
| | | console.log(selection) |
| | | this.$refs.crudMapping.toggleSelection() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .text_tip { |
| | | padding: 10px 0; |
| | | color: #F56C6C; |
| | | } |
| | | |
| | | .setstyle { |
| | | min-height: 200px; |
| | | padding: 0 !important; |
| | |
| | | cursor: default !important; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__list { |
| | | ::v-deep(.el-transfer-panel__list) { |
| | | width: 100%; |
| | | height: 370px; |
| | | } |
| | | |
| | | /deep/ .el-input { |
| | | ::v-deep(.el-transfer-panel__body) { |
| | | height: 370px; |
| | | } |
| | | |
| | | ::v-deep(.el-input) { |
| | | width: auto; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel { |
| | | ::v-deep(.el-transfer-panel) { |
| | | width: 270px; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__list { |
| | | height: 370px; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__body { |
| | | height: 370px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog :title="title" :visible.sync="dialogVisible" append-to-body="true" destroy-on-close width="30%" |
| | | @close="handelClose"> |
| | | <el-form :model="form"> |
| | | <el-form-item label="æ¥è¯¢æ¡ä»¶" label-width="70px" size="small"> |
| | | <el-input v-model="inputVal" autocomplete="off" @change="handleQuery"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <p class="text_tip">*éæ©åç±»è¿è¡å±æ§è¿æ»¤, æè
è¾å
¥å±æ§çå
¨æ¼æè
ç®æ¼è¿è¡æ¥è¯¢! å¦: å§å (å¯è¾å
¥xmæxinming )</p> |
| | | <transfer v-model="transferValue" :data="newdata" :filter-method="filterMethod" |
| | | :filter-placeholder="filterPlaceholder" :props="props"></transfer> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="handelTransferSave">ä¿ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import transfer from '@/components/transfer/index' |
| | | import pinyin from 'js-pinyin' |
| | | export default { |
| | | components: { |
| | | transfer |
| | | }, |
| | | name: 'Integration', |
| | | props: { |
| | | // æ¯å¦æå¼ |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | title: { |
| | | typeof: String, |
| | | default: 'ç¼ç 屿§' |
| | | }, |
| | | // æ°æ®æº |
| | | data: { |
| | | typeof: Array, |
| | | default: () => [] |
| | | }, |
| | | // æ°æ®é»è®¤å¼å¾props |
| | | props: { |
| | | typeof: Object, |
| | | default: () => { |
| | | return { |
| | | label: 'label', |
| | | key: 'key', |
| | | disabled: 'disabled' |
| | | }; |
| | | } |
| | | }, |
| | | // æ¥è¯¢ææ¬æ¡çplaceholder |
| | | filterPlaceholder: { |
| | | typeof: String, |
| | | default: '请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å' |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | inputVal: '', |
| | | transferValue: this.value, |
| | | dialogVisible: this.visible, |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | }, |
| | | }, |
| | | computed: { |
| | | newdata() { |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | let name = this.props.label |
| | | let key = this.props.key |
| | | let objs = this.data.map(item => { |
| | | let pinYin = pinyin.getFullChars(item[this.props.label]) |
| | | let renPing = pinyin.getCamelChars(item[this.props.label]) |
| | | const obj = { pinyins: pinYin, renPing: renPing, disabled: false, [name]: item[this.props.label], [key]: item[this.props.key] } |
| | | return obj |
| | | }) |
| | | console.log(objs) |
| | | return objs |
| | | } |
| | | }, |
| | | methods: { |
| | | // æ°å¢å¼¹çªæ¥è¯¢æé® |
| | | handleQuery(event) { |
| | | this.inputVal = event |
| | | }, |
| | | // ç©¿æ¢æ¡æ¥è¯¢æ°æ®è¿æ»¤ï¼åæ¡ä»¶ï¼ |
| | | filterMethod(query, item) { |
| | | return item.pinyins.indexOf(this.inputVal) > -1 || item.renPing.indexOf(this.inputVal) > -1 |
| | | }, |
| | | // å
³éæ¸
é¤æææ°æ® |
| | | handelClose() { |
| | | this.transferValue = [] |
| | | this.inputVal = '' |
| | | this.visible = false |
| | | }, |
| | | // ç¡®å®æé®ï¼è¿åå½åæ°æ®åä¿®æ¹åçæ°æ® |
| | | handelTransferSave() { |
| | | let that =this |
| | | let datas= that.newdata |
| | | const findtra = datas.findIndex(item => item.oid === that.transferValue[0].oid) |
| | | datas[findtra].disabled = true |
| | | const obj = { |
| | | // å½åéæ©çæ°æ® |
| | | value: this.transferValue, |
| | | // æ»æ°æ® |
| | | data: datas |
| | | } |
| | | that.$emit('save', obj) |
| | | that.transferValue = [] |
| | | that.inputVal = '' |
| | | }, |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .text_tip { |
| | | padding: 10px 0; |
| | | color: #F56C6C; |
| | | } |
| | | </style> |
| | |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">åºæ¬ä¿¡æ¯</p> |
| | | <el-descriptions class="margin-top" :column="3" :size="size" border> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-finished"></i> |
| | | <i :class="icons.key"></i> |
| | | è±æåç§° |
| | | </template> |
| | | {{ obj.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-info"></i> |
| | | <i :class="icons.name"></i> |
| | | 䏿åç§° |
| | | </template> |
| | | {{ obj.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | <i class="el-icon-date"></i> |
| | | <template slot="label" :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <i :class="icons.tableName"></i> |
| | | æ°æ®åºè¡¨å |
| | | </template> |
| | | {{ obj.tableName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-folder-opened"></i> |
| | | <i :class="icons.domain"></i> |
| | | æå±é¢å |
| | | </template> |
| | | <el-tag size="small"> |
| | |
| | | </template> |
| | | {{ obj.sss }} |
| | | </el-descriptions-item> --> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-s-check"></i> |
| | | <i :class="icons.revisionRule"></i> |
| | | çæ¬è§å |
| | | </template> |
| | | {{ obj.versionRule }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-refresh-right"></i> |
| | | <i :class="icons.lifeCycle"></i> |
| | | çå½å¨æ |
| | | </template> |
| | | {{ obj.lifeCycleId }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-view"></i> |
| | | <i :class="icons.view"></i> |
| | | è§å¾ |
| | | </template> |
| | | <el-tag size="small"> |
| | |
| | | </template> |
| | | {{ obj.implClass }} |
| | | </el-descriptions-item> --> |
| | | <el-descriptions-item> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-chat-line-square"></i> |
| | | <i :class="icons.desc"></i> |
| | | æè¿° |
| | | </template> |
| | | {{ obj.description }} |
| | |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">屿§å表</p> |
| | | <avue-crud class="attributeCrud" v-model="obj" :data="obj.attributes" :option="loadOption"> |
| | | <template slot="attrDataType" slot-scope="{row}" > |
| | | <el-tag>{{row.attrDataType}}</el-tag> |
| | | <template slot="attrDataTypeText" slot-scope="{row}" > |
| | | <el-tag>{{row.attrDataTypeText}}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | addBtn: false, |
| | | props: { |
| | | labelText: '', |
| | | label: 'name', |
| | | label: 'label', |
| | | value: 'oid', |
| | | children: 'childList', |
| | | } |
| | |
| | | }, |
| | | { |
| | | label: "ç±»å", |
| | | prop: "attrDataType", |
| | | prop: "attrDataTypeText", |
| | | align: 'center', |
| | | slot: true |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | descriptionOption: { |
| | | labelStyle:'text-align:center;width:120px', |
| | | contentStyle: 'width:240px;text-align:center;word-break;break-all;' |
| | | }, |
| | | domain: null, |
| | | domainOptions: [], |
| | | icons:{ |
| | | key: 'el-icon-finished', |
| | | name: 'el-icon-info', |
| | | name: 'el-icon-tickets', |
| | | tableName: 'el-icon-date', |
| | | domain: 'el-icon-folder-opened', |
| | | revisionRule: 'el-icon-s-check', |
| | |
| | | width="70%" |
| | | style="height: 115vh;" |
| | | > |
| | | <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm"> |
| | | |
| | | <el-form-item label="è±æåç§°" label-width="100px" required="true"> |
| | | <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm" :rules="rules" @resetFields="resetForm" status-icon="true"> |
| | | <el-form-item label="è±æåç§°" label-width="100px" required="true" prop="id"> |
| | | <el-input v-model="btmType.id" :prefix-icon="icons.key"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="䏿åç§°" label-width="100px"> |
| | |
| | | <el-form-item label="æ°æ®åºè¡¨å" label-width="100px"> |
| | | <el-input v-model="btmType.tableName" :prefix-icon="icons.tableName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æå±é¢å" label-width="100px"> |
| | | <el-form-item label="æå±é¢å" label-width="100px" prop="domain"> |
| | | <el-select v-model="btmType.domain" :prefix-icon="icons.domain"> |
| | | <el-option v-for="item in domainOption" |
| | | :label="item.label" :value="item.value" :key="item.value"></el-option> |
| | |
| | | @on-load="attrRefOnLoad" |
| | | @search-change="attrRefSearch" |
| | | @selection-change="selectionChange"> |
| | | <template slot="name" slot-scope="scope" > |
| | | <el-tag>{{scope}}</el-tag> |
| | | <template slot="typeValue" slot-scope="scope" > |
| | | <el-tag>{{scope.row.typeValue}}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | column: [ |
| | | { |
| | | label: 'è±æåç§°', |
| | | prop: 'key', |
| | | prop: 'id', |
| | | align: 'left', |
| | | search: true, |
| | | width: 230 |
| | | }, { |
| | | label: '䏿åç§°', |
| | | prop: 'label', |
| | | prop: 'name', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "ç±»å", |
| | | prop: "typeValue", |
| | | align: 'center' |
| | | align: 'center', |
| | | slot: true, |
| | | }, |
| | | { |
| | | label: "é»è®¤å¼", |
| | |
| | | ] |
| | | }, |
| | | }, |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: '请è¾å
¥ä¸å¡ç±»åç¼å·', trigger: 'blur' }, |
| | | { pattern: /^[A-Za-z]+$/, message: 'ä¸å¡ç±»åç¼å·åªè½ä¸ºè±æ', trigger: 'blur' }, |
| | | { min: 2, max: 15, message: 'é¿åº¦å¨2å°15个å符', trigger: 'blur' } |
| | | ], |
| | | domain: [ |
| | | { required: true, message: 'è¯·éæ©æå±é¢å', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.btmType = {}; |
| | | this.attrRef.selectData = []; |
| | | this.attrRef.queryNotIn = null; |
| | | this.resetForm(); |
| | | }, |
| | | // å
³é屿§æ± æ¥è¯¢å¼¹çª |
| | | closeAttrDialog(){ |
| | |
| | | name: item.name, |
| | | typeValue: item.typeValue, |
| | | typeKey: item.typeValue, |
| | | attrDataType : item.typeValue, |
| | | attrDataType : item.typeKey, |
| | | defaultValue: item.defaultValue, |
| | | description: item.description, |
| | | attributeLength: item.maxLength |
| | |
| | | this.$delete(this.btmType,'revisionRuleId'); |
| | | this.$delete(this.btmType,'revisionRuleName'); |
| | | this.$delete(this.btmType,'inputRevisionFlag'); |
| | | }, |
| | | resetForm(){ |
| | | this.btmType = {}; |
| | | this.$refs.form.resetFields(); |
| | | } |
| | | } |
| | | } |
| | |
| | | <el-container> |
| | | <!-- 顶端æé® --> |
| | | <el-header class="businessHeader" style="height: 40px;"> |
| | | <el-button-group> |
| | | <el-button type="primary" @click="linkTypeAdd" size="small"> |
| | | <i class="el-icon-plus"></i> |
| | | æ°å¢ |
| | | </el-button> |
| | | <el-button type="primary" @click="linkTypeEdit" size="small"> |
| | | <i class="el-icon-edit"></i> |
| | | ä¿®æ¹ |
| | | </el-button> |
| | | <el-button type="primary" @click="selectFromTable" size="small"> |
| | | <i class="el-icon-thumb"></i> |
| | | ä»å·²æä¸è·å |
| | | </el-button> |
| | | </el-button-group> |
| | | </el-header> |
| | | <el-button-group> |
| | | <el-button type="primary" @click="linkTypeAdd" size="small"> |
| | | <i class="el-icon-plus"></i> |
| | | æ°å¢ |
| | | </el-button> |
| | | <el-button type="primary" @click="linkTypeEdit" size="small"> |
| | | <i class="el-icon-edit"></i> |
| | | ä¿®æ¹ |
| | | </el-button> |
| | | </el-button-group> |
| | | </el-header> |
| | | <!-- ä¾§è¾¹æ æ --> |
| | | <el-container> |
| | | <el-aside width="240px"> |
| | |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">åºæ¬ä¿¡æ¯</p> |
| | | <el-descriptions class="margin-top" :column="2" size="medium" border> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-finished"></i> |
| | | <i :class="icons.id"></i> |
| | | è±æåç§° |
| | | </template> |
| | | {{ obj.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-info"></i> |
| | | <i :class="icons.name"></i> |
| | | 䏿åç§° |
| | | </template> |
| | | {{ obj.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-date"></i> |
| | | <i :class="icons.tableName"></i> |
| | | æ°æ®åºè¡¨å |
| | | </template> |
| | | {{ obj.tableName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-folder-opened"></i> |
| | | <i :class="icons.domain"></i> |
| | | æå±é¢å |
| | | </template> |
| | | <el-tag size="small"> |
| | |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-descriptions class="margin-top" direction="vertical" :column="2" border> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-sort-down"></i> |
| | | <i :class="icons.from"></i> |
| | | From端类å |
| | | </template> |
| | | <span v-for="item in obj.fromBtmTypes" style="margin-left:2px;"> |
| | | <el-tag size="small" effect="plain" style="width:130px;margin-top: 2px;"> |
| | | <el-tag size="small" effect="plain" style="margin-top: 2px;"> |
| | | {{ item.id + 'ï¼' + item.name + 'ï¼' }} |
| | | </el-tag> |
| | | </span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-sort-up"></i> |
| | | <i :class="icons.to"></i> |
| | | To段类å |
| | | </template> |
| | | <span v-for="item in obj.toBtmTypes" style="height:26px;width:140px;margin-left:2px"> |
| | | <el-tag size="small" effect="plain" style="width:130px;margin-top: 2px;"> |
| | | <span v-for="item in obj.toBtmTypes" style="margin-left:2px"> |
| | | <el-tag size="small" effect="plain" style="margin-top: 2px;"> |
| | | {{ item.id + 'ï¼' + item.name + 'ï¼' }} |
| | | </el-tag> |
| | | </span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-descriptions class="margin-top" :column="2" size="medium" border> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions class="margin-top" :column="2" size="medium" border> |
| | | <!-- |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-info"></i> |
| | | <i :class="icons.main"></i> |
| | | 主类å |
| | | </template> |
| | | {{ obj.fromBtmTypeName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item labelStyle="text-align:center;width:120px" |
| | | contentStyle="width:240px;text-align:center;word-break;break-all;"> |
| | | <el-descriptions-item :labelStyle="descriptionOption.labelStyle" |
| | | :contentStyle="descriptionOption.contentStyle"> |
| | | <template slot="label"> |
| | | <i class="el-icon-info"></i> |
| | | <i :class="icons.main"></i> |
| | | 主类å |
| | | </template> |
| | | {{ obj.toBtmTypeName }} |
| | | </el-descriptions-item> |
| | | --> |
| | | <el-descriptions-item span='2' labelStyle="text-align:center;width:120px"> |
| | | <template slot="label"> |
| | | <i class="el-icon-chat-line-square"></i> |
| | | <i :class="icons.desc"></i> |
| | | æè¿° |
| | | </template> |
| | | {{ obj.description }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-descriptions> |
| | | </basic-container> |
| | | <!-- 屿§å表--> |
| | | <basic-container> |
| | | <p style="margin-top: 10px;font-weight: 570;font-size: 19px">屿§å表</p> |
| | | <avue-crud class="attributeCrud" v-model="obj" :data="obj.attributes" :option="loadOption"> |
| | | <template slot="attrDataType" slot-scope="{row}"> |
| | | <el-tag>{{ row.attrDataType }}</el-tag> |
| | | <template slot="attrDataTypeText" slot-scope="{row}"> |
| | | <el-tag>{{ row.attrDataTypeText }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container> |
| | | |
| | | <link-type-add ref="linkAdd" :linkType="addOption.linkType" :domainOption="domainOptions" :icons="icons" |
| | | @refreshTable="initTreeOnLoad"> |
| | | </link-type-add> |
| | | |
| | | </el-container> |
| | | </template> |
| | |
| | | name: "LinkType", |
| | | data() { |
| | | return { |
| | | treeData: [ |
| | | { id: "1", name: "2", label: "label" }, |
| | | { id: "a", name: "b", label: "c" } |
| | | ], |
| | | addOption: { |
| | | linkType: {}, |
| | | }, |
| | | domain: null, |
| | | domainOptions: [], |
| | | icons: { |
| | | id: 'el-icon-finished', |
| | | name: 'el-icon-tickets', |
| | | tableName: 'el-icon-date', |
| | | domain: 'el-icon-folder-opened', |
| | | from: 'el-icon-sort-down', |
| | | to: 'el-icon-sort-up', |
| | | main: 'el-icon-warning-outline', |
| | | desc: 'el-icon-chat-line-square' |
| | | }, |
| | | treeData: [], |
| | | descriptionOption: { |
| | | labelStyle: 'text-align:center;width:120px', |
| | | contentStyle: 'width:240px;text-align:center;word-break;break-all;' |
| | | }, |
| | | loadOption: { |
| | | border: true, |
| | | height: 360, |
| | |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'attrDataType', |
| | | prop: 'attrDataTypeText', |
| | | align: 'center', |
| | | slot: true |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | obj: { |
| | | id: 'linkType', |
| | | name: '龿¥ç±»å', |
| | | tableName: 'PLLT_OMD_LINKTYPE', |
| | | domain: 'ubcs-omd', |
| | | domainText: '对象建模', |
| | | fromBtmTypes: [ |
| | | { id: 'btm', name: 'ä¸å¡ç±»å' }, |
| | | { id: 'btm2', name: 'ä¸å¡ç±»å2' } |
| | | ], |
| | | toBtmTypes: [{ id: 'btm', name: 'ä¸å¡ç±»å' }, { id: 'btm2', name: 'ä¸å¡ç±»å2' }], |
| | | fromBtmTypeName: '', |
| | | toBtmTypeName: '', |
| | | }, |
| | | obj: {}, |
| | | treeOption: { |
| | | defaultExpandAll: true, |
| | | title: '龿¥ç±»åæ ', |
| | | addBtn: false, |
| | | props: { |
| | | labelText: '', |
| | | label: 'name', |
| | | label: 'label', |
| | | value: 'oid', |
| | | children: 'childList', |
| | | } |
| | |
| | | }, |
| | | created() { |
| | | this.initTreeOnLoad(); |
| | | // this.initDomainOption(); |
| | | this.initDomainOption(); |
| | | }, |
| | | |
| | | methods: { |
| | | // æ ç¹å» |
| | | nodeClick(data) { |
| | | console.log(data); |
| | | getDetail(data.oid).then(res => { |
| | | this.obj = res.data.data; |
| | | }) |
| | | }, |
| | | // æ·»å æé®ç¹å»äºä»¶ |
| | | linkTypeAdd() { |
| | | |
| | | this.$refs.linkAdd.showSubmitDialog = true; |
| | | }, |
| | | // ç¼è¾æé®ç¹å»äºä»¶ |
| | | linkTypeEdit() { |
| | | |
| | | this.addOption.linkType = this.obj; |
| | | this.$refs.linkAdd.linkType = this.addOption.linkType; |
| | | this.$refs.linkAdd.showSubmitDialog = true; |
| | | }, |
| | | // ä»å·²æä¸è·åæé®ç¹å»äºä»¶ |
| | | selectFromTable() { |
| | | |
| | | }, |
| | | // å è½½æå¡æ |
| | | initTreeOnLoad() { |
| | | initTree().then(res => { |
| | | this.treeData = res.data.data; |
| | | }); |
| | | } |
| | | }, |
| | | // å è½½æå¡ä¸ææ¡ |
| | | initDomainOption() { |
| | | getDomain().then(res => { |
| | | this.domainOptions = res.data.data; |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog title="龿¥ç±»å" :visible.sync="showSubmitDialog" append-to-body @close="closeSubmitDialog" width="70%" |
| | | style="height: 115vh;"> |
| | | <el-form ref="form" :model="linkType" show-message="true" inline size="medium" label-suffix=":" |
| | | class="linkTypeForm" :rules="rules" @resetFields="resetForm" status-icon="true"> |
| | | <el-form-item label="è±æåç§°" label-width="100px" required="true" prop="id"> |
| | | <el-input v-model="linkType.id" :prefix-icon="icons.id" maxlength="15" show-word-limit type="text"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="䏿åç§°" label-width="100px"> |
| | | <el-input v-model="linkType.name" :prefix-icon="icons.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ°æ®åºè¡¨å" label-width="100px"> |
| | | <el-input v-model="linkType.tableName" :prefix-icon="icons.tableName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æå±é¢å" label-width="100px" prop="domain"> |
| | | <el-select v-model="linkType.domain" :prefix-icon="icons.domain"> |
| | | <el-option v-for="item in domainOption" :label="item.label" :value="item.value" |
| | | :key="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="From端类å" label-width="100px"> |
| | | <!-- from端ä¸å¡ç±»åéæ© --> |
| | | <el-select v-model="fromBtmValues" :value="fromBtmTypes" value-key="oid" placeholder="è¯·éæ©From端类å" filterable multiple collapse-tags @change="fromSelectChange"> |
| | | <el-option-group v-for="domain in domainList" :key="domain.id" :label="domain.name"> |
| | | <el-option v-for="item in domain.childList" :key="item.oid" :label="item.id + item.name" |
| | | :value="item"> |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="To端类å" label-width="100px"> |
| | | <!-- to端ä¸å¡ç±»åéæ© --> |
| | | <el-select v-model="toBtmValues" :value="toBtmTypes" value-key="oid" placeholder="è¯·éæ©To端类å" filterable multiple collapse-tags @change="toSelectChange"> |
| | | <el-option-group v-for="domain in domainList" :key="domain.id" :label="domain.name"> |
| | | <el-option v-for="item in domain.childList" :key="item.oid" :label="item.id + item.name" |
| | | :value="item"> |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" label-width="100px" class="description"> |
| | | <el-input v-model="linkType.description" :prefix-icon="icons.desc" class="descClass" id="descId"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <avue-crud :option="option" :data="linkType.attributes" :page.sync="page" ref="attrTable" |
| | | @cell-mouse-enter="cellEditClick" @cell-mouse-leave="cellEditSave"> |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <el-button type="danger" icon="el-icon-plus" size="small" @click="rowAdd()">屿§éæ©</el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitlinkType">ç¡®å®</el-button> |
| | | <el-button @click="cancleSubmitlinkType">åæ¶</el-button> |
| | | </div> |
| | | |
| | | <!-- 屿§æ± çéæ© --> |
| | | <el-dialog title="屿§æ± " :visible="attrRef.visible" append-to-body @close="closeAttrDialog" width="80%"> |
| | | <avue-crud class="attrRef" :option="attrRef.option" :data="attrRef.data" :page.sync="attrRef.page" ref="attrRef" |
| | | @on-load="attrRefOnLoad" @search-change="attrRefSearch" @selection-change="selectionChange"> |
| | | <template slot="typeValue" slot-scope="scope"> |
| | | <el-tag>{{ scope.row.typeValue }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="confirmSelectAttr">ç¡®å®</el-button> |
| | | <el-button @click="cancleSelectAttr">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | |
| | | import { add, update } from '@/api/omd/linkType'; |
| | | import { queryPage } from '@/api/omd/OmdAttribute'; |
| | | import { getPage } from '@/api/omd/revisionRule'; |
| | | import { initTree } from "@/api/omd/btmType" |
| | | export default { |
| | | name: 'LinkTypeAdd', |
| | | props: { |
| | | linkType: { |
| | | type: Object |
| | | }, |
| | | domainOption: { |
| | | type: Array |
| | | }, |
| | | icons: { |
| | | type: Array |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | showSubmitDialog: false, |
| | | option: { |
| | | height: "330px", |
| | | selection: true, |
| | | headerAlign: 'center', |
| | | border: true, |
| | | index: true, |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | menu: false, |
| | | addBtn: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: 'è±æåç§°', |
| | | prop: 'id', |
| | | align: 'center' |
| | | }, { |
| | | label: '䏿åç§°', |
| | | prop: 'name', |
| | | align: 'center', |
| | | cell: true |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'attrDataType', |
| | | align: 'center', |
| | | slot: true |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | align: 'center', |
| | | cell: true |
| | | }, |
| | | { |
| | | label: '说æ', |
| | | prop: 'description', |
| | | align: 'center', |
| | | cell: true |
| | | } |
| | | ] |
| | | }, |
| | | attrRef: { |
| | | visible: false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | }, |
| | | key: null, |
| | | option: { |
| | | height: 360, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: 'è±æåç§°', |
| | | prop: 'id', |
| | | align: 'left', |
| | | search: true, |
| | | width: 230 |
| | | }, { |
| | | label: '䏿åç§°', |
| | | prop: 'name', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'typeValue', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: 'å
许为空', |
| | | prop: 'nullable', |
| | | type: 'switch', |
| | | display: false, |
| | | hide: true, |
| | | labelWidth: 132, |
| | | dicData: [{ |
| | | label: 'å¦', |
| | | value: 1 |
| | | }, { |
| | | label: 'æ¯', |
| | | value: 0 |
| | | }] |
| | | }, |
| | | { |
| | | label: '说æ', |
| | | prop: 'description', |
| | | cell: true, |
| | | align: 'center' |
| | | } |
| | | ] |
| | | }, |
| | | data: [], |
| | | queryNotIn: null |
| | | }, |
| | | fromBtmValues: [], |
| | | toBtmValues: [], |
| | | domainList: [], |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: '请è¾å
¥é¾æ¥ç±»åç¼å·', trigger: 'blur' }, |
| | | { pattern: /^[A-Za-z]+$/, message: '龿¥ç±»åç¼å·åªè½ä¸ºè±æ', trigger: 'blur' }, |
| | | { min: 2, max: 15, message: 'é¿åº¦å¨2å°15个å符', trigger: 'blur' } |
| | | ], |
| | | domain: [ |
| | | { required: true, message: 'è¯·éæ©æå±é¢å', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.initTreeOnLoad(); |
| | | }, |
| | | methods: { |
| | | // å
³éç»ä»¶å¼¹çª |
| | | closeSubmitDialog() { |
| | | this.showSubmitDialog = false; |
| | | this.linkType.attributes = []; |
| | | this.linkType = {}; |
| | | this.attrRef.selectData = []; |
| | | this.attrRef.queryNotIn = null; |
| | | this.resetForm(); |
| | | }, |
| | | // å
³é屿§æ± æ¥è¯¢å¼¹çª |
| | | closeAttrDialog() { |
| | | this.attrRef.visible = false; |
| | | }, |
| | | initTreeOnLoad() { |
| | | initTree().then(res => { |
| | | this.domainList = res.data.data; |
| | | }); |
| | | }, |
| | | // æ·»å |
| | | rowAdd() { |
| | | this.attrRef.visible = true; |
| | | this.attrRefOnLoad(); |
| | | }, |
| | | // 屿§æ± å è½½ |
| | | attrRefOnLoad() { |
| | | queryPage(this.attrRef.key, this.attrRef.queryNotIn, this.attrRef.page.currentPage, this.attrRef.page.pageSize).then(res => { |
| | | const data = res.data.data; |
| | | this.attrRef.page.total = data.total; |
| | | this.attrRef.data = data.records; |
| | | }); |
| | | this.$nextTick(() => { |
| | | this.$refs.attrRef.refreshTable(); |
| | | }); |
| | | }, |
| | | // 屿§æ± æ£ç´¢ |
| | | attrRefSearch(form, done) { |
| | | this.attrRef.key = form.key |
| | | this.attrRefOnLoad(); |
| | | done(); |
| | | this.attrRef.key = null; |
| | | }, |
| | | // 屿§æ± å¾éäºä»¶ |
| | | selectionChange(list) { |
| | | this.attrRef.selectData = list; |
| | | }, |
| | | // ç¡®è®¤å±æ§æ± å¾é |
| | | confirmSelectAttr() { |
| | | if(!this.linkType.attributes){ |
| | | this.linkType.attributes = []; |
| | | } |
| | | this.attrRef.queryNotIn = ""; |
| | | console.log(this.attrRef.selectData); |
| | | this.attrRef.selectData.forEach(item => { |
| | | this.linkType.attributes.push({ |
| | | id: item.id, |
| | | name: item.name, |
| | | typeValue: item.typeValue, |
| | | typeKey: item.typeValue, |
| | | attrDataType: item.typeKey, |
| | | defaultValue: item.defaultValue, |
| | | description: item.description, |
| | | attributeLength: item.maxLength |
| | | }); |
| | | this.attrRef.queryNotIn += (item.id + ",") |
| | | }); |
| | | this.closeAttrDialog(); |
| | | }, |
| | | // 忶屿§æ± å¾é |
| | | cancleSelectAttr() { |
| | | this.attrRef.selectData = []; |
| | | this.closeAttrDialog(); |
| | | }, |
| | | // æ·»å ä¸å¡ç±»å |
| | | submitlinkType() { |
| | | add(this.linkType, true).then(res => { |
| | | // æ·»å 宿ï¼åè°ç¶ç»ä»¶çå·æ° |
| | | this.$message.success('ä¿åæå'); |
| | | this.cancleSubmitlinkType(); |
| | | this.$emit('refreshTable'); |
| | | }) |
| | | }, |
| | | // åæ¶æ·»å ä¸å¡ç±»å |
| | | cancleSubmitlinkType() { |
| | | this.linkType = {}; |
| | | this.linkType.attributes = []; |
| | | this.showSubmitDialog = false; |
| | | }, |
| | | // å·æ°å±æ§å表 |
| | | refreshAttrTable() { |
| | | this.$nextTick(() => { |
| | | this.$refs.attrTable.refreshTable(); |
| | | }) |
| | | }, |
| | | // |
| | | viewChange() { |
| | | |
| | | }, |
| | | // å表ç¼è¾ |
| | | cellEditClick(cell) { |
| | | cell.$cellEdit = true; |
| | | }, |
| | | // å表ç¼è¾ä¿å |
| | | cellEditSave(row) { |
| | | this.linkType.attributes[row.$index].name = row.name |
| | | this.linkType.attributes[row.$index].defaultValue = row.defaultValue; |
| | | this.linkType.attributes[row.$index].description = row.description; |
| | | row.$cellEdit = false; |
| | | }, |
| | | fromSelectChange(dataList){ |
| | | this.linkType.fromBtmTypes = []; |
| | | var fromBtmName = ""; |
| | | var fromBtmType = ""; |
| | | dataList.forEach(data => { |
| | | //this.linkType.fromBtmTypes.push(data); |
| | | fromBtmName += (data.name + ','); |
| | | fromBtmType += (data.id + ','); |
| | | }) |
| | | this.linkType.fromBtmTypeName = fromBtmName; |
| | | this.linkType.fromBtmType = fromBtmType; |
| | | }, |
| | | toSelectChange(dataList){ |
| | | console.log(dataList); |
| | | this.linkType.toBtmTypes = []; |
| | | var toBtmName = ""; |
| | | var toBtmType = ""; |
| | | dataList.forEach(data => { |
| | | //this.linkType.toBtmTypes.push(data); |
| | | toBtmName += (data.name + ','); |
| | | toBtmType += (data.id + ','); |
| | | }) |
| | | this.linkType.toBtmTypeName = toBtmName; |
| | | this.linkType.toBtmType = toBtmType; |
| | | console.log(this.linkType); |
| | | }, |
| | | resetForm(){ |
| | | this.linkType = {}; |
| | | this.$refs.form.resetFields(); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | /* 屿§æ± åç
§å表 */ |
| | | .attrRef>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .revisionRef>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .linkTypeForm>.el-form-item>.el-form-item__content>.el-input>.el-input__inner { |
| | | width: 200px; |
| | | } |
| | | |
| | | .descClass>.el-input__inner { |
| | | width: 57vw |
| | | } |
| | | |
| | | #descId { |
| | | width: 57vw; |
| | | } |
| | | </style> |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://localhost: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/', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
| | | // target: 'https://saber.bladex.vip/api', |
| | | ws: true, |
| | |
| | | docker build -f ./ubcs-service/ubcs-code/Dockerfile -t vci-ubcs/ubcs-code . |
| | | docker run -d -p 36014:36014 --name ubcs-code vci-ubcs/ubcs-code:latest |
| | | |
| | | #å¯å¨omdyæå¡ |
| | | #å¯å¨omdæå¡ |
| | | docker build -f ./ubcs-service/ubcs-omd/Dockerfile -t vci-ubcs/ubcs-omd . |
| | | docker run -d -p 36015:36015 --name ubcs-omd vci-ubcs/ubcs-omd:latest |
| | | |
| | | #å¯å¨applyjtcodeserviceæå¡ |
| | | docker build -f ./ubcs-service/ubcs-webservice/Dockerfile -t vci-ubcs/ubcs-applyjtcodeservice . |
| | | docker run -d -p 36016:36016 --name ubcs-applyjtcodeservice vci-ubcs/ubcs-applyjtcodeservice:latest |
| | | |
| | | #å
¶ä»æå¡è¯·èªè¡æ·»å |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | echo $containerName" is not up!!!" |
| | | fi |
| | | |
| | | #å
¶ä»æå¡éè¦ï¼è¯·èªè¡æ·»å |
| | | imagesName=vci-ubcs/ubcs-applyjtcodeservice |
| | | containerName=ubcs-applyjtcodeservice |
| | | if [[ -n $(docker ps -q -f "name=$containerName") ]];then |
| | | echo $containerName"is up,we will stop and remove it !!!" |
| | | docker stop $containerName |
| | | docker rm $containerName |
| | | docker rmi $imagesName |
| | | else |
| | | echo $containerName" is not up!!!" |
| | | fi |
| | | |
| | | #å
¶ä»æå¡éè¦ï¼è¯·èªè¡æ·»å |
| | | |
| | | } |
| | | stop |
| | |
| | | * 屿§æ§å¶è¾å
¥çé¿åº¦ |
| | | */ |
| | | //@Column(columnDefinition = "屿§æ§å¶è¾å
¥çé¿åº¦",defaultValue = "254") |
| | | private Integer controlLength = 254; |
| | | private Integer controlLength; |
| | | |
| | | /** |
| | | * 表å䏿¾ç¤ºçæ ·å¼ |
| | |
| | | private String referTypeName; |
| | | |
| | | /** |
| | | <<<<<<< Updated upstream |
| | | * æ¯å¦å¼å¯å
¨å± |
| | | */ |
| | | private String isOpenGlobal; |
| | | ======= |
| | | * æå±é¢å |
| | | */ |
| | | private String doMain; |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * æåº |
| | |
| | | /** |
| | | * ç±»å |
| | | */ |
| | | private final String dataType; |
| | | @Setter |
| | | private String dataType; |
| | | |
| | | /** |
| | | * é¿åº¦ |
| | |
| | | @Setter |
| | | private String defaultValue; |
| | | |
| | | public DdlFieldMappingAttrBO() { |
| | | } |
| | | |
| | | public DdlFieldMappingAttrBO(String dataType, Integer dataLength, Integer dataPrecision, Boolean nullable, String defaultValue) { |
| | | this.dataType = dataType; |
| | |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | <<<<<<< Updated upstream |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | ======= |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * Description: |
| | |
| | | * @date 2023/5/24 |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_link_type_attr") |
| | | @TableName("pl_omd_link_type_attribute") |
| | | @ApiModel(value = "龿¥ç±»åå
å«ç屿§", description = "龿¥ç±»åå
å«ç屿§") |
| | | public class LinkTypeAttribute implements java.io.Serializable{ |
| | | |
| | |
| | | */ |
| | | private static final long serialVersionUID = -1243940048761060562L; |
| | | |
| | | private String id; |
| | | |
| | | private String name; |
| | | |
| | | private String id; |
| | | private String label; |
| | | |
| | | private String oid; |
| | | |
| | |
| | | */ |
| | | private String attrDataType; |
| | | |
| | | /** |
| | | * æ°æ®ç±»åæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private String attrDataTypeText; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ä»¥ä¸ºç©º |
| | | */ |
| | |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | |
| | | |
| | | /** |
| | | * å°æ°ç²¾åº¦ä½æ° |
| | |
| | | private boolean enumFlag; |
| | | |
| | | /** |
| | | z * å
嫿䏾çå¼ |
| | | * å
嫿䏾çå¼ |
| | | */ |
| | | private Map<String,String> enumItemMap; |
| | | |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LinkTypeAttributeVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | * æå±ä¸å¡ç±»å |
| | | */ |
| | | private String pkLinkType; |
| | | |
| | | /** |
| | | * 龿¥ç±»åçç¼å· |
| | | */ |
| | | private String linkTypeId; |
| | | |
| | | /** |
| | | * 屿§çåæ®µåç§° |
| | |
| | | * æ°æ®ç±»å |
| | | */ |
| | | private String attrDataType; |
| | | |
| | | /** |
| | | * æ°æ®ç±»åæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private String attrDataTypeText; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ä»¥ä¸ºç©º |
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getBtmName() { |
| | | return btmName; |
| | | } |
| | | |
| | | public void setBtmName(String btmName) { |
| | | this.btmName = btmName; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public void setPkLinkType(String pkLinkType) { |
| | | this.pkLinkType = pkLinkType; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public void setAttrDataType(String attrDataType) { |
| | | this.attrDataType = attrDataType; |
| | | } |
| | | |
| | | public void setReferBtmTypeId(String referBtmTypeId) { |
| | | this.referBtmTypeId = referBtmTypeId; |
| | | } |
| | | |
| | | public void setReferBtmTypeName(String referBtmTypeName) { |
| | | this.referBtmTypeName = referBtmTypeName; |
| | | } |
| | | |
| | | public void setReferFlag(boolean referFlag) { |
| | | this.referFlag = referFlag; |
| | | } |
| | | |
| | | public void setEnumId(String enumId) { |
| | | this.enumId = enumId; |
| | | } |
| | | |
| | | public void setEnumName(String enumName) { |
| | | this.enumName = enumName; |
| | | } |
| | | |
| | | public void setEnumFlag(boolean enumFlag) { |
| | | this.enumFlag = enumFlag; |
| | | } |
| | | |
| | | public void setEnumItemMap(Map<String, String> enumItemMap) { |
| | | this.enumItemMap = enumItemMap; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public void setNullableFlag(boolean nullableFlag) { |
| | | this.nullableFlag = nullableFlag; |
| | | } |
| | | |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | public void setPrecisionLength(Integer precisionLength) { |
| | | this.precisionLength = precisionLength; |
| | | } |
| | | |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public String getPkLinkType() { |
| | | return pkLinkType; |
| | | } |
| | | |
| | | |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public String getAttrDataType() { |
| | | return attrDataType; |
| | | } |
| | | |
| | | public String getReferBtmTypeId() { |
| | | return referBtmTypeId; |
| | | } |
| | | |
| | | public String getReferBtmTypeName() { |
| | | return referBtmTypeName; |
| | | } |
| | | |
| | | public boolean isReferFlag() { |
| | | return referFlag; |
| | | } |
| | | |
| | | public String getEnumId() { |
| | | return enumId; |
| | | } |
| | | |
| | | public String getEnumName() { |
| | | return enumName; |
| | | } |
| | | |
| | | public boolean isEnumFlag() { |
| | | return enumFlag; |
| | | } |
| | | |
| | | public Map<String, String> getEnumItemMap() { |
| | | return enumItemMap; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public boolean isNullableFlag() { |
| | | return nullableFlag; |
| | | } |
| | | |
| | | public String getDefaultValue() { |
| | | return defaultValue; |
| | | } |
| | | |
| | | public Integer getPrecisionLength() { |
| | | return precisionLength; |
| | | } |
| | | |
| | | public String getRange() { |
| | | return range; |
| | | } |
| | | |
| | | public void setRange(String range) { |
| | | this.range = range; |
| | | } |
| | | |
| | | public Integer getAttributeLength() { |
| | | return attributeLength; |
| | | } |
| | | |
| | | public void setAttributeLength(Integer attributeLength) { |
| | | this.attributeLength = attributeLength; |
| | | } |
| | | |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer getScaleLength() { |
| | | return scaleLength; |
| | | } |
| | | |
| | | public void setScaleLength(Integer scaleLength) { |
| | | this.scaleLength = scaleLength; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsLinkTypeAttributeVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", pkLinkType='" + pkLinkType + '\'' + |
| | | ", id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", attributeLength=" + attributeLength + |
| | | ", attrDataType='" + attrDataType + '\'' + |
| | | ", nullableFlag=" + nullableFlag + |
| | | ", defaultValue='" + defaultValue + '\'' + |
| | | ", precisionLength=" + precisionLength + |
| | | ", scaleLength=" + scaleLength + |
| | | ", range='" + range + '\'' + |
| | | ", referBtmTypeId='" + referBtmTypeId + '\'' + |
| | | ", referBtmTypeName='" + referBtmTypeName + '\'' + |
| | | ", referFlag=" + referFlag + |
| | | ", enumId='" + enumId + '\'' + |
| | | ", enumName='" + enumName + '\'' + |
| | | ", enumFlag=" + enumFlag + |
| | | ", enumItemMap=" + enumItemMap + |
| | | ", btmname='" + btmName + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | */ |
| | | private String domain; |
| | | |
| | | /** |
| | | * é¢åæ¾ç¤ºå¼ |
| | | */ |
| | | private String domainText; |
| | | |
| | | /** |
| | | * å
å«å±æ§ |
| | | */ |
| | |
| | | private String id; |
| | | |
| | | private String name; |
| | | //éå¢ç |
| | | //private String groupcode; |
| | | |
| | | private String description; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.revision.model; |
| | | |
| | | /** |
| | | * å
å«éå¢ç çåºç¡model |
| | | * @author ludc |
| | | * @date 2023/6/2 19:19 |
| | | */ |
| | | public class GroupBaseModel extends BaseModel{ |
| | | |
| | | //éå¢ç |
| | | private String groupCode; |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyMapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyWrapper; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.util.BladeTreeQueryObject; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.io.File; |
| | |
| | | * @return 屿§çä¿¡æ¯ï¼å
å«é»è®¤ç屿§ |
| | | */ |
| | | @GetMapping("/listClassifyLinkAttr") |
| | | public DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject){ |
| | | public DataGrid<BtmTypeAttributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject){ |
| | | return codeClassifyService.listClassifyLinkAttr(baseQueryObject); |
| | | } |
| | | |
| | |
| | | import com.vci.ubcs.code.dto.CodeClassifyTemplateAttrDTO; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateAttrService; |
| | | import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyTemplateAttrWrapper; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/codeClassifyTemplateAttrByBtm") |
| | | public DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject){ |
| | | public DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject){ |
| | | return CodeClstempattrService.codeClassifyTemplateAttrByBtm(baseQueryObject); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/codeClassifyTemplateAttrByBtmHave") |
| | | public DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject){ |
| | | public DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject){ |
| | | return CodeClstempattrService.codeClassifyTemplateAttrByBtmHave(baseQueryObject); |
| | | } |
| | | |
| | |
| | | * @return æ§è¡ç»æ success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | @PostMapping( "/checkIsCanDelete") |
| | | public R checkIsCanDelete( CodeClassifyValueDTO codeClassifyValueDTO) { |
| | | public R checkIsCanDelete(CodeClassifyValueDTO codeClassifyValueDTO) { |
| | | return codeClassifyValueService.checkIsCanDelete(codeClassifyValueDTO); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.service.ICodeReferBtmTypeService; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.vo.AttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author ludc |
| | | * @date 2023/6/1 18:36 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/referBtmTypeController") |
| | | @Api(value = "ç¼ç è§å管ç-å¼ç¨ç 段&&屿§ç 段-ä¸å¡ç±»åæ¥è¯¢", tags = "ç¼ç è§å管ç-å¼ç¨ç 段-ä¸å¡ç±»åæ¥è¯¢") |
| | | public class CodeReferBtmTypeController { |
| | | |
| | | @Resource |
| | | private ICodeReferBtmTypeService codeReferBtmTypeService; |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå表 |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return å表çå
容 |
| | | */ |
| | | @GetMapping("/referDataGrid") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "è·åä¸å¡ç±»åå表", notes = "baseQueryObject") |
| | | public R<Page<BtmTypeVO>> referDataGrid(BaseQueryObject baseQueryObject){ |
| | | return R.data(codeReferBtmTypeService.referDataGrid(baseQueryObject)); |
| | | } |
| | | |
| | | @GetMapping(value = "/gridAttributesByBtmId") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "è·åä¸å¡ç±»åå
å«ç屿§ï¼ä¸å页", notes = "baseQueryObject") |
| | | public R<Page<BtmTypeAttributeVO>> gridAttributesByBtmId(BaseQueryObject baseQueryObject){ |
| | | return R.data(codeReferBtmTypeService.gridAttributesByBtmId(baseQueryObject)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.code.service.ICodeReferConfigService; |
| | | ======= |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | <<<<<<< Updated upstream |
| | | ======= |
| | | import java.util.Map; |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * åç
§é
置表(CodeReferConfig)表æ§å¶å± |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.github.yulichang.base.MPJBaseService; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åç
§é
置表(CodeReferConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:47:59 |
| | | */ |
| | | public interface CodeReferConfigService extends MPJBaseService<CodeReferConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeReferConfigVO queryById(String oid); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | IPage<CodeReferConfigVO> queryByJoinPage(BladeQueryObject bladeQueryObject); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeReferConfigVO ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<CodeReferConfigVO> queryByList(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | R insert(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | R update(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param codeReferConfigDTO |
| | | * @return æ¯å¦æå |
| | | */ |
| | | R deleteById(CodeReferConfigDTO codeReferConfigDTO); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import jdk.internal.dynalink.linker.LinkerServices; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¾ç¤ºç屿§é
置表(CodeShowFieldConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface CodeShowFieldConfigService extends IService<CodeShowFieldConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeShowFieldConfig queryById(String oid); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insert(CodeShowFieldConfig codeShowFieldConfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ® |
| | | * |
| | | * @param codeShowFieldConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insertBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean update(CodeShowFieldConfig codeShowFieldConfig); |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeShowFieldConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean updateBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteById(String oid); |
| | | |
| | | /** |
| | | * éè¿å
³èçåç
§é
置主é®å 餿°æ® |
| | | * |
| | | * @param oid |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteByReferConfigOid(String oid); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.service.impl.CodeSrchCondConfigServiceImpl; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¥è¯¢æ¡ä»¶é
置表(CodeSrchCondConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface CodeSrchCondConfigService extends IService<CodeSrchCondConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeSrchCondConfig queryById(String oid); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeSrchCondConfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | Page<CodeSrchCondConfig> queryByPage(CodeSrchCondConfig codeSrchCondConfig, PageRequest pageRequest); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeSrchCondConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insert(CodeSrchCondConfig codeSrchCondConfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ® |
| | | * |
| | | * @param codeSrchCondConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insertBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeSrchCondConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean update(CodeSrchCondConfig codeSrchCondConfig); |
| | | |
| | | /** |
| | | * æ¹éââä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeSrchCondConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean updateBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteById(String oid); |
| | | |
| | | /** |
| | | * éè¿å
³èçåç
§é
ç½®idå 餿°æ® |
| | | * |
| | | * @param oid åç
§é
ç½®ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteByReferConfigOid(String oid); |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.util.BladeTreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid;import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.io.File; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ï¼å¿
é¡»æcodeClassifyOidï¼æ¯æidånameä¸¤ç§æ¥è¯¢æ¡ä»¶ |
| | | * @return 屿§çä¿¡æ¯ï¼å
å«é»è®¤ç屿§ |
| | | */ |
| | | DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject); |
| | | DataGrid<BtmTypeAttributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject) throws ServiceException; |
| | | |
| | | /** |
| | | * è·åå½ååç±»çé¡¶å±åç±» |
| | |
| | | * @return åç±»çæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | CodeClassifyVO getObjectByIdPath(String idPath); |
| | | |
| | | |
| | | /** |
| | | * 主é¢åºçæ |
| | |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.code.dto.CodeClassifyTemplateAttrDTO; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | |
| | | * @param baseQueryObject |
| | | * @return |
| | | */ |
| | | DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject); |
| | | DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿ä¸ªæ¨¡æ¿ï¼ä¸å¡ç±»åä¸å·²éæ©ç屿§ |
| | | * @param baseQueryObject |
| | | * @return |
| | | */ |
| | | DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject); |
| | | DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * 忥å°å
¶ä»æ¨¡æ¿ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vci.ubcs.omd.vo.AttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.util.BeanUtil; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 对omd䏿ä¾çfeignæ¥å£è¿è¡è°ç¨ï¼ä»¥åå¤çç¸å
³é»è¾ |
| | | * @author ludc |
| | | * @date 2023/6/1 18:39 |
| | | */ |
| | | public interface ICodeReferBtmTypeService { |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå表 |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return å表çå
容 |
| | | */ |
| | | Page<BtmTypeVO> referDataGrid(BaseQueryObject baseQueryObject) throws ServiceException; |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå
å«ç屿§ï¼ä¸å页 |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | Page<BtmTypeAttributeVO> gridAttributesByBtmId(BaseQueryObject baseQueryObject) throws ServiceException ; |
| | | |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeFixedValueVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.code.wrapper.CodeBasicSecWrapper; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | |
| | | CodeBasicSec codeBasicSecDO = new CodeBasicSec(); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeBasicSecDTO, codeBasicSecDO); |
| | | //textè½¬æ¢ |
| | | codeBasicSecDO.setSecTypeText(CodeSecTypeEnum.getTextByValue(codeBasicSecDTO.getSecType())); |
| | | codeBasicSecDO.setCodeLevelTypeText(CodeLevelTypeEnum.getTextByValue(codeBasicSecDTO.getCodeLevelType())); |
| | | codeBasicSecDO.setCodeSecLengthTypeText(CodeSecLengthTypeEnum.getTextByValue(codeBasicSecDTO.getCodeSecLengthType())); |
| | | codeBasicSecDO.setValueCutTypeText(CodeCutTypeEnum.getValueByText(codeBasicSecDTO.getValueCutType())); |
| | | codeBasicSecDO.setCodeGetValueTypeText(CodeGetValueTypeEnum.getValueByText(codeBasicSecDTO.getCodeGetValueType())); |
| | | codeBasicSecDO.setSecTypeText(EnumCache.getValue(EnumEnum.CODE_SEC_TYPE,codeBasicSecDTO.getSecType())); |
| | | codeBasicSecDO.setCodeLevelTypeText(EnumCache.getValue(EnumEnum.CODE_LEVEL_TYPE,codeBasicSecDTO.getCodeLevelType())); |
| | | codeBasicSecDO.setCodeSecLengthTypeText(EnumCache.getValue(EnumEnum.CODE_SEC_LENGTH,codeBasicSecDTO.getCodeSecLengthType())); |
| | | codeBasicSecDO.setValueCutTypeText(EnumCache.getValue(EnumEnum.CODE_CUT_TYPE,codeBasicSecDTO.getValueCutType())); |
| | | codeBasicSecDO.setCodeGetValueTypeText(EnumCache.getValue(EnumEnum.CODE_GET_VALUE_TYPE,codeBasicSecDTO.getCodeGetValueType())); |
| | | //å¡«å
ä¸äºé»è®¤å¼ |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeBasicSecDO,MdmBtmTypeConstant.CODE_BASIC_SEC); |
| | | //æåºå·ï¼é»è®¤çäºå½åå·²æçæ°éå 1 |
| | |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplate; |
| | | import com.vci.ubcs.code.entity.CodeOsbtmtypeEntity; |
| | | import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity; |
| | | import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyMapper; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyTemplateMapper; |
| | | import com.vci.ubcs.code.mapper.CodeOsbtmtypeMapper; |
| | | import com.vci.ubcs.code.mapper.CodeOsbtmtypeattributeMapper; |
| | | import com.vci.ubcs.code.po.CodeClassifyPO; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.service.ICodeKeyAttrRepeatService; |
| | | import com.vci.ubcs.code.service.ICodeOsattributeService; |
| | | import com.vci.ubcs.code.service.ICodeRuleService; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.CodeOsbtmtypeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeKeyAttrRepeatRuleVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | ======= |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.bo.WriteExcelData; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.LangBaseUtil; |
| | |
| | | private ICodeRuleService codeRuleService; |
| | | |
| | | @Resource |
| | | <<<<<<< Updated upstream |
| | | private IBtmTypeClient btmTypeClient; |
| | | ======= |
| | | private CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | |
| | | @Resource |
| | |
| | | @Resource |
| | | private IBtmTypeClient btmTypeClient; |
| | | |
| | | /** |
| | | * 屿§æå¡ |
| | | */ |
| | | // @Autowired |
| | | // private OsAttributeServiceI attributeService; |
| | | |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * æ¥å¿ |
| | |
| | | return excelName; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导å
¥åç±» |
| | | * |
| | |
| | | |
| | | List<String> btmOids = poList.stream().filter(s -> StringUtils.isNotBlank(s.getKeyRepeatRuleId())) |
| | | .map(CodeClassifyPO::getBtmTypeId).collect(Collectors.toList()); |
| | | Map<String, CodeOsbtmtypeEntity> btmVOMap = Optional.ofNullable(btmOids.size()==0 ? null: codeOsbtmtypeMapper.selectBatchIds(btmOids) |
| | | ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | // Map<String, CodeOsbtmtypeVO> btmVOMap = null; |
| | | Map<String, BtmTypeVO> btmVOMap = Optional |
| | | .ofNullable(btmOids.size()==0 ? null: btmTypeClient.selectByIdCollection(btmOids).getData()) |
| | | .orElse(new ArrayList<BtmTypeVO>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | // Map<String, CodeOsbtmtypeVO> btmVOMap = null; |
| | | Map<String/**è·¯å¾**/,String/**主é®**/> oidPathMap = new HashMap<>(); |
| | | |
| | | //æä»¬éè¦æ¥è¯¢ææå·²ç»åå¨çåç±»ï¼ä¸»è¦æ¯è·¯å¾ï¼ç¨æ¥å¤æåç±»çæ°æ® |
| | |
| | | classify.setDescription(po.getDescription()); |
| | | oidPathMap.put(po.getPath(),classify.getOid()); |
| | | if(StringUtils.isNotBlank(po.getBtmTypeId())){ |
| | | CodeOsbtmtypeVO typeVO = (CodeOsbtmtypeVO)btmVOMap.get(po.getBtmTypeId().toLowerCase(Locale.ROOT)); |
| | | BtmTypeVO typeVO = (BtmTypeVO)btmVOMap.get(po.getBtmTypeId().toLowerCase(Locale.ROOT)); |
| | | classify.setBtmTypeId(typeVO.getId()); |
| | | classify.setBtmTypeName(typeVO.getName()); |
| | | } |
| | |
| | | * @return 屿§çä¿¡æ¯ï¼å
å«é»è®¤ç屿§ |
| | | */ |
| | | @Override |
| | | public DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject) { |
| | | public DataGrid<BtmTypeAttributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject) throws ServiceException{ |
| | | if(baseQueryObject == null){ |
| | | baseQueryObject = new BaseQueryObject(); |
| | | } |
| | |
| | | baseQueryObject.setConditionMap(new HashMap<>()); |
| | | } |
| | | String classifyOid = baseQueryObject.getConditionMap().getOrDefault("codeClassifyOid",""); |
| | | String btmTypeOid = baseQueryObject.getConditionMap().getOrDefault("btmTypeOid",""); |
| | | String id = baseQueryObject.getConditionMap().getOrDefault("id",""); |
| | | String name = baseQueryObject.getConditionMap().getOrDefault("name",""); |
| | | if(StringUtils.isBlank(classifyOid)){ |
| | | return new DataGrid<>(); |
| | | } |
| | | if(StringUtils.isBlank(btmTypeOid)){ |
| | | return new DataGrid<>(); |
| | | } |
| | | CodeClassifyVO topClassifyVO = getTopClassifyVO(classifyOid); |
| | |
| | | |
| | | Map<String,Object> condition = new HashMap<>(1); |
| | | condition.put("pkbtmtype",topClassifyVO.getBtmtypeid()); |
| | | |
| | | List<CodeOsbtmtypeattributeEntity> unDefaultAttributes = codeOsbtmtypeattributeMapper.selectByMap(condition); |
| | | R<BtmTypeVO> btmTypeDetail = btmTypeClient.getDetail(btmTypeOid); |
| | | if(btmTypeDetail.getCode() != 200){ |
| | | throw new ServiceException("ä¸å¡ç±»åfeignæ¥å£è°ç¨åºé"); |
| | | } |
| | | List<BtmTypeAttributeVO> unDefaultAttributes = btmTypeDetail.getData().getAttributes(); |
| | | // List<CodeOsbtmtypeattributeEntity> unDefaultAttributes = codeOsbtmtypeattributeMapper.selectByMap(condition); |
| | | // List<OsBtmTypeAttributeVO> unDefaultAttributes = btmService. (topClassifyVO.getBtmtypeid()); |
| | | List<CodeOsattributeVO> attributeVOS = new ArrayList<>(); |
| | | List<BtmTypeAttributeVO> attributeVOS = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(unDefaultAttributes)){ |
| | | unDefaultAttributes.stream().forEach(attr->{ |
| | | CodeOsattributeVO attributeVO = new CodeOsattributeVO(); |
| | | BtmTypeAttributeVO attributeVO = new BtmTypeAttributeVO(); |
| | | BeanUtils.copyProperties(attr,attributeVO); |
| | | attributeVO.setAttributedatatype(attr.getAttrdatatype()); |
| | | attributeVO.setAttrlength(Short.valueOf(attr.getAttributelength())); |
| | | attributeVO.setBtmtypeid(attr.getReferbtmtypeid()); |
| | | attributeVO.setBtmtypename(attr.getReferbtmtypename()); |
| | | attributeVO.setAttributedatatypetext(attr.getReferbtmtypename()); |
| | | attributeVO.setAttrDataType(attr.getAttrDataType()); |
| | | attributeVO.setAttributeLength(attr.getAttributeLength()); |
| | | attributeVO.setBtmTypeId(btmTypeDetail.getData().getId()); |
| | | attributeVO.setBtmname(btmTypeDetail.getData().getName()); |
| | | attributeVO.setAttrDataTypeText(EnumCache.getValue(EnumEnum.VCO_FIELD_TYPE,attr.getAttrDataType())); |
| | | boolean add = true; |
| | | if(StringUtils.isNotBlank(id) && !attributeVO.getId().contains(id.replace("*",""))){ |
| | | add = false; |
| | |
| | | } |
| | | }); |
| | | } |
| | | // if(!CollectionUtils.isEmpty(codeOsattributeService.getDefaultAttributeVOs())){ |
| | | // codeOsattributeService.getDefaultAttributeVOs().stream().forEach(attr->{ |
| | | // boolean add = true; |
| | | // if(StringUtils.isNotBlank(id) && !attr.getId().contains(id.replace("*",""))){ |
| | | // add = false; |
| | | // } |
| | | // if(StringUtils.isNotBlank(name) && !attr.getId().contains(name.replace("*",""))){ |
| | | // add = false; |
| | | // } |
| | | // if(add){ |
| | | // attributeVOS.add(attr); |
| | | // } |
| | | // }); |
| | | // } |
| | | DataGrid<CodeOsattributeVO> dataGrid = new DataGrid<>(); |
| | | R<BtmTypeVO> btmTypeVOR = btmTypeClient.getDefaultAttrByBtmId(topClassifyVO.getBtmtypeid()); |
| | | if(btmTypeVOR.getCode() != 200){ |
| | | throw new ServiceException("ä¸å¡ç±»åfeignæ¥å£è°ç¨åºé"); |
| | | } |
| | | List<BtmTypeAttributeVO> defaultAttrVOS = btmTypeVOR.getData().getAttributes(); |
| | | if(!CollectionUtils.isEmpty(defaultAttrVOS)){ |
| | | defaultAttrVOS.stream().forEach(attr->{ |
| | | boolean add = true; |
| | | if(StringUtils.isNotBlank(id) && !attr.getId().contains(id.replace("*",""))){ |
| | | add = false; |
| | | } |
| | | if(StringUtils.isNotBlank(name) && !attr.getId().contains(name.replace("*",""))){ |
| | | add = false; |
| | | } |
| | | if(add){ |
| | | attributeVOS.add(attr); |
| | | } |
| | | }); |
| | | } |
| | | DataGrid<BtmTypeAttributeVO> dataGrid = new DataGrid<>(); |
| | | dataGrid.setData(attributeVOS); |
| | | dataGrid.setTotal(attributeVOS.size()); |
| | | return dataGrid; |
| | |
| | | } |
| | | |
| | | /** |
| | | <<<<<<< Updated upstream |
| | | * 主é¢åºçæ ,å·²èè°ä¸å¡ç±»åæ¥è¯¢feign |
| | | ======= |
| | | * 主é¢åºçæ ,å·²ç»èè°ä¸å¡ç±»åæ¥è¯¢ |
| | | >>>>>>> Stashed changes |
| | | * |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºæ¾ç¤ºæ |
| | |
| | | if(Func.isEmpty(btmTypeVOS) || Func.isEmpty(trees)){ |
| | | return null; |
| | | } |
| | | <<<<<<< Updated upstream |
| | | List<Tree> treeList = trees.stream().filter(tree -> !CollectionUtils.isEmpty(btmTypeVOS.stream().filter(btmType -> { |
| | | if(Objects.equals(tree.getAttributes().get("id"), btmType.getId())){ |
| | | tree.getAttributes().put("btmTypeOid",btmType.getOid()); |
| | | return true; |
| | | } |
| | | return false; |
| | | }).collect(Collectors.toList()))) |
| | | .collect(Collectors.toList()); |
| | | ======= |
| | | List<Tree> treeList = trees.stream().filter(tree -> btmTypeVOS.stream(). |
| | | anyMatch(btmType -> Objects.equals(tree.getAttributes().get("id"), btmType.getId()))).collect(Collectors.toList()); |
| | | >>>>>>> Stashed changes |
| | | return treeList; |
| | | } |
| | | |
| | |
| | | import com.vci.ubcs.code.enumpack.CodeLevelTypeEnum; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyTemplateAttrMapper; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyTemplateMapper; |
| | | import com.vci.ubcs.code.mapper.CodeOsbtmtypeattributeMapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateAttrService; |
| | | import com.vci.ubcs.code.service.ICodeTempphaseService; |
| | | import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyTemplateAttrWrapper; |
| | | import com.vci.ubcs.omd.feign.IAttributeClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | |
| | | |
| | | @Resource |
| | | IDictBizClient iDictBizClient; |
| | | |
| | | @Resource |
| | | CodeClassifyTemplateMapper codeClassifyTemplateMapper; |
| | | @Resource |
| | | CodeOsbtmtypeattributeMapper codeOsbtmtypeattributeMapper; |
| | | |
| | | @Resource |
| | | @Lazy |
| | | ICodeTempphaseService codeTempphaseService; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | | */ |
| | | @Autowired(required = false) |
| | | private RevisionModelUtil revisionModelUtil; |
| | | |
| | | /** |
| | | * 屿§æå¡å¯¹è±¡ |
| | | */ |
| | | @Resource |
| | | private IAttributeClient attributeClient; |
| | | |
| | | /** |
| | | * æ¥è¯¢ææç主é¢åºåç±»çæ¨¡æ¿å±æ§ |
| | |
| | | } |
| | | return isKV; |
| | | } |
| | | |
| | | public boolean checkKVObj(String kvString){ |
| | | boolean isKV = true; |
| | | try { |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject){ |
| | | public DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtm(BaseQueryObject baseQueryObject){ |
| | | if(baseQueryObject.getConditionMap() == null){ |
| | | baseQueryObject.setConditionMap(new HashMap<>()); |
| | | } |
| | | DataGrid<CodeOsbtmtypeattributeVO> dataGrid=new DataGrid<CodeOsbtmtypeattributeVO>(); |
| | | DataGrid<BtmTypeAttributeVO> dataGrid=new DataGrid<BtmTypeAttributeVO>(); |
| | | //模æ¿oid |
| | | String templateAttrOid = baseQueryObject.getConditionMap().get("oid"); |
| | | String name = baseQueryObject.getConditionMap().getOrDefault("name",""); |
| | |
| | | CodeClassifyTemplate codeClassifyTemplateDO = codeClassifyTemplateMapper.selectById(templateAttrOid); |
| | | |
| | | //è¿ä¸ªä¸å¡ç±»åä¸çææå±æ§ |
| | | List<CodeOsbtmtypeattributeVO> boAttrs = (List<CodeOsbtmtypeattributeVO>) codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId());// this.btmService.listAttributeByBtmId(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // BeanUtils.copyProperties(codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()),boAttrs); |
| | | // å¾
å®å |
| | | List<BtmTypeAttributeVO> boAttrs = null; //(List<BtmTypeAttributeVO>)attributeClient.selectById(codeClassifyTemplateDO.getBtmTypeId());// this.btmService.listAttributeByBtmId(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // BeanUtils.copyProperties(codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()),boAttrs); |
| | | //æé»è®¤ç屿§ä¹æ·»å å°boAttrs |
| | | if(boAttrs == null){ |
| | | boAttrs = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | //è¿æ»¤æå·²ç»åå¨ç屿§ |
| | | List<CodeOsbtmtypeattributeVO> boAttrss = new ArrayList<CodeOsbtmtypeattributeVO>(); |
| | | List<BtmTypeAttributeVO> boAttrss = new ArrayList<BtmTypeAttributeVO>(); |
| | | |
| | | for (CodeOsbtmtypeattributeVO osBtmTypeAttributeVO:boAttrs){ |
| | | for (BtmTypeAttributeVO osBtmTypeAttributeVO:boAttrs){ |
| | | if(!btmOids.contains(osBtmTypeAttributeVO.getId())){ |
| | | //ççæ¯ä¸æ¯ææ¨¡ç³æ¥è¯¢ |
| | | boolean inSearch = true; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DataGrid<CodeOsbtmtypeattributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject){ |
| | | DataGrid<CodeOsbtmtypeattributeVO> dataGrid=new DataGrid<CodeOsbtmtypeattributeVO>(); |
| | | public DataGrid<BtmTypeAttributeVO> codeClassifyTemplateAttrByBtmHave(BaseQueryObject baseQueryObject){ |
| | | DataGrid<BtmTypeAttributeVO> dataGrid=new DataGrid<BtmTypeAttributeVO>(); |
| | | //模æ¿oid |
| | | String templateAttrOid = baseQueryObject.getConditionMap().get("oid"); |
| | | |
| | |
| | | CodeClassifyTemplate codeClassifyTemplateDO = codeClassifyTemplateMapper.selectById(templateAttrOid); |
| | | |
| | | //è¿ä¸ªä¸å¡ç±»åä¸çææå±æ§ |
| | | List<CodeOsbtmtypeattributeVO> boAttrs = (List<CodeOsbtmtypeattributeVO>) codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId());//this.btmService.listAttributeByBtmIdHasDefault(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // å¾
å®å |
| | | List<BtmTypeAttributeVO> boAttrs = null; // (List<BtmTypeAttributeVO>) attributeClient.selectById(codeClassifyTemplateDO.getBtmTypeId());//this.btmService.listAttributeByBtmIdHasDefault(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()); |
| | | // BeanUtils.copyProperties(codeOsbtmtypeattributeMapper.selectById(codeClassifyTemplateDO.getBtmTypeId()),boAttrs); |
| | | //è¿ä¸ªæ¨¡æ¿ä¸å·²ç»æç屿§ |
| | |
| | | } |
| | | |
| | | //è¿æ»¤æé¤äºèªèº«çå«ç屿§ |
| | | List<CodeOsbtmtypeattributeVO> boAttrss = new ArrayList<CodeOsbtmtypeattributeVO>(); |
| | | List<BtmTypeAttributeVO> boAttrss = new ArrayList<BtmTypeAttributeVO>(); |
| | | |
| | | for (CodeOsbtmtypeattributeVO osBtmTypeAttributeVO:boAttrs){ |
| | | for (BtmTypeAttributeVO osBtmTypeAttributeVO:boAttrs){ |
| | | if(btmOids.contains(osBtmTypeAttributeVO.getId())){ |
| | | boAttrss.add(osBtmTypeAttributeVO); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vci.ubcs.code.service.ICodeReferBtmTypeService; |
| | | import com.vci.ubcs.omd.feign.IAttributeClient; |
| | | import com.vci.ubcs.omd.feign.IBtmAttributeClient; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.vo.AttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.util.BeanUtil; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.rmi.ServerException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 对omd䏿ä¾çfeignæ¥å£è¿è¡è°ç¨ï¼ä»¥åå¤çç¸å
³é»è¾ |
| | | * @author ludc |
| | | * @date 2023/6/1 18:39 |
| | | */ |
| | | @Service |
| | | public class CodeReferBtmTypeServiceImpl implements ICodeReferBtmTypeService { |
| | | |
| | | /** |
| | | * ä¸å¡ç±»åæå¡ |
| | | */ |
| | | @Resource |
| | | private IBtmTypeClient btmTypeClient; |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå表 |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return å表çå
容 |
| | | */ |
| | | @Override |
| | | public Page<BtmTypeVO> referDataGrid(BaseQueryObject baseQueryObject) throws ServiceException { |
| | | Map<String, String> conditionMap = baseQueryObject.getConditionMap(); |
| | | conditionMap.put("domain", AppConstant.APPLICATION_NAME_CODE); |
| | | baseQueryObject.setConditionMap(conditionMap); |
| | | R<Page<BtmTypeVO>> btmTypeClientRefPage = btmTypeClient.getRefPage(baseQueryObject); |
| | | if(btmTypeClientRefPage.getCode() != 200){ |
| | | throw new ServiceException("ä¸å¡ç±»åfeignæ¥å£è°ç¨é误"); |
| | | } |
| | | return btmTypeClientRefPage.getData(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå
å«ç屿§ï¼ä¸å页 |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public Page<BtmTypeAttributeVO> gridAttributesByBtmId(BaseQueryObject baseQueryObject) throws ServiceException { |
| | | String btmTypeId = baseQueryObject.getConditionMap().containsKey("btmTypeId")?baseQueryObject.getConditionMap().get("btmTypeId"):""; |
| | | if(StringUtils.isBlank(btmTypeId)){ |
| | | return new Page<>(); |
| | | } |
| | | String hasDefaultAttr = baseQueryObject.getConditionMap().getOrDefault("hasDefaultAttr","false"); |
| | | String attrId = baseQueryObject.getConditionMap().containsKey("name")?baseQueryObject.getConditionMap().get("name").replace("*",""):""; |
| | | String attrName = baseQueryObject.getConditionMap().containsKey("label") ? baseQueryObject.getConditionMap().get("label").replace("*","") : ""; |
| | | List<BtmTypeAttributeVO> boAttrs = null; |
| | | try { |
| | | boAttrs = btmTypeClient.getAllAttributeByBtmId(btmTypeId).getData().getAttributes(); |
| | | }catch (Exception e){ |
| | | throw new ServiceException("ä¸å¡ç±»åfeignæ¥å£è°ç¨é误"); |
| | | } |
| | | if(boAttrs == null){ |
| | | boAttrs = new ArrayList<>(); |
| | | } |
| | | if(BooleanEnum.TRUE.getValue().equalsIgnoreCase(hasDefaultAttr)){ |
| | | // TODO è·åé»è®¤ç屿§ |
| | | List<BtmTypeAttributeVO> finalBoAttrs = boAttrs; |
| | | BtmTypeVO btmTypeVO = btmTypeClient.getDefaultAttrByBtmId(btmTypeId).getData(); |
| | | btmTypeVO.getAttributes().stream().forEach(attr->{ |
| | | BtmTypeAttributeVO attributeVO = new BtmTypeAttributeVO(); |
| | | BeanUtil.convert(attr,attributeVO); |
| | | attributeVO.setAttributeLength(attr.getAttributeLength()); |
| | | attributeVO.setAttrDataType(attr.getAttrDataType()); |
| | | attributeVO.setReferBtmTypeId(attr.getBtmTypeId()); |
| | | attributeVO.setReferBtmTypeName(attr.getReferBtmTypeName()); |
| | | finalBoAttrs.add(attributeVO); |
| | | }); |
| | | boAttrs = finalBoAttrs; |
| | | } |
| | | List<BtmTypeAttributeVO> attrList = boAttrs.stream().filter(s->{ |
| | | boolean usedFlag = true; |
| | | if(StringUtils.isNotBlank(attrId) && !s.getId().contains(attrId.replace("*",""))){ |
| | | usedFlag = false; |
| | | } |
| | | if(StringUtils.isNotBlank(attrName) && !s.getName().contains(attrName.replace("*",""))){ |
| | | usedFlag = false; |
| | | } |
| | | return usedFlag; |
| | | }).collect(Collectors.toList()); |
| | | Page<BtmTypeAttributeVO> btmTypeAttributeVOPage = new Page<>(); |
| | | btmTypeAttributeVOPage.setRecords(attrList); |
| | | return btmTypeAttributeVOPage; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | <<<<<<< Updated upstream |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | |
| | | import com.vci.ubcs.code.service.ICodeReferConfigService; |
| | | import com.vci.ubcs.code.service.ICodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.service.ICodeSrchCondConfigService; |
| | | ======= |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeClassifyProcessTempDTO; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.entity.*; |
| | | import com.vci.ubcs.code.mapper.CodeReferConfigMapper; |
| | | import com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | import com.vci.ubcs.code.service.CodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.service.CodeSrchCondConfigService; |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyProcessTempWrapper; |
| | | import com.vci.ubcs.code.wrapper.CodeReferConfigWraper; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | ======= |
| | | import com.vci.ubcs.code.wrapper.CodeShowFieldConfigWraper; |
| | | import com.vci.ubcs.code.wrapper.CodeSrchCondConfigWraper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.Map2MPJLambdaUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | <<<<<<< Updated upstream |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | ======= |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | >>>>>>> Stashed changes |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | <<<<<<< Updated upstream |
| | | ======= |
| | | import java.util.Objects; |
| | | >>>>>>> Stashed changes |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.TS_NOT_PROCESS; |
| | | |
| | |
| | | * @since 2023-05-19 17:48:02 |
| | | */ |
| | | @Service("CodeReferconfigService") |
| | | <<<<<<< Updated upstream |
| | | public class CodeReferConfigServiceImpl extends MPJBaseServiceImpl<CodeReferConfigMapper,CodeReferConfig> implements ICodeReferConfigService { |
| | | ======= |
| | | public class CodeReferConfigServiceImpl extends MPJBaseServiceImpl<CodeReferConfigMapper,CodeReferConfig> implements CodeReferConfigService { |
| | | >>>>>>> Stashed changes |
| | | |
| | | @Resource |
| | | private CodeReferConfigMapper codeReferconfigMapper; |
| | | |
| | | @Resource |
| | | <<<<<<< Updated upstream |
| | | private ICodeShowFieldConfigService ICodeShowFieldConfigService; |
| | | |
| | | @Resource |
| | | private ICodeSrchCondConfigService ICodeSrchCondConfigService; |
| | | ======= |
| | | private CodeShowFieldConfigService codeShowFieldConfigService; |
| | | |
| | | @Resource |
| | | private CodeSrchCondConfigService codeSrchCondConfigService; |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | return CodeReferConfigWraper.build().entityVO(codeReferConfig); |
| | | } |
| | | |
| | | <<<<<<< Updated upstream |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | @Override |
| | | public IPage<CodeReferConfigVO> queryByJoinPage(BladeQueryObject bladeQueryObject) { |
| | | CodeReferConfig codeReferConfig = new CodeReferConfig(); |
| | | // æ ¹æ®ç§æ·è¿è¡åºå对åºçåç
§é
ç½® |
| | | Map<String, Object> conditionMap = bladeQueryObject.getConditionMap(); |
| | | <<<<<<< Updated upstream |
| | | // æ¥è¯¢æå±ç§æ·ä¸çåå¼å¯å
¨å±çåç
§é
ç½®ä¿¡æ¯ |
| | | conditionMap.put("tenantId",AuthUtil.getTenantId()); |
| | | conditionMap.put("isOpenGlobal","true"); |
| | | ======= |
| | | conditionMap.put("tenantId",AuthUtil.getTenantId()); |
| | | >>>>>>> Stashed changes |
| | | BeanMap beanMap = BeanMap.create(codeReferConfig); |
| | | beanMap.putAll(conditionMap); |
| | | // æ·»å é»è®¤æåºå段,æ ¹æ®æ¶é´è¿è¡æåº |
| | |
| | | return CodeReferConfigWraper.build().pageVO(codeReferConfigs); |
| | | } |
| | | |
| | | <<<<<<< Updated upstream |
| | | ======= |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeReferConfigVO ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | >>>>>>> Stashed changes |
| | | @Override |
| | | public List<CodeReferConfigVO> queryByList(CodeReferConfigVO codeReferConfigVO) { |
| | | codeReferConfigVO.setTenantId(AuthUtil.getTenantId()); |
| | |
| | | if (StringUtils.isBlank(codeReferConfigVO.getReferType())){ |
| | | throw new VciBaseException("åç
§é
ç½®ä¸è½ä¸ºç©º"); |
| | | } |
| | | <<<<<<< Updated upstream |
| | | // Long count = countCodeReferConfig(codeReferConfigVO); |
| | | // if(count > 0){ |
| | | // throw new VciBaseException("å·²åå¨ç¸åçåç
§é
ç½®"); |
| | |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeSrchCondConfigs())){ |
| | | ICodeSrchCondConfigService.insertBatch(codeReferConfigVO.getCodeSrchCondConfigVOS(),codeReferConfig.getOid()); |
| | | } |
| | | ======= |
| | | Long count = countCodeReferConfig(codeReferConfigVO); |
| | | if(count > 0){ |
| | | throw new VciBaseException("å·²åå¨ç¸åçåç
§é
ç½®"); |
| | | } |
| | | |
| | | CodeReferConfig CodeReferConfig = Objects.requireNonNull(BeanUtil.copy(codeReferConfigVO, CodeReferConfig.class)); |
| | | boolean resInsertReferConfig = this.codeReferconfigMapper.insert(CodeReferConfig) > 0; |
| | | if (!resInsertReferConfig) { |
| | | return R.fail("æ°å¢åç
§é
置失败ï¼"); |
| | | } |
| | | codeShowFieldConfigService.insertBatch(codeReferConfigVO.getCodeShowFieldConfigVOS()); |
| | | codeSrchCondConfigService.insertBatch(codeReferConfigVO.getCodeSrchCondConfigVOS()); |
| | | >>>>>>> Stashed changes |
| | | return R.data(codeReferConfigVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | private Long countCodeReferConfig(CodeReferConfigVO codeReferConfigVO) { |
| | | String templateName = codeReferConfigVO.getName(); |
| | | <<<<<<< Updated upstream |
| | | String templateId = codeReferConfigVO.getId(); |
| | | if (StringUtils.isBlank(templateName) && StringUtils.isBlank(templateId)){ |
| | | throw new VciBaseException("åç
§é
ç½®ç¼å·ååç§°ä¸è½ä¸ºç©º"); |
| | |
| | | .eq(CodeReferConfig::getIsOpenGlobal,"true") // æ¥è¯¢å¼å¯å
¨å±çåç
§é
ç½® |
| | | .eq(CodeReferConfig::getId,templateId) |
| | | .eq(CodeReferConfig::getName,templateName); |
| | | ======= |
| | | if (StringUtils.isBlank(templateName)){ |
| | | throw new VciBaseException("åç
§é
ç½®åç§°ä¸è½ä¸ºç©º"); |
| | | } |
| | | LambdaQueryWrapper<CodeReferConfig> wrapper = Wrappers.<CodeReferConfig>query() |
| | | .lambda().eq(CodeReferConfig::getId, codeReferConfigVO.getId()) |
| | | .eq(CodeReferConfig::getTenantId, codeReferConfigVO.getTenantId()); |
| | | >>>>>>> Stashed changes |
| | | Long count = codeReferconfigMapper.selectCount(wrapper); |
| | | return count; |
| | | } |
| | |
| | | private MPJLambdaWrapper<CodeReferConfig> getMPJLambdaWrapper(){ |
| | | MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = new MPJLambdaWrapper<>(CodeReferConfig.class) |
| | | .selectAll(CodeReferConfig.class) |
| | | <<<<<<< Updated upstream |
| | | // .select(CodeShowFieldConfig::getField |
| | | // ,CodeShowFieldConfig::getTitle |
| | | // ,CodeShowFieldConfig::getFieldType |
| | |
| | | // CodeSrchCondConfig::getFilterType, |
| | | // CodeSrchCondConfig::getFilterField, |
| | | // CodeSrchCondConfig::getFilterValue) |
| | | ======= |
| | | // .select(CodeShowFieldConfig::getField |
| | | // ,CodeShowFieldConfig::getTitle |
| | | // ,CodeShowFieldConfig::getFieldType |
| | | // ,CodeShowFieldConfig::getSort |
| | | // ,CodeShowFieldConfig::getAttrSortField |
| | | // ,CodeShowFieldConfig::getWidth |
| | | // ,CodeShowFieldConfig::getFixedPosition |
| | | // ,CodeShowFieldConfig::getTemplet) |
| | | // .select( |
| | | // CodeSrchCondConfig::getFilterType, |
| | | // CodeSrchCondConfig::getFilterField, |
| | | // CodeSrchCondConfig::getFilterValue) |
| | | >>>>>>> Stashed changes |
| | | .selectCollection(CodeShowFieldConfig.class, CodeReferConfig::getCodeShowFieldConfigs) |
| | | .selectCollection(CodeSrchCondConfig.class, CodeReferConfig::getCodeSrchCondConfigs) |
| | | .leftJoin(CodeShowFieldConfig.class, CodeShowFieldConfig::getReferConfigOid,CodeReferConfig::getOid) |
| | |
| | | if (!resUpdateReferConfig) { |
| | | return R.fail("åç
§é
置修æ¹å¤±è´¥ï¼"); |
| | | } |
| | | <<<<<<< Updated upstream |
| | | this.ICodeShowFieldConfigService.updateBatch(codeReferConfigVO.getCodeShowFieldConfigVOS()); |
| | | this.ICodeSrchCondConfigService.updateBatch(codeReferConfigVO.getCodeSrchCondConfigVOS()); |
| | | ======= |
| | | this.codeShowFieldConfigService.updateBatch(codeReferConfigVO.getCodeShowFieldConfigVOS()); |
| | | this.codeSrchCondConfigService.updateBatch(codeReferConfigVO.getCodeSrchCondConfigVOS()); |
| | | >>>>>>> Stashed changes |
| | | return R.data(codeReferConfigVO); |
| | | } |
| | | |
| | |
| | | if (!resDeleteReferConfig) { |
| | | return R.fail("åç
§é
ç½®å é¤å¤±è´¥ï¼"); |
| | | } |
| | | <<<<<<< Updated upstream |
| | | this.ICodeShowFieldConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | this.ICodeSrchCondConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | ======= |
| | | this.codeShowFieldConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | this.codeSrchCondConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | >>>>>>> Stashed changes |
| | | return R.status(resDeleteReferConfig); |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | <<<<<<< Updated upstream |
| | | ======= |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | >>>>>>> Stashed changes |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.code.service.ICodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeShowFieldConfigWraper; |
| | | import org.springframework.stereotype.Service; |
| | | ======= |
| | | import com.vci.ubcs.code.service.CodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeShowFieldConfigWraper; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | >>>>>>> Stashed changes |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | @Service("CodeShowFieldConfigService") |
| | | <<<<<<< Updated upstream |
| | | public class CodeShowFieldConfigServiceImpl extends ServiceImpl<CodeShowFieldConfigMapper,CodeShowFieldConfig> implements ICodeShowFieldConfigService { |
| | | ======= |
| | | public class CodeShowFieldConfigServiceImpl extends ServiceImpl<CodeShowFieldConfigMapper,CodeShowFieldConfig> implements CodeShowFieldConfigService { |
| | | >>>>>>> Stashed changes |
| | | |
| | | @Resource |
| | | private CodeShowFieldConfigMapper codeShowFieldConfigMapper; |
| | | |
| | | /** |
| | | <<<<<<< Updated upstream |
| | | ======= |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeShowFieldConfig queryById(String oid) { |
| | | return this.codeShowFieldConfigMapper.queryById(oid); |
| | | } |
| | | |
| | | /** |
| | | >>>>>>> Stashed changes |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | <<<<<<< Updated upstream |
| | | public boolean insertBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS, String oid) { |
| | | List<CodeShowFieldConfig> codeShowFieldConfigs = CodeShowFieldConfigWraper.build().listDO(codeShowFieldConfigVOS,oid); |
| | | boolean b = this.saveOrUpdateBatch(codeShowFieldConfigs); |
| | | return b; |
| | | } |
| | | ======= |
| | | public boolean insertBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS) { |
| | | List<CodeShowFieldConfig> codeShowFieldConfigs = CodeShowFieldConfigWraper.build().listDO(codeShowFieldConfigVOS); |
| | | boolean b = this.saveOrUpdateBatch(codeShowFieldConfigs); |
| | | return b; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean update(CodeShowFieldConfig codeShowFieldConfig) { |
| | | return this.codeShowFieldConfigMapper.update(codeShowFieldConfig)>0; |
| | | } |
| | | >>>>>>> Stashed changes |
| | | |
| | | @Override |
| | | public boolean updateBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS) { |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | <<<<<<< Updated upstream |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | ======= |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper; |
| | | import com.vci.ubcs.code.mapper.CodeSrchCondConfigMapper; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.code.service.ICodeSrchCondConfigService; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeSrchCondConfigWraper; |
| | | ======= |
| | | import com.vci.ubcs.code.service.CodeSrchCondConfigService; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeSrchCondConfigWraper; |
| | | import org.apache.cxf.endpoint.ServerImpl; |
| | | >>>>>>> Stashed changes |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | <<<<<<< Updated upstream |
| | | import java.util.List; |
| | | ======= |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.function.Function; |
| | | >>>>>>> Stashed changes |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¥è¯¢æ¡ä»¶é
置表(CodeSrchCondConfigService)表æå¡å®ç°ç±» |
| | |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | @Service("CodeSrchCondConfigService") |
| | | <<<<<<< Updated upstream |
| | | public class CodeSrchCondConfigServiceImpl extends ServiceImpl<CodeSrchCondConfigMapper, CodeSrchCondConfig> implements ICodeSrchCondConfigService { |
| | | ======= |
| | | public class CodeSrchCondConfigServiceImpl extends ServiceImpl<CodeSrchCondConfigMapper, CodeSrchCondConfig> implements CodeSrchCondConfigService { |
| | | >>>>>>> Stashed changes |
| | | |
| | | @Resource |
| | | private CodeSrchCondConfigMapper codeSrchcondconfigMapper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | <<<<<<< Updated upstream |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean insertBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS, String oid) { |
| | | List<CodeSrchCondConfig> codeSrchCondConfigs = CodeSrchCondConfigWraper.build().listDO(codeSrchCondConfigVOS,oid); |
| | | return this.saveOrUpdateBatch(codeSrchCondConfigs); |
| | | } |
| | | ======= |
| | | public boolean insertBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS) { |
| | | List<CodeSrchCondConfig> codeSrchCondConfigs = CodeSrchCondConfigWraper.build().listDO(codeSrchCondConfigVOS); |
| | | return this.saveOrUpdateBatch(codeSrchCondConfigs); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeSrchcondconfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public boolean update(CodeSrchCondConfig codeSrchcondconfig) { |
| | | return this.codeSrchcondconfigMapper.update(codeSrchcondconfig)>0; |
| | | } |
| | | >>>>>>> Stashed changes |
| | | |
| | | @Override |
| | | public boolean updateBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS) { |
| | |
| | | import com.vci.ubcs.code.dto.datapush.BaseModelDTO; |
| | | import com.vci.ubcs.code.entity.*; |
| | | import com.vci.ubcs.code.enumpack.*; |
| | | import com.vci.ubcs.code.mapper.CodeOsbtmtypeMapper; |
| | | import com.vci.ubcs.code.mapper.CodeWupinMapper; |
| | | import com.vci.ubcs.code.mapper.CommonsMapper; |
| | | import com.vci.ubcs.code.service.*; |
| | |
| | | import com.vci.ubcs.code.vo.pagemodel.UITableFieldVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.UITablePageVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.omd.feign.IAttributeClient; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.feign.IEnumClient; |
| | | import com.vci.ubcs.omd.feign.IRevisionRuleClient; |
| | |
| | | */ |
| | | @Resource |
| | | private CodeClstemplateServiceImpl templateService; |
| | | /** |
| | | * 模æ¿çæå¡ |
| | | */ |
| | | |
| | | @Resource |
| | | private CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | @Resource |
| | | private CodeOsattributeServiceImpl attributeService; |
| | | private IAttributeClient attributeClient; |
| | | |
| | | /** |
| | | * çæç¼ç çæå¡ |
| | | */ |
| | | @Resource |
| | | private MdmProductCodeService productCodeService; |
| | | |
| | | /** |
| | | * å¯è¾å¯éçæå¡ |
| | | */ |
| | | @Resource |
| | | IDictBizClient iDictBizClient; |
| | | |
| | | /** |
| | | * åå
¸çæå¡ |
| | | */ |
| | | @Resource |
| | | IEnumClient enumClient; |
| | | |
| | | /** |
| | | * å
¬å¼çæå¡ |
| | | */ |
| | |
| | | List<String> oids = VciBaseUtil.str2List(baseModelDTO.getOid()); |
| | | // List<ClientBusinessObject> cboList = boService.selectCBOByOidCollection(oids, baseModelDTO.getBtmname()); |
| | | //æä¸ªç¹ ä¸å¡ç±»å宿åéè¦ä¿®æ¹ |
| | | QueryWrapper<CodeOsbtmtypeEntity> wrapper = new QueryWrapper<>(); |
| | | QueryWrapper<BtmTypeVO> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("BTMNAME",baseModelDTO.getBtmname()); |
| | | wrapper.in("OID",oids); |
| | | List<CodeOsbtmtypeEntity> cboList = codeOsbtmtypeMapper.selectList(wrapper); |
| | | // å¾
å®å |
| | | List<BtmTypeVO> cboList = null; // btmTypeClient.selectList(wrapper); |
| | | //è¿éè¦ä¿®æ¹allCodeççå½å¨æ |
| | | // Map<String, String> conditionMap = new HashMap<>(); |
| | | QueryWrapper<CodeAllCode> allCodeWrapper = new QueryWrapper<>(); |
| | |
| | | // List<ClientBusinessObject> codeCbos = boService.queryCBO(MdmBtmTypeConstant.CODE_ALL_CODE, conditionMap); |
| | | // åæ¶éè¦ä¸å¡æ°æ®å é¤ |
| | | if (CodeDefaultLC.TASK_BACK.getValue().equals(baseModelDTO.getLcStatus())) { |
| | | // BatchCBO batchCBO = new BatchCBO(); |
| | | // batchCBO.getDeleteCbos().addAll(cboList); |
| | | codeOsbtmtypeMapper.deleteBatchIds(cboList); |
| | | // boService.persistenceBatch(batchCBO); |
| | | } else { |
| | | // lifeCycleService.transCboStatus(cboList, baseModelDTO.getLcStatus()); |
| | | } |
| | | // lifeCycleService.transCboStatus(codeCbos, baseModelDTO.getLcStatus()); |
| | | } |
| | | // BatchCBO batchCBO = new BatchCBO(); |
| | | // batchCBO.getDeleteCbos().addAll(cboList); |
| | | |
| | | // å¾
å®å |
| | | //btmTypeClient.deleteBatchIds(cboList); |
| | | |
| | | //boService.persistenceBatch(batchCBO); |
| | | } else { |
| | | // lifeCycleService.transCboStatus(cboList, baseModelDTO.getLcStatus()); |
| | | } |
| | | // lifeCycleService.transCboStatus(codeCbos, baseModelDTO.getLcStatus()); |
| | | } |
| | | |
| | | /** |
| | | * ç³è¯·åä¸ç¼ç |
| | |
| | | selectFieldList.add(referTableNick + "." + showFieldInSource + " as " + referShowField); |
| | | }); |
| | | } |
| | | Optional.ofNullable(attributeService.getDefaultAttributeVOMap()).orElseGet(() -> new HashMap<>()).keySet().stream().forEach(attrId -> { |
| | | if (!selectFieldList.contains(attrId) && !"secretgrade".equalsIgnoreCase(attrId)) { |
| | | selectFieldList.add(attrId); |
| | | } |
| | | }); |
| | | // å¾
å®å |
| | | // Optional.ofNullable(attributeService.getDefaultAttributeVOMap()).orElseGet(() -> new HashMap<>()).keySet().stream().forEach(attrId -> { |
| | | // if (!selectFieldList.contains(attrId) && !"secretgrade".equalsIgnoreCase(attrId)) { |
| | | // selectFieldList.add(attrId); |
| | | // } |
| | | // }); |
| | | if (!selectFieldList.contains(CODE_FIELD)) { |
| | | selectFieldList.add(CODE_FIELD); |
| | | } |
| | |
| | | */ |
| | | private String getSqlByValue(String selectKey, String value, Map<String, CodeClassifyTemplateAttrVO> attrVOMap) { |
| | | StringBuilder sql = new StringBuilder(); |
| | | if (!selectKey.contains(".") && (attrVOMap.containsKey(selectKey.toLowerCase(Locale.ROOT)) || attributeService.isDefaultAttr(selectKey) || selectKey.matches(RegExpConstant.LETTER))) { |
| | | sql.append("t."); |
| | | } |
| | | // å¾
å®å |
| | | // if (!selectKey.contains(".") && (attrVOMap.containsKey(selectKey.toLowerCase(Locale.ROOT)) || attributeService.isDefaultAttr(selectKey) || selectKey.matches(RegExpConstant.LETTER))) { |
| | | // sql.append("t."); |
| | | // } |
| | | if (value.startsWith(QueryOptionConstant.IN)) { |
| | | sql.append(selectKey) |
| | | .append(SPACE) |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | <<<<<<< Updated upstream |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigTypeEnum; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | ======= |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigTypeEnum; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | >>>>>>> Stashed changes |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | |
| | | @Override |
| | | public CodeReferConfigVO entityVO(CodeReferConfig codeReferConfig) { |
| | | CodeReferConfigVO codeReferConfigVO = Objects.requireNonNull(BeanUtil.copy(codeReferConfig, CodeReferConfigVO.class)); |
| | | <<<<<<< Updated upstream |
| | | if(StringUtils.isNotBlank(codeReferConfig.getType())){ |
| | | codeReferConfigVO.setTypeText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_TYPE,codeReferConfig.getType())); |
| | | } |
| | | ======= |
| | | codeReferConfigVO.setTypeText(CodeReferConfigTypeEnum.getTextByValue(codeReferConfig.getType())); |
| | | >>>>>>> Stashed changes |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeSrchCondConfigs())){ |
| | | codeReferConfigVO.setCodeSrchCondConfigVOS(CodeSrchCondConfigWraper.build().listVO(codeReferConfig.getCodeSrchCondConfigs())); |
| | | } |
| | |
| | | return codeReferConfigVO; |
| | | } |
| | | |
| | | <<<<<<< Updated upstream |
| | | public CodeReferConfig entityDO(CodeReferConfigVO codeReferConfigVO) { |
| | | CodeReferConfig codeReferConfig = Objects.requireNonNull(BeanUtil.copy(codeReferConfigVO, CodeReferConfig.class)); |
| | | //codeReferConfig.setType(CodeReferConfigTypeEnum.getValueByText(codeReferConfigVO.getTypeText())); |
| | |
| | | return codeReferConfig; |
| | | } |
| | | |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.enumpack.CodeClassifyTemplateLC; |
| | | import com.vci.ubcs.code.lifecycle.CodeRuleLC; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | |
| | | @Override |
| | | public CodeRuleVO entityVO(CodeRule codeRule) { |
| | | CodeRuleVO codeRuleVO = Objects.requireNonNull(BeanUtil.copy(codeRule, CodeRuleVO.class)); |
| | | if(StringUtils.isNotBlank(codeRuleVO.getLcStatus())){ |
| | | codeRuleVO.setLcStatusText(EnumCache.getValue(EnumEnum.CODE_RULE_LC,codeRuleVO.getLcStatus())); |
| | | if(StringUtils.isNotBlank(codeRule.getLcStatus())){ |
| | | codeRuleVO.setLcStatusText(EnumCache.getValue(EnumEnum.CODE_RULE_LC,codeRule.getLcStatus())); |
| | | } |
| | | return codeRuleVO; |
| | | } |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | <<<<<<< Updated upstream |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigFieldTypeEnum; |
| | |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | @Override |
| | | public CodeShowFieldConfigVO entityVO(CodeShowFieldConfig codeShowFieldConfig) { |
| | | CodeShowFieldConfigVO codeShowFieldConfigVO = Objects.requireNonNull(BeanUtil.copy(codeShowFieldConfig, CodeShowFieldConfigVO.class)); |
| | | <<<<<<< Updated upstream |
| | | if(StringUtils.isNotBlank(codeShowFieldConfig.getFixedPosition())){ |
| | | codeShowFieldConfigVO.setFixedPositionText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_FIXED,codeShowFieldConfig.getFixedPosition())); |
| | | } |
| | |
| | | CodeShowFieldConfig codeShowFieldConfig = entityDO(codeShowFieldConfigVO); |
| | | codeShowFieldConfig.setReferConfigOid(oid); |
| | | return codeShowFieldConfig; |
| | | ======= |
| | | codeShowFieldConfigVO.setFieldTypeText(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfig.getField())); |
| | | codeShowFieldConfigVO.setFixedPositionText(CodeReferConfigFixedEnum.getTextByValue(codeShowFieldConfig.getFixedPosition())); |
| | | |
| | | return codeShowFieldConfigVO; |
| | | >>>>>>> Stashed changes |
| | | } |
| | | |
| | | public CodeShowFieldConfig entityDO(CodeShowFieldConfigVO codeShowFieldConfigVO) { |
| | | CodeShowFieldConfig codeShowFieldConfig = Objects.requireNonNull(BeanUtil.copy(codeShowFieldConfigVO, CodeShowFieldConfig.class)); |
| | | <<<<<<< Updated upstream |
| | | if(StringUtils.isNotBlank(codeShowFieldConfigVO.getFieldTypeText())){ |
| | | codeShowFieldConfig.setFieldType(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfigVO.getFieldTypeText())); |
| | | } |
| | |
| | | return (List)codeShowFieldConfigVOS.stream().map(item->entityDOsetReferConfigOid(item,oid)).collect(Collectors.toList()); |
| | | } |
| | | |
| | | ======= |
| | | codeShowFieldConfig.setFieldType(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfigVO.getFieldTypeText())); |
| | | codeShowFieldConfig.setFixedPosition(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfigVO.getFixedPositionText())); |
| | | return codeShowFieldConfig; |
| | | } |
| | | |
| | | >>>>>>> Stashed changes |
| | | public List<CodeShowFieldConfig> listDO(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS) { |
| | | return (List)codeShowFieldConfigVOS.stream().map(this::entityDO).collect(Collectors.toList()); |
| | | } |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | <<<<<<< Updated upstream |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | <<<<<<< Updated upstream |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | @Override |
| | | public CodeSrchCondConfigVO entityVO(CodeSrchCondConfig codeSrchCondConfig) { |
| | | CodeSrchCondConfigVO codeSrchCondConfigVO = Objects.requireNonNull(BeanUtil.copy(codeSrchCondConfig, CodeSrchCondConfigVO.class)); |
| | | <<<<<<< Updated upstream |
| | | if(StringUtils.isNotBlank(codeSrchCondConfigVO.getFilterType())){ |
| | | codeSrchCondConfigVO.setFilterTypeText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_FILTER_TYPE,codeSrchCondConfig.getFilterType())); |
| | | } |
| | |
| | | codeSrchCondConfig.setFilterType(CodeReferConfigFieldTypeEnum.getTextByValue(codeSrchCondConfigVO.getFilterTypeText())); |
| | | } |
| | | codeSrchCondConfig.setReferConfigOid(codeSrchCondConfigVO.getOid()); |
| | | ======= |
| | | codeSrchCondConfigVO.setFilterTypeText(CodeReferConfigFilterTypeEnum.getTextByValue(codeSrchCondConfig.getFilterType())); |
| | | return codeSrchCondConfigVO; |
| | | } |
| | | |
| | | public CodeSrchCondConfig entityDO(CodeSrchCondConfigVO codeSrchCondConfigVO) { |
| | | CodeSrchCondConfig codeSrchCondConfig = Objects.requireNonNull(BeanUtil.copy(codeSrchCondConfigVO, CodeSrchCondConfig.class)); |
| | | codeSrchCondConfig.setFilterType(CodeReferConfigFieldTypeEnum.getTextByValue(codeSrchCondConfigVO.getFilterTypeText())); |
| | | >>>>>>> Stashed changes |
| | | return codeSrchCondConfig; |
| | | } |
| | | |
| | |
| | | return (List)codeSrchCondConfigVOS.stream().map(this::entityDO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | <<<<<<< Updated upstream |
| | | public List<CodeSrchCondConfig> listDO(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS,String oid) { |
| | | return (List)codeSrchCondConfigVOS.stream().map(item->entityDOsetReferConfigOid(item,oid)).collect(Collectors.toList()); |
| | | } |
| | | |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | } |
| | |
| | | <select id="selectAllLevelChildOid" resultType="java.util.HashMap"> |
| | | select oid, level |
| | | from PL_CODE_CLASSIFY |
| | | START WITH parentCodeClassifyOid = #{oid}CONNECT BY |
| | | START WITH parentCodeClassifyOid = #{oid} CONNECT BY |
| | | PRIOR OID = parentCodeClassifyOid |
| | | </select> |
| | | |
| | |
| | | <if test="codeReferConfig.tenantId != null and codeReferConfig.tenantId != ''"> |
| | | PCR.TENANTID = #{codeReferConfig.tenantId} |
| | | </if> |
| | | <<<<<<< Updated upstream |
| | | <if test="codeReferConfig.isOpenGlobal != null and codeReferConfig.isOpenGlobal != ''"> |
| | | OR PCR.ISOPENGLOBAL = #{codeReferConfig.isOpenGlobal} |
| | | </if> |
| | | <if test="codeReferConfig.name != null and codeReferConfig.name != ''"> |
| | | and NAME like CONCAT(CONCAT('%', #{codeReferConfig.name}), '%') |
| | | </if> |
| | | ======= |
| | | <if test="codeReferConfig.name != null and codeReferConfig.name != ''"> |
| | | and NAME like CONCAT(CONCAT('%', #{codeReferConfig.name}), '%') |
| | | </if> |
| | | >>>>>>> Stashed changes |
| | | <if test="codeReferConfig.id != null and codeReferConfig.id != ''"> |
| | | and ID like CONCAT(CONCAT('%', #{codeReferConfig.id}), '%') |
| | | </if> |
| | |
| | | PCS.ATTRSORTFIELD, |
| | | PCS.WIDTH, |
| | | PCS.FIXEDPOSITION, |
| | | <<<<<<< Updated upstream |
| | | PCS.TEMPLET, |
| | | PCS.ISQUERY |
| | | ======= |
| | | PCS.TEMPLET |
| | | >>>>>>> Stashed changes |
| | | FROM PL_CODE_REFERCONFIG PCR |
| | | LEFT JOIN PL_CODE_SHOWFIELDCONFIG PCS ON PCS.REFERCONFIGOID = PCR.OID) |
| | | temp WHERE temp.REFERCONFIGOID = #{oid} |
| | |
| | | void createDbTablesByOidCollection(Collection<String> oidCollection) throws VciBaseException; |
| | | |
| | | /** |
| | | * è·åå建çsqlè¯å¥ä¸å±æ§é¨å |
| | | * è·åå建çsqlè¯å¥ä¸å±æ§é¨å -- ä¸å¡ç±»å |
| | | * @param attributeVOList 屿§çç«ç¢ |
| | | * @return sqlè¯å¥ |
| | | */ |
| | | String getCreateSqlByAttributeForBtm(List<BtmTypeAttributeVO> attributeVOList); |
| | | |
| | | /** |
| | | * è·åå建çsqlè¯å¥ä¸å±æ§é¨å -- 龿¥ç±»å |
| | | * @param attributeVOList 屿§çç«ç¢ |
| | | * @return sqlè¯å¥ |
| | | */ |
| | | String getCreateSqlByAttributeForLink(List<LinkTypeAttributeVO> attributeVOList); |
| | | |
| | | /** |
| | | * æ¹éå°ä¸å¡ç±»ååå»ºæ°æ®åºè¡¨ |
| | | * @param ids ä¸å¡ç±»åçè±æåç§° |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
å建表åºç°äºéè¯¯çæ¶å伿åºå¼å¸¸ |
| | |
| | | } |
| | | |
| | | /** |
| | | * åå»ºé¾æ¥ç±»åçè¡¨æ ¼ |
| | | * |
| | | * @param linkTypeVO 龿¥ç±»åçæ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException æ§è¡åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | private void createDbTableForLink(LinkTypeVO linkTypeVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(linkTypeVO, "è¦åå»ºè¡¨æ ¼æå±çä¸å¡ç±»å", linkTypeVO.getTableName(), "ä¸å¡ç±»åçè¡¨æ ¼åç§°"); |
| | | String tableName = linkTypeVO.getTableName(); |
| | | if (!checkTableExistByTableName(tableName)) { |
| | | String attributeSql = getCreateSqlByAttributeForLink(linkTypeVO.getAttributes()); |
| | | dllMapper.createTableBySql(tableName, attributeSql); |
| | | if (StringUtils.isNotBlank(linkTypeVO.getName())) { |
| | | dllMapper.commentTable(tableName, linkTypeVO.getName()); |
| | | } |
| | | linkTypeVO.getAttributes().forEach(s -> { |
| | | dllMapper.commentColumnTable(tableName, s.getId(), s.getName()); |
| | | }); |
| | | } |
| | | } |
| | | /** |
| | | * è·åå建çsqlè¯å¥ä¸å±æ§é¨å |
| | | * |
| | | * @param attributeVOList 屿§çç«ç¢ |
| | |
| | | attributeVOList.forEach(a -> { |
| | | sb.append(a.getId()).append(StringPool.SPACE); |
| | | VciFieldTypeEnum fieldTypeEnum = VciFieldTypeEnum.forValue(a.getAttrDataType()); |
| | | sb.append(dllMapper.getColumnTypeSql(fieldTypeEnum, a)); |
| | | sb.append(dllMapper.getColumnTypeSql(fieldTypeEnum, a)).append(","); |
| | | }); |
| | | return sb.substring(0, sb.lastIndexOf(",")); |
| | | } |
| | | |
| | | /** |
| | | * è·åå建çsqlè¯å¥ä¸å±æ§é¨å |
| | | * |
| | | * @param attributeVOList 屿§çç«ç¢ |
| | | * @return sqlè¯å¥ |
| | | */ |
| | | @Override |
| | | public String getCreateSqlByAttributeForLink(List<LinkTypeAttributeVO> attributeVOList) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | attributeVOList.forEach(a -> { |
| | | BtmTypeAttributeVO attributeVO = Optional.ofNullable(BeanUtil.copy(a, BtmTypeAttributeVO.class)).orElseGet(BtmTypeAttributeVO::new); |
| | | attributeVO.setPkBtmType(a.getPkLinkType()); |
| | | sb.append(a.getId()).append(StringPool.SPACE); |
| | | VciFieldTypeEnum fieldTypeEnum = VciFieldTypeEnum.forValue(a.getAttrDataType()); |
| | | sb.append(dllMapper.getColumnTypeSql(fieldTypeEnum, attributeVO)).append(","); |
| | | }); |
| | | return sb.substring(0, sb.lastIndexOf(",")); |
| | | } |
| | |
| | | @Override |
| | | public void createDbTablesById(String ids) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(ids, "ä¸å¡ç±»å/龿¥ç±»åçè±æéå"); |
| | | List<BtmTypeVO> btmTypeVOList = BtmTypeCache.selectByIdCollection(VciBaseUtil.str2List(ids)); |
| | | // List<OsLinkTypeVO> linkTypeVOList = linkTypeService.listLinkTypeByIdCollection(VciBaseUtil.str2List(ids)); |
| | | if (!CollectionUtils.isEmpty(btmTypeVOList)) { |
| | | //è¯´ææ¯ä¸å¡ç±»å |
| | | btmTypeVOList.forEach(this::createDbTableForBtm); |
| | | } |
| | | /*//è¯è¯é¾æ¥ç±»å |
| | | if(!CollectionUtils.isEmpty(linkTypeVOList)){ |
| | | //çç¡®æ¯é¾æ¥ç±»å |
| | | linkTypeVOList.stream().forEach( s -> { |
| | | createDbTableForLink(s); |
| | | }); |
| | | }*/ |
| | | // ä¸å¡ç±»å |
| | | Func.toStrList(",",ids).stream().filter(idBtmMap::containsKey).map(idBtmMap::get).forEach(this::createDbTableForBtm); |
| | | // 龿¥ç±»å |
| | | Func.toStrList(",",ids).stream().filter(idLinkMap::containsKey).map(idLinkMap::get).forEach(this::createDbTableForLink); |
| | | } |
| | | |
| | | /** |
| | |
| | | modifyAttributeInfo.setBeforeModifyAttributes(String.join(",", beforeList)); |
| | | } |
| | | } |
| | | modifyAttributeInfoDOList.add(modifyAttributeInfo); |
| | | }); |
| | | return modifyAttributeInfoDOList; |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | modifyAttributeInfoDOList.add(modifyAttributeInfo); |
| | | }); |
| | | return modifyAttributeInfoDOList; |
| | | } |
| | |
| | | @Override |
| | | public void reflexDifferent(List<ModifyAttributeInfo> differentAttributeList, List<BtmTypeVO> btmTypeVOList, List<LinkTypeVO> linkTypeVOList) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(differentAttributeList, "è¦æ¸
ççæ°æ®åºçä¿¡æ¯ä¸ºç©º"); |
| | | Map<String, BtmTypeVO> idBtmTypeMap = btmTypeVOList.stream().collect(Collectors.toMap(BtmTypeVO::getId, t -> t, (o1, o2) -> o1)); |
| | | Map<String, LinkTypeVO> idLinkTypeMap = linkTypeVOList.stream().collect(Collectors.toMap(LinkTypeVO::getId, t -> t, (o1, o2) -> o1)); |
| | | Map<String, BtmTypeVO> idBtmTypeMap = Optional.ofNullable(btmTypeVOList).orElseGet(ArrayList::new).stream().collect(Collectors.toMap(BtmTypeVO::getId, t -> t, (o1, o2) -> o1)); |
| | | Map<String, LinkTypeVO> idLinkTypeMap = Optional.ofNullable(linkTypeVOList).orElseGet(ArrayList::new).stream().collect(Collectors.toMap(LinkTypeVO::getId, t -> t, (o1, o2) -> o1)); |
| | | differentAttributeList.forEach(s -> { |
| | | // BtmTypeVO btmType = idBtmTypeMap.get(id); |
| | | if (ModifyTableTaskEnum.CREATE.getValue().equalsIgnoreCase(s.getTaskName())) { |
| | |
| | | */ |
| | | private final IBtmTypeService btmTypeService; |
| | | |
| | | |
| | | /** |
| | | * æ¥ç详æ
|
| | | * |
| | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.alibaba.nacos.api.exception.NacosException; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.omd.constant.OmdCacheConstant; |
| | | import com.vci.ubcs.omd.dto.LinkTypeDTO; |
| | | import com.vci.ubcs.omd.entity.LinkType; |
| | | import com.vci.ubcs.omd.repeater.DomainRepeater; |
| | | import com.vci.ubcs.omd.service.ILinkTypeService; |
| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Description:龿¥ç±»åæ§å¶å¨ |
| | |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "æ¥è¯¢å表", notes = "ä¼ å
¥æ¥è¯¢") |
| | | public R<List<LinkTypeVO>> list(@ApiIgnore @RequestParam Map<String, Object> condition) { |
| | | return R.data(LinkTypeWrapper.build().listEntityVO(linkTypeService.list(Condition.getQueryWrapper(condition, LinkType.class).lambda().orderByAsc(LinkType::getId)))); |
| | | return R.data(LinkTypeWrapper.build().listEntityVO(linkTypeService.list(Condition.getQueryWrapper(condition, LinkType.class).lambda().orderByAsc(LinkType::getId)), null)); |
| | | } |
| | | |
| | | /** |
| | |
| | | IPage<LinkTypeVO> pageVO = new Page<>(); |
| | | IPage<LinkType> page = linkTypeService.page(Condition.getPage(query), Condition.getQueryWrapper(condition, LinkType.class).lambda().orderByAsc(LinkType::getId)); |
| | | BeanUtil.copy(page, pageVO); |
| | | pageVO.setRecords(LinkTypeWrapper.build().listEntityVO(page.getRecords())); |
| | | pageVO.setRecords(LinkTypeWrapper.build().listEntityVO(page.getRecords(), null)); |
| | | return R.data(pageVO); |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.omd.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.omd.entity.LinkType; |
| | | import com.vci.ubcs.omd.entity.LinkTypeAttribute; |
| | | import com.vci.ubcs.omd.vo.LinkTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.LinkTypeVO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: 龿¥ç±»åå
å«å±æ§çæå¡æ¥å£ |
| | |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | LinkTypeAttribute selectByPrimaryKey(String oid); |
| | | |
| | | /** |
| | | * æ ¹æ®é¾æ¥ç±»åè·åé»è®¤å段 |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | List<LinkTypeAttributeVO> getDefaultAttributes(LinkTypeVO linkTypeVO); |
| | | |
| | | /** |
| | | * æ ¹æ®é¾æ¥ç±»åè·åææçåæ®µ |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | List<LinkTypeAttributeVO> getAllAttributes(LinkTypeVO linkTypeVO); |
| | | |
| | | /** |
| | | * è·åéé»è®¤å段ç龿¥ç±»å屿§ |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return |
| | | */ |
| | | List<LinkTypeAttributeVO> getAttributesNoDefault(LinkTypeVO linkTypeVO); |
| | | |
| | | /** |
| | | * æ¹éè·åéé»è®¤å段ç龿¥ç±»å屿§ |
| | | * @param linkTypeDOList 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | Map<String, List<LinkTypeAttributeVO>> batchGetAttributesNoDefault(List<LinkType> linkTypeDOList); |
| | | } |
| | |
| | | vo.setId(id); |
| | | vo.setName(name); |
| | | vo.setPkBtmType(btmType.getOid()); |
| | | vo.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | vo.setAttributeLength(150); |
| | | if (Arrays.asList("lastr","firstr","lastv","firstv","revisionseq","versionseq","revisionvalue","versionvalue").contains(id)){ |
| | | vo.setAttributeLength(5); |
| | | vo.setAttrDataType(VciFieldTypeEnum.VTInteger.name()); |
| | |
| | | if (!existFieldMap.containsKey(k)){ |
| | | BtmTypeLinkAttributesDTO attr = new BtmTypeLinkAttributesDTO(); |
| | | attr.setId(k); |
| | | attr.setName(v); |
| | | attr.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | attr.setAttributeLength(50); |
| | | attr.setNullableFlag(false); |
| | |
| | | afterAttributes = updateAttributeForBtm(btmTypeByOid.getOid(),beforeAttributes, attributes); |
| | | } |
| | | BtmTypeVO btmTypeVO = BtmTypeWrapper.build().entityVO(btmTypeDO); |
| | | //å¨åå»ºè¡¨çæ¶åè¿éè¦æé»è®¤çåæ®µå¸¦ä¸ã |
| | | List<BtmTypeAttributeVO> defaultAttribute = btmTypeAttributeService.getDefaultAttribute(btmTypeVO); |
| | | afterAttributes.addAll(defaultAttribute); |
| | | btmTypeVO.setAttributes(afterAttributes); |
| | | try { |
| | | if (autoCreateTable) { |
| | | checkTableSame(btmTypeVO); |
| | | // checkTableSame(btmTypeVO); |
| | | R result = DomainRepeater.submitBtmType(btmTypeDTO.getDomain(), btmTypeVO); |
| | | if (result.isSuccess()){ |
| | | List<ModifyAttributeInfo> infoList = new ArrayList<>(); |
| | |
| | | new Object[]{btmTypeDTO.getRevisionRuleId(), btmTypeDTO.getRevisionRuleName()}); |
| | | } |
| | | } |
| | | btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.REVISION_MANAGE_FIELD_MAP)); |
| | | // btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.REVISION_MANAGE_FIELD_MAP)); |
| | | } |
| | | if (btmTypeDTO.isLifeCycleFlag()){ |
| | | // éè¦æ§å¶çå½å¨æ |
| | |
| | | // new Object[]{btmTypeDTO.getSubLifeCycleId(), btmTypeDTO.getSubLifeCycleName()}); |
| | | // } |
| | | // } |
| | | btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.LIFECYCLE_MANAGE_FIELD_MAP)); |
| | | // btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.LIFECYCLE_MANAGE_FIELD_MAP)); |
| | | } |
| | | if (btmTypeDTO.isSecretFlag()){ |
| | | // éè¦æ§å¶å¯çº§ |
| | | btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.SECRET_MANAGE_FIELD_MAP)); |
| | | // btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.SECRET_MANAGE_FIELD_MAP)); |
| | | } |
| | | } |
| | | @Override |
| | |
| | | String label = domain.get(k); |
| | | BtmTreeVO parent = new BtmTreeVO(); |
| | | parent.setName(label); |
| | | parent.setLabel(label); |
| | | parent.setId(k); |
| | | parent.setChildList(v.stream().map(s -> { |
| | | BtmTreeVO child = new BtmTreeVO(); |
| | | child.setOid(s.getOid()); |
| | | child.setName(s.getId() + " " + (s.getName() == null ? "" : s.getName())); |
| | | child.setName(s.getName()); |
| | | child.setId(s.getId()); |
| | | child.setLabel(s.getId() + (s.getName() == null ? "" : "(" + s.getName() + ")")); |
| | | return child; |
| | | }).collect(Collectors.toList())); |
| | | treeList.add(parent); |
| | |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | 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.omd.constant.BtmTypeFieldConstant; |
| | | import com.vci.ubcs.omd.entity.LinkType; |
| | | import com.vci.ubcs.omd.entity.LinkTypeAttribute; |
| | | import com.vci.ubcs.omd.mapper.LinkTypeAttributeMapper; |
| | | import com.vci.ubcs.omd.service.IAttributeService; |
| | | import com.vci.ubcs.omd.service.ILinkTypeAttributeService; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.LinkTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.LinkTypeVO; |
| | | import com.vci.ubcs.omd.wrapper.LinkTypeAttributeWrapper; |
| | | import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Description: 龿¥ç±»åå
å«å±æ§çæå¡ |
| | |
| | | VciBaseUtil.alertNotNull(oid); |
| | | return baseMapper.selectOne(Wrappers.<LinkTypeAttribute>query().lambda().eq(LinkTypeAttribute::getOid,oid)); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®é¾æ¥ç±»åè·åé»è®¤å段 |
| | | * |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public List<LinkTypeAttributeVO> getDefaultAttributes(LinkTypeVO linkTypeVO) { |
| | | Objects.requireNonNull(linkTypeVO,"龿¥ç±»åä¸è½ä¸ºç©º"); |
| | | List<LinkTypeAttributeVO> list = new ArrayList<>(); |
| | | // ä¸å¡ç±»åçåºæ¬å段 |
| | | BtmTypeFieldConstant.LINK_TYPE_FIELD_MAP.forEach((id, name) -> { |
| | | LinkTypeAttributeVO vo = new LinkTypeAttributeVO(); |
| | | vo.setId(id); |
| | | vo.setName(name); |
| | | vo.setPkLinkType(linkTypeVO.getOid()); |
| | | if (StringUtils.equals(id,"oid")){ |
| | | vo.setNullableFlag(false); |
| | | }else { |
| | | vo.setNullableFlag(true); |
| | | } |
| | | if (Arrays.asList("createtime","lastmodifytime","owner").contains(id)){ |
| | | vo.setAttrDataType(VciFieldTypeEnum.VTDateTime.name()); |
| | | vo.setAttributeLength(6); |
| | | }else { |
| | | vo.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | vo.setAttributeLength(150); |
| | | } |
| | | list.add(vo); |
| | | }); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®é¾æ¥ç±»åè·åææçåæ®µ |
| | | * |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public List<LinkTypeAttributeVO> getAllAttributes(LinkTypeVO linkTypeVO) { |
| | | Objects.requireNonNull(linkTypeVO,"龿¥ç±»åä¸è½ä¸ºç©º"); |
| | | List<LinkTypeAttributeVO> attributes = getAttributesNoDefault(linkTypeVO); |
| | | attributes.addAll(getDefaultAttributes(linkTypeVO)); |
| | | return attributes; |
| | | } |
| | | |
| | | /** |
| | | * è·åéé»è®¤å段ç龿¥ç±»å屿§ |
| | | * |
| | | * @param linkTypeVO 龿¥ç±»å |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<LinkTypeAttributeVO> getAttributesNoDefault(LinkTypeVO linkTypeVO) { |
| | | Objects.requireNonNull(linkTypeVO,"龿¥ç±»åä¸è½ä¸ºç©º"); |
| | | return LinkTypeAttributeWrapper.build().listEntityVO(baseMapper.selectList(Wrappers.<LinkTypeAttribute>query().lambda().eq(LinkTypeAttribute::getPkLinkType, linkTypeVO.getOid()))); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éè·åéé»è®¤å段ç龿¥ç±»å屿§ |
| | | * |
| | | * @param linkTypeDOList 龿¥ç±»å |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public Map<String, List<LinkTypeAttributeVO>> batchGetAttributesNoDefault(List<LinkType> linkTypeDOList) { |
| | | VciBaseUtil.alertNotNull(linkTypeDOList,"龿¥ç±»åéå"); |
| | | Set<String> oidSet = linkTypeDOList.stream().map(LinkType::getOid).collect(Collectors.toSet()); |
| | | if (CollectionUtils.isEmpty(oidSet)){ |
| | | return new HashMap<>(); |
| | | } |
| | | List<LinkTypeAttribute> attributes = baseMapper.selectList(Wrappers.<LinkTypeAttribute>query().lambda().in(LinkTypeAttribute::getPkLinkType, oidSet)); |
| | | return LinkTypeAttributeWrapper.build().listEntityVO(Optional.ofNullable(attributes).orElseGet(ArrayList::new)).stream().collect(Collectors.groupingBy(LinkTypeAttributeVO::getPkLinkType)); |
| | | } |
| | | } |
| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.nacos.api.exception.NacosException; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.UpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.kotlin.KtQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.kotlin.KtUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.dto.BtmAndLinkTypeDdlDTO; |
| | |
| | | import com.vci.ubcs.omd.repeater.DomainRepeater; |
| | | import com.vci.ubcs.omd.service.*; |
| | | import com.vci.ubcs.omd.vo.*; |
| | | import com.vci.ubcs.omd.wrapper.BtmTypeWrapper; |
| | | import com.vci.ubcs.omd.wrapper.LinkTypeAttributeWrapper; |
| | | import com.vci.ubcs.omd.wrapper.LinkTypeWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.TransactionDefinition; |
| | | import org.springframework.transaction.TransactionStatus; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.transaction.support.DefaultTransactionDefinition; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.*; |
| | | import java.util.function.Function; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | if(!CollectionUtils.isEmpty(pkLinkTypeCollection)){ |
| | | List<LinkType> linkTypeDOList = listLinkTypeDOByOidCollection(pkLinkTypeCollection); |
| | | if(!CollectionUtils.isEmpty(linkTypeDOList)) { |
| | | return LinkTypeWrapper.build().listEntityVO(linkTypeDOList); |
| | | Map<String,List<LinkTypeAttributeVO>> pkLinkTypeAndAttributeMap = linkTypeAttributeService.batchGetAttributesNoDefault(linkTypeDOList); |
| | | return LinkTypeWrapper.build().listEntityVO(linkTypeDOList,pkLinkTypeAndAttributeMap); |
| | | } |
| | | } |
| | | return null; |
| | |
| | | linkTypeDOList.addAll(linkTypeDOS); |
| | | } |
| | | }); |
| | | return linkTypeDOList; |
| | | } |
| | | return null; |
| | | } |
| | |
| | | if(!CollectionUtils.isEmpty(linkTypeIdCollection)){ |
| | | List<LinkType> linkTypeDOList = listLinkTypeDOByIdCollection(linkTypeIdCollection); |
| | | if(!CollectionUtils.isEmpty(linkTypeDOList)) { |
| | | return LinkTypeWrapper.build().listEntityVO(linkTypeDOList); |
| | | Map<String,List<LinkTypeAttributeVO>> pkLinkTypeAndAttributeMap = linkTypeAttributeService.batchGetAttributesNoDefault(linkTypeDOList); |
| | | return LinkTypeWrapper.build().listEntityVO(linkTypeDOList, pkLinkTypeAndAttributeMap); |
| | | } |
| | | } |
| | | return null; |
| | |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public LinkTypeVO addSave(LinkTypeVO linkTypeVO, boolean autoCreateTable) throws VciBaseException { |
| | | TransactionStatus transaction = null; |
| | | if(autoCreateTable) { |
| | |
| | | } |
| | | LinkType linkTypeDO = new LinkType(); |
| | | BeanUtil.copy(linkTypeVO, linkTypeDO); |
| | | if (StringUtils.isBlank(linkTypeDO.getTableName())){ |
| | | linkTypeDO.setTableName(getTableName(linkTypeDO.getId(),linkTypeDO.getDomain())); |
| | | } |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | linkTypeDO.setCreator(creator); |
| | | linkTypeDO.setCreateTime(now); |
| | | linkTypeDO.setOwner(creator); |
| | | linkTypeDO.setBtmName(BtmTypeConstant.LINK_TYPE); |
| | | linkTypeDO.setTs(now); |
| | | LinkTypeWrapper.build().setBeforeInsert(linkTypeDO,creator,now); |
| | | |
| | | //å¤ç屿§ |
| | | addAttributeForLink(linkTypeVO.getAttributes(),linkTypeDO.getOid(),creator,now); |
| | | List<LinkTypeAttributeVO> attributeVOList = addAttributeForLink(linkTypeVO.getAttributes(), linkTypeDO.getOid(), creator, now); |
| | | |
| | | baseMapper.insert(linkTypeDO); |
| | | if(autoCreateTable) { |
| | | dataSourceTransactionManager.commit(transaction); |
| | | LinkTypeVO typeVO = LinkTypeWrapper.build().entityVO(linkTypeDO); |
| | | typeVO.setAttributes(attributeVOList); |
| | | List<LinkTypeAttributeVO> attributes = typeVO.getAttributes(); |
| | | attributes.addAll(linkTypeAttributeService.getDefaultAttributes(typeVO)); |
| | | typeVO.setAttributes(attributes); |
| | | R r = DomainRepeater.submitLinkType(typeVO.getDomain(), typeVO); |
| | | if (!r.isSuccess()){ |
| | | dataSourceTransactionManager.rollback(transaction); |
| | | }else { |
| | | dataSourceTransactionManager.commit(transaction); |
| | | } |
| | | } |
| | | }catch (VciBaseException e){ |
| | | if(autoCreateTable) { |
| | |
| | | } |
| | | throw e; |
| | | } |
| | | if(autoCreateTable) { |
| | | /*if(autoCreateTable) { |
| | | checkTableSame(linkTypeVO); |
| | | } |
| | | }*/ |
| | | return linkTypeVO; |
| | | } |
| | | |
| | |
| | | * @param creator å建人 |
| | | * @param now å½åæ¶é´ |
| | | */ |
| | | private void addAttributeForLink(List<LinkTypeAttributeVO> attributesVOList,String pkLinkType,String creator,Date now){ |
| | | private List<LinkTypeAttributeVO> addAttributeForLink(List<LinkTypeAttributeVO> attributesVOList,String pkLinkType,String creator,Date now){ |
| | | List<LinkTypeAttribute> linkTypeAttributeDOList = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(attributesVOList)) { |
| | | List<String> attributeIdList = new ArrayList<>(); |
| | | attributesVOList.stream().forEachOrdered(s -> { |
| | | attributesVOList.forEach(s -> { |
| | | linkTypeAttributeService.checkAttribute(s); |
| | | linkTypeAttributeDOList.add(LinkTypeAttributeWrapper.build().copyVO2DO(s, pkLinkType, creator, now)); |
| | | attributeIdList.add(s.getId().toLowerCase().trim()); |
| | |
| | | //æ£æ¥å±æ§æ¯å¦é½åå¨ |
| | | attributeService.checkAttributeExists(attributeIdList); |
| | | linkTypeAttributeService.saveOrUpdateBatch(linkTypeAttributeDOList,10000); |
| | | return LinkTypeAttributeWrapper.build().listEntityVO(linkTypeAttributeDOList); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | if (!CollectionUtils.isEmpty(modifyAttributeInfoDOList)) { |
| | | modifyAttributeService.saveOrUpdateBatch(modifyAttributeInfoDOList); |
| | | modifyAttributeService.finishModify(modifyAttributeInfoDOList); |
| | | } |
| | | modifyAttributeService.finishModify(modifyAttributeInfoDOList); |
| | | } |
| | | |
| | | /** |
| | |
| | | if(StringUtils.isNotBlank(unExistBtmTypeId)){ |
| | | throw new VciBaseException("龿¥ç±»å使ç¨çä¸å¡ç±»å{0}ä¸åå¨ï¼è¯·æ¥è¯",new Object[]{unExistBtmTypeId}); |
| | | } |
| | | |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | linkTypeDO.setLastModifier(creator); |
| | | linkTypeDO.setLastModifyTime(now); |
| | | linkTypeDO.setTs(now); |
| | | linkTypeDO = LinkTypeWrapper.build().setBeforeUpdate(linkTypeDO,creator,now); |
| | | //å¤ç屿§ |
| | | |
| | | |
| | | LinkTypeWrapper.build().copyLinkTypeVO2DO(linkTypeVO,linkTypeDO,creator,new Date()); |
| | | |
| | | //å
æ¥è¯¢è¿ä¸ªé¾æ¥ç±»åå
å«å¤å°å±æ§ |
| | |
| | | } |
| | | saveOrUpdate(linkTypeDO); |
| | | if(autoCreateTable) { |
| | | List<LinkTypeAttributeVO> defaultAttributes = linkTypeAttributeService.getDefaultAttributes(linkTypeVO); |
| | | List<LinkTypeAttributeVO> attributes = linkTypeVO.getAttributes(); |
| | | attributes.addAll(defaultAttributes); |
| | | linkTypeVO.setAttributes(attributes); |
| | | BtmAndLinkTypeDdlDTO ddlDTO = new BtmAndLinkTypeDdlDTO(); |
| | | DomainRepeater.checkDifferent(ddlDTO,linkTypeVO.getDomain()); |
| | | dataSourceTransactionManager.commit(transaction); |
| | | } |
| | | }catch (VciBaseException e){ |
| | | } catch (Throwable e){ |
| | | if(autoCreateTable) { |
| | | dataSourceTransactionManager.rollback(transaction); |
| | | } |
| | | throw e; |
| | | }catch (Throwable e) { |
| | | if(autoCreateTable) { |
| | | dataSourceTransactionManager.rollback(transaction); |
| | | } |
| | | throw e; |
| | | throw new VciBaseException(e.getMessage()); |
| | | } |
| | | if(autoCreateTable) { |
| | | /*if(autoCreateTable) { |
| | | checkTableSame(linkTypeVO); |
| | | } |
| | | }*/ |
| | | return linkTypeVO; |
| | | } |
| | | |
| | |
| | | attributeVO.setLastModifier(creator); |
| | | attributeVO.setLastModifyTime(now); |
| | | attributeVO.setTs(now); |
| | | //æ¥è¯¢é¾æ¥ç±»åæ¯å¦åå¨ |
| | | linkTypeAttributeService.saveOrUpdate(attributeDO); |
| | | if (autoEdit2Table) { |
| | | BtmAndLinkTypeDdlDTO ddlDTO = new BtmAndLinkTypeDdlDTO(); |
| | | // ddlDTO.setLinkTypeList(); |
| | | // DomainRepeater.checkDifferent(,domain); |
| | | LinkTypeVO linkTypeVO = LinkTypeWrapper.build().entityVO(linkTypeDO); |
| | | ddlDTO.setLinkTypeList(Collections.singletonList(linkTypeVO)); |
| | | DomainRepeater.checkDifferent(ddlDTO,domain); |
| | | dataSourceTransactionManager.commit(transaction); |
| | | } |
| | | // }catch (NacosException e){ |
| | | // if(autoEdit2Table) { |
| | | // dataSourceTransactionManager.rollback(transaction); |
| | | // } |
| | | // throw new RuntimeException(e); |
| | | }catch (NacosException e){ |
| | | if(autoEdit2Table) { |
| | | dataSourceTransactionManager.rollback(transaction); |
| | | } |
| | | throw new RuntimeException(e); |
| | | }catch (Throwable e){ |
| | | if(autoEdit2Table) { |
| | | dataSourceTransactionManager.rollback(transaction); |
| | |
| | | public List<BtmTreeVO> treeDomain() { |
| | | try { |
| | | Map<String, String> domain = Optional.ofNullable(DomainRepeater.getDomain()).orElseGet(ArrayList::new).stream().collect(Collectors.toMap(DomainVO::getValue, DomainVO::getLabel)); |
| | | List<LinkTypeVO> vos = LinkTypeWrapper.build().listEntityVO(baseMapper.selectAll()); |
| | | List<LinkTypeVO> vos = LinkTypeWrapper.build().listEntityVO(baseMapper.selectAll(), null); |
| | | Map<String, List<LinkTypeVO>> domainMap = vos.stream().collect(Collectors.groupingBy(LinkTypeVO::getDomain)); |
| | | List<BtmTreeVO> treeList = new ArrayList<>(); |
| | | domainMap.forEach((k,v)-> { |
| | |
| | | BtmTreeVO parent = new BtmTreeVO(); |
| | | parent.setName(label); |
| | | parent.setId(k); |
| | | parent.setLabel(label); |
| | | parent.setChildList(v.stream().map(s -> { |
| | | BtmTreeVO child = new BtmTreeVO(); |
| | | child.setOid(s.getOid()); |
| | | child.setName(s.getId() + " " + (s.getName() == null ? "" : s.getName())); |
| | | child.setLabel(s.getId() + (s.getName() == null ? "" : "(" + s.getName() + ")")); |
| | | child.setId(s.getId()); |
| | | child.setName(s.getName()); |
| | | return child; |
| | | }).collect(Collectors.toList())); |
| | | treeList.add(parent); |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.dto.BtmTypeLinkAttributesDTO; |
| | | import com.vci.ubcs.omd.entity.BtmTypeAttribute; |
| | |
| | | public BtmTypeAttributeVO entityVO(BtmTypeAttribute entity) { |
| | | BtmTypeAttributeVO vo = Objects.requireNonNull(BeanUtil.copy(entity, BtmTypeAttributeVO.class)); |
| | | // å¨è¿é设置æä¸¾æ¾ç¤ºå¼ |
| | | vo.setAttrDataTypeText(EnumCache.getValue("attributeType",vo.getAttrDataType())); |
| | | return vo; |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.entity.LinkTypeAttribute; |
| | | import com.vci.ubcs.omd.vo.LinkTypeAttributeVO; |
| | |
| | | @Override |
| | | public LinkTypeAttributeVO entityVO(LinkTypeAttribute entity) { |
| | | LinkTypeAttributeVO vo = BeanUtil.copy(entity, LinkTypeAttributeVO.class); |
| | | vo.setAttrDataTypeText(EnumCache.getValue("attributeType",vo.getAttrDataType())); |
| | | return vo; |
| | | } |
| | | |
| | |
| | | attributeDO.setCreateTime(now); |
| | | attributeDO.setTs(now); |
| | | attributeDO.setOwner(creator); |
| | | attributeDO.setLastModifier(creator); |
| | | attributeDO.setLastModifyTime(now); |
| | | attributeDO.setBtmName(BtmTypeConstant.LINK_TYPE_ATTRIBUTE); |
| | | return attributeDO; |
| | | } |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.cache.BtmTypeCache; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.entity.LinkType; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.LinkTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.LinkTypeVO; |
| | | import com.vci.ubcs.starter.web.enumpck.NewAppConstantEnum; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | |
| | | @Override |
| | | public LinkTypeVO entityVO(LinkType entity) { |
| | | LinkTypeVO vo = BeanUtil.copy(entity, LinkTypeVO.class); |
| | | LinkTypeVO vo = Optional.ofNullable(BeanUtil.copy(entity, LinkTypeVO.class)).orElseGet(LinkTypeVO::new); |
| | | List<String> fromIdList = Func.toStrList(",", vo.getFromBtmType()); |
| | | List<String> toIdList = Func.toStrList(",", vo.getToBtmType()); |
| | | Set<String> btmIdSet = new HashSet<>(); |
| | | btmIdSet.addAll(fromIdList); |
| | | btmIdSet.addAll(toIdList); |
| | | List<BtmTypeVO> btmTypeVOList = BtmTypeCache.selectByIdCollection(new ArrayList<>(btmIdSet)); |
| | | List<BtmTypeVO> fromBtm = new ArrayList<>(); |
| | | List<BtmTypeVO> toBtm = new ArrayList<>(); |
| | | Optional.ofNullable(btmTypeVOList).orElseGet(ArrayList::new).forEach(btm -> { |
| | | if (vo.getFromBtmType().contains(btm.getId())){ |
| | | fromBtm.add(btm); |
| | | } |
| | | if (vo.getToBtmType().contains(btm.getId())){ |
| | | toBtm.add(btm); |
| | | } |
| | | }); |
| | | vo.setFromBtmTypes(fromBtm); |
| | | vo.setToBtmTypes(toBtm); |
| | | // æä¸¾å¤ç |
| | | vo.setDomainText(NewAppConstantEnum.getTextByName(vo.getDomain())); |
| | | return vo; |
| | | } |
| | | |
| | | public List<LinkTypeVO> listEntityVO(List<LinkType> entityList){ |
| | | return Optional.ofNullable(entityList).orElseGet(ArrayList::new).stream().map(this::entityVO).collect(Collectors.toList()); |
| | | public List<LinkTypeVO> listEntityVO(List<LinkType> entityList, Map<String, List<LinkTypeAttributeVO>> pkLinkTypeAndAttributeMap){ |
| | | List<LinkTypeVO> voList = Optional.ofNullable(entityList).orElseGet(ArrayList::new).stream().map(this::entityVO).collect(Collectors.toList()); |
| | | if (!CollectionUtils.isEmpty(voList) && pkLinkTypeAndAttributeMap != null){ |
| | | voList.forEach(vo -> { |
| | | List<LinkTypeAttributeVO> attributes = pkLinkTypeAndAttributeMap.getOrDefault(vo.getOid(), new ArrayList<>()); |
| | | vo.setAttributes(attributes); |
| | | }); |
| | | } |
| | | return voList; |
| | | } |
| | | |
| | | public void copyLinkTypeVO2DO(LinkTypeVO linkTypeVO, LinkType linkTypeDO, String creator, Date now) { |
| | |
| | | linkTypeDO.setLastModifyTime(now); |
| | | linkTypeDO.setBtmName(BtmTypeConstant.LINK_TYPE); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ä¿åå设置é»è®¤åæ®µå¼ |
| | | * |
| | | * @param linkTypeDO 龿¥ç±»å |
| | | * @param modifier ä¿®æ¹äºº |
| | | * @param modifyTime ä¿®æ¹æ¶é´ |
| | | * @return |
| | | */ |
| | | public LinkType setBeforeUpdate(LinkType linkTypeDO, String modifier, Date modifyTime) { |
| | | linkTypeDO.setLastModifier(modifier); |
| | | linkTypeDO.setTs(modifyTime); |
| | | linkTypeDO.setLastModifyTime(modifyTime); |
| | | return linkTypeDO; |
| | | } |
| | | |
| | | /** |
| | | * æå
¥å设置é»è®¤å段 |
| | | * @param linkTypeDO 龿¥ç±»å |
| | | * @param creator å建人 |
| | | * @param createTime å建æ¶é´ |
| | | */ |
| | | public void setBeforeInsert(LinkType linkTypeDO, String creator, Date createTime) { |
| | | linkTypeDO.setOid(VciBaseUtil.getPk()); |
| | | linkTypeDO.setCreator(creator); |
| | | linkTypeDO.setCreateTime(createTime); |
| | | linkTypeDO.setOwner(creator); |
| | | linkTypeDO.setBtmName(BtmTypeConstant.LINK_TYPE); |
| | | linkTypeDO.setTs(createTime); |
| | | linkTypeDO.setLastModifyTime(createTime); |
| | | linkTypeDO.setLastModifier(creator); |
| | | } |
| | | } |
| | |
| | | </sql> |
| | | |
| | | <sql id="tableName"> |
| | | pl_omd_link_type_attr |
| | | pl_omd_link_type_attribute |
| | | </sql> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | FROM bladex/alpine-java:openjdk8-openj9_cn_slim |
| | | #=ä½è
|
| | | MAINTAINER ubcsjava@qq.com |
| | | |
| | | RUN mkdir -p /ubcs/applyjtcodeservice |
| | | |
| | | WORKDIR /ubcs/applyjtcodeservice |
| | | #å¨å®¹å¨ä¸ä»¥å¤å°ç«¯å£è¿è¡ |
| | | EXPOSE 36016 |
| | | |
| | | ADD ./target/ubcs-webservice.jar ./app.jar |
| | | |
| | | ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] |
| | | |
| | | CMD ["--spring.profiles.active=dev"] |
| | |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <groupId>com.spotify</groupId> |
| | | <artifactId>dockerfile-maven-plugin</artifactId> |
| | | <configuration> |
| | | <skip>true</skip> |
| | | <finalName>${project.name}</finalName> |
| | | <username>${docker.username}</username> |
| | | <password>${docker.password}</password> |
| | | <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository> |
| | | <tag>${project.version}</tag> |
| | | <useMavenSettingsForAuth>true</useMavenSettingsForAuth> |
| | | <buildArgs> |
| | | <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE> |
| | | </buildArgs> |
| | | <skip>false</skip> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-antrun-plugin</artifactId> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | </project> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-webservice/src/main/java/GroupCodeApplyApplication.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.webservice; |
| | | |
| | | import org.springblade.core.cloud.client.UbcsCloudApplication; |
| | | import org.springblade.core.launch.UbcsApplication; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springframework.context.annotation.ComponentScan; |
| | | |
| | | /** |
| | | * éå¢ç ç³è¯·æ¥å£å¯å¨å¨ |
| | | * |
| | | * @author |
| | | * ludc |
| | | * xieju |
| | | */ |
| | | @UbcsCloudApplication |
| | | public class GroupCodeApplyApplication { |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreApplyFormMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | |
| | | 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; |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreClassifyMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreApplyFormService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreClassifyService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreViewModelService; |
| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.vci.ubcs.code.feign.IMdmEngineClient; |
| | | import com.vci.ubcs.code.webservice.entity.*; |
| | | import com.vci.ubcs.code.webservice.service.IGroupMdmInterService; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.webservice.feign.MdmApplyGroupCodeProvider; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | |
| | | * éå¢åç±»æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreClassifyService dockingPreClassifyService; |
| | | private com.vci.ubcs.code.webservice.service.IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | /*** |
| | | * ç³è¯·åæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreApplyFormService dockingPreApplyFormService; |
| | | private com.vci.ubcs.code.webservice.service.IDockingPreApplyFormService dockingPreApplyFormService; |
| | | |
| | | |
| | | /*** |
| | | * 模åè§å¾åæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreViewModelService dockingPreViewModelService; |
| | | private com.vci.ubcs.code.webservice.service.IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | |
| | | /*** |
| | |
| | | * 屿§åå¼èå´æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | private com.vci.ubcs.code.webservice.service.IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | private com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | |
| | | @Autowired(required = false) |
| | | private IMdmEngineClient mdmEngineClient; |
| | |
| | | 2023-05-30 18:40:10,251 INFO [background-preinit] o.h.validator.internal.util.Version [Version.java : 21] HV000001: Hibernate Validator 6.2.3.Final |
| | | 2023-05-30 18:40:11,223 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:11,224 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:16,558 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,568 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,576 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob-dev.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,579 INFO [main] o.s.c.b.c.PropertySourceBootstrapConfiguration [PropertySourceBootstrapConfiguration.java : 109] Located property source: [BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs.yaml,DEFAULT_GROUP'}] |
| | | 2023-05-30 18:40:16,616 INFO [main] c.v.ubcs.job.executor.JobApplication [SpringApplication.java : 640] The following 1 profile is active: "dev" |
| | | 2023-05-30 18:40:18,929 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 262] Multiple Spring Data modules found, entering strict repository configuration mode |
| | | 2023-05-30 18:40:18,932 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 132] Bootstrapping Spring Data Redis repositories in DEFAULT mode. |
| | | 2023-05-30 18:40:18,971 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 201] Finished Spring Data repository scanning in 11 ms. Found 0 Redis repository interfaces. |
| | | 2023-05-30 18:40:19,425 INFO [main] o.s.cloud.context.scope.GenericScope [GenericScope.java : 283] BeanFactory id=8a87525c-4e09-336f-9e65-667cebc7cd92 |
| | | 2023-05-30 18:40:19,434 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 150] BladePropertySourcePostProcessor init. |
| | | 2023-05-30 18:40:19,459 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 62] BladePropertySourcePostProcessor process @BladePropertySource bean. |
| | | 2023-05-30 18:40:19,520 WARN [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 67] Not found @BladePropertySource on spring bean class. |
| | | 2023-05-30 18:40:19,888 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration' of type [org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,893 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,895 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'loadBalancerClientsDefaultsMappingsProvider' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration$$Lambda$490/425842522] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,899 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'defaultsBindHandlerAdvisor' of type [org.springframework.cloud.commons.config.DefaultsBindHandlerAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,962 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,970 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:20,334 WARN [main] io.undertow.websockets.jsr [Bootstrap.java : 68] UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used |
| | | 2023-05-30 18:40:20,380 INFO [main] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring embedded WebApplicationContext |
| | | 2023-05-30 18:40:20,381 INFO [main] o.s.b.w.s.c.ServletWebServerApplicationContext [ServletWebServerApplicationContext.java : 292] Root WebApplicationContext: initialization completed in 3723 ms |
| | | 2023-05-30 18:40:20,880 INFO [main] c.v.u.j.executor.config.XxlJobConfig [XxlJobConfig.java : 43] >>>>>>>>>>> xxl-job config init. |
| | | 2023-05-30 18:40:20,902 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@111a7973[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:httpJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@1a2773a8[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#httpJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler2, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@78b0ec3a[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler2] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:shardingJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@46612bfc[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#shardingJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:commandJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@4f213a2[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#commandJobHandler] |
| | | 2023-05-30 18:40:21,573 INFO [main] c.a.c.s.SentinelWebMvcConfigurer [SentinelWebMvcConfigurer.java : 52] [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**]. |
| | | 2023-05-30 18:40:21,682 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse) |
| | | 2023-05-30 18:40:21,683 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) |
| | | 2023-05-30 18:40:21,684 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{GET [/test/testRequest]}" onto com.vci.ubcs.job.executor.controller.TestController#testRequest(String) |
| | | 2023-05-30 18:40:24,382 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 62] initializer namespace from System Property : null |
| | | 2023-05-30 18:40:24,385 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 66] initializer namespace from System Environment :null |
| | | 2023-05-30 18:40:24,388 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 73] initializer namespace from System Property :null |
| | | 2023-05-30 18:40:24,418 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:24,420 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:24,440 INFO [main] c.alibaba.nacos.common.remote.client [RpcClientFactory.java : 95] [RpcClientFactory] create a new rpc client of 8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9 |
| | | 2023-05-30 18:40:24,441 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] RpcClient init label, labels = {module=naming, source=sdk} |
| | | 2023-05-30 18:40:24,448 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager |
| | | 2023-05-30 18:40:24,449 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService |
| | | 2023-05-30 18:40:24,451 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler |
| | | 2023-05-30 18:40:24,452 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} |
| | | 2023-05-30 18:40:24,593 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1685443224475_127.0.0.1_63184 |
| | | 2023-05-30 18:40:24,596 INFO [com.alibaba.nacos.client.remote.worker] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Notify connected event to listeners. |
| | | 2023-05-30 18:40:24,596 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler |
| | | 2023-05-30 18:40:24,601 INFO [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 76] Grpc connection connect |
| | | 2023-05-30 18:40:24,602 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$376/700837405 |
| | | 2023-05-30 18:40:25,034 INFO [main] o.s.b.a.e.web.EndpointLinksResolver [EndpointLinksResolver.java : 58] Exposing 20 endpoint(s) beneath base path '/actuator' |
| | | 2023-05-30 18:40:27,551 INFO [main] o.s.b.f.a.AutowiredAnnotationBeanPostProcessor [AutowiredAnnotationBeanPostProcessor.java : 367] Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties) |
| | | 2023-05-30 18:40:29,465 WARN [main] o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger [LoadBalancerCacheAutoConfiguration.java : 82] Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. |
| | | 2023-05-30 18:40:29,562 INFO [main] c.x.r.r.p.XxlRpcProviderFactory [XxlRpcProviderFactory.java : 197] >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl |
| | | 2023-05-30 18:40:30,731 INFO [main] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 141] [SUBSCRIBE-SERVICE] service:ubcs-xxljob, group:DEFAULT_GROUP, clusters:DEFAULT |
| | | 2023-05-30 18:40:30,761 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-30 18:40:30,784 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-30 18:40:30,794 INFO [Thread-51] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 66] >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.netty_http.server.NettyHttpServer, port = 7018 |
| | | 2023-05-30 18:40:30,822 INFO [main] io.undertow [Undertow.java : 120] starting server: Undertow - 2.2.18.Final |
| | | 2023-05-30 18:40:30,844 INFO [main] org.xnio [Xnio.java : 95] XNIO version 3.8.7.Final |
| | | 2023-05-30 18:40:30,881 INFO [main] org.xnio.nio [NioXnio.java : 58] XNIO NIO Implementation Version 3.8.7.Final |
| | | 2023-05-30 18:40:31,028 INFO [main] org.jboss.threads [Version.java : 52] JBoss Threads version 3.1.0.Final |
| | | 2023-05-30 18:40:31,159 INFO [main] o.s.b.w.e.undertow.UndertowWebServer [UndertowWebServer.java : 119] Undertow started on port(s) 36009 (http) |
| | | 2023-05-30 18:40:31,170 INFO [main] com.alibaba.nacos.client.naming [NamingGrpcClientProxy.java : 111] [REGISTER-SERVICE] public registering service ubcs-xxljob with instance Instance{instanceId='null', ip='192.168.237.1', port=36009, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD}} |
| | | 2023-05-30 18:40:31,187 INFO [main] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 75] nacos registry, DEFAULT_GROUP ubcs-xxljob 192.168.237.1:36009 register finished |
| | | 2023-05-30 18:40:31,336 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Receive server push request, request = NotifySubscriberRequest, requestId = 1587 |
| | | 2023-05-30 18:40:31,343 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,344 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,346 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Ack server push request, request = NotifySubscriberRequest, requestId = 1587 |
| | | 2023-05-30 18:40:31,760 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 234] new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,762 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:32,070 INFO [main] o.s.core.launch.StartEventListener [StartEventListener.java : 45] ---[UBCS-XXLJOB]---å¯å¨å®æï¼å½å使ç¨ç端å£:[36009]ï¼ç¯å¢åé:[dev]--- |
| | | 2023-05-30 18:40:32,098 INFO [main] c.v.ubcs.job.executor.JobApplication [StartupInfoLogger.java : 61] Started JobApplication in 23.74 seconds (JVM running for 26.324) |
| | | 2023-05-30 18:40:32,110 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 65] nacos.cache.data.init.snapshot = true |
| | | 2023-05-30 18:40:32,113 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,115 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,116 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,117 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,117 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,118 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,120 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,120 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,121 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,123 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,124 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,124 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,857 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 20:59:58,404 INFO [background-preinit] o.h.validator.internal.util.Version [Version.java : 21] HV000001: Hibernate Validator 6.2.3.Final |
| | | 2023-06-02 20:59:59,739 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-06-02 20:59:59,740 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-06-02 21:00:03,747 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob] & group[DEFAULT_GROUP] |
| | | 2023-06-02 21:00:03,755 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob.yaml] & group[DEFAULT_GROUP] |
| | | 2023-06-02 21:00:03,761 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob-dev.yaml] & group[DEFAULT_GROUP] |
| | | 2023-06-02 21:00:03,763 INFO [main] o.s.c.b.c.PropertySourceBootstrapConfiguration [PropertySourceBootstrapConfiguration.java : 109] Located property source: [BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs.yaml,DEFAULT_GROUP'}] |
| | | 2023-06-02 21:00:03,793 INFO [main] c.v.ubcs.job.executor.JobApplication [SpringApplication.java : 640] The following 1 profile is active: "dev" |
| | | 2023-06-02 21:00:05,925 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 262] Multiple Spring Data modules found, entering strict repository configuration mode |
| | | 2023-06-02 21:00:05,931 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 132] Bootstrapping Spring Data Redis repositories in DEFAULT mode. |
| | | 2023-06-02 21:00:05,985 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 201] Finished Spring Data repository scanning in 15 ms. Found 0 Redis repository interfaces. |
| | | 2023-06-02 21:00:06,274 INFO [main] o.s.cloud.context.scope.GenericScope [GenericScope.java : 283] BeanFactory id=8a87525c-4e09-336f-9e65-667cebc7cd92 |
| | | 2023-06-02 21:00:06,278 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 150] BladePropertySourcePostProcessor init. |
| | | 2023-06-02 21:00:06,290 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 62] BladePropertySourcePostProcessor process @BladePropertySource bean. |
| | | 2023-06-02 21:00:06,319 WARN [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 67] Not found @BladePropertySource on spring bean class. |
| | | 2023-06-02 21:00:06,755 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration' of type [org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:06,761 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:06,763 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'loadBalancerClientsDefaultsMappingsProvider' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration$$Lambda$490/1366572224] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:06,768 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'defaultsBindHandlerAdvisor' of type [org.springframework.cloud.commons.config.DefaultsBindHandlerAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:06,866 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:06,878 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-06-02 21:00:07,251 WARN [main] io.undertow.websockets.jsr [Bootstrap.java : 68] UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used |
| | | 2023-06-02 21:00:07,316 INFO [main] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring embedded WebApplicationContext |
| | | 2023-06-02 21:00:07,317 INFO [main] o.s.b.w.s.c.ServletWebServerApplicationContext [ServletWebServerApplicationContext.java : 292] Root WebApplicationContext: initialization completed in 3484 ms |
| | | 2023-06-02 21:00:07,844 INFO [main] c.v.u.j.executor.config.XxlJobConfig [XxlJobConfig.java : 43] >>>>>>>>>>> xxl-job config init. |
| | | 2023-06-02 21:00:07,875 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:httpJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@35555145[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#httpJobHandler] |
| | | 2023-06-02 21:00:07,876 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler2, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@70bc3a9c[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler2] |
| | | 2023-06-02 21:00:07,876 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@771cbd13[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler] |
| | | 2023-06-02 21:00:07,877 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:shardingJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@229749f0[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#shardingJobHandler] |
| | | 2023-06-02 21:00:07,877 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:commandJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@3d57fb9e[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#commandJobHandler] |
| | | 2023-06-02 21:00:08,289 INFO [main] c.a.c.s.SentinelWebMvcConfigurer [SentinelWebMvcConfigurer.java : 52] [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**]. |
| | | 2023-06-02 21:00:08,375 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse) |
| | | 2023-06-02 21:00:08,376 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) |
| | | 2023-06-02 21:00:08,377 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{GET [/test/testRequest]}" onto com.vci.ubcs.job.executor.controller.TestController#testRequest(String) |
| | | 2023-06-02 21:00:10,025 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 62] initializer namespace from System Property : null |
| | | 2023-06-02 21:00:10,025 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 66] initializer namespace from System Environment :null |
| | | 2023-06-02 21:00:10,026 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 73] initializer namespace from System Property :null |
| | | 2023-06-02 21:00:10,046 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-06-02 21:00:10,047 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-06-02 21:00:10,060 INFO [main] c.alibaba.nacos.common.remote.client [RpcClientFactory.java : 95] [RpcClientFactory] create a new rpc client of 971c8549-b6d1-463d-9f97-5c9c802a5776 |
| | | 2023-06-02 21:00:10,061 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] RpcClient init label, labels = {module=naming, source=sdk} |
| | | 2023-06-02 21:00:10,064 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager |
| | | 2023-06-02 21:00:10,065 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService |
| | | 2023-06-02 21:00:10,066 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler |
| | | 2023-06-02 21:00:10,067 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} |
| | | 2023-06-02 21:00:10,187 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1685710810072_127.0.0.1_63146 |
| | | 2023-06-02 21:00:10,188 INFO [com.alibaba.nacos.client.remote.worker] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Notify connected event to listeners. |
| | | 2023-06-02 21:00:10,192 INFO [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 76] Grpc connection connect |
| | | 2023-06-02 21:00:10,189 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler |
| | | 2023-06-02 21:00:10,192 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$376/1387556178 |
| | | 2023-06-02 21:00:10,977 INFO [main] o.s.b.a.e.web.EndpointLinksResolver [EndpointLinksResolver.java : 58] Exposing 20 endpoint(s) beneath base path '/actuator' |
| | | 2023-06-02 21:00:13,347 INFO [main] o.s.b.f.a.AutowiredAnnotationBeanPostProcessor [AutowiredAnnotationBeanPostProcessor.java : 367] Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties) |
| | | 2023-06-02 21:00:14,604 WARN [main] o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger [LoadBalancerCacheAutoConfiguration.java : 82] Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. |
| | | 2023-06-02 21:00:14,653 INFO [main] c.x.r.r.p.XxlRpcProviderFactory [XxlRpcProviderFactory.java : 197] >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl |
| | | 2023-06-02 21:00:15,148 INFO [main] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 141] [SUBSCRIBE-SERVICE] service:ubcs-xxljob, group:DEFAULT_GROUP, clusters:DEFAULT |
| | | 2023-06-02 21:00:15,166 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-06-02 21:00:15,179 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-06-02 21:00:15,183 INFO [Thread-47] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 66] >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.netty_http.server.NettyHttpServer, port = 7018 |
| | | 2023-06-02 21:00:15,202 INFO [main] io.undertow [Undertow.java : 120] starting server: Undertow - 2.2.18.Final |
| | | 2023-06-02 21:00:15,213 INFO [main] org.xnio [Xnio.java : 95] XNIO version 3.8.7.Final |
| | | 2023-06-02 21:00:15,227 INFO [main] org.xnio.nio [NioXnio.java : 58] XNIO NIO Implementation Version 3.8.7.Final |
| | | 2023-06-02 21:00:15,273 INFO [main] org.jboss.threads [Version.java : 52] JBoss Threads version 3.1.0.Final |
| | | 2023-06-02 21:00:15,339 INFO [main] o.s.b.w.e.undertow.UndertowWebServer [UndertowWebServer.java : 119] Undertow started on port(s) 36009 (http) |
| | | 2023-06-02 21:00:15,344 INFO [main] com.alibaba.nacos.client.naming [NamingGrpcClientProxy.java : 111] [REGISTER-SERVICE] public registering service ubcs-xxljob with instance Instance{instanceId='null', ip='192.168.237.1', port=36009, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD}} |
| | | 2023-06-02 21:00:15,353 INFO [main] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 75] nacos registry, DEFAULT_GROUP ubcs-xxljob 192.168.237.1:36009 register finished |
| | | 2023-06-02 21:00:15,706 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Receive server push request, request = NotifySubscriberRequest, requestId = 2169 |
| | | 2023-06-02 21:00:15,709 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-06-02 21:00:15,710 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-06-02 21:00:15,711 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [971c8549-b6d1-463d-9f97-5c9c802a5776] Ack server push request, request = NotifySubscriberRequest, requestId = 2169 |
| | | 2023-06-02 21:00:15,737 INFO [main] o.s.core.launch.StartEventListener [StartEventListener.java : 45] ---[UBCS-XXLJOB]---å¯å¨å®æï¼å½å使ç¨ç端å£:[36009]ï¼ç¯å¢åé:[dev]--- |
| | | 2023-06-02 21:00:15,754 INFO [main] c.v.ubcs.job.executor.JobApplication [StartupInfoLogger.java : 61] Started JobApplication in 19.761 seconds (JVM running for 21.938) |
| | | 2023-06-02 21:00:15,761 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 65] nacos.cache.data.init.snapshot = true |
| | | 2023-06-02 21:00:15,762 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-dev.yaml+DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,764 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-06-02 21:00:15,764 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,765 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob+DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,765 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-06-02 21:00:15,765 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob, group=DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,766 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs.yaml+DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,766 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-06-02 21:00:15,766 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs.yaml, group=DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,767 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob.yaml+DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,767 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-06-02 21:00:15,767 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,768 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob-dev.yaml+DEFAULT_GROUP |
| | | 2023-06-02 21:00:15,768 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-06-02 21:00:15,768 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-06-02 21:00:16,173 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 234] new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-06-02 21:00:16,174 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-06-02 21:00:16,350 INFO [RMI TCP Connection(13)-192.168.3.7] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring DispatcherServlet 'dispatcherServlet' |
| | | 2023-06-02 21:00:16,350 INFO [RMI TCP Connection(13)-192.168.3.7] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 525] Initializing Servlet 'dispatcherServlet' |
| | | 2023-06-02 21:00:16,354 INFO [RMI TCP Connection(13)-192.168.3.7] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 547] Completed initialization in 3 ms |
| | | 2023-06-02 21:00:17,232 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:48:40,905 INFO [background-preinit] o.h.validator.internal.util.Version [Version.java : 21] HV000001: Hibernate Validator 6.2.3.Final |
| | | 2023-05-25 14:48:42,225 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-25 14:48:42,226 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-25 14:48:46,150 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob] & group[DEFAULT_GROUP] |
| | | 2023-05-25 14:48:46,155 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-25 14:48:46,162 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob-dev.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-25 14:48:46,164 INFO [main] o.s.c.b.c.PropertySourceBootstrapConfiguration [PropertySourceBootstrapConfiguration.java : 109] Located property source: [BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs.yaml,DEFAULT_GROUP'}] |
| | | 2023-05-25 14:48:46,188 INFO [main] c.v.ubcs.job.executor.JobApplication [SpringApplication.java : 640] The following 1 profile is active: "dev" |
| | | 2023-05-25 14:48:49,436 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 262] Multiple Spring Data modules found, entering strict repository configuration mode |
| | | 2023-05-25 14:48:49,446 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 132] Bootstrapping Spring Data Redis repositories in DEFAULT mode. |
| | | 2023-05-25 14:48:49,535 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 201] Finished Spring Data repository scanning in 24 ms. Found 0 Redis repository interfaces. |
| | | 2023-05-25 14:48:50,125 INFO [main] o.s.cloud.context.scope.GenericScope [GenericScope.java : 283] BeanFactory id=8a87525c-4e09-336f-9e65-667cebc7cd92 |
| | | 2023-05-25 14:48:50,129 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 150] BladePropertySourcePostProcessor init. |
| | | 2023-05-25 14:48:50,143 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 62] BladePropertySourcePostProcessor process @BladePropertySource bean. |
| | | 2023-05-25 14:48:50,197 WARN [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 67] Not found @BladePropertySource on spring bean class. |
| | | 2023-05-25 14:48:50,970 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration' of type [org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:50,978 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:50,980 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'loadBalancerClientsDefaultsMappingsProvider' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration$$Lambda$490/1128660293] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:50,983 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'defaultsBindHandlerAdvisor' of type [org.springframework.cloud.commons.config.DefaultsBindHandlerAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:51,065 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:51,074 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-25 14:48:51,499 WARN [main] io.undertow.websockets.jsr [Bootstrap.java : 68] UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used |
| | | 2023-05-25 14:48:51,563 INFO [main] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring embedded WebApplicationContext |
| | | 2023-05-25 14:48:51,564 INFO [main] o.s.b.w.s.c.ServletWebServerApplicationContext [ServletWebServerApplicationContext.java : 292] Root WebApplicationContext: initialization completed in 5351 ms |
| | | 2023-05-25 14:48:52,022 INFO [main] c.v.u.j.executor.config.XxlJobConfig [XxlJobConfig.java : 43] >>>>>>>>>>> xxl-job config init. |
| | | 2023-05-25 14:48:52,038 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@5b74902c[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler] |
| | | 2023-05-25 14:48:52,038 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler2, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@4e4bfd9c[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler2] |
| | | 2023-05-25 14:48:52,039 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:httpJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@43ee1cf7[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#httpJobHandler] |
| | | 2023-05-25 14:48:52,039 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:commandJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@24954e82[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#commandJobHandler] |
| | | 2023-05-25 14:48:52,039 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:shardingJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@5b1f5fcc[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#shardingJobHandler] |
| | | 2023-05-25 14:48:52,582 INFO [main] c.a.c.s.SentinelWebMvcConfigurer [SentinelWebMvcConfigurer.java : 52] [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**]. |
| | | 2023-05-25 14:48:52,659 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse) |
| | | 2023-05-25 14:48:52,660 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{GET [/test/testRequest]}" onto com.vci.ubcs.job.executor.controller.TestController#testRequest(String) |
| | | 2023-05-25 14:48:52,660 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) |
| | | 2023-05-25 14:48:54,823 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 62] initializer namespace from System Property : null |
| | | 2023-05-25 14:48:54,825 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 66] initializer namespace from System Environment :null |
| | | 2023-05-25 14:48:54,826 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 73] initializer namespace from System Property :null |
| | | 2023-05-25 14:48:54,851 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-25 14:48:54,851 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-25 14:48:54,863 INFO [main] c.alibaba.nacos.common.remote.client [RpcClientFactory.java : 95] [RpcClientFactory] create a new rpc client of 5eefa819-8d85-4d35-9131-936b45290b68 |
| | | 2023-05-25 14:48:54,864 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] RpcClient init label, labels = {module=naming, source=sdk} |
| | | 2023-05-25 14:48:54,868 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager |
| | | 2023-05-25 14:48:54,868 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService |
| | | 2023-05-25 14:48:54,869 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler |
| | | 2023-05-25 14:48:54,871 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Try to connect to server on start up, server: {serverIp = 'localhost', server main port = 8848} |
| | | 2023-05-25 14:48:54,996 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Success to connect to server [localhost:8848] on start up, connectionId = 1684997334878_127.0.0.1_54302 |
| | | 2023-05-25 14:48:54,997 INFO [com.alibaba.nacos.client.remote.worker] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Notify connected event to listeners. |
| | | 2023-05-25 14:48:54,997 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler |
| | | 2023-05-25 14:48:54,999 INFO [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 76] Grpc connection connect |
| | | 2023-05-25 14:48:55,000 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$376/457245448 |
| | | 2023-05-25 14:48:55,763 INFO [main] o.s.b.a.e.web.EndpointLinksResolver [EndpointLinksResolver.java : 58] Exposing 20 endpoint(s) beneath base path '/actuator' |
| | | 2023-05-25 14:48:57,345 INFO [main] o.s.b.f.a.AutowiredAnnotationBeanPostProcessor [AutowiredAnnotationBeanPostProcessor.java : 367] Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties) |
| | | 2023-05-25 14:48:58,610 WARN [main] o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger [LoadBalancerCacheAutoConfiguration.java : 82] Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. |
| | | 2023-05-25 14:48:58,696 INFO [main] c.x.r.r.p.XxlRpcProviderFactory [XxlRpcProviderFactory.java : 197] >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl |
| | | 2023-05-25 14:48:59,286 INFO [main] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 141] [SUBSCRIBE-SERVICE] service:ubcs-xxljob, group:DEFAULT_GROUP, clusters:DEFAULT |
| | | 2023-05-25 14:48:59,311 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-25 14:48:59,325 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-25 14:48:59,336 INFO [Thread-58] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 66] >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.netty_http.server.NettyHttpServer, port = 7018 |
| | | 2023-05-25 14:48:59,352 INFO [main] io.undertow [Undertow.java : 120] starting server: Undertow - 2.2.18.Final |
| | | 2023-05-25 14:48:59,366 INFO [main] org.xnio [Xnio.java : 95] XNIO version 3.8.7.Final |
| | | 2023-05-25 14:48:59,387 INFO [main] org.xnio.nio [NioXnio.java : 58] XNIO NIO Implementation Version 3.8.7.Final |
| | | 2023-05-25 14:48:59,470 INFO [main] org.jboss.threads [Version.java : 52] JBoss Threads version 3.1.0.Final |
| | | 2023-05-25 14:48:59,565 INFO [main] o.s.b.w.e.undertow.UndertowWebServer [UndertowWebServer.java : 119] Undertow started on port(s) 36009 (http) |
| | | 2023-05-25 14:48:59,572 INFO [main] com.alibaba.nacos.client.naming [NamingGrpcClientProxy.java : 111] [REGISTER-SERVICE] public registering service ubcs-xxljob with instance Instance{instanceId='null', ip='192.168.237.1', port=36009, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD}} |
| | | 2023-05-25 14:48:59,589 INFO [main] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 75] nacos registry, DEFAULT_GROUP ubcs-xxljob 192.168.237.1:36009 register finished |
| | | 2023-05-25 14:48:59,893 INFO [nacos-grpc-client-executor-localhost-6] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Receive server push request, request = NotifySubscriberRequest, requestId = 781 |
| | | 2023-05-25 14:48:59,897 INFO [nacos-grpc-client-executor-localhost-6] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-05-25 14:48:59,898 INFO [nacos-grpc-client-executor-localhost-6] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-05-25 14:48:59,900 INFO [nacos-grpc-client-executor-localhost-6] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [5eefa819-8d85-4d35-9131-936b45290b68] Ack server push request, request = NotifySubscriberRequest, requestId = 781 |
| | | 2023-05-25 14:49:00,140 INFO [main] o.s.core.launch.StartEventListener [StartEventListener.java : 45] ---[UBCS-XXLJOB]---å¯å¨å®æï¼å½å使ç¨ç端å£:[36009]ï¼ç¯å¢åé:[dev]--- |
| | | 2023-05-25 14:49:00,163 INFO [main] c.v.ubcs.job.executor.JobApplication [StartupInfoLogger.java : 61] Started JobApplication in 21.547 seconds (JVM running for 24.398) |
| | | 2023-05-25 14:49:00,173 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 65] nacos.cache.data.init.snapshot = true |
| | | 2023-05-25 14:49:00,175 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-localhost_8848] [subscribe] ubcs-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,177 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-localhost_8848] [add-listener] ok, tenant=, dataId=ubcs-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-25 14:49:00,177 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,178 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-localhost_8848] [subscribe] ubcs-xxljob+DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,178 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-localhost_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-25 14:49:00,178 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob, group=DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,180 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-localhost_8848] [subscribe] ubcs.yaml+DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,181 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-localhost_8848] [add-listener] ok, tenant=, dataId=ubcs.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-25 14:49:00,181 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs.yaml, group=DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,182 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-localhost_8848] [subscribe] ubcs-xxljob.yaml+DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,182 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-localhost_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-25 14:49:00,182 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,183 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-localhost_8848] [subscribe] ubcs-xxljob-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,183 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-localhost_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-25 14:49:00,183 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-25 14:49:00,314 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 234] new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-05-25 14:49:00,316 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000}] |
| | | 2023-05-25 14:49:00,900 INFO [RMI TCP Connection(8)-192.168.1.46] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring DispatcherServlet 'dispatcherServlet' |
| | | 2023-05-25 14:49:00,901 INFO [RMI TCP Connection(8)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 525] Initializing Servlet 'dispatcherServlet' |
| | | 2023-05-25 14:49:00,906 INFO [RMI TCP Connection(8)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 547] Completed initialization in 5 ms |
| | | 2023-05-25 14:49:01,410 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:40:32,858 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:40:32,936 INFO [RMI TCP Connection(5)-192.168.1.46] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring DispatcherServlet 'dispatcherServlet' |
| | | 2023-05-30 18:40:32,936 INFO [RMI TCP Connection(5)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 525] Initializing Servlet 'dispatcherServlet' |
| | | 2023-05-30 18:40:32,940 INFO [RMI TCP Connection(5)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 547] Completed initialization in 4 ms |
| | | 2023-05-30 18:41:04,927 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:00:17,234 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:00:49,283 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:49:01,411 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:49:33,459 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:41:04,928 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:41:36,978 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:00:49,283 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:01:21,322 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:49:33,459 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:50:05,495 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:41:36,979 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:42:09,008 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:01:21,323 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:01:53,372 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:50:05,495 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:50:37,519 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:42:09,008 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:42:41,038 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:01:53,372 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:02:25,393 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:50:37,520 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:51:09,568 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:42:41,038 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:43:13,081 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:02:25,394 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:02:57,429 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:51:09,568 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:51:41,617 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:43:13,179 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:43:45,242 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:02:57,430 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:03:29,473 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | ======= |
| | | 2023-05-25 14:51:41,617 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:52:13,650 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | >>>>>>> Stashed changes |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:43:45,243 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:44:17,289 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:03:29,474 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-06-02 21:03:45,054 WARN [Thread-12] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 136] [NotifyCenter] Start destroying Publisher |
| | | 2023-06-02 21:03:45,055 WARN [Thread-5] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 108] [HttpClientBeanHolder] Start destroying common HttpClient |
| | | 2023-06-02 21:03:45,056 WARN [Thread-12] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 153] [NotifyCenter] Destruction of the end |
| | | 2023-06-02 21:03:45,057 WARN [Thread-5] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 114] [HttpClientBeanHolder] Destruction of the end |
| | | 2023-06-02 21:03:45,094 INFO [SpringApplicationShutdownHook] io.undertow [Undertow.java : 259] stopping server: Undertow - 2.2.18.Final |
| | | 2023-06-02 21:03:45,109 INFO [SpringApplicationShutdownHook] io.undertow.servlet [ServletContextImpl.java : 382] Destroying Spring FrameworkServlet 'dispatcherServlet' |
| | | 2023-06-02 21:03:45,115 ERROR [SpringApplicationShutdownHook] c.a.cloud.nacos.discovery.NacosWatch [NacosWatch.java : 180] namingService unsubscribe failed, properties:NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', username='', password='', endpoint='', namespace='', watchDelay=30000, logName='', service='ubcs-xxljob', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.237.1', networkInterface='', port=36009, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true} |
| | | ======= |
| | | 2023-05-25 14:52:13,651 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:52:45,678 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:44:17,290 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:44:49,322 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:52:45,679 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:53:17,726 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:44:49,323 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:45:21,341 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:53:17,727 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:53:49,754 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:45:21,341 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:45:53,370 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:53:49,755 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:54:21,779 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:45:53,371 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:46:25,389 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:54:21,780 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:54:53,806 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:46:25,389 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:46:57,414 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:54:53,807 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:55:25,850 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:46:57,415 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:47:29,468 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:55:25,851 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:55:57,884 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:47:29,469 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:01,505 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:55:57,885 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:56:29,931 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:48:01,508 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:33,522 WARN [Thread-2] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 108] [HttpClientBeanHolder] Start destroying common HttpClient |
| | | 2023-05-30 18:48:33,523 WARN [Thread-8] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 136] [NotifyCenter] Start destroying Publisher |
| | | 2023-05-30 18:48:33,524 WARN [Thread-8] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 153] [NotifyCenter] Destruction of the end |
| | | 2023-05-30 18:48:33,549 WARN [Thread-2] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 114] [HttpClientBeanHolder] Destruction of the end |
| | | 2023-05-30 18:48:33,546 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-25 14:56:29,931 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:57:01,959 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:48:33,549 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:33,720 INFO [SpringApplicationShutdownHook] io.undertow [Undertow.java : 259] stopping server: Undertow - 2.2.18.Final |
| | | 2023-05-30 18:48:33,775 INFO [SpringApplicationShutdownHook] io.undertow.servlet [ServletContextImpl.java : 382] Destroying Spring FrameworkServlet 'dispatcherServlet' |
| | | 2023-05-30 18:48:33,788 ERROR [SpringApplicationShutdownHook] c.a.cloud.nacos.discovery.NacosWatch [NacosWatch.java : 180] namingService unsubscribe failed, properties:NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', username='', password='', endpoint='', namespace='', watchDelay=30000, logName='', service='ubcs-xxljob', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.237.1', networkInterface='', port=36009, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true} |
| | | 2023-05-25 14:57:01,960 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:57:33,980 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 14:57:33,981 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:58:06,041 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 14:58:06,042 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:58:38,103 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 14:58:38,104 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:59:10,122 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 14:59:10,123 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 14:59:42,143 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 14:59:42,144 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:00:14,191 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:00:14,192 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:00:46,241 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:00:46,242 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:01:18,269 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:01:18,270 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:01:50,322 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:01:50,323 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:02:22,338 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:02:22,339 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:02:54,360 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:02:54,361 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:03:26,400 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:03:26,401 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:03:58,444 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:03:58,445 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:04:30,484 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:04:30,486 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:05:02,512 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:05:02,514 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:05:34,557 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:05:34,557 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:06:06,579 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:06:06,580 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:06:38,614 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:06:38,615 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:07:10,653 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:07:10,654 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:07:42,678 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:07:42,680 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:08:14,707 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:08:14,707 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:08:46,758 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:08:46,759 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:09:18,805 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:09:18,806 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:09:50,850 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:09:50,851 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:10:22,904 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:10:22,905 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:10:54,960 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:10:54,961 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:11:27,001 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:11:27,002 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:11:59,040 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-25 15:11:59,041 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-25 15:12:07,076 WARN [Thread-17] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 136] [NotifyCenter] Start destroying Publisher |
| | | 2023-05-25 15:12:07,076 WARN [Thread-9] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 108] [HttpClientBeanHolder] Start destroying common HttpClient |
| | | 2023-05-25 15:12:07,078 WARN [Thread-17] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 153] [NotifyCenter] Destruction of the end |
| | | 2023-05-25 15:12:07,086 WARN [Thread-9] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 114] [HttpClientBeanHolder] Destruction of the end |
| | | 2023-05-25 15:12:07,228 INFO [SpringApplicationShutdownHook] io.undertow [Undertow.java : 259] stopping server: Undertow - 2.2.18.Final |
| | | 2023-05-25 15:12:07,263 INFO [SpringApplicationShutdownHook] io.undertow.servlet [ServletContextImpl.java : 382] Destroying Spring FrameworkServlet 'dispatcherServlet' |
| | | 2023-05-25 15:12:07,271 ERROR [SpringApplicationShutdownHook] c.a.cloud.nacos.discovery.NacosWatch [NacosWatch.java : 180] namingService unsubscribe failed, properties:NacosDiscoveryProperties{serverAddr='localhost:8848', username='', password='', endpoint='', namespace='', watchDelay=30000, logName='', service='ubcs-xxljob', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.237.1', networkInterface='', port=36009, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true} |
| | | >>>>>>> Stashed changes |
| | | java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | at io.undertow.servlet.spec.ServletContextImpl.getDeploymentInfo(ServletContextImpl.java:211) |
| | | at io.undertow.servlet.spec.ServletContextImpl.getInitParameterNames(ServletContextImpl.java:449) |
| | |
| | | at java.lang.Iterable.forEach(Iterable.java:75) |
| | | at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:48:33,796 INFO [Thread-51] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 74] >>>>>>>>>>> xxl-rpc remoting server stop. |
| | | 2023-05-30 18:48:35,829 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | <<<<<<< Updated upstream |
| | | 2023-06-02 21:03:45,118 INFO [Thread-47] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 74] >>>>>>>>>>> xxl-rpc remoting server stop. |
| | | 2023-06-02 21:03:47,157 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registryRemove(AdminBizClient.java:46) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:84) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-30 18:48:35,831 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 90] >>>>>>>>>>> xxl-job registry-remove fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registryRemove, content=null] |
| | | 2023-05-30 18:48:35,831 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 105] >>>>>>>>>>> xxl-job, executor registry thread destory. |
| | | 2023-05-30 18:48:35,831 INFO [SpringApplicationShutdownHook] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 110] >>>>>>>>>>> xxl-rpc remoting server destroy success. |
| | | 2023-05-30 18:48:35,832 INFO [xxl-job, executor TriggerCallbackThread] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 96] >>>>>>>>>>> xxl-job, executor callback thread destory. |
| | | 2023-05-30 18:48:35,832 INFO [Thread-50] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 126] >>>>>>>>>>> xxl-job, executor retry callback thread destory. |
| | | 2023-05-30 18:48:35,846 INFO [SpringApplicationShutdownHook] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 94] De-registering from Nacos Server now... |
| | | 2023-05-30 18:48:35,848 WARN [SpringApplicationShutdownHook] o.s.c.a.CommonAnnotationBeanPostProcessor [InitDestroyAnnotationBeanPostProcessor.java : 185] Destroy method on bean with name 'nacosAutoServiceRegistration' threw an exception: java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | 2023-05-30 18:48:35,849 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 255] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin |
| | | 2023-05-30 18:48:35,849 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 140] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 142] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 257] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 182] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 130] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin |
| | | 2023-05-30 18:48:36,172 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 132] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop |
| | | 2023-05-30 18:48:36,172 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 192] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 197] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 527] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 162] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 164] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-30 18:48:36,174 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 530] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop |
| | | 2023-05-30 18:48:36,174 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 453] Shutdown rpc client, set status to shutdown |
| | | 2023-05-30 18:48:36,175 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 455] Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@65207516[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] |
| | | 2023-05-30 18:48:36,175 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 592] Close current connection 1685443224475_127.0.0.1_63184 |
| | | 2023-05-30 18:48:36,176 INFO [nacos-grpc-client-executor-127.0.0.1-129] c.a.n.c.r.client.grpc.GrpcClient [LoggerUtils.java : 60] [1685443224475_127.0.0.1_63184]Ignore complete event,isRunning:false,isAbandon=false |
| | | 2023-05-30 18:48:36,183 INFO [SpringApplicationShutdownHook] c.a.n.c.r.client.grpc.GrpcClient [GrpcClient.java : 129] Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@16633451[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 130] |
| | | 2023-05-30 18:48:36,183 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 267] Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@427b75af[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 163] |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialWatcher [CredentialWatcher.java : 105] [null] CredentialWatcher is stopped |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialService [CredentialService.java : 99] [null] CredentialService is freed |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 189] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop |
| | | 2023-06-02 21:03:47,157 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 90] >>>>>>>>>>> xxl-job registry-remove fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registryRemove, content=null] |
| | | 2023-06-02 21:03:47,158 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 105] >>>>>>>>>>> xxl-job, executor registry thread destory. |
| | | 2023-06-02 21:03:47,159 INFO [SpringApplicationShutdownHook] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 110] >>>>>>>>>>> xxl-rpc remoting server destroy success. |
| | | 2023-06-02 21:03:47,160 INFO [xxl-job, executor TriggerCallbackThread] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 96] >>>>>>>>>>> xxl-job, executor callback thread destory. |
| | | 2023-06-02 21:03:47,161 INFO [Thread-46] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 126] >>>>>>>>>>> xxl-job, executor retry callback thread destory. |
| | | 2023-06-02 21:03:47,176 INFO [SpringApplicationShutdownHook] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 94] De-registering from Nacos Server now... |
| | | 2023-06-02 21:03:47,179 WARN [SpringApplicationShutdownHook] o.s.c.a.CommonAnnotationBeanPostProcessor [InitDestroyAnnotationBeanPostProcessor.java : 185] Destroy method on bean with name 'nacosAutoServiceRegistration' threw an exception: java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | 2023-06-02 21:03:47,181 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 255] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin |
| | | 2023-06-02 21:03:47,181 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 140] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin |
| | | 2023-06-02 21:03:47,182 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 142] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop |
| | | 2023-06-02 21:03:47,182 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 257] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop |
| | | 2023-06-02 21:03:47,183 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 182] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin |
| | | 2023-06-02 21:03:47,183 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 130] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin |
| | | 2023-06-02 21:03:47,513 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 132] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop |
| | | 2023-06-02 21:03:47,514 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 192] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin |
| | | 2023-06-02 21:03:47,514 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-06-02 21:03:47,514 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-06-02 21:03:47,515 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 197] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop |
| | | 2023-06-02 21:03:47,515 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 527] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin |
| | | 2023-06-02 21:03:47,515 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 162] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin |
| | | 2023-06-02 21:03:47,515 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 164] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop |
| | | 2023-06-02 21:03:47,516 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-06-02 21:03:47,516 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-06-02 21:03:47,516 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 530] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop |
| | | 2023-06-02 21:03:47,516 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 453] Shutdown rpc client, set status to shutdown |
| | | 2023-06-02 21:03:47,516 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 455] Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@63592bec[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] |
| | | 2023-06-02 21:03:47,517 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 592] Close current connection 1685710810072_127.0.0.1_63146 |
| | | 2023-06-02 21:03:47,518 INFO [nacos-grpc-client-executor-127.0.0.1-60] c.a.n.c.r.client.grpc.GrpcClient [LoggerUtils.java : 60] [1685710810072_127.0.0.1_63146]Ignore complete event,isRunning:false,isAbandon=false |
| | | 2023-06-02 21:03:47,526 INFO [SpringApplicationShutdownHook] c.a.n.c.r.client.grpc.GrpcClient [GrpcClient.java : 129] Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@f3db5ef[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 61] |
| | | 2023-06-02 21:03:47,526 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 267] Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@60545287[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 72] |
| | | 2023-06-02 21:03:47,526 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialWatcher [CredentialWatcher.java : 105] [null] CredentialWatcher is stopped |
| | | 2023-06-02 21:03:47,527 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialService [CredentialService.java : 99] [null] CredentialService is freed |
| | | 2023-06-02 21:03:47,527 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 189] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop |
| | | ======= |
| | | 2023-05-25 15:12:07,276 INFO [Thread-58] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 74] >>>>>>>>>>> xxl-rpc remoting server stop. |
| | | >>>>>>> Stashed changes |