diff --git a/src/views/xm/core/xmProduct/XmProductEdit.vue b/src/views/xm/core/xmProduct/XmProductEdit.vue
index cfdc4073..d4709b96 100644
--- a/src/views/xm/core/xmProduct/XmProductEdit.vue
+++ b/src/views/xm/core/xmProduct/XmProductEdit.vue
@@ -5,20 +5,20 @@
-
-
-
+
+ >
产品代号:
- {{ editForm.code }} 产品编号:
{{ editForm.id }}
@@ -26,14 +26,14 @@
content="产品代号用于签订合同等甲乙方共享的场景;产品编号为内部编号,用于内部流转,编号生成规则:产品代号+四位随机码 "
>
-
-
-
+
+
+
-
+ placeholder="产品名称"
+ >
+
-
+
-
+
+ >
@@ -69,7 +69,7 @@
username-key="pmUsername"
v-model="editForm"
@change="editSomeFields(editForm, 'pmUserid', $event)"
- >
+ >
@@ -80,12 +80,12 @@
username-key="assUsername"
v-model="editForm"
@change="editSomeFields(editForm, 'assUserid', $event)"
- >
+ >
-
-
-
+
+
+
-
+
-
+
保存
-
+
@@ -113,7 +113,7 @@ import {
editXmProductSomeFields,
createProductCode
} from "@/api/xm/core/xmProduct";
-import { mapGetters } from "vuex";
+import { mapGetters } from "vuex";
import store from '@/store'
export default {
computed: {
@@ -144,8 +144,8 @@ export default {
},
visible: function (visible) {
if (visible == true) {
-
- this.initData();
+
+ this.initData();
this.initQxCode();
//从新打开页面时某些数据需要重新加载,可以在这里添加
}
@@ -262,12 +262,12 @@ export default {
},
userSelectVisible: false,
currTabPane:"1",
- /**
+ /**
权限码0,1,2,3,4,5,67,8,9,逗号分割
共10位,不定长,暂时只启用前6个位
第0位代表需求指派及crud权限:
0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- 第1位代表需求指派及crud时是否检查上下级关系:0-否(默认),1是
+ 第1位代表需求指派及crud时是否检查上下级关系:0-否(默认),1是
第2位代表测试相关(包括测试用例、测试库、测试计划、测试报告)指派及crud权限同第0位,
第3位代表测试相关(包括测试用例、测试库、测试计划、测试报告)指派及crud时是否检查上下级关系,同第1位
第4位代表迭代指派及crud时权限,同第0位
@@ -277,11 +277,11 @@ export default {
groupScope:'2',
groupTransmit:'1',
testScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- testTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ testTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
menuScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- menuTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ menuTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
iterationScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- iterationTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ iterationTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
},
/**begin 在下面加自定义属性,记得补上面的一个逗号**/
@@ -296,14 +296,14 @@ export default {
},
//新增提交XmProduct 产品表 父组件监听@submit="afterAddSubmit"
addSubmit: function () {
-
+
this.$refs.editForm.validate((valid) => {
if (valid) {
-
+
var msg=this.selProject&&this.selProject.id?'将自动关联项目【'+(this.selProject.name?this.selProject.name:this.selProject.id)+'】':'';
- this.$confirm('确认提交吗?'+msg, '提示', {}).then(() => {
+ this.$confirm('确认提交吗?'+msg, '提示', {}).then(() => {
this.load.add=true
- let params = Object.assign({}, this.editForm);
+ let params = Object.assign({}, this.editForm);
if(this.selProject &&this.selProject.id){
params.links=[{projectId:this.selProject.id}]
}
@@ -315,11 +315,11 @@ export default {
//this.$refs['addForm'].resetFields();
this.$emit('submit',res.data.data);// @submit="afterAddSubmit"
}
- this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' });
+ this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.add=false);
});
}else{
- this.$notify({position:'bottom-left',showClose:true,message: "表单检查不通过", type: 'error' });
+ this.$notify({position:'bottom-left',showClose:true,message: "表单检查不通过", type: 'error' });
}
});
},
@@ -343,7 +343,7 @@ export default {
params["startTime"] = row.startTime;
params["endTime"] = row.endTime;
} 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(",")
+ 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;
}
@@ -370,31 +370,31 @@ export default {
})
.catch((e) => Object.assign(this.editForm, this.editFormBak));
},
-
-
- createProductCode(){
+
+
+ createProductCode(){
createProductCode({}).then(res=>{
var tips=res.data.tips;
- if(tips.isOk){
+ if(tips.isOk){
this.$set(this.editForm,'code',res.data.data)
}
- this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' });
+ this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' });
})
},
-
+
initData(){
this.editForm=Object.assign(this.editForm,this.xmProduct)
- if(this.opType==='add'){
+ if(this.opType==='add'){
this.editForm.pmUserid=this.userInfo.userid
this.editForm.pmUsername=this.userInfo.username
this.editForm.admUserid=this.userInfo.userid
this.editForm.admUsername=this.userInfo.username
this.editForm.assUserid=this.userInfo.userid
- this.editForm.assUsername=this.userInfo.username
- }
+ this.editForm.assUsername=this.userInfo.username
+ }
this.editFormBak={...this.editForm}
},
-
+
initQxCode(){
var qxCode=this.editForm.qxCode
if(!qxCode){
@@ -431,9 +431,9 @@ export default {
},
/**end 在上面加自定义方法**/
}, //end method
- components: {
+ components: {
},
- mounted() {
+ mounted() {
initDicts(this);
this.initData();
this.initQxCode();
@@ -442,6 +442,6 @@ export default {
};
-
\ No newline at end of file
+
diff --git a/src/views/xm/core/xmProduct/XmProductSetting.vue b/src/views/xm/core/xmProduct/XmProductSetting.vue
index 2e6b8814..0d0eeabb 100644
--- a/src/views/xm/core/xmProduct/XmProductSetting.vue
+++ b/src/views/xm/core/xmProduct/XmProductSetting.vue
@@ -5,15 +5,15 @@
-
- {{ editForm.productName }}
+
+ {{ editForm.productName }}
产品代号:
- {{ editForm.code }} 产品编号:
{{ editForm.id }}
@@ -21,10 +21,10 @@
content="产品代号用于签订合同等甲乙方共享的场景;产品编号为内部编号,用于内部流转,编号生成规则:产品代号+四位随机码 "
>
-
+
-
+
+ >
@@ -44,7 +44,7 @@
username-key="pmUsername"
v-model="editForm"
@change="editSomeFields(editForm, 'pmUserid', $event)"
- >
+ >
@@ -55,15 +55,15 @@
username-key="assUsername"
v-model="editForm"
@change="editSomeFields(editForm, 'assUserid', $event)"
- >
+ >
-
-
-
-
-
-
+
+
+
+
+
+
不限制,允许任何人
同机构下的人员
@@ -72,13 +72,13 @@
- 是否检查用户的上下级关系
+ 是否检查用户的上下级关系
-
-
-
-
+
+
+
+
不限制,允许任何人
同机构下的人员
@@ -87,13 +87,13 @@
- 缺陷、用例等指派及crud是否检查用户的上下级关系
+ 缺陷、用例等指派及crud是否检查用户的上下级关系
-
-
-
-
+
+
+
+
不限制,允许任何人
同机构下的人员
@@ -102,13 +102,13 @@
- 迭代指派及crud是否检查用户的上下级关系
+ 迭代指派及crud是否检查用户的上下级关系
-
-
-
-
+
+
+
+
不限制,允许任何人
同机构下的人员
@@ -117,11 +117,11 @@
- 需求指派及crud是否检查用户的上下级关系
+ 需求指派及crud是否检查用户的上下级关系
-
-
+
+
@@ -134,7 +134,7 @@ import {
editXmProductSomeFields,
createProductCode
} from "@/api/xm/core/xmProduct";
-import { mapGetters } from "vuex";
+import { mapGetters } from "vuex";
import store from '@/store'
export default {
computed: {
@@ -151,8 +151,8 @@ export default {
},
visible: function (visible) {
if (visible == true) {
-
- this.initData();
+
+ this.initData();
this.initQxCode();
//从新打开页面时某些数据需要重新加载,可以在这里添加
}
@@ -162,7 +162,7 @@ export default {
return {
dicts: { xmProductPstatus: [] }, //下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]}
load: { list: false, add: false, del: false, edit: false }, //查询中...
- editFormRules: {
+ editFormRules: {
},
//新增界面数据 产品表
editForm: {
@@ -234,13 +234,13 @@ export default {
locked: "",
del: "",
ltime: "",
- },
- /**
+ },
+ /**
权限码0,1,2,3,4,5,67,8,9,逗号分割
共10位,不定长,暂时只启用前6个位
第0位代表需求指派及crud权限:
0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- 第1位代表需求指派及crud时是否检查上下级关系:0-否(默认),1是
+ 第1位代表需求指派及crud时是否检查上下级关系:0-否(默认),1是
第2位代表测试相关(包括测试用例、测试库、测试计划、测试报告)指派及crud权限同第0位,
第3位代表测试相关(包括测试用例、测试库、测试计划、测试报告)指派及crud时是否检查上下级关系,同第1位
第4位代表迭代指派及crud时权限,同第0位
@@ -250,11 +250,11 @@ export default {
groupScope:'2',
groupTransmit:'1',
testScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- testTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ testTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
menuScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- menuTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ menuTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
iterationScope:'2',//0-代表不限制,1-同组织,2-同项目组(默认),3-同小组
- iterationTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
+ iterationTransmit:'1',//0-不控制,1任务指派及crud必须检查用户的上下级关系
},
/**begin 在下面加自定义属性,记得补上面的一个逗号**/
@@ -267,7 +267,7 @@ export default {
this.$refs["editForm"].resetFields();
this.$emit("cancel");
},
-
+
editSomeFields(row, fieldName, $event) {
if(this.opType==='add'){
@@ -285,7 +285,7 @@ export default {
params["pmUserid"] = $event[0].userid;
params["pmUsername"] = $event[0].username;
} 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(",")
+ 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;
}
@@ -312,13 +312,13 @@ export default {
})
.catch((e) => Object.assign(this.editForm, this.editFormBak));
},
-
-
+
+
initData(){
- this.editForm=Object.assign(this.editForm,this.xmProduct)
+ this.editForm=Object.assign(this.editForm,this.xmProduct)
this.editFormBak={...this.editForm}
},
-
+
initQxCode(){
var qxCode=this.editForm.qxCode
if(!qxCode){
@@ -355,9 +355,9 @@ export default {
},
/**end 在上面加自定义方法**/
}, //end method
- components: {
+ components: {
},
- mounted() {
+ mounted() {
initDicts(this);
this.initData();
this.initQxCode();
@@ -366,6 +366,6 @@ export default {
};
-
\ No newline at end of file
+
diff --git a/src/views/xm/core/xmProject/XmProjectEdit.vue b/src/views/xm/core/xmProject/XmProjectEdit.vue
index 1c12b147..a6514d90 100644
--- a/src/views/xm/core/xmProject/XmProjectEdit.vue
+++ b/src/views/xm/core/xmProject/XmProjectEdit.vue
@@ -38,19 +38,19 @@
-
+
-
+
-
+