|
@@ -46,24 +46,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-<
|
|
|
|
|
-<
|
|
|
|
|
-<
|
|
|
|
|
-<
|
|
|
|
|
-<
|
|
|
|
|
-<< Updated upstream
|
|
|
|
|
- import mainButton from "@/components/main-button.vue";
|
|
|
|
|
-import proRelation from "@/views/home/component/pro_relation.vue";
|
|
|
|
|
-
|
|
|
|
|
-export default {
|
|
|
|
|
- name: "pro_left",
|
|
|
|
|
- components: {mainButton, proRelation},
|
|
|
|
|
-=== === =
|
|
|
|
|
import mainButton from '@/components/main-button.vue'
|
|
import mainButton from '@/components/main-button.vue'
|
|
|
|
|
+import proRelation from '@/views/home/component/pro_relation.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'pro_left',
|
|
name: 'pro_left',
|
|
|
- components: {mainButton},
|
|
|
|
|
|
|
+ components: { mainButton, proRelation },
|
|
|
props: {
|
|
props: {
|
|
|
data: Object,
|
|
data: Object,
|
|
|
code: {
|
|
code: {
|
|
@@ -73,7 +61,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
data: {
|
|
data: {
|
|
|
- handler(val) {
|
|
|
|
|
|
|
+ handler (val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.getDic('project-situation')
|
|
this.getDic('project-situation')
|
|
|
}
|
|
}
|
|
@@ -81,7 +69,7 @@ export default {
|
|
|
immediate: false
|
|
immediate: false
|
|
|
},
|
|
},
|
|
|
code: {
|
|
code: {
|
|
|
- handler(val) {
|
|
|
|
|
|
|
+ handler (val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.getDic(val)
|
|
this.getDic(val)
|
|
|
}
|
|
}
|
|
@@ -89,7 +77,7 @@ export default {
|
|
|
immediate: false
|
|
immediate: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
height: 0,
|
|
height: 0,
|
|
|
dicList: [],
|
|
dicList: [],
|
|
@@ -101,12 +89,12 @@ export default {
|
|
|
resultList: []
|
|
resultList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
|
|
+ created () {
|
|
|
this.getDic(this.code)
|
|
this.getDic(this.code)
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- getDic(code) {
|
|
|
|
|
- this.$api.common.dicList({code}).then(res => {
|
|
|
|
|
|
|
+ getDic (code) {
|
|
|
|
|
+ this.$api.common.dicList({ code }).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
if (code === 'project-situation') {
|
|
if (code === 'project-situation') {
|
|
|
this.dicList = res.data
|
|
this.dicList = res.data
|
|
@@ -122,10 +110,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- proInfo() {
|
|
|
|
|
|
|
+ proInfo () {
|
|
|
this.$emit('typeChange')
|
|
this.$emit('typeChange')
|
|
|
},
|
|
},
|
|
|
- record() {
|
|
|
|
|
|
|
+ record () {
|
|
|
this.$emit('typeChange1')
|
|
this.$emit('typeChange1')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|