소스 검색

项目计划

duy 2 년 전
부모
커밋
e249520109
1개의 변경된 파일21개의 추가작업 그리고 15개의 파일을 삭제
  1. 21 15
      src/views/program/project/form.vue

+ 21 - 15
src/views/program/project/form.vue

@@ -16,23 +16,33 @@
             </div>
         </template>
         <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :row-style="tableRowStyle" hasChildren="hasChildren1" children="childrenList">
+            <template #projectProcessValue="{row,index}">
+               
+                <template v-if="row.taskFinishedStatus === 1">
+                    <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.projectProcessValue">
+                        <template #reference>
+                            <span class="text-hover">{{row.projectProcessValue}}</span>
+                        </template>
+                    </el-popover>
+                </template>
+                <span v-else>{{row.projectProcessValue}}</span>
+            </template>
             <template #planTaskType="{row,index}">
-                <el-select v-model="row.planTaskType" v-if="row.isEdit">
-                    <el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id"/>
+                <el-select v-model="row.planTaskType" v-if="row.isEdit" clearable>
+                    <el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id" />
                 </el-select>
                 <span v-else>{{row?.planTaskTypeValue}}</span>
             </template>
             <template #planTaskDesc="{row,index}">
-                <el-input v-model="row.planTaskDesc" v-if="row.isEdit"/>
+                <el-input v-model="row.planTaskDesc" v-if="row.isEdit" clearable/>
                 <span v-else>{{row.planTaskDesc}}</span>
             </template>
             <template #planTarget="{row,index}">
-                <el-input v-model="row.planTarget" v-if="row.isEdit"/>
+                <el-input v-model="row.planTarget" v-if="row.isEdit" clearable/>
                 <span v-else>{{row.planTarget}}</span>
             </template>
             <template #key7="{row,index}">
                 <HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="betweenTimeUpdate($event,row)" v-if="row.isEdit" clearable/>
-                <!-- <span v-else>{{row.key7}}</span> -->
                 <span v-else>
                     <span >{{row.planStartTime?row.planStartTime:''}}</span>
                     <span  v-if="row.planEndTime">~</span>
@@ -42,13 +52,9 @@
       
             </template>
             <template #planDays="{row,index}">
-                <el-input v-model="row.planDays" v-if="row.isEdit" disabled/>
+                <el-input v-model="row.planDays" v-if="row.isEdit" disabled clearable/>
                 <span v-else>{{row.planDays}}</span>
             </template>
-            <!-- <template #key9="{row,index}">
-                <el-input v-model="row.key9" v-if="row.isEdit"/>
-                <span v-else>{{row.key9}}</span>
-            </template> -->
             <template #action="{row,index}">
                 <el-button size="small" type="success" v-if="row.isEdit" @click="getWorkDays(row)">保存</el-button>
                 <el-button size="small" type="primary" v-else @click="row.isEdit = true" :disabled="row?.isShowEdit===0">编辑</el-button>
@@ -80,15 +86,15 @@
         </template>
             <HcTable :isIndex="false" :column="tableSubplanColumn" :datas="tableSubplanData">
                 <template #planTaskType="{row,index}">
-                    <el-select v-model="row.planTaskType" :disabled="!row.isEdit">
+                    <el-select v-model="row.planTaskType" :disabled="!row.isEdit" clearable>
                         <el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id"/>
                     </el-select>
                 </template>
                 <template #planTaskDesc="{row,index}">
-                    <el-input v-model="row.planTaskDesc" :disabled="!row.isEdit"/>
+                    <el-input v-model="row.planTaskDesc" :disabled="!row.isEdit" clearable/>
                 </template>
                 <template #planTarget="{row,index}">
-                    <el-input v-model="row.planTarget" :disabled="!row.isEdit"/>
+                    <el-input v-model="row.planTarget" :disabled="!row.isEdit" clearable/>
                 </template>
                 <template #key7="{row,index}">
                     <HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="subbetweenTimeUpdate($event,row)"  :disabled="!row.isEdit" clearable/>
@@ -96,10 +102,10 @@
                 </template>
                 <template #planDays="{row,index}" >
                     <!-- <el-input v-model="row.planDays" disabled/> -->
-                    <el-input v-model="row.planDays" disabled  />
+                    <el-input v-model="row.planDays" disabled  clearable/>
                 </template>
                 <template #key9="{row,index}">
-                    <el-input v-model="row.key9"/>
+                    <el-input v-model="row.key9" clearable/>
                 </template>
                 <template #action="{row,index}">
                 <el-button size="small" type="success" v-if="row.isEdit" @click="getWorkDays(row)">保存</el-button>