{"version":3,"sources":["webpack:///./src/userview/task-manager/task-modal.vue?d9e2","webpack:///./src/userview/task-manager/task-modal.vue?3269","webpack:///src/userview/task-manager/D:/Softwares/工作平台源码/对外版本地存储/网站前端/src/userview/task-manager/task-modal.vue","webpack:///./src/userview/task-manager/task-modal.vue?fb52","webpack:///./src/userview/task-manager/task-modal.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","modalName","url","referer","on","beforeClose","opened","$event","$emit","directives","name","rawName","value","expression","ref","indexData","comSubmit","editClick","model","callback","$$v","editState","formData","Rules","slot","staticStyle","style","width","comWidth","$set","_v","_s","task","check","EstimatedTime","_e","imgChange","userPic","userName","changeStatus","class","status","icon","color","_l","i","key","$D","ITEM","minRows","maxRows","describe","progress","length","item","index","CreateTime","timeFormat","UpdateTime","Describe","IsRealTimeScreenshot","Img","cmurl","staticRenderFns","props","type","Boolean","default","Object","teamValue","Number","String","components","XModal","CWinTmp","data","teamOptions","loading","attend","id","CreatTime","Schedule","required","message","trigger","min","computed","mapState","process","obj","statusOptions","indexOf","methods","val","$toFixed","getTeams","$http","get","params","searchText","then","resp","res","filter","m","Functions","$nextTick","changeEditState","isOwner","isNew","row","user","UsId","Title","Enable","Taskhistorys","UserName","Picture","departmentCode","submiting","$refs","winTmp","toggleComfirm","toggleSubmit","editForm","validate","valid","Id","teamId","title","post","result","$message","$modal","hide","catch","clearValidate","assign","$data","$options","$router","replace","setLoading","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,YAAY,QAAQC,MAAM,CAAC,KAAOP,EAAIQ,UAAU,MAAQ,MAAM,OAAS,MAAM,IAAMR,EAAIS,IAAI,QAAUT,EAAIU,SAASC,GAAG,CAAC,YAAcX,EAAIY,YAAY,OAASZ,EAAIa,OAAO,YAAc,SAASC,GAAQ,OAAOd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/I,KAAKgJ,MAAOhJ,KAAKiJ,SAAShE,QACxCjF,KAAKkJ,QAAQC,QAAQ,KAEvBC,WA9IO,SA8IIjD,GACTnG,KAAKmF,QAAUgB,KChb8U,I,wBCQ/VkD,EAAY,eACd,EACAvJ,EACAuE,GACA,EACA,KACA,WACA,MAIa,aAAAgF,E","file":"js/chunk-346117d0.8d646f50.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./task-modal.vue?vue&type=style&index=0&id=cbdb891e&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('XModal',{staticClass:\"taskM\",attrs:{\"name\":_vm.modalName,\"width\":'45%',\"height\":\"70%\",\"url\":_vm.url,\"referer\":_vm.referer},on:{\"beforeClose\":_vm.beforeClose,\"opened\":_vm.opened,\"loadSuccess\":function($event){return _vm.$emit('loadSuccess')},\"beforeOpen\":function($event){return _vm.$emit('beforeOpen')}}},[_c('c-win-tmp',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"winTmp\",attrs:{\"indexData\":_vm.indexData},on:{\"topSubmit\":_vm.comSubmit,\"comfirmClick\":_vm.comSubmit,\"editClick\":_vm.editClick},model:{value:(_vm.editState),callback:function ($$v) {_vm.editState=$$v},expression:\"editState\"}},[_c('el-form',{ref:\"editForm\",attrs:{\"slot\":\"form\",\"model\":_vm.formData,\"rules\":_vm.Rules,\"label-width\":\"100px\"},slot:\"form\"},[_c('el-row',[_c('el-col',{attrs:{\"sm\":24,\"md\":24}},[_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"任务:\",\"prop\":\"task\"}},[(_vm.editState)?_c('el-input',{style:({ width: _vm.comWidth }),attrs:{\"placeholder\":\"请填写任务\",\"clearable\":\"\"},model:{value:(_vm.formData.task),callback:function ($$v) {_vm.$set(_vm.formData, \"task\", $$v)},expression:\"formData.task\"}}):_c('div',{staticClass:\"state-see\"},[_vm._v(\" \"+_vm._s(_vm.formData.task)+\" \")])],1),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"预估耗时:\",\"prop\":\"EstimatedTime\"}},[(_vm.editState)?_c('el-input',{staticStyle:{\"width\":\"95%\"},attrs:{\"type\":\"number\",\"placeholder\":\"小数\"},on:{\"input\":function($event){return _vm.check('EstimatedTime', $event)}},model:{value:(_vm.formData.EstimatedTime),callback:function ($$v) {_vm.$set(_vm.formData, \"EstimatedTime\", $$v)},expression:\"formData.EstimatedTime\"}},[_c('p',{staticStyle:{\"color\":\"#575757\"},attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"小时\")])]):_c('div',{staticClass:\"state-see\"},[_vm._v(\" \"+_vm._s(_vm.formData.EstimatedTime ? _vm.formData.EstimatedTime + \"小时\" : \"无\")+\" \")])],1),(!_vm.editState)?_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"执行人:\",\"prop\":\"userName\"}},[_c('div',{staticClass:\"user\"},[_c('el-avatar',{attrs:{\"size\":\"small\",\"src\":_vm.imgChange(_vm.formData.userPic)}}),_c('span',[_vm._v(_vm._s(_vm.formData.userName))])],1)]):_vm._e(),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"任务状态:\",\"prop\":\"Schedule\"}},[(_vm.editState)?_c('el-dropdown',{attrs:{\"trigger\":\"click\"},on:{\"command\":_vm.changeStatus}},[_c('span',{staticClass:\"el-dropdown-link\"},[_c('i',{staticClass:\"status hiFont\",class:_vm.status.icon,style:({ color: _vm.status.color })}),_c('span',{staticStyle:{\"margin-left\":\"5px\"}},[_vm._v(_vm._s(_vm.status.name))]),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})]),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},_vm._l((_vm.statusOptions),function(i){return _c('el-dropdown-item',{key:i,attrs:{\"command\":i}},[_c('i',{class:['hiFont', _vm.$D.ITEM('task_status', i).icon],style:({ color: _vm.$D.ITEM('task_status', i).color })}),_vm._v(\" \"+_vm._s(_vm.$D.ITEM(\"task_status\", i).name)+\" \")])}),1)],1):_c('div',{staticClass:\"state-see\"},[_c('i',{staticClass:\"status hiFont\",class:_vm.status.icon,style:({ color: _vm.status.color })}),_c('span',{staticStyle:{\"margin-left\":\"5px\"}},[_vm._v(_vm._s(_vm.status.name))])])],1),(!_vm.editState)?_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"状态:\",\"prop\":\"status\"}},[_c('div',{staticClass:\"state-see\"},[_vm._v(\" \"+_vm._s(_vm.formData.status ? \"启用\" : \"禁用\")+\" \")])]):_vm._e(),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":\"描述:\",\"prop\":\"describe\"}},[(_vm.editState)?_c('el-input',{style:({ width: _vm.comWidth }),attrs:{\"type\":\"textarea\",\"autosize\":{ minRows: 5, maxRows: 7 },\"placeholder\":\"请填写任务描述\",\"clearable\":\"\"},model:{value:(_vm.formData.describe),callback:function ($$v) {_vm.$set(_vm.formData, \"describe\", $$v)},expression:\"formData.describe\"}}):_c('div',{staticClass:\"state-see\"},[_vm._v(\" \"+_vm._s(_vm.formData.describe ? _vm.formData.describe : \"无描述\")+\" \")])],1),(!_vm.editState)?_c('el-form-item',{staticClass:\"progress\",attrs:{\"label\":\"任务历史:\"}},[(_vm.formData.progress && _vm.formData.progress.length)?_c('el-timeline',_vm._l((_vm.formData.progress),function(item,index){return _c('el-timeline-item',{key:index,attrs:{\"timestamp\":((item.CreateTime\n ? item.CreateTime.timeFormat('yyyy年MM月dd日 HH:mm')\n : '--') + \" 至 \" + (item.UpdateTime\n ? item.UpdateTime.timeFormat('yyyy年MM月dd日 HH:mm')\n : '--')),\"placement\":\"top\"}},[_c('el-card',[_c('p',{staticClass:\"task_con\"},[_vm._v(\" 任务描述:\"+_vm._s(item.Describe ? item.Describe : \"无\")+\" \")]),(_vm.IsRealTimeScreenshot && item.Img)?_c('el-image',{staticStyle:{\"max-width\":\"160px\"},attrs:{\"src\":_vm.cmurl + item.Img,\"alt\":\"\",\"preview-src-list\":[_vm.cmurl + item.Img]}}):_vm._e()],1)],1)}),1):_c('div',[_vm._v(\"无历史数据\")])],1):_vm._e()],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\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\r\nimport { mapState } from \"vuex\";\r\nimport { imgChange } from \"@/commons\";\r\nexport default {\r\n props: {\r\n //是否显示截图\r\n IsRealTimeScreenshot: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n indexData: {\r\n type: Object,\r\n default: () => {\r\n return null;\r\n },\r\n },\r\n teamValue: {\r\n type: Number,\r\n default: 0,\r\n },\r\n url: {\r\n type: String,\r\n default: null,\r\n },\r\n referer: {\r\n type: String,\r\n default: null,\r\n },\r\n modalName: {\r\n type: String,\r\n default: \"taskM\",\r\n },\r\n },\r\n components: {\r\n XModal: () => import(\"@/components/XModal\"),\r\n CWinTmp: () => import(\"@/components/CWinTmp\"),\r\n },\r\n\r\n data() {\r\n return {\r\n teamOptions: [],\r\n loading: false,\r\n editState: false,\r\n comWidth: \"95%\",\r\n attend: false,\r\n formData: {\r\n id: \"\", // 编辑窗口才用ID\r\n task: \"\",\r\n status: \"\",\r\n describe: \"\",\r\n CreatTime: \"\",\r\n teamValue: \"\",\r\n progress: [],\r\n userName: null,\r\n userPic: null,\r\n EstimatedTime: null,\r\n Schedule: 0,\r\n },\r\n Rules: {\r\n name: [\r\n {\r\n required: true,\r\n message: \"请输入任务\",\r\n trigger: \"blur\",\r\n },\r\n {\r\n min: 2,\r\n message: \"至少2个字符\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n },\r\n };\r\n },\r\n computed: {\r\n ...mapState([\"user\"]),\r\n cmurl() {\r\n return process.env.VUE_APP_CMURL;\r\n },\r\n //当前任务或计划详情的状态对象\r\n status: function () {\r\n let obj = this.$D.ITEM(\"task_status\", 1);\r\n let data = this.$D.ITEM(\"task_status\", this.formData.Schedule);\r\n if (data) {\r\n obj = data;\r\n } else {\r\n obj.name = \"未知\";\r\n }\r\n return obj;\r\n },\r\n //任务详情中可供切换的任务状态\r\n statusOptions: function () {\r\n if ([4].indexOf(this.formData.status) >= 0) {\r\n return [99]; //只显示撤销申请\r\n } else {\r\n return [2, 7, 0, 3, 1]; //显示进行中、已完成、待定中、暂停的、未开始\r\n }\r\n },\r\n },\r\n\r\n methods: {\r\n changeStatus(val) {\r\n this.formData.Schedule = val;\r\n },\r\n //检查数字\r\n check(type, value) {\r\n if (value < 0) {\r\n this.formData[type] = null;\r\n } else {\r\n this.formData[type] = this.$toFixed(this.formData[type], 2);\r\n }\r\n },\r\n imgChange,\r\n /**\r\n * 获取团队\r\n */\r\n getTeams() {\r\n this.$http\r\n .get(\"/Teams/GetAllTeams.ashx\", {\r\n params: { searchText: null, type: 2 },\r\n })\r\n .then((resp) => {\r\n if (resp.res == 0) {\r\n this.teamOptions = resp.data.filter(\r\n (m) => m.Functions.indexOf(\"任务管理\") != -1\r\n );\r\n }\r\n });\r\n },\r\n opened() {\r\n this.$nextTick(() => {\r\n this.formData.teamValue = this.teamValue;\r\n this.getTeams();\r\n });\r\n },\r\n // 改变窗口状态的,搭配index页 添加和编辑按钮\r\n changeEditState() {\r\n var isOwner = false;\r\n var isNew = false;\r\n if (!this.indexData.row) {\r\n isNew = true;\r\n isOwner = true;\r\n } else if (this.user) {\r\n isOwner = this.indexData.row.UsId == this.user.UsId;\r\n }\r\n this.indexData.type = `${isNew ? \"Add\" : !isOwner ? \"\" : \"Edit\"}`;\r\n this.indexData.name = `${!isOwner ? \"任务详情\" : \"编辑任务\"}`;\r\n this.editState = this.indexData.type === \"Add\" ? true : false;\r\n if (this.indexData.row) {\r\n this.formData.task = this.indexData.row.Title;\r\n this.formData.status = this.indexData.row.Enable;\r\n this.formData.describe = this.indexData.row.Describe;\r\n this.formData.CreatTime = this.indexData.row.CreateTime;\r\n this.formData.progress = this.indexData.row.Taskhistorys;\r\n this.formData.userName = this.indexData.row.UserName;\r\n this.formData.userPic = this.indexData.row.Picture;\r\n this.formData.EstimatedTime = this.indexData.row.EstimatedTime;\r\n this.formData.Schedule = this.indexData.row.Schedule;\r\n this.formData.id = this.indexData.departmentCode;\r\n }\r\n },\r\n\r\n // 提交... 细节\r\n submiting() {\r\n if (this.formData.id) {\r\n this.$refs.winTmp.toggleComfirm();\r\n } else {\r\n this.$refs.winTmp.toggleSubmit();\r\n }\r\n },\r\n // 子组件提交共同的接口\r\n comSubmit() {\r\n this.$refs.editForm.validate((valid) => {\r\n if (valid) {\r\n this.submiting();\r\n\r\n if (!this.formData.id) {\r\n this.$http\r\n .post(\"/Task/AddTask.ashx\", {\r\n teamId: this.formData.teamValue,\r\n title: this.formData.task,\r\n Describe: this.formData.describe,\r\n EstimatedTime: this.formData.EstimatedTime,\r\n Schedule: this.formData.Schedule,\r\n })\r\n .then((res) => {\r\n if (res.res == 0) {\r\n this.$message({\r\n message: `添加任务成功`,\r\n type: \"success\",\r\n });\r\n this.submiting();\r\n this.$modal.hide(\"taskM\");\r\n this.$emit(\"eventComfirm\");\r\n } else {\r\n this.submiting();\r\n }\r\n });\r\n } else {\r\n let params = {\r\n Id: this.formData.id,\r\n teamId: this.formData.teamValue,\r\n title: this.formData.task,\r\n describe: this.formData.describe,\r\n EstimatedTime: this.formData.EstimatedTime,\r\n Schedule: this.formData.Schedule,\r\n };\r\n this.$http\r\n .post(\"/Task/EditTask.ashx\", params)\r\n .then((result) => {\r\n if (result.res == 0) {\r\n this.$message({\r\n message: `编辑任务成功`,\r\n type: \"success\",\r\n });\r\n this.submiting();\r\n this.$modal.hide(\"taskM\");\r\n this.$emit(\"eventComfirm\");\r\n } else {\r\n this.submiting();\r\n }\r\n })\r\n .catch(() => {});\r\n }\r\n } else {\r\n return false;\r\n }\r\n });\r\n },\r\n // 子组件事件3\r\n editClick() {\r\n this.$refs.editForm.clearValidate();\r\n if (this.editState === false) this.changeEditState();\r\n },\r\n\r\n // 关闭弹层前,重置数据\r\n beforeClose() {\r\n this.attend = false;\r\n this.loading = false;\r\n Object.assign(this.$data, this.$options.data());\r\n this.$router.replace({});\r\n },\r\n setLoading(val) {\r\n this.loading = val;\r\n },\r\n },\r\n};\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./task-modal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./task-modal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./task-modal.vue?vue&type=template&id=cbdb891e&scoped=true&\"\nimport script from \"./task-modal.vue?vue&type=script&lang=js&\"\nexport * from \"./task-modal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./task-modal.vue?vue&type=style&index=0&id=cbdb891e&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cbdb891e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}