|
@@ -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: {
|