Sfoglia il codice sorgente

优化冗余代码,增加规则二级页面双击;

SunZehao 1 anno fa
parent
commit
459152b276

+ 0 - 5
src/components/assessment/monthQuarterYearFrom.vue

@@ -844,11 +844,6 @@ export default {
                                 .el-table__body-wrapper {
                                     height: 47vh !important;
                                     .el-scrollbar{
-                                        .is-horizontal{
-                                            .el-scrollbar__thumb{
-                                                // width: 100% !important;
-                                            }
-                                        }
                                         .el-table__body{
                                             .error-row {
                                                 --el-table-tr-bg-color: #fdecec;

+ 5 - 4
src/components/evaluationSystem/ruleDetailPage.vue

@@ -26,7 +26,7 @@
                                 <el-button
                                 type="success"
                                 size="mini"
-                                @click="handleEdit"
+                                @click="handleEdit()"
                                 :disabled="changeDateSelect.length === 0 || changeDateSelect.length>1"
                                 >
                                 <img :src="editW" style="margin-right: 10px">
@@ -47,7 +47,8 @@
                         </el-row>
                     </div>
                     <div class="ruleItemTableData">
-                        <el-table :data="ruleDetailData" style="width: 100%" @select="rowClick" @select-all="rowClick">
+                        <el-table :data="ruleDetailData" style="width: 100%"
+                         @select="rowClick" @select-all="rowClick" @row-dblclick="handleEdit">
                             <el-table-column type="selection" label="操作" align="center"></el-table-column>
                             <el-table-column type="index" label="序号" align="center"></el-table-column>
                             <el-table-column label="指标名称" prop="indicatorName" />
@@ -211,11 +212,11 @@ export default {
                 // this.$refs['itemForm'].resetFields()
             })
         },
-        handleEdit() {
+        handleEdit(row) {
             this.dialogVisible = true
             this.isSave = true
             this.title = '修改规则详情'
-            this.evalradio = this.changeDateSelect[0]
+            this.evalradio = row ? row : this.changeDateSelect[0]
             this.itemForm = {
                 indicator: this.evalradio.indicatorId,
                 minScore: this.evalradio.minScore,

+ 0 - 5
src/components/taskCenter/taskCenterEvlNewFrom.vue

@@ -906,11 +906,6 @@ export default {
                                 .el-table__body-wrapper {
                                     height: 35vh !important;
                                     .el-scrollbar{
-                                        .is-horizontal{
-                                            .el-scrollbar__thumb{
-                                                // width: 100% !important;
-                                            }
-                                        }
                                         .el-table__body{
                                             .error-row {
                                                 --el-table-tr-bg-color: #fdecec;