Browse Source

优化

master
陈裕财 4 years ago
parent
commit
1e72cea231
  1. 2
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue
  2. 6
      src/views/xm/core/xmMenu/XmMenuMng.vue
  3. 2
      src/views/xm/core/xmMenu/XmMenuMngBatch.vue
  4. 2
      src/views/xm/core/xmMenu/XmMenuSelect.vue
  5. 2
      src/views/xm/core/xmPhaseTemplate/XmPhaseTemplateAdd.vue
  6. 4
      src/views/xm/core/xmQuestion/XmQuestionMng.vue
  7. 8
      src/views/xm/core/xmTask/XmTaskMng.vue
  8. 10
      src/views/xm/core/xmTask/XmTaskMngBatch.vue
  9. 17
      src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue

2
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('确认将需求移出迭代吗?', '提示', {

6
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) => {

2
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;

2
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
}

2
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) => {

4
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;

8
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("确认删除选中记录吗?", "提示", {

10
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;

17
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;

Loading…
Cancel
Save