index.vue 1.08 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
<template>
	<div class="eContainer-search">
		<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
			<c-content>
				<m-infsea :model="model" :codes="codes" ref="infsea" />
			</c-content>
		</el-form>
	</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infbtd from "../model";
import Infsea from "./Infsea";
import event from "../event";

export default {
  name: "Infbtd",
  components: {
    "m-infsea": Infsea
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [event],
  data() {
    return {
      tabVal: "infsea",
      trnName: "infbtd",
      model: new Infbtd().data,
      rules: null,
      codes: {
        ...CodeTable
      }
    };
  },
  methods: {
    getInidatfro() {
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 10);
      this.model.infcon.opndatfrom = new Date(datetime);
    }
  },
  mounted() {
    this.getInidatfro();
  }
};
</script>
<style scoped>
</style>