|
@@ -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) {
|