-
-
-
-
@@ -404,9 +398,26 @@ export default {
this.getWorkFileList();
}
}));
+ if(this.$root.hasInitHeader){
+ this.initMe();
+ }
},
methods: {
+ initMe(){
+ this.projectInfo=this.$root.project;
+ this.dept=this.$root.dept;
+ this.projects=this.$root.projects;
+ this.doDeptChane();
+ this.getWorkTrainList();
+ this.getEmergencyDrillList();
+ this.getProjectSpecialView();
+ this.getDeptWorksList();
+ this.getProjectInsuranceList();
+ if(this.fileNav==3){
+ this.getWorkFileList();
+ }
+ },
doInsuranceRowClick(row){
this.$refs.insDlg.showDialog(this.projects, this.projectInfo,row)
},
diff --git a/src/pages/projectVideo.vue b/src/pages/projectVideo.vue
index 7e90212..0f4650b 100644
--- a/src/pages/projectVideo.vue
+++ b/src/pages/projectVideo.vue
@@ -278,6 +278,7 @@ export default {
projectInfo:null,
dept:null,
videoPassageList:[],
+ projectInfos:[],
}
},
@@ -287,13 +288,16 @@ export default {
this.initVideoMenu();
}));
this.$bus.$on("loadProjects", debounce(prjs => {
- this.projectInfo = prjs;
+ this.projectInfos = prjs;
//this.initVideoMenu();
}))
this.$bus.$on("deptChange", debounce(dept => {
this.dept = dept;
//this.initVideoMenu();
}));
+ if(this.$root.hasInitHeader){
+ this.initMe();
+ }
},
created() {
this.init()
@@ -396,6 +400,12 @@ export default {
}
},
methods: {
+ initMe(){
+ this.projectInfo=this.$root.project;
+ this.dept=this.$root.dept;
+ this.projectInfos=this.$root.projects;
+ this.initVideoMenu();
+ },
init() {
//this.initVideoMenu();
@@ -487,8 +497,7 @@ export default {
}
var token = this.videoListData[0].videoList[0].token
-
- console.log(token)
+
for (let i = 0; i < data.length; i++) {
if (token == data[i].token) {
data[i].type = true
@@ -605,7 +614,6 @@ export default {
init_video_list = 2
}
- console.log(videoListData)
this.videoReturnData = videoListData[init_video_list].videoList[0]
this.token = videoListData[init_video_list].videoList[0].token
diff --git a/src/router/index.js b/src/router/index.js
index 1aa8215..99fcd34 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@ Vue.use(VueRouter)
const routes = [
{
path: '/',
- name: 'index',
+ name: 'index',
component: () => import(/* webpackChunkName: "index" */ '../pages/index.vue')
},
{
@@ -36,6 +36,11 @@ const routes = [
path: '/video',
name: 'video',
component: () => import(/* webpackChunkName: "video" */ '../pages/projectVideo.vue')
+ },
+ {
+ path: '/engin',
+ name: 'engin',
+ component: () => import(/* webpackChunkName: "video" */ '../pages/projectEngin.vue')
}
]
const router = new VueRouter({
diff --git a/vue.config.js b/vue.config.js
index 22f92e0..9c06642 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -39,7 +39,7 @@ module.exports = defineConfig({
}
}
},
- pages:{
+ /* pages:{
index:{
entry:'src/pages/index.js',
template:'public/index.html',
@@ -82,7 +82,7 @@ module.exports = defineConfig({
title:'工程管理',
filename:'projectEngin.html'
}
-},
+},*/
configureWebpack:{
externals:{
'vue':"Vue",