|
|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<wt-card title="前期情况" class="mt-10">
|
|
|
- {{ industry }}
|
|
|
<div class="flex flex-justify-start full-width mt-15">
|
|
|
<avue-crud
|
|
|
:option="option"
|
|
|
@@ -66,6 +65,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ industry: {
|
|
|
+ handler(val) {
|
|
|
+ if (val.value === 'agriculture-forestry-water') {
|
|
|
+ this.getDic('agriculture-forestry-water')
|
|
|
+ } else {
|
|
|
+ this.getDic('traffic')
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
@@ -114,17 +122,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getDic('traffic')
|
|
|
+ // this.getDic(this.industry.value)
|
|
|
},
|
|
|
methods: {
|
|
|
getDic(code) {
|
|
|
this.$api.common.dicList({ code }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- if (code === 'traffic') {
|
|
|
- this.dictList = res.data.map(e => {
|
|
|
- return { label: e.dictValue, value: e.dictKey, code }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.dictList = res.data.map(e => {
|
|
|
+ return { label: e.dictValue, value: e.dictKey, code }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -143,15 +149,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- beforeOpen(done, type) {
|
|
|
- if (type === 'view') {
|
|
|
- const data = this.$router.resolve({
|
|
|
- path: '/contract/detail',
|
|
|
- query: { id: this.form.id }
|
|
|
- })
|
|
|
- window.open(data.href, '_blank')
|
|
|
- }
|
|
|
- },
|
|
|
rowDel(row, index, done) {
|
|
|
this.$confirm('确定将选择数据删除?', {
|
|
|
type: 'warning'
|