qinzhipeng_v@didiglobal.com 4 anos atrás
pai
commit
8133a2e9d8

+ 13 - 5
src/views/projectManage/requirement/components/BasicsCode.vue

@@ -213,6 +213,7 @@ export default {
     value: {
     value: {
       handler(newV, old) {
       handler(newV, old) {
         this.form_query = newV
         this.form_query = newV
+        this.belongingProject(newV)
       },
       },
       deep: true,
       deep: true,
       immediate: true
       immediate: true
@@ -260,13 +261,15 @@ export default {
     jump(page, id) { // 跳转
     jump(page, id) { // 跳转
       this.$router.push({ name: page, query: { id: id }})
       this.$router.push({ name: page, query: { id: id }})
     },
     },
-    async showRequirementEnum() { // 获取需求状态列表,优先级列表,需求来源
-      if (this.form_query.belongingProject !== -1 && this.form_query.belongingProject) {
-        this.Jump.url = { name: '项目详情', query: { id: this.form_query.belongingProject }}
+    belongingProject(e) {
+      if (e.belongingProject && e.belongingProject !== -1) {
+        this.Jump.url = { name: '项目详情', query: { id: e.belongingProject }}
       }
       }
-      if (this.form_query.iterationId !== -1 && this.form_query.iterationId) {
-        this.Jump.url1 = { name: '迭代详情', query: { id: this.form_query.iterationId }}
+      if (e.iterationId !== -1 && e.iterationId) {
+        this.Jump.url1 = { name: '迭代详情', query: { id: e.iterationId }}
       }
       }
+    },
+    async showRequirementEnum() { // 获取需求状态列表,优先级列表,需求来源
       const res1 = await projectListProject({ bizId: Number(localStorage.getItem('bizId')) })
       const res1 = await projectListProject({ bizId: Number(localStorage.getItem('bizId')) })
       if (res1.code === 200) {
       if (res1.code === 200) {
         this.belongProjectList = res1.data
         this.belongProjectList = res1.data
@@ -358,6 +361,11 @@ export default {
         margin-right: 0;
         margin-right: 0;
         margin-bottom: 1px;
         margin-bottom: 1px;
       }
       }
+      >>>.el-form-item__content {
+        width: calc(100% - 125px);
+        color: #333333;
+        font-size: 14px;
+      }
     }
     }
     .PRD-link {
     .PRD-link {
       width: 50%;
       width: 50%;