diff --git a/src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue b/src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue index d17f6a5d..7f420392 100644 --- a/src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue +++ b/src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue @@ -240,7 +240,7 @@ //批量删除xmIterationMenu batchDel: function () { if(this.sels.length<=0){ - this.$notify({showClose: true, message:"请先选择一个或者多个需求", type: 'error' }); + this.$notify({showClose: true, message:"请先选择一个或者多个需求", type: 'warning' }); return ; } this.$confirm('确认将需求移出迭代吗?', '提示', { diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index 5da7b8e6..36bb077a 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -680,7 +680,7 @@ this.addFormVisible = true; }else{ this.productVisible=true; - this.$notify({showClose: true, message: "请先选择一个产品", type: 'error'}); + this.$notify({showClose: true, message: "请先选择一个产品", type: 'warning'}); } //this.addForm=Object.assign({}, this.editForm); @@ -763,7 +763,7 @@ //批量删除xmMenu batchDel: function () { if(this.sels.length==0){ - this.$notify({showClose: true, message: "请先选择要删除的需求或者需求池", type: 'error'}); + this.$notify({showClose: true, message: "请先选择要删除的需求或者需求池", type: 'warning'}); return; } this.$confirm('确认删除选中的'+this.sels.length+'条数据吗?删除后数据不可恢复', '提示', { @@ -964,7 +964,7 @@ loadTasksToXmMenuState: function () { this.load.edit=true; if(!this.filters.product){ - this.$notify.error("请先选择产品"); + this.$notify.warning("请先选择产品"); } let params = { productId: this.filters.product.id }; loadTasksToXmMenuState(params).then((res) => { diff --git a/src/views/xm/core/xmMenu/XmMenuMngBatch.vue b/src/views/xm/core/xmMenu/XmMenuMngBatch.vue index dce6feb9..2484820f 100644 --- a/src/views/xm/core/xmMenu/XmMenuMngBatch.vue +++ b/src/views/xm/core/xmMenu/XmMenuMngBatch.vue @@ -241,7 +241,7 @@ //查询时选择责任人 showBatchMmUserSelectVisible() { if(!this.sels||this.sels.length==0){ - this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'error'}) + this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'warning'}) return; }else{ this.batchMmUserSelectVisible=true; diff --git a/src/views/xm/core/xmMenu/XmMenuSelect.vue b/src/views/xm/core/xmMenu/XmMenuSelect.vue index 087a5354..a77cae3c 100644 --- a/src/views/xm/core/xmMenu/XmMenuSelect.vue +++ b/src/views/xm/core/xmMenu/XmMenuSelect.vue @@ -386,7 +386,7 @@ if( this.filters.product && this.filters.product.id){ params.productId=this.filters.product.id }else { - this.$notify({showClose: true, message: "请先选择产品", type: 'success' }); + this.$notify({showClose: true, message: "请先选择产品", type: 'warning' }); return; //params.xxx=xxxxx } diff --git a/src/views/xm/core/xmPhaseTemplate/XmPhaseTemplateAdd.vue b/src/views/xm/core/xmPhaseTemplate/XmPhaseTemplateAdd.vue index a18ab092..4cdda5e0 100644 --- a/src/views/xm/core/xmPhaseTemplate/XmPhaseTemplateAdd.vue +++ b/src/views/xm/core/xmPhaseTemplate/XmPhaseTemplateAdd.vue @@ -142,7 +142,7 @@ //新增提交XmPhaseTemplate xm_phase_template 父组件监听@submit="afterAddSubmit" addSubmit: function () { if(!this.selProjectTemplate){ - this.$notify.error("模板不能为空,请先选择项目模板") + this.$notify.warning("模板不能为空,请先选择项目模板") return; } this.$refs.addForm.validate((valid) => { diff --git a/src/views/xm/core/xmQuestion/XmQuestionMng.vue b/src/views/xm/core/xmQuestion/XmQuestionMng.vue index 235a0f93..14b7482b 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionMng.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionMng.vue @@ -535,7 +535,7 @@ showAdd: function () { if(this.filters.selProject==null){ - this.$notify({showClose: true, message: "请先选中项目", type: 'success' }); + this.$notify({showClose: true, message: "请先选中项目", type: 'warning' }); this.nextAction="showAdd" this.showProjectList(); return; @@ -677,7 +677,7 @@ showGroupUsers:function(userType){ this.userType=userType; if(this.filters.selProject==null || this.filters.selProject.id==''){ - this.$notify({showClose: true, message: "请先选中项目", type: 'success' }); + this.$notify({showClose: true, message: "请先选中项目", type: 'warning' }); this.nextAction="showGroupUsers" this.showProjectList(); return; diff --git a/src/views/xm/core/xmTask/XmTaskMng.vue b/src/views/xm/core/xmTask/XmTaskMng.vue index 8f4e6a98..958a73e7 100644 --- a/src/views/xm/core/xmTask/XmTaskMng.vue +++ b/src/views/xm/core/xmTask/XmTaskMng.vue @@ -1465,12 +1465,12 @@ export default { } if(this.ptype==='1'){ if(!params.productId){ - this.$notify.error("请先选中产品") + this.$notify.warning("请先选中产品") return; } }else if(this.ptype==='0'){ if(!params.projectId){ - this.$notify.error("请先选中项目") + this.$notify.warning("请先选中项目") return; } } @@ -1505,7 +1505,7 @@ export default { }, showBatchRelTasksWithMenuVisible(){ if(this.sels.length==0){ - this.$notify.error("请先选中一条或者多条数据") + this.$notify.warning("请先选中一条或者多条数据") return; } this.batchRelTasksWithMenuVisible=true; @@ -1758,7 +1758,7 @@ export default { //批量删除xmTask batchDel: function () { if(this.sels.length==0){ - this.$notify.error("请先选中要删除的记录") + this.$notify.warning("请先选中要删除的记录") return; } this.$confirm("确认删除选中记录吗?", "提示", { diff --git a/src/views/xm/core/xmTask/XmTaskMngBatch.vue b/src/views/xm/core/xmTask/XmTaskMngBatch.vue index 346ffd1e..c68e5960 100644 --- a/src/views/xm/core/xmTask/XmTaskMngBatch.vue +++ b/src/views/xm/core/xmTask/XmTaskMngBatch.vue @@ -553,7 +553,7 @@ export default { this.$notify({ showClose: true, message: "请先选择项目计划", - type: "error", + type: "warning", }); return false; } @@ -570,7 +570,7 @@ export default { this.$notify({ showClose: true, message: "请先选择项目计划", - type: "error", + type: "warning", }); return; } @@ -899,7 +899,7 @@ export default { }, showMenu(){ if(this.sels.length==0){ - this.$notify.error("请先选中一条或者多条记录") + this.$notify.warning("请先选中一条或者多条记录") return; }else{ this.menuVisible=true; @@ -1147,7 +1147,7 @@ export default { //查询时选择责任人 showBatchCreateUserSelectVisible() { if(!this.sels||this.sels.length==0){ - this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'error'}) + this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'warning'}) return; }else{ this.batchGroupUserSelectVisible=true; @@ -1156,7 +1156,7 @@ export default { //查询时选择责任人 showBatchExecUserSelectVisible() { if(!this.sels||this.sels.length==0){ - this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'error'}) + this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'warning'}) return; }else{ this.batchExecUserSelectVisible=true; diff --git a/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue b/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue index 38e37f0b..49610bf3 100644 --- a/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue +++ b/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue @@ -499,13 +499,9 @@ } }, - showCase(){ - if( !this.roles.some(i=>i.roleid=='testAdmin') && !this.roles.some(i=>i.roleid=='testTeamAdmin') ){ - this.$notify({showClose: true,message:"只有测试经理、测试组长可以操作",type:"error"}); - return ; - } + showCase(){ if(!this.filters.selProject){ - this.$notify({showClose: true,message:"请先选择项目",type:"success"}); + this.$notify({showClose: true,message:"请先选择项目",type:"warning"}); this.nextAction="showCase" this.showProjectList(); return; @@ -592,19 +588,14 @@ return ; } if( !this.filters.selProject ){ - this.$notify({showClose: true, message:"请先选择项目", type: 'success'}); + this.$notify({showClose: true, message:"请先选择项目", type: 'warning'}); this.nextAction="showBatchEdit" this.showProjectList(); return ; } this.batchEditVisible=true }, - batchEditXmTestCaseExec:function(){ - - if( !this.roles.some(i=>i.roleid=='testAdmin') && !this.roles.some(i=>i.roleid=='tester') && !this.roles.some(i=>i.roleid=='testTeamAdmin') ){ - this.$notify({showClose: true,message:"只有测试经理、测试组长、测试员可以操作",type:"error"}); - return ; - } + batchEditXmTestCaseExec:function(){ if(this.valueChangeRows.length==0){ this.$notify({showClose: true, message:"没有改变任何数据,无需保存", type: 'success'}); return;