From 8b8b1c9ef32b0214332b439f9b5feb96de393c51 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 24 八月 2023 17:24:40 +0800 Subject: [PATCH] help tianyuan upload source --- Source/UBCS/pom.xml | 58 ++++++++++++++ Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 28 ++++++- Source/UBCS/ubcs-service/ubcs-code/pom.xml | 57 ++++++++++---- Source/UBCS-WEB/src/api/GetItem.js | 10 ++ Source/UBCS-WEB/vue.config.js | 5 Source/UBCS/ubcs-service/ubcs-omd/pom.xml | 56 +++++++++++--- 6 files changed, 178 insertions(+), 36 deletions(-) diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js index 190225d..2ba7b96 100644 --- a/Source/UBCS-WEB/src/api/GetItem.js +++ b/Source/UBCS-WEB/src/api/GetItem.js @@ -100,3 +100,13 @@ } }) } +// 鏇存柊闆嗗洟鐮佸�兼暟鎹� +export function receiveEditApply(params) { + return request({ + url: 'api/ubcs-applyjtcodeservice/DockingPreApplyCode/receiveEditApply', + method: 'post', + params: { + ...params + } + }) +} diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index dc32f16..9355248 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -116,7 +116,7 @@ </basic-container> </template> <script> -import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode} from "@/api/GetItem"; +import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode,receiveEditApply} from "@/api/GetItem"; import {processTS, changeStatus} from "@/api/template/setPersonnel" import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; import integrationTransfer from "@/views/integration/integrationTransfer"; @@ -415,7 +415,7 @@ //鐢宠闆嗗洟鐮佹暟鎹� if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() //鏇存柊闆嗗洟鐮佹暟鎹� - // if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() + if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply() // 鐩镐技椤规煡璇� // if(uniqueFlag === 'CODEEDIT') return this.similarHandler() }); @@ -429,8 +429,28 @@ // return { oids: item.oid, btmName: item.btmname }; // }); const oids = this.selectRow.map(item => item.oid).join(','); - applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res => { - console.log(res); + applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res=>{ + if(res.data.code==200){ + this.$message.success('鐢宠鎴愬姛') + } + this.onLoad() + }) + } + }, + //鏇存柊闆嗗洟鐮佹暟鎹� + receiveEditApply(){ + if(this.selectRow.length <= 0){ + this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹ā鏉匡紒') + }else { + // const requestData = this.selectRow.forEach(item => { + // return { oids: item.oid, btmName: item.btmname }; + // }); + const oids = this.selectRow.map(item => item.oid).join(','); + receiveEditApply({ oids, btmName: this.selectRow[0].btmname }).then(res => { + if(res.data.code==200){ + this.$message.success('鏇存柊鎴愬姛') + this.onLoad() + } }); } }, diff --git a/Source/UBCS-WEB/vue.config.js b/Source/UBCS-WEB/vue.config.js index cf90d26..6b06ed5 100644 --- a/Source/UBCS-WEB/vue.config.js +++ b/Source/UBCS-WEB/vue.config.js @@ -28,10 +28,11 @@ //鏈湴鏈嶅姟鎺ュ彛鍦板潃 // target: 'http://127.0.0.1', // target: 'http://192.168.1.51:37000', - // target: 'http://dev.vci-tech.com:37000', + target: 'http://dev.vci-tech.com:37000', // target: 'http://192.168.1.16:37000', // target: 'http://192.168.0.105:37000', - target: 'http://192.168.43.251:37000', + //xiejun + // target: 'http://192.168.43.251:37000', // target: 'http://192.168.0.103:37000', // target: 'http://192.168.1.63:37000', // target: 'http://192.168.3.7:37000', diff --git a/Source/UBCS/pom.xml b/Source/UBCS/pom.xml index 9a71e3e..1634b83 100644 --- a/Source/UBCS/pom.xml +++ b/Source/UBCS/pom.xml @@ -10,7 +10,6 @@ <properties> <bladex.project.version>3.0.1.RELEASE</bladex.project.version> - <java.version>1.8</java.version> <maven.plugin.version>3.8.0</maven.plugin.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> @@ -41,7 +40,7 @@ <module>ubcs-plugin-api</module> <module>ubcs-service</module> <module>ubcs-service-api</module> - <module>ubcs-codeApply</module> +<!-- <module>ubcs-codeApply</module>--> </modules> <dependencyManagement> @@ -204,6 +203,61 @@ </compilerArgs> </configuration> </plugin> + + <!-- 鎵撳寘鏃跺墧闄ar锛屾斁缃湪lib褰撲腑 --> + <!-- <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <version>${spring.boot.version}</version> <!– 濡傛灉 spring.boot.version 鐗堟湰淇敼锛屽垯杩欓噷涔熻璺熺潃淇敼 –> + <configuration> + <fork>true</fork> + <!–瑙e喅windows鍛戒护琛岀獥鍙d腑鏂囦贡鐮�–> + <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments> + <!– 鎷嗗紑渚濊禆–> + <mainClass>cn.iocoder.qingning.server.QingningServerApplication</mainClass> + <layout>ZIP</layout> + <includes> + <include> + <!– 鎺掗櫎鎵�鏈塉ar –> + <groupId>nothing</groupId> + <artifactId>nothing</artifactId> + </include> + </includes> + </configuration> + <executions> + <execution> + <goals> + <goal>repackage</goal> <!– 灏嗗紩鍏ョ殑 jar 鎵撳叆鍏朵腑 –> + </goals> + </execution> + </executions> + </plugin> + <!–姝ゆ彃浠剁敤浜庡皢渚濊禆鍖呮娊鍑�–> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>../target/lib</outputDirectory> + <excludeTransitive>false</excludeTransitive> + <stripVersion>false</stripVersion> + <includeScope>runtime</includeScope> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin>--> </plugins> </build> diff --git a/Source/UBCS/ubcs-service/ubcs-code/pom.xml b/Source/UBCS/ubcs-service/ubcs-code/pom.xml index ab5623a..7431369 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/pom.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/pom.xml @@ -164,24 +164,49 @@ <build> <plugins> - <plugin> - <groupId>com.spotify</groupId> - <artifactId>dockerfile-maven-plugin</artifactId> - <configuration> - <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> + <!--璁剧疆搴旂敤 Main 鍙傛暟鍚姩渚濊禆鏌ユ壘鐨勫湴鍧�鎸囧悜澶栭儴 lib 鏂囦欢澶�--> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <!-- 椤圭洰鎵�渚濊禆鐨刯ar浣嶄簬鍚屼竴绾х殑lib鐩綍涓�--> + <classpathPrefix>lib/</classpathPrefix> + </manifest> + </archive> + </configuration> + </plugin> + <!--璁剧疆 SpringBoot 鎵撳寘鎻掍欢涓嶅寘鍚换浣� Jar 渚濊禆鍖�--> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <configuration> + <includes> + <include> + <groupId>nothing</groupId> + <artifactId>nothing</artifactId> + </include> + </includes> + </configuration> + </plugin> + <!--璁剧疆灏� lib 鎷疯礉鍒板簲鐢� Jar 澶栭潰--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>prepare-package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/lib</outputDirectory> + </configuration> + </execution> + </executions> </plugin> </plugins> </build> diff --git a/Source/UBCS/ubcs-service/ubcs-omd/pom.xml b/Source/UBCS/ubcs-service/ubcs-omd/pom.xml index 43686d4..151429a 100644 --- a/Source/UBCS/ubcs-service/ubcs-omd/pom.xml +++ b/Source/UBCS/ubcs-service/ubcs-omd/pom.xml @@ -85,25 +85,57 @@ <build> <plugins> +<!-- <plugin>--> +<!-- <groupId>com.spotify</groupId>--> +<!-- <artifactId>dockerfile-maven-plugin</artifactId>--> +<!-- <configuration>--> +<!-- <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>--> <plugin> - <groupId>com.spotify</groupId> - <artifactId>dockerfile-maven-plugin</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.6</version> <configuration> - <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> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathPrefix>lib/</classpathPrefix> + <mainClass>com.vci.ubcs.omd.OmdApplication</mainClass> + </manifest> + </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.10</version> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/lib</outputDirectory> + </configuration> + </execution> + </executions> </plugin> + </plugins> </build> -- Gitblit v1.9.3