{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\components\\WorkclassManageDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\components\\WorkclassManageDialog.vue","mtime":1667545182832},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\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//\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//\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport WorkclassManage from '@/api/manager/duty/workclassManage.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'WorkclassManageDialog',\n components: {},\n props: {},\n data: function data() {\n return {\n title: '新增',\n showFormDia: false,\n weeks: [],\n selectWeeks: [],\n params: {\n name: '',\n memo: '',\n id: null,\n scheduleStart: '',\n duringTime: '',\n afterRest: '',\n diffDays: '',\n numberMust: '',\n weeks: '',\n status: '',\n showColor: '',\n pkVal: '',\n sn: 0,\n version: 0,\n orgId: '',\n orgName: ''\n },\n rules: {\n name: [{\n required: true,\n message: '请输入班种名称',\n trigger: 'blur'\n }],\n scheduleStart: [{\n required: true,\n message: '请选择上班时间',\n trigger: 'blur'\n }],\n duringTime: [{\n required: true,\n message: '请选择下班时间',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {},\n methods: {\n add: function add(orgId, orgName) {\n this.params.orgId = orgId;\n this.params.orgName = orgName;\n this.showFormDia = true;\n },\n handleClose: function handleClose() {\n this.params = {\n name: '',\n memo: '',\n scheduleStart: '',\n duringTime: '',\n afterRest: '',\n diffDays: '',\n numberMust: '',\n weeks: '',\n status: '',\n showColor: '',\n orgId: '',\n orgName: '',\n alias: '',\n sn: 0\n };\n this.title = '新增';\n this.showFormDia = false; // this.weeks=[]\n },\n handleSave: function handleSave() {\n var _this = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this.params.id) {\n // 新增\n method = WorkclassManage.addWorkclass;\n }\n\n if (_this.params.id) {\n // 修改\n method = WorkclassManage.editWorkclass;\n } // this.params.weeks = this.weeks.join(\",\")\n\n\n method(_this.params, function (res) {\n if (res.state) {\n _this.$notify({\n type: 'success',\n message: _this.title + '成功',\n duration: 2000\n }); // this.$emit('loadData')\n\n\n _this.weeks = [];\n\n _this.$parent.loadData();\n\n _this.handleClose();\n } else {// this.$message.warning(res.message)\n }\n });\n }\n });\n },\n Update: function Update(row) {\n console.log(row);\n this.title = '修改';\n this.showFormDia = true;\n this.params.memo = row.memo;\n this.params.name = row.name;\n this.params.scheduleStart = row.scheduleStart;\n this.params.id = row.id;\n this.params.purchaseDate = row.purchaseDate;\n this.params.duringTime = row.duringTime;\n this.params.afterRest = row.afterRest;\n this.params.diffDays = row.diffDays;\n this.params.numberMust = row.numberMust; // this.params.weeks = row.weeks\n\n this.params.sn = row.sn;\n this.params.status = row.status;\n this.params.showColor = row.showColor;\n this.params.orgId = row.orgId;\n this.params.orgName = row.orgName;\n this.params.alias = row.alias;\n },\n weekChange: function weekChange(obj) {}\n }\n};",null]}