<template>
  <div class="modal-form-style">
    <el-form
      ref="sitem"
      :model="sitem"
      status-icon
      :rules="rulesThis"
      label-width="110px"
      id="demo-sitem"
    >
      <el-row v-if="sitem !== null">
        <template v-for="item in columns">
          <el-col :key="item.prop" :span="item.col" v-if="sitem[item.prop]">
            <el-form-item :label="item.label + ':'">
              <div>{{ sitem[item.prop] }}{{ item.unit }}</div>
            </el-form-item>
          </el-col>
        </template>
      </el-row>
    </el-form>
  </div>
</template>
<script>
import columns from "./columnsForm";
export default {
  name: "Account",
  props: ["newTime", "sitem"],
  data() {
    return {
      loading: false,
      columns: columns,
      sitem: null,
    };
  },
  watch: {
    newTime: function (val) {
      if (val) {
        this.initForm();
      }
    },
  },
  methods: {
    

    async initForm() {
      this.loading = true;
      this.loading = false;
    },
  },
};
</script>

   <style lang="scss" scoped>
.account {
}
</style>
