{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtDuration.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtDuration.vue","mtime":1675232038574},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n  name: \"HtSecond\",\n  props: {\n    value: {\n      type: Number\n    },\n    name: {\n      type: String\n    },\n    size: {\n      type: String,\n      default: \"small\"\n    },\n    validate: {\n      type: [String, Object]\n    },\n    disabled: {\n      type: Boolean,\n      default: false\n    },\n    type: {\n      type: String,\n      default: \"minute\",\n      validator: function validator(value) {\n        return [\"minute\", \"second\"].indexOf(value) !== -1;\n      }\n    }\n  },\n  computed: {\n    inputVal: {\n      get: function get() {\n        return this.value;\n      },\n      set: function set(val) {\n        this.$emit(\"input\", val);\n      }\n    }\n  },\n  data: function data() {\n    return {\n      hours: [],\n      minutes: [],\n      data: {\n        day: 0,\n        hour: 0,\n        minute: 0,\n        second: 0\n      }\n    };\n  },\n  watch: {\n    value: function value(newVal, oldVal) {\n      if (newVal && newVal != oldVal) {\n        this.initData();\n      }\n\n      if (!newVal) {\n        this.data = {\n          day: 0,\n          hour: 0,\n          minute: 0,\n          second: 0\n        };\n      }\n    }\n  },\n  mounted: function mounted() {\n    for (var i = 0; i <= 23; i++) {\n      this.hours.push({\n        key: i,\n        value: i + \"\"\n      });\n    }\n\n    for (var _i = 0; _i <= 59; _i++) {\n      this.minutes.push({\n        key: _i,\n        value: _i + \"\"\n      });\n    }\n\n    this.initData();\n  },\n  methods: {\n    initData: function initData() {\n      if (this.value && this.type == \"second\") {\n        //天数计算\n        this.data.day = parseInt(this.value / (24 * 3600)); //小时计算\n\n        this.data.hour = parseInt(this.value % (24 * 3600) / 3600); //分钟计算\n\n        this.data.minute = parseInt(this.value % 3600 / 60); //秒计算\n\n        this.data.second = this.value % 60;\n      }\n\n      if (this.value && this.type == \"minute\") {\n        //天数计算\n        this.data.day = parseInt(this.value / 60 / 24); //小时计算\n\n        this.data.hour = parseInt(this.value / 60 % 24); //分钟计算\n\n        this.data.minute = parseInt(this.value % 60);\n      }\n    },\n    change: function change() {\n      var second = 0;\n\n      if (this.data.second) {\n        second += this.data.second;\n      }\n\n      if (this.data.minute) {\n        second += this.data.minute * 60;\n      }\n\n      if (this.data.hour) {\n        second += this.data.hour * 60 * 60;\n      }\n\n      if (this.data.day) {\n        second += this.data.day * 24 * 60 * 60;\n      }\n\n      if (this.type == \"minute\") {\n        second = second / 60;\n      }\n\n      this.$emit(\"input\", second);\n    }\n  }\n};",null]}