Browse Source

表格另存为问题

Karsa 1 year ago
parent
commit
a9959e61b9
1 changed files with 12 additions and 5 deletions
  1. 12 5
      src/views/datasheet_manage/sheetList.vue

+ 12 - 5
src/views/datasheet_manage/sheetList.vue

@@ -341,6 +341,7 @@
               }"
               style="width: 80%"
               placeholder="请选择所属分类"
+              class="sheet-classify-cascader"
             />
           </el-form-item>
         </el-form>
@@ -426,7 +427,10 @@ export default {
 
       /* 另存为 */
       isSaveOther: false,
-      saveOtherForm: {},
+      saveOtherForm: {
+        name: '',
+				classify: ''
+      },
       saveOtherFormRule: {
         name: [
           { required: true, message: "表格名称不能为空", trigger: "blur" },
@@ -822,7 +826,10 @@ export default {
 
     cancelSaveOther() {
       this.$refs.formRef.resetFields();
-      this.saveOtherForm = {};
+      this.saveOtherForm = {
+        name: '',
+				classify: ''
+      };
       this.isSaveOther = false;
     },
 
@@ -1124,8 +1131,8 @@ $normal-font: 14px;
   .el-tree-node__content {
     padding-right: 10px !important;
   }
-  .el-cascader .el-input {
-    width: 100%;
-  }
+}
+.sheet-classify-cascader .el-input {
+	width: 100%;
 }
 </style>