Bläddra i källkod

reactor:回访管理表格重构完成;

zhangchong 5 månader sedan
förälder
incheckning
7e8b98dd3e
1 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8 3
      src/views/business/visit/index.vue

+ 8 - 3
src/views/business/visit/index.vue

@@ -127,7 +127,7 @@
 							</span>
 						</template>
 					</vxe-column>
-					<vxe-column title="操作" fixed="right" width="200" align="center">
+					<vxe-column title="操作" fixed="right" width="200" align="center" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
 						<template #default="{ row }">
 							<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
 							<el-button
@@ -136,12 +136,17 @@
 								@click="updateVisitResult(row)"
 								title="修改回访结果"
 								v-auth="'business:visit:visitEdit'"
-								v-if="['ZiGong'].includes(themeConfig.appScope) && row.visitState === 30"
+								v-if="row.visitState === 30"
 							>
 								修改回访结果
 							</el-button>
 						</template>
 					</vxe-column>
+					<vxe-column title="操作" fixed="right" width="100" align="center" v-else>
+						<template #default="{ row }">
+							<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
+						</template>
+					</vxe-column>
 				</vxe-table>
 			</div>
 			<pagination
@@ -243,7 +248,7 @@
 </template>
 
 <script setup lang="tsx" name="businessVisit">
-import {  defineAsyncComponent, onMounted, reactive, ref } from 'vue';
+import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
 import { FormInstance } from 'element-plus';
 import { formatDate } from '@/utils/formatTime';
 import { visitList, visitSearchBaseData } from '@/api/business/visit';