Kaynağa Gözat

回访权限

1
mo 2 yıl önce
ebeveyn
işleme
74a60aa02b

+ 5 - 3
src/views/returnVisitManager/components/returnVisitList.vue

@@ -170,7 +170,7 @@
                 <el-button type="text" @click="lookDetail(scope.row)"
                   >查看</el-button
                 >
-                <el-button type="text" v-if="!scope.row.probStatus" @click="updateState(scope.row)"
+                <el-button type="text" v-if="!scope.row.probStatus&&permission('visit/updateProbStatus')" @click="updateState(scope.row)"
                   >状态修改</el-button
                 >
               </div>
@@ -257,7 +257,7 @@ import { getVisitList,updateProbStatus } from "../api.js";
 import cleanDeep from "clean-deep";
 import { getTimes } from "@/utils";
 import { resetQuery } from "@/utils/utils";
-
+import { permission } from "@/utils/directivePage";
 export default {
   components: { pagination },
   data() {
@@ -308,7 +308,6 @@ export default {
     this.getList();
     if (this.$route.query.search || this.$route.query.timer) {
       // console.log( )
-      console.log("进来了");
       resetQuery(this, { timer: undefined, search: undefined });
     }
   },
@@ -391,6 +390,9 @@ export default {
         this.searchForm.endTime = null;
       }
     },
+    permission(str) {
+      return permission(str);
+    },
   },
   watch: {
     detailVisible(val) {

+ 7 - 1
src/views/returnVisitManager/components/waitVisit.vue

@@ -120,7 +120,8 @@
           </el-table-column>
           <el-table-column align="center" prop="masterTeacherName" label="操作">
             <template slot-scope="scope">
-              <div>
+              <!-- visit/add?wait -->
+              <div v-if="permission('visit/add?wait')">
                 <el-button type="text" @click="addVisit(scope.row)"
                   >新增回访</el-button
                 >
@@ -166,6 +167,7 @@ import cleanDeep from "clean-deep";
 import { getTimes } from "@/utils";
 import { resetQuery } from "@/utils/utils";
 import visit from "@/views/withdrawal-application/modals/visit";
+import { permission } from "@/utils/directivePage";
 export default {
   components: { pagination, visit },
   data() {
@@ -290,7 +292,11 @@ export default {
         params: { search: search },
       });
     },
+    permission(str) {
+      return permission(str);
+    },
   },
+
   watch: {
     detailVisible(val) {
       if (!val) {

+ 2 - 2
src/views/returnVisitManager/index.vue

@@ -11,10 +11,10 @@
         type="card"
         @tab-click="handleClick"
       >
-        <el-tab-pane label="待回访列表" lazy name="1"  v-permission="'smallStudentManager/vipClass'">
+        <el-tab-pane label="待回访列表" lazy name="1"  v-permission="'visit/queryVisitPage'">
           <waitVisit v-if="activeIndex === '1'" />
         </el-tab-pane>
-        <el-tab-pane label="回访记录" lazy name="2" v-permission="'smallStudentManager/theoryClass'">
+        <el-tab-pane label="回访记录" lazy name="2" v-permission="'visit/queryPage'">
           <returnVisitList  v-if="activeIndex === '2'" />
         </el-tab-pane>
       </tab-router>