|
@@ -216,7 +216,7 @@ export default {
|
|
|
shuzihuayijiao: '',
|
|
|
va: '',
|
|
|
spanArr: [], //二维数组,用于存放单元格合并规则
|
|
|
- position: 0 //用于存储相同项的开始index
|
|
|
+ position: 0, //用于存储相同项的开始index
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
// console.log('第'+rowIndex+'行','第'+i+'列','rowspan:'+_row,'colspan:'+_col)
|
|
|
return {
|
|
|
rowspan: _row,
|
|
|
- colspan: _col
|
|
|
+ colspan: _col,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -247,7 +247,7 @@ export default {
|
|
|
handelTableData(data) {
|
|
|
let dict = {
|
|
|
总包: 0,
|
|
|
- 分包: 1
|
|
|
+ 分包: 1,
|
|
|
}
|
|
|
data = data.sort((a, b) => {
|
|
|
// 按总分包排序
|
|
@@ -267,7 +267,7 @@ export default {
|
|
|
return b.lxr.localeCompare(a.lxr)
|
|
|
}
|
|
|
})
|
|
|
- data.map(item => {
|
|
|
+ data.map((item) => {
|
|
|
console.log(item)
|
|
|
// return
|
|
|
if (item.lxr) {
|
|
@@ -288,7 +288,7 @@ export default {
|
|
|
if (idx === 1) {
|
|
|
// 初始化数组
|
|
|
this.spanArr[1] = new Array(this.constructions.length).fill(0)
|
|
|
- let totalTypeLen = this.constructions.filter(a => a.type === '总包').length
|
|
|
+ let totalTypeLen = this.constructions.filter((a) => a.type === '总包').length
|
|
|
this.spanArr[1][0] = totalTypeLen
|
|
|
this.spanArr[1] = this.spanArr[1].map((item, index) => {
|
|
|
if (index > totalTypeLen - 1) {
|
|
@@ -345,11 +345,11 @@ export default {
|
|
|
query() {
|
|
|
let params = {
|
|
|
getParams: {
|
|
|
- plazaId: this.$store.state.plazaId
|
|
|
+ plazaId: this.$store.state.plazaId || localStorage.getItem('PLAZAID'),
|
|
|
// plazaId: '1000303'//这个id有3条数据
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
- queryFact(params).then(res => {
|
|
|
+ queryFact(params).then((res) => {
|
|
|
if (res.result == 'success') {
|
|
|
this.loading = false
|
|
|
this.pic1 = []
|
|
@@ -388,7 +388,7 @@ export default {
|
|
|
},
|
|
|
formatter(str, arrv) {
|
|
|
if (str && arrv) {
|
|
|
- const Objs = arrv.find(e => e && e.project == str)
|
|
|
+ const Objs = arrv.find((e) => e && e.project == str)
|
|
|
return Objs ? Objs.basic : '--'
|
|
|
} else {
|
|
|
return ''
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
// }
|
|
|
// let previewUrl = location.href.split('=')[1] ? location.href.split('=')[1].split('&')[0] : false,
|
|
|
// plazaId = location.href.split('=')[2] ? location.href.split('=')[2] : '1000423'
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.query()
|
|
@@ -412,11 +412,11 @@ export default {
|
|
|
this.init()
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['isPreview', 'pic', 'plazaId'])
|
|
|
+ ...mapGetters(['isPreview', 'pic', 'plazaId']),
|
|
|
},
|
|
|
components: {
|
|
|
- PicModal
|
|
|
- }
|
|
|
+ PicModal,
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|