2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
webpackJsonp([19],{"2OQO":function(e,t){},eWk3:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("mvHQ"),l=i.n(a),o={data:function(){return{itemOptions:[],dictOptions:[],detailForm:{},editForm:{},editJiraForm:{},queryInfo:{moduleName:"",itemName:"",dictName:"",jiraItemKey:"",pageNum:1,pageSize:10},itemlist:[],multipleSelection:[],currpage:1,total:0,addDialogVisible:!1,editDialogVisible:!1,detailDialogVisible:!1,syncDialogVisible:!1,editJiraVisible:!1,syncJiraVisible:!1,addModulesDialogVisible:!1,addForm:{moduleName:"",comments:"",itemId:"",dictId:""},syncJiraForm:{project:"AIGO",description:"",leadUserName:"",name:"",assigneeType:"COMPONENT_LEAD"},syncModu:{},syncFormRules:{itemName:[{required:!0,message:"请选择项目名称",trigger:"blur"}],moduleName:[{required:!0,message:"请输入模块名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}]},addJiraModuleForm:{project:"AIGO",description:"",leadUserName:"",name:"",assigneeType:"COMPONENT_LEAD"},addFormRules:{itemName:[{required:!0,message:"请选择项目名称",trigger:"blur"}],moduleName:[{required:!0,message:"请输入模块名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],comments:[{required:!1,message:"请输入备注",trigger:"blur"},{min:0,max:200,message:"长度在 0 到 200 个字符",trigger:"blur"}]}}},mounted:function(){this.getItemNameList(),this.getdictNameList()},created:function(){this.getmoduleList()},methods:{onSearch:function(){this.queryInfo.pageNum=1,this.getmoduleList()},getmoduleList:function(){var e=this;this.$api.modules.queryAllmodule(l()(this.queryInfo)).then(function(t){e.loading=!1,localStorage.setItem("active",0),e.itemlist=t.data.data,e.total=t.data.count,console.log(t.data)}).catch(function(){e.loading=!1})},selectModuleList:function(){this.queryInfo.pageNum=1,this.total=0,this.getmoduleList()},getItemNameList:function(){var e=this;this.$api.item.queryAllItemIdAndItemName(this.queryInfo.itemName).then(function(t){e.loading=!1,localStorage.setItem("active",0),e.itemOptions=t.data.data,console.log(t.data.data)}).catch(function(){e.loading=!1})},getdictNameList:function(){var e=this;this.$api.dict.queryAllSubDataDictByFatherId("responsiblePerson").then(function(t){e.loading=!1,localStorage.setItem("active",0),e.dictOptions=t.data.data,console.log(t.data.data)}).catch(function(){e.loading=!1})},cimsInputClick:function(){window.open("https:/jira.lepudigital.com/secure/CreateIssue.jspa","_blank")},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getmoduleList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getmoduleList()},addDialogClose:function(){this.$refs.addFormRef.resetFields()},syncJiraModuleClose:function(){this.$refs.syncJiraFormref.resetFields()},addItem:function(){var e=this;this.$refs.addFormRef.validate(function(t){t&&e.$api.modules.addmodule(l()(e.addForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.addDialogVisible=!1,e.$refs.addFormRef.resetFields(),e.getmoduleList()}).catch(function(){e.loading=!1})})},editDialogClose:function(){this.$refs.editFormRef.resetFields()},showEditDialog:function(e){var t=this;this.editDialogVisible=!0,this.$api.modules.querymoduleById(e).then(function(e){t.loading=!1,t.editForm=e.data.data}).catch(function(){t.loading=!1})},showSyncJiraDialog:function(e){var t=this;this.syncJiraVisible=!0,this.$api.modules.querymoduleById(e).then(function(e){t.loading=!1,console.log(e.data.data),t.editJiraForm=e.data.data,t.syncJiraForm.name=e.data.data.moduleName,t.syncJiraForm.project=e.data.data.jiraItemKey}).catch(function(){t.loading=!1})},syncJiraModule:function(){var e=this;this.$refs.syncJiraFormref.validate(function(t){if(t){var i=l()(e.syncJiraForm);e.syncModu.moduleJson=i,e.$api.modules.createJiraModule(e.syncModu).then(function(t){alert("res = "+t),e.$notify({message:t.data.msg,type:"success"}),e.syncDialogVisible=!1,e.$refs.syncJiraFormref.resetFields(),e.getmoduleList(),console.syncJiraModule}).catch(function(){e.loading=!1})}})},a
|
||
|
//# sourceMappingURL=19.2e953de49700e6d3e0a4.js.map
|