Pārlūkot izejas kodu

修改月季年单位考评展示样式

SunZehao 1 gadu atpakaļ
vecāks
revīzija
f0e5317079
1 mainītis faili ar 26 papildinājumiem un 13 dzēšanām
  1. 26 13
      src/components/assessment/monthQuarterYearFrom.vue

+ 26 - 13
src/components/assessment/monthQuarterYearFrom.vue

@@ -85,7 +85,7 @@
                                     </div>
                                 </div>
                             </div>
-                            <el-table :data="monthQuarterYearData" style="width: 100%" ref="monthQuarterYearTT" 
+                            <!-- <el-table :data="monthQuarterYearData" style="width: 100%" ref="monthQuarterYearTT" 
                             v-if="activeName === 'ZDZX' || activeName === 'GLSX'"
                              :row-class-name="tableRowClassName" :border="true" >
                                 <el-table-column type="index" label="排名" align="center"></el-table-column>
@@ -119,9 +119,8 @@
                                         </template>
                                     </el-table-column>
                                 </el-table-column>
-                            </el-table>
+                            </el-table> v-else-->
                             <el-table :data="monthQuarterYearData" style="width: 100%" ref="monthQuarterYearTT"
-                            v-else
                              :row-class-name="tableRowClassName" :border="true" >
                                 <el-table-column type="index" label="排名" align="center"></el-table-column>
                                 <el-table-column label="考评单位" prop="organizationShortName" width="300">
@@ -141,16 +140,30 @@
                                     <el-table-column v-for="(iv, index) in it.children" :key="index" :label="iv.key"
                                      align="center" width="150" sortable :sort-method="(a,b)=>sortMethods(a,b,iv.code)">
                                         <template #default="scope">
-                                            <el-select v-model="scope.row[iv.code]" class="selectSty" placeholder="请选择审核状态" v-if="scope.row['IS_LH_'+iv.code] === '3'">
-                                                <el-option
-                                                v-for="item in statusData"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                                </el-option>
-                                            </el-select>
-                                            <el-input v-model="scope.row[iv.code]" class="inputSty" v-else-if="scope.row['IS_LH_'+iv.code] === '2'"></el-input>
-                                            <el-input-number v-model="scope.row[iv.code]" class="numberSty" :precision="2" :step="0.1" v-else />
+                                            <template v-if="!scope.row['operation']">
+                                                <el-select v-model="scope.row[iv.code]" class="selectSty" placeholder="请选择审核状态" v-if="scope.row['IS_LH_'+iv.code] === '3'">
+                                                    <el-option
+                                                    v-for="item in statusData"
+                                                    :key="item.id"
+                                                    :label="item.name"
+                                                    :value="item.id">
+                                                    </el-option>
+                                                </el-select>
+                                                <el-input v-model="scope.row[iv.code]" class="inputSty" v-else-if="scope.row['IS_LH_'+iv.code] === '2'"></el-input>
+                                                <el-input-number v-model="scope.row[iv.code]" class="numberSty" :precision="2" :step="0.1" v-else />
+                                            </template>
+                                            <template v-else>
+                                                <el-select v-model="scope.row[iv.code]" class="selectSty" placeholder="请选择审核状态" v-if="scope.row['IS_LH_'+iv.code] === '3'">
+                                                    <el-option
+                                                    v-for="item in statusData"
+                                                    :key="item.id"
+                                                    :label="item.name"
+                                                    :value="item.id">
+                                                    </el-option>
+                                                </el-select>
+                                                <span class="inputSty" v-else>{{scope.row[iv.code]}}</span>
+                                                <span class="indicitem" v-if="iv.code === 'operation'" @click="changeDetail(scope.row)">详情</span>
+                                            </template>
                                         </template>
                                     </el-table-column>
                                 </el-table-column>