zmcoding 3 years ago
parent
commit
05bf034e31
2 changed files with 22 additions and 35 deletions
  1. 19 23
      src/views/wind/fan/formModel.vue
  2. 3 12
      src/views/wind/fan/index.vue

+ 19 - 23
src/views/wind/fan/formModel.vue

@@ -21,27 +21,26 @@ export default {
     return {
       formData: {},
       formFieldsData: {
-        department_id: "",
+        wind_id: "",
         number: "",
-        name: "",
-        model: "",
-        brand:"",
+        production_date: "",
+        install_date:"",
         supplier:"",
-        out_date:"",
-        remark: ""
+        info: "",
+        location:''
       },
       url: "fan",
       formConfig: {
         formDesc: {
-          department_id: {
+          wind_id: {
             type: "cascader",
-            label: "所属部门",
+            label: "所属风场",
             isOptions: true,
             options: [],
             required: true,
             attrs: {
               props: {
-                label: "department_name",
+                label: "name",
                 value: "id",
                 emitPath: false,
                 checkStrictly: true
@@ -57,36 +56,33 @@ export default {
             type: "input",
             label: "供应商"
           },
-           name: {
+           location: {
             type: "input",
-            label: "名称",
+            label: "位置",
             required:true
           },
-          model: {
+          production_date: {
             type: "input",
-            label: "型号",
+            label: "生产日期",
             required:true
           },
-           brand: {
+          install_date: {
             type: "input",
-            label: "品牌"
-          },
-          out_date: {
-            type: "date",
-            label: "出厂日期"
+            label: "安装日期",
+            required:true
           },
-          remark: {
+          info: {
             type: "textarea",
             label: "备注"
           }
         },
-        order: ["department_id","number", "name", "model","brand","supplier","out_date","remark"]
+        order: ["wind_id","number", "supplier", "production_date","install_date","location","info"]
       }
     };
   },
   created() {
-    this.$http.get("fan").then(response => {
-      this.formConfig.formDesc.department_id.options = response.data;
+    this.$http.get("wind").then(response => {
+      this.formConfig.formDesc.wind_id.options = response.data;
     });
   },
   methods: {

+ 3 - 12
src/views/wind/fan/index.vue

@@ -10,7 +10,7 @@
             clearable
             :props="{
               checkStrictly: true,
-              label: 'department_name',
+              label: 'name',
               value: 'id',
             }"
             @change="handleChange"
@@ -43,17 +43,7 @@
             @keyup.enter.native="handleSearch"
           />
         </div>
-        <div class="search-item">
-          <el-select
-            v-model="queryParam.is_used"
-            placeholder="使用状态"
-            class="filter-item form-search-input fl"
-            clearable
-          >
-            <el-option value="0" label="未使用">未使用</el-option>
-            <el-option value="1" label="已使用">已使用</el-option>
-          </el-select>
-        </div>
+        
       </div>
       <div class="search-operate-area">
         <!-- <el-input v-model="queryParam.code" placeholder="唯一编码" clearable class="filter-item form-search-input fl" /> -->
@@ -260,6 +250,7 @@ import rlListOperate from "@/layout/rl-list-operate/rlListOperate";
 import { action } from "@/directive/permission/index.js";
 import detail from "./detail.vue"
 import formModel from './formModel.vue'
+
 export default {
   name: "fan",
   directives: { action },