|
|
@@ -51,7 +51,7 @@ import proRelation from '@/views/home/component/pro_relation.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'pro_left',
|
|
|
- components: { proRelation },
|
|
|
+ components: {proRelation},
|
|
|
props: {
|
|
|
data: Object,
|
|
|
code: {
|
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
data: {
|
|
|
- handler (val) {
|
|
|
+ handler(val) {
|
|
|
if (val) {
|
|
|
this.getDic('project-situation')
|
|
|
}
|
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
immediate: false
|
|
|
},
|
|
|
code: {
|
|
|
- handler (val) {
|
|
|
+ handler(val) {
|
|
|
if (val) {
|
|
|
this.getDic(val)
|
|
|
}
|
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
immediate: false
|
|
|
}
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
height: 0,
|
|
|
dicList: [],
|
|
|
@@ -89,12 +89,12 @@ export default {
|
|
|
resultList: []
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.getDic(this.code)
|
|
|
this.onScroll()
|
|
|
},
|
|
|
methods: {
|
|
|
- onScroll (event) {
|
|
|
+ onScroll(event) {
|
|
|
this.$bus.on('scorll', (e) => {
|
|
|
const scrollTop = e.target.scrollTop
|
|
|
const index = this.scorllTopList.findIndex(e => scrollTop >= e.start && scrollTop < e.end)
|
|
|
@@ -104,8 +104,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getDic (code) {
|
|
|
- this.$api.common.dicList({ code }).then(res => {
|
|
|
+ getDic(code) {
|
|
|
+ this.$api.common.dicList({code}).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
if (code === 'project-situation') {
|
|
|
this.dicList = res.data
|
|
|
@@ -132,14 +132,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- proInfo () {
|
|
|
+ proInfo() {
|
|
|
this.$emit('typeChange')
|
|
|
},
|
|
|
- record () {
|
|
|
+ record() {
|
|
|
this.$emit('typeChange1')
|
|
|
},
|
|
|
- result (item) {
|
|
|
- const data = { id: this.data.id, projectStage: item }
|
|
|
+ result(item) {
|
|
|
+ const data = {id: this.data.id, projectStage: item}
|
|
|
this.$api.project.proUpdate(data).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- change (index) {
|
|
|
+ change(index) {
|
|
|
this.active = index
|
|
|
this.$emit('change', index)
|
|
|
}
|
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
|
|
|
.box {
|
|
|
border-bottom: 1px dashed #AFAFAF;
|
|
|
- width: 150px;
|
|
|
+ width: 180px;
|
|
|
padding-top: 32px;
|
|
|
padding-bottom: 32px;
|
|
|
}
|
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
.box-s {
|
|
|
background-image: url("../../../assets/svg/box.svg");
|
|
|
background-size: 100% 100%;
|
|
|
- width: 150px;
|
|
|
+ width: 180px;
|
|
|
color: white;
|
|
|
padding-top: 32px;
|
|
|
padding-bottom: 32px
|