sgw 1 день тому
батько
коміт
06166341af
2 змінених файлів з 12 додано та 12 видалено
  1. 11 11
      src/views/qw/sopTemp/myIndex.vue
  2. 1 1
      src/views/qw/sopTemp/sopTemp.vue

+ 11 - 11
src/views/qw/sopTemp/myIndex.vue

@@ -96,7 +96,7 @@
         >导出
         </el-button>
       </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getMyList"></right-toolbar>
     </el-row>
 
     <el-table v-loading="loading" border :data="sopTempList" @selection-change="handleSelectionChange">
@@ -191,7 +191,7 @@
       :total="total"
       :page.sync="queryParams.pageNum"
       :limit.sync="queryParams.pageSize"
-      @pagination="getList"
+      @pagination="getMyList"
     />
 
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
@@ -503,7 +503,7 @@ export default {
     };
   },
   created() {
-    this.getList();
+    this.getMyList();
 
     this.getDeptTreeSelect();
 
@@ -565,7 +565,7 @@ export default {
       });
     },
     /** 查询sop模板列表 */
-    getList() {
+    getMyList() {
       this.loading = true;
       listSopTempMyList(this.queryParams).then(response => {
         this.sopTempList = response.rows;
@@ -595,7 +595,7 @@ export default {
     /** 搜索按钮操作 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-      this.getList();
+      this.getMyList();
     },
     /** 重置按钮操作 */
     resetQuery() {
@@ -673,7 +673,7 @@ export default {
       this.redData.loading = true;
       updateRedPackage({list: this.redData.list}).then(e => {
         this.redData.open = false;
-        this.getList();
+        this.getMyList();
       }).catch(() => {
         this.redData.loading = false;
       });
@@ -745,7 +745,7 @@ export default {
               this.msgSuccess("复制成功");
               this.open = false;
               loading.close();
-              this.getList();
+              this.getMyList();
             });
           } else {
             if (f.id != null) {
@@ -753,14 +753,14 @@ export default {
                 this.msgSuccess("修改成功");
                 this.open = false;
                 loading.close();
-                this.getList();
+                this.getMyList();
               });
             } else {
               addTemp(f).then(response => {
                 this.msgSuccess("新增成功");
                 this.open = false;
                 loading.close();
-                this.getList();
+                this.getMyList();
               });
             }
           }
@@ -780,7 +780,7 @@ export default {
       }).then(() => {
         this.companys = [];
         this.shareOptions.open = false;
-        this.getList();
+        this.getMyList();
         this.msgSuccess("分享成功");
       });
     },
@@ -794,7 +794,7 @@ export default {
       }).then(function () {
         return delSopTemp(ids);
       }).then(() => {
-        this.getList();
+        this.getMyListgetMyList();
         this.msgSuccess("删除成功");
       }).catch(() => {
       });

+ 1 - 1
src/views/qw/sopTemp/sopTemp.vue

@@ -34,7 +34,7 @@
             plain
             icon="el-icon-edit"
             @click="handleSopTemp(scope.row)"
-            v-hasPermi="['qw:sopTemp:edit']"
+            v-hasPermi="['qw:sopTemp:edit', 'qw:sopTemp:myEdit', 'qw:sopTemp:deptEdit']"
           >选择此模板</el-button>
         </template>
       </el-table-column>