diff --git a/src/views/xm/core/xmProduct/XmProductEdit.vue b/src/views/xm/core/xmProduct/XmProductEdit.vue
index 31b146c4..bb51b30a 100644
--- a/src/views/xm/core/xmProduct/XmProductEdit.vue
+++ b/src/views/xm/core/xmProduct/XmProductEdit.vue
@@ -101,47 +101,62 @@
-
+
+
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同产品内人员
+ 同产品下同小组内人员
+
+
+
+ 是否检查用户的上下级关系
+
+
+
+
+
-
- 不限制,任何人可以互相操作
- 同机构下的人员可以操作
- 同一个项目组内可以互相操作
- 同项目组下的同一个小组可以互相操作
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同产品内人员
+ 同产品下同小组内人员
- 任务指派及crud是否检查用户的上下级关系
+ 缺陷、用例等指派及crud是否检查用户的上下级关系
-
+
- 不限制,任何人可以互相操作
- 同机构下的人员可以操作
- 同一个项目组内可以互相操作
- 同项目组下的同一个小组可以互相操作
+ 不限制,允许任何人
+ 同机构下的人员
+ 同产品内人员
+ 同产品下同小组内人员
- 任务指派及crud是否检查用户的上下级关系
+ 迭代指派及crud是否检查用户的上下级关系
-
+
-
- 不限制,任何人可以互相操作
- 同机构下的人员可以操作
- 同一个项目组内可以互相操作
- 同项目组下的同一个小组可以互相操作
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同产品内人员
+ 同产品下同小组内人员
- 任务指派及crud是否检查用户的上下级关系
+ 需求指派及crud是否检查用户的上下级关系
@@ -326,12 +341,14 @@ export default {
第5位代表迭代指派及crud时是否检查上下级关系,同第1位
*/
qxCode:{
- menuScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- menuTransmit:'0',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ groupScope:'2',
+ groupTransmit:'1',
testScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- testTransmit:'0',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ testTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ menuScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
+ menuTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
iterationScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- iterationTransmit:'0',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ iterationTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
},
/**begin 在下面加自定义属性,记得补上面的一个逗号**/
@@ -392,8 +409,8 @@ export default {
} else if (fieldName == "startTime") {
params["startTime"] = row.startTime;
params["endTime"] = row.endTime;
- } else if (fieldName == "menuScope"||fieldName=="menuTransmit"||fieldName == "iterationScope"||fieldName=="iterationTransmit"||fieldName == "testScope"||fieldName=="testTransmit") {
- params["qxCode"] = [this.qxCode.menuScope,this.qxCode.menuTransmit,this.qxCode.iterationScope,this.qxCode.iterationTransmit,this.qxCode.testScope,this.qxCode.testTransmit].join(",")
+ } else if (fieldName == "groupScope"||fieldName == "groupTransmit"||fieldName == "testScope"||fieldName=="testTransmit"||fieldName == "menuScope"||fieldName=="menuTransmit"||fieldName == "iterationScope"||fieldName=="iterationTransmit") {
+ params["qxCode"] = [,this.qxCode.groupScope,this.qxCode.groupTransmit,this.qxCode.testScope,this.qxCode.testTransmit,this.qxCode.menuScope,this.qxCode.menuTransmit,this.qxCode.iterationScope,this.qxCode.iterationTransmit].join(",")
} else {
params[fieldName] = $event;
}
@@ -409,6 +426,7 @@ export default {
this.$emit("edit-fields", params);
} else {
Object.assign(this.editForm, this.editFormBak);
+ this.initQxCode()
this.$notify({
position: "bottom-left",
showClose: true,
@@ -447,28 +465,34 @@ export default {
initQxCode(){
var qxCode=this.editForm.qxCode
if(!qxCode){
+ this.qxCode.groupScope="2"
+ this.qxCode.groupTransmit="1"
+ this.qxCode.testScope="2"
+ this.qxCode.testTransmit="1"
this.qxCode.menuScope="2"
this.qxCode.menuTransmit="1"
this.qxCode.iterationScope="2"
this.qxCode.iterationTransmit="1"
- this.qxCode.testScope="2"
- this.qxCode.testTransmit="1"
}else{
var qxCodes=qxCode.split(",")
- if(qxCodes.length>=2){
- this.qxCode.menuScope=qxCodes[0]
- this.qxCode.menuTransmit=qxCodes[1]
- this.qxCode.iterationScope=qxCodes[2]
- this.qxCode.iterationTransmit=qxCodes[3]
- this.qxCode.testScope=qxCodes[4]
- this.qxCode.testTransmit=qxCodes[5]
+ if(qxCodes.length>=8){
+ this.qxCode.groupScope=qxCodes[0]
+ this.qxCode.groupTransmit=qxCodes[1]
+ this.qxCode.testScope=qxCodes[2]
+ this.qxCode.testTransmit=qxCodes[3]
+ this.qxCode.menuScope=qxCodes[4]
+ this.qxCode.menuTransmit=qxCodes[5]
+ this.qxCode.iterationScope=qxCodes[6]
+ this.qxCode.iterationTransmit=qxCodes[7]
}else{
+ this.qxCode.groupScope='2'
+ this.qxCode.groupTransmit='1'
+ this.qxCode.testScope="2"
+ this.qxCode.testTransmit="1"
this.qxCode.menuScope="2"
this.qxCode.menuTransmit="1"
this.qxCode.iterationScope="2"
this.qxCode.iterationTransmit="1"
- this.qxCode.testScope="2"
- this.qxCode.testTransmit="1"
}
}
},
diff --git a/src/views/xm/core/xmProject/XmProjectEdit.vue b/src/views/xm/core/xmProject/XmProjectEdit.vue
index 9f19747e..82143396 100644
--- a/src/views/xm/core/xmProject/XmProjectEdit.vue
+++ b/src/views/xm/core/xmProject/XmProjectEdit.vue
@@ -1,7 +1,7 @@
-
+
@@ -101,17 +101,50 @@
-
+
+
-
- 不限制,任何人可以互相操作
- 同机构下的人员可以操作
- 同一个项目组内可以互相操作
- 同项目组下的同一个小组可以互相操作
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同项目内人员
+ 同项目下同小组内人员
-
+
+
+ 是否检查用户的上下级关系
+
-
+
+
+
+
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同项目内人员
+ 同项目下同小组内人员
+
+
+
+ 是否检查用户的上下级关系
+
+
+
+
+
+
+ 不限制,允许任何人
+ 同机构下的人员
+ 同项目内人员
+ 同项目下同小组内人员
+
+
+
+ 是否检查用户的上下级关系
+
+
+
@@ -535,19 +568,33 @@
methods: {
//打开用户选择
//选择接收人
+
+
initQxCode(){
var qxCode=this.editForm.qxCode
if(!qxCode){
+ this.qxCode.groupScope="2"
+ this.qxCode.groupTransmit="1"
+ this.qxCode.testScope="2"
+ this.qxCode.testTransmit="1"
this.qxCode.taskScope="2"
- this.qxCode.taskTransmit="1"
+ this.qxCode.taskTransmit="1"
}else{
var qxCodes=qxCode.split(",")
- if(qxCodes.length>=2){
- this.qxCode.taskScope=qxCodes[0]
- this.qxCode.taskTransmit=qxCodes[1]
+ if(qxCodes.length>=6){
+ this.qxCode.groupScope=qxCodes[0]
+ this.qxCode.groupTransmit=qxCodes[1]
+ this.qxCode.testScope=qxCodes[2]
+ this.qxCode.testTransmit=qxCodes[3]
+ this.qxCode.taskScope=qxCodes[4]
+ this.qxCode.taskTransmit=qxCodes[5]
}else{
+ this.qxCode.groupScope='2'
+ this.qxCode.groupTransmit='1'
+ this.qxCode.testScope="2"
+ this.qxCode.testTransmit="1"
this.qxCode.taskScope="2"
- this.qxCode.taskTransmit="1"
+ this.qxCode.taskTransmit="1"
}
}
},
@@ -571,7 +618,7 @@
this.$notify({position:'bottom-left',showClose:true,message: "只有初始状态的项目可以修改,如确实需要修改,请进行项目变更审批", type: 'error' });
return;
}
- var msg=this.xmProduct&&this.xmProduct.id?'将自动关联产品【'+(this.xmProduct.productName?this.xmProduct.productName:this.xmProduct.id)+'】':'';
+ var msg=this.xmProduct&&this.xmProduct.id?'将自动关联项目【'+(this.xmProduct.productName?this.xmProduct.productName:this.xmProduct.id)+'】':'';
this.$refs.editForm.validate((valid) => {
if (valid) {
this.$confirm('确认提交吗?'+msg, '提示', {}).then(() => {
@@ -913,6 +960,7 @@
this.editFormBak=Object.assign({},row)
}else{
Object.assign(this.editForm,this.editFormBak)
+ this.initQxCode();
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'})
}
})
@@ -930,11 +978,9 @@
} else if (fieldName == "pmUserid") {
params["pmUserid"] = $event[0].userid;
params["pmUsername"] = $event[0].username;
- }else if (fieldName == "taskScope") {
- params.qxCode=[this.qxCode.taskScope,this.qxCode.taskTransmit].join(",")
- }else if (fieldName == "taskTransmit") {
- params.qxCode=[this.qxCode.taskScope,this.qxCode.taskTransmit].join(",")
- }else{
+ }else if (fieldName == "groupScope"||fieldName == "groupTransmit"||fieldName == "testScope"||fieldName=="testTransmit"||fieldName == "taskScope"||fieldName=="taskTransmit") {
+ params["qxCode"] = [this.qxCode.groupScope,this.qxCode.groupTransmit,this.qxCode.testScope,this.qxCode.testTransmit,this.qxCode.taskScope,this.qxCode.taskTransmit].join(",")
+ } else{
params[fieldName]=$event
}
if(fieldName=='description'){