已修改31个文件
已删除31个文件
已重命名1个文件
已添加11个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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, |
| | | } |
| | | }) |
| | | } |
| | |
| | | <!-- 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>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate, getFormDetail } from "@/api/formTemplate";
|
| | | import { getDictionary } from "../../api/system/dict";
|
| | | import vciWebRefer from "../refer/vciWebRefer.vue";
|
| | | export default {
|
| | | name: "FormTemplate",
|
| | | components: { vciWebRefer },
|
| | | props: {
|
| | | // é»è®¤ç¦ç¨å
ç´
|
| | | disabledProp: {
|
| | | type: Array,
|
| | | default: () => ["id"],
|
| | | },
|
| | | templateOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | // åè¡¨æ°æ®oid
|
| | | rowOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | // 表åç±»åï¼add, edit, detailï¼
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | | },
|
| | | // èªå®ä¹è¡¨åç±»å
|
| | | selfColumnType: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | // èªå®ä¹è¡¨å屿§
|
| | | selfColumnConfig: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | formIndex: 0,
|
| | | form: {},
|
| | | option: {
|
| | | emptyBtn: false,
|
| | | submitBtn: false,
|
| | | labelWidth: "140",
|
| | | column: [],
|
| | | group: [],
|
| | | },
|
| | | loading: true,
|
| | | columnType: {
|
| | | text: "input",
|
| | | combox: "select",
|
| | | truefalse: "switch",
|
| | | number: "number",
|
| | | textarea: "textarea",
|
| | | datetime: "datetime",
|
| | | date: "date",
|
| | | refer: "refer",
|
| | | },
|
| | | // åæ°æ®
|
| | | testItems: [
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "id",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "ä¼ å¼ç¦ç¨åè½",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "state",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: true,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¥å£ç¦ç¨åè½",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "oldcode",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "el-icon-search",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "ææ¬åç¼æµè¯",
|
| | | text: "ååç¼åè½",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "materialname",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: true,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ£åæ ¡éªåè½",
|
| | | tooltips: "请è¾å
¥æ°å",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "/[0-9]/",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: [
|
| | | {
|
| | | attributes: {},
|
| | | key: "model_type",
|
| | | value: "模å",
|
| | | },
|
| | | {
|
| | | attributes: {},
|
| | | key: "part_type",
|
| | | value: "é¶ä»¶",
|
| | | },
|
| | | ],
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "dataSelect",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "ç´æ¥è¿å䏿",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: "formTemplateTest",
|
| | | customClass: null,
|
| | | data: [],
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "dictSelect",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "åå
¸è¿å䏿",
|
| | | tooltips: "",
|
| | | type: "combox",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "firstfl",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ°åè¾å
¥æ¡",
|
| | | tooltips: "",
|
| | | type: "number",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "yyyy-MM-dd HH:mm:ss",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "datetime",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¥ææ¶é´éæ©å¨",
|
| | | tooltips: "",
|
| | | type: "datetime",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "time",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "æ¶é´éæ©å¨",
|
| | | tooltips: "",
|
| | | type: "date",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "false",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "xiaoshouwl",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "å¼å
³",
|
| | | tooltips: "",
|
| | | type: "truefalse",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "ææ¯é»è®¤å¼",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "tuhao",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "é»è®¤å¼åè½",
|
| | | tooltips: "æç¤º",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "xinghaoguige",
|
| | | hidden: false,
|
| | | keyAttr: true,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | referConfig: null,
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: null,
|
| | | suffix: "",
|
| | | text: "屿§å
³é®å¼",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: null,
|
| | | extendAttrMap: null,
|
| | | extendAttrString: null,
|
| | | field: "jiliangdw",
|
| | | hidden: false,
|
| | | keyAttr: false,
|
| | | prefix: "",
|
| | | readOnly: false,
|
| | | tip: "ææ¯æç¤ºåè½",
|
| | | required: false,
|
| | | selectLibFlag: "",
|
| | | showField: "jiliangdwname",
|
| | | suffix: "",
|
| | | text: "æç¤ºåè½",
|
| | | tooltips: "",
|
| | | type: "text",
|
| | | unique: false,
|
| | | verify: "",
|
| | | },
|
| | | {
|
| | | comboxKey: null,
|
| | | customClass: null,
|
| | | data: null,
|
| | | dateFormate: "",
|
| | | defaultValue: "",
|
| | | displayExtension: 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: [],
|
| | | };
|
| | | },
|
| | | mounted() {
|
| | | this.handleResize();
|
| | | },
|
| | | methods: {
|
| | | // åå§å
|
| | | init(columnList) {
|
| | | if (Array.isArray(columnList)) {
|
| | | this.templateRender(columnList);
|
| | | } else {
|
| | | this.getFormTemplate();
|
| | | }
|
| | | },
|
| | | // æ¥å£è·åè¡¨åæ°æ®
|
| | | getFormTemplate() {
|
| | | getFormTemplate({
|
| | | templateOid: this.templateOid,
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | })
|
| | | .then((res) => {
|
| | | if (res.status === 200) {
|
| | | this.templateRender(res.data.formDefineVO.items);
|
| | | this.$emit("getFormTemplateEnd", res.data);
|
| | | }
|
| | | })
|
| | | .catch((err) => {
|
| | | this.loading = false;
|
| | | console.log(err);
|
| | | });
|
| | | },
|
| | | // 渲æè¡¨å模æ¿
|
| | | templateRender(formItemList) {
|
| | | // æ éåç»æ°æ®
|
| | | let column = [];
|
| | | let group = [];
|
| | | let dictKeys = [];
|
| | | let slotColumnList = [];
|
| | | formItemList.forEach((formItem) => {
|
| | | formItem = this.resetFormConfig(formItem);
|
| | | if (formItem.type === "line") {
|
| | | group.push({
|
| | | label: formItem.text,
|
| | | prop: formItem.text,
|
| | | collapse: true,
|
| | | column: [],
|
| | | });
|
| | | }
|
| | | if (
|
| | | formItem.type === "combox" &&
|
| | | formItem.comboxKey &&
|
| | | (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0)
|
| | | ) {
|
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field });
|
| | | }
|
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼
|
| | | if (this.disabledProp.includes(formItem.field)) {
|
| | | formItem.readOnly = true;
|
| | | }
|
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬
|
| | | let message = "è¯·éæ©";
|
| | | let trigger = "change";
|
| | | if (formItem.type === "text") {
|
| | | message = "请è¾å
¥";
|
| | | trigger = "blur";
|
| | | }
|
| | | let columnItem = {
|
| | | label: formItem.text,
|
| | | labelslot: true,
|
| | | prop: this.$utilFunc.isValuableObj(formItem.referConfig)
|
| | | ? formItem.showField || formItem.field
|
| | | : formItem.field,
|
| | | field: formItem.field,
|
| | | type: this.columnType[formItem.type],
|
| | | dicData: this.getDataList(formItem.type, formItem.data),
|
| | | disabled: this.type === "detail" ? true : formItem.readOnly,
|
| | | prepend: this.preOrSufFixShow("text", formItem.prefix),
|
| | | append: this.preOrSufFixShow("text", formItem.suffix),
|
| | | prefixIcon: this.preOrSufFixShow("icon", formItem.prefix),
|
| | | suffixIcon: this.preOrSufFixShow("icon", formItem.suffix),
|
| | | valueFormat: formItem.dateFormate,
|
| | | format: formItem.dateFormate,
|
| | | keyAttr: formItem.keyAttr,
|
| | | value: formItem.defaultValue,
|
| | | // tip: formItem.tooltips,
|
| | | // tipPlacement: "right",
|
| | | placeholder: formItem.inputTip,
|
| | | comboxKey: formItem.comboxKey,
|
| | | display: !formItem.hidden,
|
| | | maxlength: formItem.maxlength,
|
| | | filterable: true,
|
| | | change: () => {
|
| | | this.changeFun(formItem.displayExtension, formItem.prop);
|
| | | },
|
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan,
|
| | | rules: [
|
| | | {
|
| | | required: formItem.required,
|
| | | message: `请${message}${formItem.text}`,
|
| | | trigger,
|
| | | },
|
| | | {
|
| | | // å¦ææ²¡ææ£ååå¹é
ä»»ä½å符
|
| | | pattern: formItem.verify ? formItem.verify : /[\s\S.]*/g,
|
| | | message: formItem.tooltips,
|
| | | trigger,
|
| | | },
|
| | | ],
|
| | | props: {
|
| | | label: "value",
|
| | | value: "key",
|
| | | },
|
| | | };
|
| | | slotColumnList.push(columnItem);
|
| | | if (group.length === 0) {
|
| | | column.push(columnItem);
|
| | | } else {
|
| | | group[group.length - 1]["column"].push(columnItem);
|
| | | }
|
| | | });
|
| | | this.slotColumnList = slotColumnList;
|
| | | this.$set(this.option, "column", column);
|
| | | this.$set(this.option, "group", group);
|
| | | this.formIndex++;
|
| | | this.loading = false;
|
| | | this.geDictData(dictKeys);
|
| | | this.getFormDetail()
|
| | | },
|
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½®
|
| | | resetFormConfig(formItem) {
|
| | | for (const configType in this.selfColumnConfig) {
|
| | | if (Object.hasOwnProperty.call(this.selfColumnConfig, configType)) {
|
| | | const element = this.selfColumnConfig[configType];
|
| | | if (configType === "function") {
|
| | | for (const attr in element) {
|
| | | if (Object.hasOwnProperty.call(element, attr)) {
|
| | | const fun = element[attr];
|
| | | formItem[attr] = fun(formItem);
|
| | | }
|
| | | }
|
| | | } else if (configType === "exchange") {
|
| | | for (const newAttr in element) {
|
| | | if (Object.hasOwnProperty.call(element, newAttr)) {
|
| | | const oldAttr = element[newAttr];
|
| | | formItem[newAttr] = formItem[oldAttr];
|
| | | }
|
| | | }
|
| | | } else if (configType === "directVoluation") {
|
| | | for (const attr in element) {
|
| | | if (Object.hasOwnProperty.call(element, attr)) {
|
| | | const value = element[attr];
|
| | | formItem[attr] = value;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | return formItem;
|
| | | },
|
| | | // æ ¹æ®å±å¹å¨æé
置表åå¸å±
|
| | | handleResize() {
|
| | | let windowWidth = document.body.clientWidth;
|
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500);
|
| | | this.formIndex++;
|
| | | },
|
| | | // ååç¼
|
| | | preOrSufFixShow(type, val) {
|
| | | if (this.$utilFunc.isEmpty(val) && typeof val !== "string") return;
|
| | | const isIcon = val.slice(0, 8) === "el-icon-";
|
| | | if ((type === "text" && !isIcon) || (type === "icon" && isIcon)) {
|
| | | return val;
|
| | | }
|
| | | },
|
| | | changeFun(displayExtension, prop) {
|
| | | // executeCode({displayExtension, data: this.form}).then(res => {
|
| | | // this.form[prop] = res.data.data
|
| | | // })
|
| | | },
|
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ®
|
| | | getDataList(type, dicData) {
|
| | | if (type === "truefalse") {
|
| | | return [
|
| | | {
|
| | | key: false,
|
| | | value: "å¦",
|
| | | },
|
| | | {
|
| | | key: true,
|
| | | value: "æ¯",
|
| | | },
|
| | | ];
|
| | | } else if (type === "combox") {
|
| | | return dicData;
|
| | | }
|
| | | return [];
|
| | | },
|
| | | // 弿¥è·ååå
¸æ°æ®
|
| | | geDictData(dictKeys) {
|
| | | dictKeys.forEach((dictObj) => {
|
| | | getDictionary({ code: dictObj.dictKey }).then((res) => {
|
| | | if (res.data && res.data.code === 200) {
|
| | | this.option.column = this.option.column.map((item) => {
|
| | | if (item.field === dictObj.field) {
|
| | | let dictData = (res.data.data || []).map((itm) => {
|
| | | itm.value = itm.dictValue;
|
| | | itm.key = itm.dictKey;
|
| | | return itm;
|
| | | });
|
| | | item.dicData = dictData;
|
| | | }
|
| | | return item;
|
| | | });
|
| | | }
|
| | | });
|
| | | });
|
| | | },
|
| | | // è¡¨åæ ¡éª
|
| | | validate() {
|
| | | return new Promise((resolve) => {
|
| | | this.$refs.form.validate((valid, done, msg) => {
|
| | | console.error(msg, valid)
|
| | | if (valid) {
|
| | | 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,
|
| | | handler(newV) {
|
| | | this.$emit("getFormData", newV);
|
| | | },
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | | .key_attr_icon {
|
| | | font-size: 20px !important;
|
| | | vertical-align: baseline;
|
| | | color: red;
|
| | | }
|
| | | </style>
|
| | | <!-- 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> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFormTemplate, getFormDetail } from "@/api/formTemplate"; |
| | | import { getDictionary } from "../../api/system/dict"; |
| | | import vciWebRefer from "../refer/vciWebRefer.vue"; |
| | | export default { |
| | | name: "FormTemplate", |
| | | components: { vciWebRefer }, |
| | | props: { |
| | | // é»è®¤ç¦ç¨å
ç´ |
| | | disabledProp: { |
| | | type: Array, |
| | | default: () => ["id"], |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | codeClassifyOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | // åè¡¨æ°æ®oid |
| | | rowOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | // 表åç±»åï¼add, edit, detailï¼ |
| | | type: { |
| | | type: String, |
| | | default: "add", |
| | | }, |
| | | // èªå®ä¹è¡¨åç±»å |
| | | selfColumnType: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | // èªå®ä¹è¡¨å屿§ |
| | | selfColumnConfig: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | formIndex: 0, |
| | | form: {}, |
| | | option: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "140", |
| | | column: [], |
| | | group: [], |
| | | }, |
| | | loading: true, |
| | | columnType: { |
| | | text: "input", |
| | | combox: "select", |
| | | truefalse: "switch", |
| | | number: "number", |
| | | textarea: "textarea", |
| | | datetime: "datetime", |
| | | date: "date", |
| | | refer: "refer", |
| | | }, |
| | | // åæ°æ® |
| | | testItems: [ |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "id", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ä¼ å¼ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "state", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥å£ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "oldcode", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "el-icon-search", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "ææ¬åç¼æµè¯", |
| | | text: "ååç¼åè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "materialname", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: true, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ£åæ ¡éªåè½", |
| | | tooltips: "请è¾å
¥æ°å", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "/[0-9]/", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: [ |
| | | { |
| | | attributes: {}, |
| | | key: "model_type", |
| | | value: "模å", |
| | | }, |
| | | { |
| | | attributes: {}, |
| | | key: "part_type", |
| | | value: "é¶ä»¶", |
| | | }, |
| | | ], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dataSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ç´æ¥è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: "formTemplateTest", |
| | | customClass: null, |
| | | data: [], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dictSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åå
¸è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "firstfl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ°åè¾å
¥æ¡", |
| | | tooltips: "", |
| | | type: "number", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "yyyy-MM-dd HH:mm:ss", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "datetime", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥ææ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "datetime", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "time", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "date", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "false", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xiaoshouwl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "å¼å
³", |
| | | tooltips: "", |
| | | type: "truefalse", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "ææ¯é»è®¤å¼", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "tuhao", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "é»è®¤å¼åè½", |
| | | tooltips: "æç¤º", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xinghaoguige", |
| | | hidden: false, |
| | | keyAttr: true, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "屿§å
³é®å¼", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "jiliangdw", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | tip: "ææ¯æç¤ºåè½", |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "jiliangdwname", |
| | | suffix: "", |
| | | text: "æç¤ºåè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: 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: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.handleResize(); |
| | | }, |
| | | methods: { |
| | | // åå§å |
| | | init(columnList) { |
| | | if (Array.isArray(columnList)) { |
| | | this.templateRender(columnList); |
| | | } else { |
| | | this.getFormTemplate(); |
| | | } |
| | | }, |
| | | // æ¥å£è·åè¡¨åæ°æ® |
| | | getFormTemplate() { |
| | | getFormTemplate({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }) |
| | | .then((res) => { |
| | | if (res.status === 200) { |
| | | this.templateRender(res.data.formDefineVO.items); |
| | | this.$emit("getFormTemplateEnd", res.data); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | this.loading = false; |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // 渲æè¡¨åæ¨¡æ¿ |
| | | templateRender(formItemList) { |
| | | // æ éåç»æ°æ® |
| | | let column = []; |
| | | let group = []; |
| | | let dictKeys = []; |
| | | let slotColumnList = []; |
| | | formItemList.forEach((formItem) => { |
| | | formItem = this.resetFormConfig(formItem); |
| | | if (formItem.type === "line") { |
| | | group.push({ |
| | | label: formItem.text, |
| | | prop: formItem.text, |
| | | collapse: true, |
| | | column: [], |
| | | }); |
| | | } |
| | | if ( |
| | | formItem.type === "combox" && |
| | | formItem.comboxKey && |
| | | (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0) |
| | | ) { |
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field }); |
| | | } |
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼ |
| | | if (this.disabledProp.includes(formItem.field)) { |
| | | formItem.readOnly = true; |
| | | } |
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬ |
| | | let message = "è¯·éæ©"; |
| | | let trigger = "change"; |
| | | if (formItem.type === "text") { |
| | | message = "请è¾å
¥"; |
| | | trigger = "blur"; |
| | | } |
| | | let columnItem = { |
| | | label: formItem.text, |
| | | labelslot: true, |
| | | prop: this.$utilFunc.isValuableObj(formItem.referConfig) |
| | | ? formItem.showField || formItem.field |
| | | : formItem.field, |
| | | field: formItem.field, |
| | | type: this.columnType[formItem.type], |
| | | dicData: this.getDataList(formItem.type, formItem.data), |
| | | disabled: this.type === "detail" ? true : formItem.readOnly, |
| | | prepend: this.preOrSufFixShow("text", formItem.prefix), |
| | | append: this.preOrSufFixShow("text", formItem.suffix), |
| | | prefixIcon: this.preOrSufFixShow("icon", formItem.prefix), |
| | | suffixIcon: this.preOrSufFixShow("icon", formItem.suffix), |
| | | valueFormat: formItem.dateFormate, |
| | | format: formItem.dateFormate, |
| | | keyAttr: formItem.keyAttr, |
| | | value: formItem.defaultValue, |
| | | // tip: formItem.tooltips, |
| | | // tipPlacement: "right", |
| | | placeholder: formItem.inputTip, |
| | | comboxKey: formItem.comboxKey, |
| | | display: !formItem.hidden, |
| | | maxlength: formItem.maxlength, |
| | | filterable: true, |
| | | referConfig:formItem.referConfig, |
| | | change: () => { |
| | | this.changeFun(formItem.displayExtension, formItem.prop); |
| | | }, |
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan, |
| | | rules: [ |
| | | { |
| | | required: formItem.required, |
| | | message: `请${message}${formItem.text}`, |
| | | trigger, |
| | | }, |
| | | { |
| | | // å¦ææ²¡ææ£ååå¹é
ä»»ä½å符 |
| | | pattern: formItem.verify ? formItem.verify : /[\s\S.]*/g, |
| | | message: formItem.tooltips, |
| | | trigger, |
| | | }, |
| | | ], |
| | | props: { |
| | | label: "value", |
| | | value: "key", |
| | | }, |
| | | }; |
| | | slotColumnList.push(columnItem); |
| | | if (group.length === 0) { |
| | | column.push(columnItem); |
| | | } else { |
| | | group[group.length - 1]["column"].push(columnItem); |
| | | } |
| | | }); |
| | | this.slotColumnList = slotColumnList; |
| | | this.$set(this.option, "column", column); |
| | | this.$set(this.option, "group", group); |
| | | this.formIndex++; |
| | | this.loading = false; |
| | | this.geDictData(dictKeys); |
| | | this.getFormDetail() |
| | | }, |
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½® |
| | | resetFormConfig(formItem) { |
| | | for (const configType in this.selfColumnConfig) { |
| | | if (Object.hasOwnProperty.call(this.selfColumnConfig, configType)) { |
| | | const element = this.selfColumnConfig[configType]; |
| | | if (configType === "function") { |
| | | for (const attr in element) { |
| | | if (Object.hasOwnProperty.call(element, attr)) { |
| | | const fun = element[attr]; |
| | | formItem[attr] = fun(formItem); |
| | | } |
| | | } |
| | | } else if (configType === "exchange") { |
| | | for (const newAttr in element) { |
| | | if (Object.hasOwnProperty.call(element, newAttr)) { |
| | | const oldAttr = element[newAttr]; |
| | | formItem[newAttr] = formItem[oldAttr]; |
| | | } |
| | | } |
| | | } else if (configType === "directVoluation") { |
| | | for (const attr in element) { |
| | | if (Object.hasOwnProperty.call(element, attr)) { |
| | | const value = element[attr]; |
| | | formItem[attr] = value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return formItem; |
| | | }, |
| | | // æ ¹æ®å±å¹å¨æé
置表åå¸å± |
| | | handleResize() { |
| | | let windowWidth = document.body.clientWidth; |
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500); |
| | | this.formIndex++; |
| | | }, |
| | | // ååç¼ |
| | | preOrSufFixShow(type, val) { |
| | | if (this.$utilFunc.isEmpty(val) && typeof val !== "string") return; |
| | | const isIcon = val.slice(0, 8) === "el-icon-"; |
| | | if ((type === "text" && !isIcon) || (type === "icon" && isIcon)) { |
| | | return val; |
| | | } |
| | | }, |
| | | changeFun(displayExtension, prop) { |
| | | // executeCode({displayExtension, data: this.form}).then(res => { |
| | | // this.form[prop] = res.data.data |
| | | // }) |
| | | }, |
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ® |
| | | getDataList(type, dicData) { |
| | | if (type === "truefalse") { |
| | | return [ |
| | | { |
| | | key: false, |
| | | value: "å¦", |
| | | }, |
| | | { |
| | | key: true, |
| | | value: "æ¯", |
| | | }, |
| | | ]; |
| | | } else if (type === "combox") { |
| | | return dicData; |
| | | } |
| | | return []; |
| | | }, |
| | | // 弿¥è·ååå
¸æ°æ® |
| | | geDictData(dictKeys) { |
| | | dictKeys.forEach((dictObj) => { |
| | | getDictionary({ code: dictObj.dictKey }).then((res) => { |
| | | if (res.data && res.data.code === 200) { |
| | | this.option.column = this.option.column.map((item) => { |
| | | if (item.field === dictObj.field) { |
| | | let dictData = (res.data.data || []).map((itm) => { |
| | | itm.value = itm.dictValue; |
| | | itm.key = itm.dictKey; |
| | | return itm; |
| | | }); |
| | | item.dicData = dictData; |
| | | } |
| | | return item; |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | // è¡¨åæ ¡éª |
| | | validate() { |
| | | return new Promise((resolve) => { |
| | | this.$refs.form.validate((valid, done, msg) => { |
| | | console.error(msg, valid) |
| | | if (valid) { |
| | | 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, |
| | | handler(newV) { |
| | | this.$emit("getFormData", newV); |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .key_attr_icon { |
| | | font-size: 20px !important; |
| | | vertical-align: baseline; |
| | | color: red; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | title="é«çº§æ¥è¯¢" |
| | | append-to-body |
| | | width="55vw" |
| | | style="height: 115vh; overflow: hidden" |
| | | :visible.sync="isShowDialog" |
| | | @close="recoverPage" |
| | | destroy-on-close> |
| | | <div class="search-total"> |
| | | <el-row> |
| | | <div class="grid-content"> |
| | | <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> |
| | | </el-row> |
| | | <el-row |
| | | v-for="(item,index) in initOptions.column" |
| | | :key="item.value" |
| | | class="search-content" |
| | | :span="24"> |
| | | <el-col :span="4"> |
| | | <div class="grid-content"> |
| | | <el-select placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="feildName in item.searchfeildName" |
| | | :key="feildName.value" |
| | | :label="feildName.label" |
| | | :value="feildName.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div class="grid-content"> |
| | | <el-select placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="condition in item.searchCondition" |
| | | :key="condition.value" |
| | | :label="condition.label" |
| | | :value="condition.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="13"> |
| | | <div class="grid-content"> |
| | | <div class="el-input"> |
| | | <input type="text" placeholder="请è¾å
¥" autocomplete="off" class="el-input__inner" :value="value"> |
| | | </div> |
| | | </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> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "advancedQuery", |
| | | props: { |
| | | // å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | visible: { |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | // 页颿¾ç¤ºé
ç½® |
| | | options: { |
| | | type: "Object", |
| | | default: {}, |
| | | }, |
| | | // 页颿°æ®æ¸²æé
ç½® |
| | | searchForm: { |
| | | type: "Object", |
| | | default: {}, |
| | | }, |
| | | value:{ |
| | | type: "String", |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | // å¯¹è¯æ¡æ¾ç¤ºæ§å¶ |
| | | isShowDialog: this.visible, |
| | | initOptions: {}, |
| | | searchForm: {}, |
| | | } |
| | | }, |
| | | watch: { |
| | | // çå¬ç¶ç»ä»¶ä¼ ççªå£æ¾ç¤ºéèçå¼ |
| | | visible (){ |
| | | this.isShowDialog = this.visible; |
| | | } |
| | | }, |
| | | created () { |
| | | // å°optionsé
ç½®èµå¼å°dataä¸çoptionä¸ï¼é¿å
æ·±æµ
æ·è´çé®é¢æä»¥éè¦è½¬jsonä¹ååèµå¼ |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | console.log(this.searchForm); |
| | | }, |
| | | methods: { |
| | | // ç§»é¤æç´¢æ¡ |
| | | removeInput(index){ |
| | | //console.log(this.options.column); |
| | | this.$delete(this.initOptions.column,index); |
| | | }, |
| | | // éç½®å½åçé¢çè¾å
¥æ¡ |
| | | resetInput(){ |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | }, |
| | | // æ¢å¤é¡µé¢ |
| | | recoverPage(){ |
| | | this.resetInput(); |
| | | this.$emit('update:visible', false); |
| | | }, |
| | | // æäº¤å½å页é¢çè¾å
¥ |
| | | searchSubmit(){ |
| | | console.log(11); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | .search-total { |
| | | border-radius: 4px; |
| | | min-height: 36px; |
| | | // margin-left: 35px; |
| | | margin-top: -20px; |
| | | } |
| | | .search-total > .el-row{ |
| | | margin-bottom: 10px; |
| | | &:last-child { |
| | | margin-bottom: 0; |
| | | } |
| | | } |
| | | .search-total > .el-col { |
| | | border-radius: 4px; |
| | | } |
| | | .search-total > .el-col > .grid-content { |
| | | border-radius: 4px; |
| | | min-height: 36px; |
| | | } |
| | | .search-content > .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); |
| | | } |
| | | |
| | | |
| | | </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, |
| | | 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: 'attrLength' |
| | | },{ |
| | | label: '屿§ç±»å', |
| | | search: false, |
| | | prop: 'attrType' |
| | | }], |
| | | }, |
| | | 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(crudParams.crudQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = crudParams.crudQuery[key]; |
| | | }); |
| | | } |
| | | gridAttributesByBtmId(1,-1,param).then(res=>{ |
| | | console.log(res); |
| | | }) |
| | | this.crudParams.crudData = data.data; |
| | | this.crudParams.crudLoading = false; |
| | | }, |
| | | 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> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.refertype) |
| | | if(this.refertype=='tree'){ |
| | | console.log('referConfig:') |
| | | console.log(this.options) |
| | |
| | | <template> |
| | | <avue-input-tree :props="props" :lazy="lazy" :multiple="isMuti" v-model="value" :placeholder="placeholder" :dic="treeData"></avue-input-tree> |
| | | <avue-input-tree :props="props" :lazy="lazy" :tree-load="treeLoad" :leaf-only="!options.onlyLeaf" :multiple="isMuti" v-model="value" :placeholder="placeholder" :dic="treeData"></avue-input-tree> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getTree,getLazyTree} from "@/api/refer/tree"; |
| | | import {getDeptLazyTree} from "@/api/system/dept"; |
| | | |
| | | export default { |
| | | name: "vciWebReferTree", |
| | |
| | | data() { |
| | | return { |
| | | lazy:this.options.loadType == 'node', |
| | | isMuti:true,//options.muti, |
| | | isMuti:this.options.muti, |
| | | placeholder:'è¯·éæ©å
容', |
| | | props: { |
| | | value:this.options.valueField, |
| | | label:this.options.textField |
| | | value:this.options.valueField || 'oid', |
| | | label:this.options.textField || "name" |
| | | //value:"value", |
| | | //label:"title" |
| | | }, |
| | | treeData:[{ |
| | | title:'é项1', |
| | | value:0, |
| | | children:[{ |
| | | title:'é项3', |
| | | value:2 |
| | | },{ |
| | | title:'é项4', |
| | | value:3 |
| | | }] |
| | | },{ |
| | | title:'é项2', |
| | | value:1 |
| | | }] |
| | | treeData:[], |
| | | params:{} |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | this.getParams(); |
| | | }, |
| | | mounted() { |
| | | this.getTree(); |
| | | if(!this.lazy){ |
| | | this.getTree() |
| | | } |
| | | }, |
| | | methods: { |
| | | getTree(){ |
| | | getTree({parentId:0},this.options.url).then(res => { |
| | | this.treeData=res.data |
| | | getParams:function (){ |
| | | |
| | | console.log(this.treeData) |
| | | }, |
| | | getTree(){ |
| | | getTree(this.params,this.options.url).then(res => { |
| | | this.treeData=res.data |
| | | }) |
| | | }, |
| | | getLazyTree(){ |
| | | getLazyTree({parentId:0},this.options.url).then(res => { |
| | | this.treeData=res.data.data |
| | | |
| | | console.log(this.treeData) |
| | | }) |
| | | }, |
| | | treeLoad: function (tree,treeNode, resolve) { |
| | | debugger; |
| | | treeLoad: function (treeNode, resolve) { |
| | | const parentId = (treeNode.level === 0) ? 0 : treeNode.data.id; |
| | | /*getDeptLazyTree({parentId:parentId}).then(res => { |
| | | resolve(res.data.data) |
| | | });*/ |
| | | getLazyTree({...this.params,parentId:parentId}).then(res => { |
| | | resolve(res.data.data.map(item => { |
| | | return { |
| | | ...item, |
| | | leaf: !item.hasChildren |
| | | } |
| | | })) |
| | | }); |
| | | } |
| | | |
| | | } |
| | |
| | | "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" |
| | |
| | | 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) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | |
| | | @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="advancedQuery" |
| | | :options="advancedQueryParam.options" |
| | | :visible.sync="advancedQueryParam.advancedQuerySettingBox" |
| | | v-model="value"> |
| | | </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 |
| | |
| | | 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 fixedValueOption from "@/const/code/fixedValueMgrDialog"; |
| | | import {mapGetters} from "vuex"; |
| | | import func from "@/util/func"; |
| | | import {MasterTable} from "@/api/GetItem"; |
| | | import referBtmTypeCrudDialog from '../../components/code-dialog-page/referBtmTypeCrudDialog.vue'; |
| | | |
| | | export default { |
| | | components: { referBtmTypeCrudDialog }, |
| | | data() { |
| | | return { |
| | | value:"1", |
| | | ruleForm: {}, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | 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: { |
| | | advancedQuerySettingBox: false, |
| | | searchForm: { |
| | | name: 'advanced', |
| | | }, |
| | | options: { |
| | | labelWidth: '110px', |
| | | // æ¥è¯¢å段 |
| | | searchfeildName: [ |
| | | { |
| | | label: 'ç¼å·', |
| | | value: 'id', |
| | | }, |
| | | { |
| | | label: 'åç§°', |
| | | value: 'name', |
| | | }, |
| | | { |
| | | label: 'ç¶æ', |
| | | value: 'status', |
| | | }, |
| | | ], |
| | | // æ¥è¯¢æ¡ä»¶ çäºãå
å«ãä¸çäºãä»äºâ¦â¦ |
| | | searchCondition: [ |
| | | { |
| | | label: 'çäº', |
| | | value: '=', |
| | | }, |
| | | { |
| | | label: 'å
å«', |
| | | value: 'like', |
| | | }, |
| | | { |
| | | label: '大äºçäº', |
| | | value: '>=', |
| | | }, |
| | | { |
| | | label: 'å°äºçäº', |
| | | value: '<=', |
| | | }, |
| | | { |
| | | label: 'ä¸çäº', |
| | | value: '!=', |
| | | }, |
| | | { |
| | | label: 'ä»äº', |
| | | value: 'between', |
| | | }, |
| | | ], |
| | | column: [ |
| | | { |
| | | type: 'text', |
| | | |
| | | |
| | | }, |
| | | { |
| | | |
| | | }, |
| | | ], |
| | | }, |
| | | }, |
| | | |
| | | |
| | | }; |
| | | }, |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | created() { |
| | | MasterTable({ |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | console.log(res.data.tableDefineVO.seniorQueryColumns); |
| | | }) |
| | | }, |
| | | methods: { |
| | | |
| | | /* å
¬å¼ç¼è¾æ¡å
容æ¹å,åç»ä»¶ç¼è¾å®å
¬å¼ä¹åå
容忾æ¶è°ç¨ */ |
| | | 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.$refs.advancedQuery.visible = true; |
| | | //this.advancedQueryParam.timer = new Date().getTime() |
| | | 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 { |
| | |
| | | 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://dev.vci-tech.com:37000', |
| | | //target: 'http://192.168.1.51:37000/', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
| | | // target: 'https://saber.bladex.vip/api', |
| | |
| | | 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 attrDataType; |
| | | |
| | | /** |
| | | * æ°æ®ç±»åæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private String attrDataTypeText; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ä»¥ä¸ºç©º |
| | | */ |
| | |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | |
| | | |
| | | /** |
| | | * å°æ°ç²¾åº¦ä½æ° |
| | |
| | | private boolean enumFlag; |
| | | |
| | | /** |
| | | z * å
嫿䏾çå¼ |
| | | * å
嫿䏾çå¼ |
| | | */ |
| | | private Map<String,String> enumItemMap; |
| | | |
| | |
| | | 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<AttributeVO>> gridAttributesByBtmId(BaseQueryObject baseQueryObject){ |
| | | return R.data(codeReferBtmTypeService.gridAttributesByBtmId(baseQueryObject)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | 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.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); |
| | | |
| | | /** |
| | | * è·åå½ååç±»çé¡¶å±åç±» |
| | |
| | | * @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.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.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); |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå
å«ç屿§ï¼ä¸å页 |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | Page<AttributeVO> gridAttributesByBtmId(BaseQueryObject baseQueryObject); |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | | 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.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 |
| | | private CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | |
| | | @Resource |
| | | private CodeOsbtmtypeattributeMapper codeOsbtmtypeattributeMapper; |
| | | |
| | | @Resource |
| | | private IBtmTypeClient btmTypeClient; |
| | | |
| | | /** |
| | | * 屿§æå¡ |
| | | */ |
| | | // @Autowired |
| | | // private OsAttributeServiceI attributeService; |
| | | |
| | | /** |
| | | * æ¥å¿ |
| | |
| | | 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) { |
| | | 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); |
| | | BtmTypeVO data = btmTypeClient.getDetail(btmTypeOid).getData(); |
| | | List<BtmTypeAttributeVO> unDefaultAttributes = data.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(data.getId()); |
| | | attributeVO.setBtmname(data.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<>(); |
| | | DataGrid<BtmTypeAttributeVO> dataGrid = new DataGrid<>(); |
| | | dataGrid.setData(attributeVOS); |
| | | dataGrid.setTotal(attributeVOS.size()); |
| | | return dataGrid; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 主é¢åºçæ ,å·²ç»èè°ä¸å¡ç±»åæ¥è¯¢ |
| | | * 主é¢åºçæ ,å·²èè°ä¸å¡ç±»åæ¥è¯¢feign |
| | | * |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºæ¾ç¤ºæ |
| | |
| | | if(Func.isEmpty(btmTypeVOS) || Func.isEmpty(trees)){ |
| | | return null; |
| | | } |
| | | List<Tree> treeList = trees.stream().filter(tree -> btmTypeVOS.stream(). |
| | | anyMatch(btmType -> Objects.equals(tree.getAttributes().get("id"), btmType.getId()))).collect(Collectors.toList()); |
| | | 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()); |
| | | 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.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; |
| | | |
| | | /** |
| | | * ä¸å¡ç±»å屿§æå¡ |
| | | */ |
| | | @Resource |
| | | private IAttributeClient attributeClient; |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå表 |
| | | * @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); |
| | | Page<BtmTypeVO> refPage = null; |
| | | try { |
| | | refPage = btmTypeClient.getRefPage(baseQueryObject).getData(); |
| | | }catch (Exception e){ |
| | | throw new ServiceException("ä¸å¡ç±»åfeignæ¥å£è°ç¨é误"); |
| | | } |
| | | return refPage; |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸å¡ç±»åå
å«ç屿§ï¼ä¸å页 |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public Page<AttributeVO> gridAttributesByBtmId(BaseQueryObject baseQueryObject) { |
| | | String btmTypeId = baseQueryObject.getConditionMap().containsKey("btmTypeId")?baseQueryObject.getConditionMap().get("btmTypeId"):""; |
| | | if(StringUtils.isBlank(btmTypeId)){ |
| | | return new Page<AttributeVO>(); |
| | | } |
| | | 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("*","") : ""; |
| | | // TODO æ ¹æ®ä¸å¡ç±»åidè·åå
³èç屿§ |
| | | List<BtmTypeAttributeVO> boAttrs = null; //attributeClient.get(); |
| | | if(boAttrs == null){ |
| | | boAttrs = new ArrayList<>(); |
| | | } |
| | | if(BooleanEnum.TRUE.getValue().equalsIgnoreCase(hasDefaultAttr)){ |
| | | // TODO è·åé»è®¤ç屿§ |
| | | List<BtmTypeAttributeVO> finalBoAttrs = boAttrs; |
| | | |
| | | List<BtmTypeAttributeVO> btmTypeAttributeVOS = new ArrayList<>(); //attributeClient.getDefaultAttributeVOs(); |
| | | btmTypeAttributeVOS.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()); |
| | | |
| | | return new Page<>(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | 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) |
| | |
| | | @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; |
| | | } |
| | |
| | | <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> |
| | | |
| | |
| | | */ |
| | | private final IBtmTypeService btmTypeService; |
| | | |
| | | |
| | | /** |
| | | * æ¥ç详æ
|
| | | * |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * éå¢ç ç³è¯·æ¥å£å¯å¨å¨ |
| | |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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 |
| | | 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-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-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} |
| | | 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 |
| | | 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 |