update code

prv
haha 2023-10-10 22:54:06 +08:00
parent 30c443bdf7
commit 1dbc6f7d71
11 changed files with 28 additions and 28 deletions

View File

@ -47,7 +47,7 @@ export default {
methods: { methods: {
initMe(){ initMe(){
this.project=this.$root.project; this.project=this.$root.project||{};
this.reloadMap(); this.reloadMap();
}, },
initImages(files){ initImages(files){

View File

@ -507,9 +507,9 @@ export default {
}, },
methods: { methods: {
initMe(){ initMe(){
this.prj=this.$root.project; this.prj=this.$root.project||{};
this.deptInfo=this.$root.dept; this.deptInfo=this.$root.dept||{};
this.prjs=this.$root.projects; this.prjs=this.$root.projects||[];
let res=this.prj; let res=this.prj;
this.investmentAmountData1[0].value = "" + res.paidAmount * 1.0; this.investmentAmountData1[0].value = "" + res.paidAmount * 1.0;
this.investmentAmountData2[0].value = "" + res.onAccountAmount * 1.0; this.investmentAmountData2[0].value = "" + res.onAccountAmount * 1.0;

View File

@ -27,7 +27,7 @@ export default {
methods: { methods: {
initMe() { initMe() {
this.project = this.$root.project; this.project = this.$root.project||{};
this.reloadMap(); this.reloadMap();
}, },
reloadMap() { reloadMap() {

View File

@ -796,9 +796,9 @@ export default {
this.$refs.attDetailDlg.showDialog(data); this.$refs.attDetailDlg.showDialog(data);
}, },
initMe(){ initMe(){
this.project=this.$root.project; this.project=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.prjs=this.$root.projects; this.prjs=this.$root.projects||[];
let res=this.project; let res=this.project;
if (res.id == 0) { if (res.id == 0) {
if (this.prjs.length > 1) { if (this.prjs.length > 1) {

View File

@ -162,9 +162,9 @@ export default {
methods: { methods: {
initMe(){ initMe(){
this.project=this.$root.project; this.project=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.prjs=this.$root.projects; this.prjs=this.$root.projects||[];
this.loadData(); this.loadData();
}, },
doStateDlg(){ doStateDlg(){

View File

@ -477,9 +477,9 @@ export default {
}, },
methods: { methods: {
initMe(){ initMe(){
this.prjInfo=this.$root.project; this.prjInfo=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.projects=this.$root.projects; this.projects=this.$root.projects||[];
this.loadProjectConstructionProgress(); this.loadProjectConstructionProgress();
this.groupByProjectCategory(this.dept.id); this.groupByProjectCategory(this.dept.id);
this.deptChange(); this.deptChange();

View File

@ -349,9 +349,9 @@ export default {
}); });
}, },
initMe(){ initMe(){
this.projectInfo=this.$root.project; this.projectInfo=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.prjs=this.$root.projects; this.prjs=this.$root.projects||[];
this.doDeptChane(); this.doDeptChane();
this.checkDetection(0); this.checkDetection(0);
this.doMeasuredNav(0,'汇总') this.doMeasuredNav(0,'汇总')

View File

@ -404,9 +404,9 @@ export default {
}, },
methods: { methods: {
initMe(){ initMe(){
this.projectInfo=this.$root.project; this.projectInfo=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.projects=this.$root.projects; this.projects=this.$root.projects||[];
this.doDeptChane(); this.doDeptChane();
this.getWorkTrainList(); this.getWorkTrainList();
this.getEmergencyDrillList(); this.getEmergencyDrillList();

View File

@ -394,9 +394,9 @@ export default {
}, },
methods: { methods: {
initMe(){ initMe(){
this.projectInfo=this.$root.project; this.projectInfo=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.projectInfos=this.$root.projects; this.projectInfos=this.$root.projects||[];
this.initVideoMenu(); this.initVideoMenu();
}, },
init() { init() {

View File

@ -305,9 +305,9 @@ export default {
}, },
methods: { methods: {
initMe(){ initMe(){
this.projectInfo=this.$root.project; this.projectInfo=this.$root.project||{};
this.dept=this.$root.dept; this.dept=this.$root.dept||{};
this.projectInfos=this.$root.projects; this.projectInfos=this.$root.projects||[];
this.initVideoMenu(); this.initVideoMenu();
}, },
init(){ init(){

View File

@ -23,8 +23,8 @@ module.exports = defineConfig({
} }
}, },
'/jhapi':{ '/jhapi':{
//target: `http://62.234.3.186/jhapi/`, target: `http://62.234.3.186/jhapi/`,
target: `http://127.0.0.1:8090/jhapi/`, //target: `http://127.0.0.1:8090/jhapi/`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/jhapi':'/' '^/jhapi':'/'