中建四局大屏跳转参数问题修复
This commit is contained in:
parent
ec1a22d1b1
commit
4079526950
@ -542,6 +542,7 @@ export default {
|
|||||||
},
|
},
|
||||||
parseLoginData(data) {
|
parseLoginData(data) {
|
||||||
console.log("登录进来的data", data);
|
console.log("登录进来的data", data);
|
||||||
|
localStorage.setItem('sn',data.sn)
|
||||||
window._paq.push(["trackEvent", "点击", "登录", "登录账号"]);
|
window._paq.push(["trackEvent", "点击", "登录", "登录账号"]);
|
||||||
this.$message.success(this.$t("message.login.login_success_msg")); //登录成功!
|
this.$message.success(this.$t("message.login.login_success_msg")); //登录成功!
|
||||||
this.$http.defaults.headers.common["Authorization"] =
|
this.$http.defaults.headers.common["Authorization"] =
|
||||||
|
|||||||
@ -33,6 +33,7 @@ export default {
|
|||||||
components: { LeftThree },
|
components: { LeftThree },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
// 信息窗体开关
|
// 信息窗体开关
|
||||||
open: true,
|
open: true,
|
||||||
// 信息窗体表单
|
// 信息窗体表单
|
||||||
@ -40,7 +41,7 @@ export default {
|
|||||||
projectName: { label: '项目名称:', value: '' },
|
projectName: { label: '项目名称:', value: '' },
|
||||||
bulidStatus: { label: '项目状态:', value: '' },
|
bulidStatus: { label: '项目状态:', value: '' },
|
||||||
constructionStage: { label: '形象进度:', value: '' },
|
constructionStage: { label: '形象进度:', value: '' },
|
||||||
households:{label: '项目造价:', value: ''},
|
households:{label: '户数:', value: ''},
|
||||||
// val2:{label: '已完成投资:', value: ''},
|
// val2:{label: '已完成投资:', value: ''},
|
||||||
projectAcreage: { label: '工程面积:', value: '', unit: '' },
|
projectAcreage: { label: '工程面积:', value: '', unit: '' },
|
||||||
constructionUnit: { label: '建设单位:', value: ''},
|
constructionUnit: { label: '建设单位:', value: ''},
|
||||||
@ -75,12 +76,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询数据 */
|
/** 查询数据 */
|
||||||
getList() {
|
getList() {
|
||||||
listProjectInfo({ projectSn: this.$store.state.projectSn }).then(res => {
|
listProjectInfo({ projectSn: this.projectSn }).then(res => {
|
||||||
console.log('项目信息: ', res)
|
console.log('项目信息: ', res)
|
||||||
const informationForm = this.informationForm
|
const informationForm = this.informationForm
|
||||||
Object.keys(informationForm).forEach(key => {
|
Object.keys(informationForm).forEach(key => {
|
||||||
|
|||||||
@ -17,16 +17,18 @@ export default {
|
|||||||
components: { Card },
|
components: { Card },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
towerNumber:"",
|
towerNumber:"",
|
||||||
lifterNumber:"",
|
lifterNumber:"",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData(){
|
getData(){
|
||||||
getDevNumberApi({ projectSn: this.$store.state.projectSn }).then((res)=>{
|
getDevNumberApi({ projectSn: this.projectSn }).then((res)=>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.towerNumber = res.result.towerNumber
|
this.towerNumber = res.result.towerNumber
|
||||||
this.lifterNumber = res.result.lifterNumber
|
this.lifterNumber = res.result.lifterNumber
|
||||||
|
|||||||
@ -41,11 +41,14 @@ export default {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
created() {
|
created() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
computed: {
|
// computed: {
|
||||||
...mapState(['projectSn']),
|
// ...mapState(['projectSn']),
|
||||||
},
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
|||||||
@ -45,6 +45,7 @@ export default {
|
|||||||
components: { Card },
|
components: { Card },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
// 左边的列表
|
// 左边的列表
|
||||||
leftList: {
|
leftList: {
|
||||||
a: { label: 'PM2.5', value: 68, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm25.png') },
|
a: { label: 'PM2.5', value: 68, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm25.png') },
|
||||||
@ -74,13 +75,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
this.selectDustNoisePageList()
|
this.selectDustNoisePageList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectDustNoisePageList(){
|
selectDustNoisePageList(){
|
||||||
let data = {
|
let data = {
|
||||||
// deviceId: this.devSn,
|
// deviceId: this.devSn,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.projectSn,
|
||||||
}
|
}
|
||||||
getDustNoiseDataApi(data).then(res=>{
|
getDustNoiseDataApi(data).then(res=>{
|
||||||
console.log('环境监测',res)
|
console.log('环境监测',res)
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
projectSn:"",
|
||||||
projectData: {
|
projectData: {
|
||||||
constructionStage: 10,
|
constructionStage: 10,
|
||||||
},
|
},
|
||||||
@ -32,6 +33,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
console.log('this.list',this.list)
|
console.log('this.list',this.list)
|
||||||
this.getDataDateils()
|
this.getDataDateils()
|
||||||
},
|
},
|
||||||
@ -40,7 +42,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getDataDateils() {
|
getDataDateils() {
|
||||||
let data = { projectSn: this.$store.state.projectSn }
|
let data = { projectSn: this.projectSn }
|
||||||
getProjectDetail(data).then((res) => {
|
getProjectDetail(data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log('查询进度',res)
|
console.log('查询进度',res)
|
||||||
|
|||||||
@ -46,6 +46,7 @@ export default {
|
|||||||
components: { Card },
|
components: { Card },
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
projectSn:"",
|
||||||
statisticsCount: {
|
statisticsCount: {
|
||||||
currentMonthEducationPerson: 0,
|
currentMonthEducationPerson: 0,
|
||||||
projectcount: {
|
projectcount: {
|
||||||
@ -120,13 +121,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
this.getWorkerStatisticsCount()
|
this.getWorkerStatisticsCount()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
//统计企业下项目各人员统计
|
//统计企业下项目各人员统计
|
||||||
getWorkerStatisticsCount() {
|
getWorkerStatisticsCount() {
|
||||||
console.log('执行');
|
console.log('执行');
|
||||||
getWorkerStatisticsCountApi({ sn: this.$store.state.userInfo.sn }).then((res) => {
|
getWorkerStatisticsCountApi({ sn: this.projectSn }).then((res) => {
|
||||||
console.log('老区啊拉垃圾啊哈哈',res);
|
console.log('老区啊拉垃圾啊哈哈',res);
|
||||||
this.statisticsCount = res.result;
|
this.statisticsCount = res.result;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -76,6 +76,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -102,7 +103,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
windowDisplayApi({
|
windowDisplayApi({
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.projectSn,
|
||||||
typeId: this.typeId,
|
typeId: this.typeId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
|
|||||||
@ -77,10 +77,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['projectSn']),
|
// ...mapState(['projectSn']),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
|
|||||||
@ -67,6 +67,7 @@ export default {
|
|||||||
components: { Card, JNestedRingChart },
|
components: { Card, JNestedRingChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
tab : 2,
|
tab : 2,
|
||||||
show:true,
|
show:true,
|
||||||
recordStatus: 2, // 整改状态 2已整改(已闭合) 5待整改
|
recordStatus: 2, // 整改状态 2已整改(已闭合) 5待整改
|
||||||
@ -117,10 +118,12 @@ export default {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {},
|
created() {
|
||||||
computed: {
|
this.projectSn=localStorage.getItem('sn')
|
||||||
...mapState(["projectSn"]),
|
|
||||||
},
|
},
|
||||||
|
// computed: {
|
||||||
|
// ...mapState(["projectSn"]),
|
||||||
|
// },
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getQualityProblem();
|
this.getQualityProblem();
|
||||||
this.getQuality();
|
this.getQuality();
|
||||||
|
|||||||
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Card from "../components/Card.vue";
|
import Card from "../components/Card.vue";
|
||||||
import { listProjectInfo } from '@/assets/js/api/zhongjianFourth'
|
|
||||||
export default {
|
export default {
|
||||||
components: { Card },
|
components: { Card },
|
||||||
data(){
|
data(){
|
||||||
@ -50,12 +49,6 @@ export default {
|
|||||||
// this.getData();
|
// this.getData();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
// getData(){
|
|
||||||
// listProjectInfo({projectSn: this.$store.state.projectSn}).then((res)=>{
|
|
||||||
// console.log('========',res)
|
|
||||||
// this.list = res.result
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -122,6 +122,7 @@ export default {
|
|||||||
components: { vhead },
|
components: { vhead },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
baseURL:"",
|
baseURL:"",
|
||||||
projectNumber:'',
|
projectNumber:'',
|
||||||
projectName: "",
|
projectName: "",
|
||||||
@ -132,6 +133,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
|
this.projectSn = localStorage.getItem('sn')
|
||||||
this.baseURL = this.$http.defaults.baseURL
|
this.baseURL = this.$http.defaults.baseURL
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -151,7 +153,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getSafeyHatSession(){
|
getSafeyHatSession(){
|
||||||
let data = {}
|
let data = {}
|
||||||
data.projectSn = this.$store.state.projectSn
|
data.projectSn = this.projectSn
|
||||||
getSafeyHatSessionApi(data).then(res=>{
|
getSafeyHatSessionApi(data).then(res=>{
|
||||||
console.log('安全帽跳转',res)
|
console.log('安全帽跳转',res)
|
||||||
// {
|
// {
|
||||||
@ -177,7 +179,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getProjectNumber(){
|
getProjectNumber(){
|
||||||
let data = {
|
let data = {
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.projectSn,
|
||||||
};
|
};
|
||||||
getProjectInfoBySn(data).then((res)=>{
|
getProjectInfoBySn(data).then((res)=>{
|
||||||
console.log('------------',res.result.projectNumber)
|
console.log('------------',res.result.projectNumber)
|
||||||
@ -286,7 +288,7 @@ export default {
|
|||||||
//获取详情
|
//获取详情
|
||||||
getDataDateils() {
|
getDataDateils() {
|
||||||
let data = {
|
let data = {
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.projectSn,
|
||||||
};
|
};
|
||||||
getProjectDetail(data).then((res) => {
|
getProjectDetail(data).then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
|
|||||||
@ -15,6 +15,7 @@ export default {
|
|||||||
components: { Card, Process },
|
components: { Card, Process },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
projectSn:"",
|
||||||
list: [
|
list: [
|
||||||
{ endTime: '2022-01-01', subitemProjectName: '基础工程', state: true ,},
|
{ endTime: '2022-01-01', subitemProjectName: '基础工程', state: true ,},
|
||||||
// { endTime: '2022-02-14', subitemProjectName: '主题结构施工', state: true, },
|
// { endTime: '2022-02-14', subitemProjectName: '主题结构施工', state: true, },
|
||||||
@ -25,6 +26,9 @@ export default {
|
|||||||
index: 0
|
index: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created(){
|
||||||
|
this.projectSn=localStorage.getItem('sn')
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const progress = this.$refs.Process;
|
const progress = this.$refs.Process;
|
||||||
progress.scrollLeft = 48;
|
progress.scrollLeft = 48;
|
||||||
@ -32,7 +36,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getData(){
|
getData(){
|
||||||
listProgressOfTheTask({ projectSn: this.$store.state.projectSn ,isNoStart: false}).then(res => {
|
listProgressOfTheTask({ projectSn: this.projectSn ,isNoStart: false}).then(res => {
|
||||||
// state 0未开始, 1进行中, 2已完成
|
// state 0未开始, 1进行中, 2已完成
|
||||||
res.result.forEach((item)=>{
|
res.result.forEach((item)=>{
|
||||||
if(item.state == 2){
|
if(item.state == 2){
|
||||||
|
|||||||
@ -167,6 +167,8 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
@change="time1"
|
@change="time1"
|
||||||
v-model="workerInfo.startDate"
|
v-model="workerInfo.startDate"
|
||||||
|
:picker-options="dateAfter"
|
||||||
|
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="计划开始日期"
|
placeholder="计划开始日期"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
@ -181,6 +183,7 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
@change="time2"
|
@change="time2"
|
||||||
v-model="workerInfo.finishDate"
|
v-model="workerInfo.finishDate"
|
||||||
|
:picker-options="dateBefore"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="计划完成时间"
|
placeholder="计划完成时间"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
@ -386,8 +389,53 @@ export default {
|
|||||||
},
|
},
|
||||||
dialogImageUrl: "",
|
dialogImageUrl: "",
|
||||||
showBigImg: false,
|
showBigImg: false,
|
||||||
|
times:'',
|
||||||
|
// 时间限制
|
||||||
|
pickerOptions:{ // 对象
|
||||||
|
disabledDate: (time) => {
|
||||||
|
let nowData = this.times
|
||||||
|
nowData = new Date(nowData.setDate(nowData.getDate() - 1))
|
||||||
|
return time > nowData
|
||||||
|
// return time.getTime() < Date.now()- 1 * 24 * 3600 * 1000;
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
dateAfter() {
|
||||||
|
// 动态起始时间
|
||||||
|
const startTimestamp = Date.now() * 1 - 24 * 60 * 60 * 1000;
|
||||||
|
const endTimestamp =
|
||||||
|
Date.parse(this.workerInfo.finishDate) * 1 - 24 * 60 * 60 * 1000;
|
||||||
|
return {
|
||||||
|
disabledDate(time) {
|
||||||
|
const timestamp = time.getTime();
|
||||||
|
if (endTimestamp) {
|
||||||
|
if (timestamp >= startTimestamp && timestamp <= endTimestamp) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return timestamp <= startTimestamp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
dateBefore() {
|
||||||
|
// 动态起始时间
|
||||||
|
const startTimestamp = Date.parse(this.workerInfo.startDate) * 1;
|
||||||
|
return {
|
||||||
|
disabledDate(time) {
|
||||||
|
const timestamp = time.getTime();
|
||||||
|
if (timestamp >= startTimestamp) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.projectSn = this.$store.state.projectSn;
|
this.projectSn = this.$store.state.projectSn;
|
||||||
this.createUserId = this.$store.state.userInfo.userId;
|
this.createUserId = this.$store.state.userInfo.userId;
|
||||||
@ -398,6 +446,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
time1(val){
|
time1(val){
|
||||||
console.log('开始时间',val)
|
console.log('开始时间',val)
|
||||||
|
this.times = val
|
||||||
},
|
},
|
||||||
time2(val){
|
time2(val){
|
||||||
console.log('结束时间',val)
|
console.log('结束时间',val)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user