tangning преди 2 години
родител
ревизия
2bba8791d4
променени са 4 файла, в които са добавени 9 реда и са изтрити 5 реда
  1. 2 1
      src/views/account/data.ts
  2. 5 1
      src/views/account/lists.vue
  3. 1 2
      src/views/customer/device.vue
  4. 1 1
      src/views/statistics/viewKankan/lineEcharts.vue

+ 2 - 1
src/views/account/data.ts

@@ -2,7 +2,7 @@ import { FormSchema } from '/@/components/Form/index';
 import { BasicColumn } from '/@/components/Table/src/types/table';
 import { Time } from '/@/components/Time';
 import { h } from 'vue';
-
+const isDev = window.location.hostname.includes('eur');
 export interface ListItem {
   key: string;
   title: string;
@@ -216,6 +216,7 @@ export const userListSchema: BasicColumn[] = [
   },{
     title: '邮箱',
     width: 150,
+    ifShow: !isDev,
     dataIndex: 'email',
   },{
     title: '注册时间',

+ 5 - 1
src/views/account/lists.vue

@@ -14,7 +14,7 @@
   </BasicTable>
 </template>
 <script lang="ts">
-import { defineComponent } from 'vue';
+import { defineComponent, computed } from 'vue';
 import { BasicTable, useTable, FormProps, TableAction } from '/@/components/Table';
 import { PageWrapper } from '/@/components/Page';
 import { Divider, Card, Empty, Descriptions, Steps, Tabs } from 'ant-design-vue';
@@ -24,6 +24,7 @@ import { useI18n } from '/@/hooks/web/useI18n';
 import { useRouter } from 'vue-router'
 import { otherInfoStore } from '/@/store/modules/other'
 import { usePermissionStore } from '/@/store/modules/permission';
+import { useUserStore } from '/@/store/modules/user';
 export default defineComponent({
 components: {
 BasicTable,
@@ -43,6 +44,8 @@ setup() {
 const { t } = useI18n();
 const { setOverviewInfo } = otherInfoStore();
 const router = useRouter()
+const userStore = useUserStore();
+const isDev = computed(() => userStore.getSystemEnv);
 const permissionStore = usePermissionStore();
 const { getCheckPerm } = permissionStore;
 const searchForm: Partial<FormProps> = {
@@ -63,6 +66,7 @@ const searchForm: Partial<FormProps> = {
       field: 'email',
       label: '用户邮箱',
       component: 'Input',
+      ifShow: !isDev.value,
       componentProps: {
         maxLength: 100,
       },

+ 1 - 2
src/views/customer/device.vue

@@ -60,8 +60,7 @@
     setup() {
       const { createMessage, createConfirm } = useMessage();
       const [registerLinkModal, { openModal: openLinkModal }] = useModal();
-      const router = useRouter();
-      const companyId: Number = router.currentRoute.value.params.id - 0;
+      const router = useRouter();const companyId: Number = router.currentRoute.value.params.id - 0;
       const permissionStore = usePermissionStore();
       const { getCheckPerm } = permissionStore;
       onMounted(() => {

+ 1 - 1
src/views/statistics/viewKankan/lineEcharts.vue

@@ -1,7 +1,7 @@
 <template>
   <Card :title="title" :loading="loading">
     <template #extra>
-      <condition :selectTimeType="1"  :type="title=='管理中心用户活跃度统计'?'0':'2'"  :typeShow="title=='管理中心用户活跃度统计'" @change="Search"  @expor="handleExport" />
+      <condition :selectTimeType="title=='管理中心用户活跃度统计'?1:0"  :type="title=='管理中心用户活跃度统计'?'0':'2'"  :typeShow="title=='管理中心用户活跃度统计'" @change="Search"  @expor="handleExport" />
     </template>
       <div ref="chartRef" :style="{ height, width }"></div>
   </Card>