Tcsm
2023-08-05 e20f3d2945acedf83676a0720821e9ec5c8f228e
ruoyi-ui/src/views/economy/index.vue
@@ -183,11 +183,11 @@
        </el-form-item>
        <el-form-item label="时间" prop="createTime">
          <el-date-picker
          <el-input
            v-model='formDat.createTime'
            type='date'
            placeholder='选择日期'
          ></el-date-picker>
          ></el-input>
        </el-form-item>
        <el-form-item label="收入/支出" prop="price">
          <el-select v-model="formDat.price" placeholder="请选择收入/支出" clearable :style="{width: '100%'}"  >
@@ -196,7 +196,7 @@
          </el-select>
        </el-form-item>
        <el-form-item label="金额" prop="balance">
          <el-input v-model="formDat.balance" placeholder="请输入余额" clearable :style="{width: '100%'}" >
          <el-input v-model="formDat.balance" placeholder="请输入金额" clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
        <el-form-item label="用途" prop="useFor">
@@ -262,7 +262,7 @@
          class="upload-demo"
          multiple
          :on-remove="handleRemove"
          :on-remove="handleRemoveFile"
          :http-request="requestUpload"
          :show-file-list="true"
        >
@@ -493,6 +493,13 @@
      );
    },
    handleRemove(file) {
      for(let i = 0; i < this.fileList.length; i++)
      {
        if(this.fileList[i].url==file.url)
          this.$delete(this.fileList,i);
      }
    },
    handleRemoveFile(file) {
      for(let i = 0; i < this.fileListOther.length; i++)
      {
        if(this.fileListOther[i].url==file.url)
@@ -612,6 +619,12 @@
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
      this.handleRemove(this.fileList[0]);
      this.handleRemoveFile(this.fileListOther[0]);
    },
    requestUpload(params)
    {