浏览代码

任务项目不能选择相同的状态

qinzhipeng_v 5 年之前
父节点
当前提交
ee6bd8609b

+ 17 - 12
src/views/projectManage/projectList/projectViewDetails.vue

@@ -25,6 +25,7 @@
                 v-for="item in arr_status"
                 :key="item.value"
                 :command="{value:item.value,label:item.name}"
+                :disabled="form_query.statusString === item.name? true: false"
               >{{ item.name }}</el-dropdown-item>
             </el-dropdown-menu>
           </el-dropdown>
@@ -93,7 +94,7 @@
               <el-row>
                 <el-col :span="6">项目类型:</el-col>
                 <el-col :span="18">
-                  <div>{{ form_query.priorityStr }}</div>
+                  <div>{{ form_query.projectTypeStr }}</div>
                   <el-button
                     style="position: absolute;top: 5px;right: 0"
                     type="primary"
@@ -108,7 +109,7 @@
               </el-row>
               <el-row>
                 <el-col :span="6">优先级:</el-col>
-                <el-col :span="18">{{ form_query.projectTypeStr }}</el-col>
+                <el-col :span="18">{{ form_query.priorityStr }}</el-col>
               </el-row>
               <el-row>
                 <el-col :span="6">项目负责人:</el-col>
@@ -215,10 +216,10 @@
                       <pre class="description">{{ item.description }}</pre>
                     </p>
                     <!-- <el-tooltip effect="dark" :content="item.title" placement="bottom"> -->
-                    {{ item.title | ellipsis_title }}
+                    <span style="font-size: 16px; color: #333B4A; font-weight: 500;">{{ item.title | ellipsis_title }}</span>
                     <!-- </el-tooltip> -->
                     <br>
-                    {{ item.date | dateStr }}
+                    <span style="font-size: 12px; color: #9B9B9B;">{{ item.date | dateStr }}</span>
                   </div>
                 </li>
               </ul>
@@ -987,6 +988,9 @@ export default {
     },
     handleCommand(command) {
       // 修改状态
+      // if(this.form_query.statusString === command.label) {
+      //    this.$message({ message: '', type: 'error', duration: 1000, offset: 150 })
+      // }
       this.$set(this.form_query, 'statusString', command.label)
       this.project_from.status = command.value
       var projectInfo = this.project_from
@@ -1223,14 +1227,15 @@ export default {
 }
 .description {
   top: 310px;
-    position: relative;
-    // border: 1px solid rgb(191, 198, 220);
-    // border-radius: 8px;
-    padding: 5%;
-    height: 80px;
-    word-break: break-all;
-    white-space:pre-line;
-    overflow-y: auto;
+  position: relative;
+  font-size: 14px;
+  color: #333B4A;
+  padding: 5%;
+  height: 80px;
+  font-weight: 500;
+  word-break: break-all;
+  white-space:pre-line;
+  overflow-y: auto;
 }
 .details .el-input__count{
   display: none;

+ 1 - 1
src/views/projectManage/requirement/list/create.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog :visible.sync="isVisible" width="60%">
+  <el-dialog :visible.sync="isVisible" width="70%">
     <div style="display:flex;align-items: center;margin: 5px 0px 25px 42px;">
       <div style="width:4px;height:17px;background:rgba(64,158,255,1);border-radius:1px;" />
       <div style="width:83px;height:20px;font-size:18px;font-family:MicrosoftYaHei;color:rgba(51,59,74,1);margin-left:6px">{{ title }}</div>

+ 1 - 1
src/views/projectManage/taskList/taskViewDetails.vue

@@ -32,6 +32,7 @@
                 v-for="item in taskStatus"
                 :key="item.value"
                 :command="{value:item.code,label:item.msg}"
+                :disabled="task_form.statusString === item.msg? true: false"
               >{{ item.msg }}</el-dropdown-item>
             </el-dropdown-menu>
           </el-dropdown>
@@ -913,7 +914,6 @@ export default {
       })
     },
     event_update(e) {
-      console.log(e, 'a')
       // 编辑事件
       this.even = '编辑事件'
       this.$refs['form'].validate(valid => {