scorpioyq há 2 anos atrás
pai
commit
24ad04c0a1

+ 13 - 16
src/views/project/componens/info2.vue

@@ -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'

+ 2 - 3
src/views/project/componens/info6.vue

@@ -7,7 +7,7 @@
     @save="save"
   >
     <el-form class="mt-20" :disabled="disabled">
-      <div style="width: 1300px; text-align: left" class="mt-20 ml-10">
+      <div style="text-align: left" class="mt-20 ml-10 mb-20">
         <span class="title">年份:</span>
         <el-select v-model="selectYear" @change="changeYear">
           <el-option
@@ -259,9 +259,8 @@ export default {
 }
 
 table {
-  width: 1280px;
+  width: 1200px;
   margin: 10px;
-  margin-top: 20px;
 }
 
 thead {