luowei hai 1 ano
pai
achega
e12b59aa0c
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/views/resumptionEvaluate/evaluate/index.vue

+ 7 - 1
src/views/resumptionEvaluate/evaluate/index.vue

@@ -162,6 +162,7 @@
                   size="mini"
                   @click="publishHandler(row)"
                   type="text"
+                  v-if="row.orgId==isEdit"
                   :class="
                     row.isDistribute == 0
                       ? 'el-icon-arrow-down'
@@ -171,14 +172,17 @@
                 >
                 <el-button
                   size="mini"
+                
                   @click="editHandler(row)"
                   type="text"
+                  v-if="row.orgId==isEdit"
                   class="el-icon-edit-outline"
                   >编辑</el-button
                 ><el-button
                   size="mini"
                   @click="deleteHandler(row)"
                   type="text"
+                  v-if="row.orgId==isEdit"
                   class="el-icon-delete"
                   >删除</el-button
                 >
@@ -237,6 +241,7 @@ export default {
         pageSize: 10,
         ...query,
       },
+      isEdit:null,
       // 显示搜索条件
       showSearch: true,
       total: 0,
@@ -269,7 +274,8 @@ export default {
       this.loading = true;
       // this.queryParams.orgId=this.orgId
       list(this.queryParams).then((res) => {
-        this.dataList = res?.rows || [];
+        this.dataList = res?.data.rows || [];
+this.isEdit= res?.isEdit;
         this.total = res?.total || [];
         this.loading = false;
       });