Browse Source

commit

master
hehongxing 3 years ago
parent
commit
fc649e688c
  1. 18
      04.系统编码/Frontend/.idea/workspace.xml
  2. 6
      04.系统编码/Frontend/src/App.vue
  3. 4
      04.系统编码/Frontend/src/components/Login.vue
  4. 2
      04.系统编码/Frontend/src/uilts/axios.ts
  5. 5
      04.系统编码/Frontend/src/uilts/storage.ts

18
04.系统编码/Frontend/.idea/workspace.xml

@ -2,11 +2,19 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4b7d7b72-f5b8-41e4-85d5-6267bdc12fc5" name="默认变更列表" comment=""> <list default="true" id="4b7d7b72-f5b8-41e4-85d5-6267bdc12fc5" name="默认变更列表" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/handler/GlobalDefaultExceptionHandler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/Shared/Header.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/Shared/Header.vue" afterDir="false" /> <change afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/model/vo/ImageVO.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/router/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/router/index.ts" afterDir="false" /> <change afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/util/FileUtil.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/config/CorsConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/config/CorsConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/config/WebMvcConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/config/WebMvcConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/controller/ImageController.java" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/controller/ImageController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/service/ImageService.java" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/main/java/com/userinformation/backend/service/ImageService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/main/resources/application.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Backend/src/test/java/com/userinformation/backend/UserInformationApplicationTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/../Backend/src/test/java/com/userinformation/backend/UserInformationApplicationTests.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/MicrowaveRadiation.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/MicrowaveRadiation.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/uilts/Config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/uilts/Config.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/uilts/axios.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/uilts/axios.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/uilts/axios.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/uilts/axios.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/uilts/storage.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/uilts/storage.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -87,6 +95,8 @@
<workItem from="1638496246090" duration="1527000" /> <workItem from="1638496246090" duration="1527000" />
<workItem from="1638497917929" duration="12367000" /> <workItem from="1638497917929" duration="12367000" />
<workItem from="1638515445129" duration="7072000" /> <workItem from="1638515445129" duration="7072000" />
<workItem from="1638524838907" duration="8000" />
<workItem from="1638752962691" duration="4924000" />
</task> </task>
<task id="LOCAL-00001" summary="2021 12 01"> <task id="LOCAL-00001" summary="2021 12 01">
<created>1638357539757</created> <created>1638357539757</created>

6
04.系统编码/Frontend/src/App.vue

@ -7,6 +7,7 @@
import { onMounted, reactive, ref, toRefs, watch } from 'vue'; import { onMounted, reactive, ref, toRefs, watch } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import Header from './components/Shared/Header.vue'; import Header from './components/Shared/Header.vue';
import {clear} from "./uilts/storage";
export default { export default {
name: 'App', name: 'App',
@ -18,6 +19,9 @@
onMounted(() => { onMounted(() => {
getRem(1920, 100); getRem(1920, 100);
window.onresize = () => getRem(1920, 100); window.onresize = () => getRem(1920, 100);
window.onbeforeunload = () => {
clear()
}
}) })
watch(() => router.currentRoute.value.path, watch(() => router.currentRoute.value.path,
@ -32,6 +36,8 @@
html.style.fontSize = oWidth / pwidth*prem + "px"; html.style.fontSize = oWidth / pwidth*prem + "px";
} }
return {showHeader} return {showHeader}
} }
} }

4
04.系统编码/Frontend/src/components/Login.vue

@ -23,7 +23,7 @@ import {reactive, toRefs} from "vue";
import { post } from "./../uilts/axios"; import { post } from "./../uilts/axios";
import { useRouter } from "vue-router" import { useRouter } from "vue-router"
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { setStaff } from "../uilts/storage"; import { setStaff,guid } from "../uilts/storage";
export default { export default {
name: 'Login', name: 'Login',
@ -62,7 +62,7 @@ export default {
type: 'error' type: 'error'
}); });
}else { }else {
setStaff('login_staff', res.data) setStaff('login_staff', guid())
router.push("/MicrowaveRadiation") router.push("/MicrowaveRadiation")
} }
}) })

2
04.系统编码/Frontend/src/uilts/axios.ts

@ -6,8 +6,6 @@ import { ElLoading } from 'element-plus'
let loading = null; let loading = null;
const service = axios.create({ const service = axios.create({
baseURL:"http://112.124.40.88:8002", baseURL:"http://112.124.40.88:8002",
// baseURL: "http://localhost:8002",
// baseURL: "",
timeout: 500000 timeout: 500000
}) })

5
04.系统编码/Frontend/src/uilts/storage.ts

@ -1,13 +1,14 @@
function guid() { export function guid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, var r = Math.random() * 16 | 0,
v = c == 'x' ? r : (r & 0x3 | 0x8); v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16); return v.toString(16);
}); });
} }
export function setStaff(key: any, staff: any) { export function setStaff(key: any, staff: any) {
localStorage.setItem(key, guid()); localStorage.setItem(key, JSON.stringify(staff));
} }
export function getStaff(key: any) { export function getStaff(key: any) {

Loading…
Cancel
Save