兰宝车间质量管理系统-前端
疯狂的狮子Li
2024-06-28 7637582437c1fe0bc70a4aaf47965fda165ea62d
update 优化 eslint
已修改20个文件
37 ■■■■■ 文件已修改
src/api/workflow/formManage/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/model/index.ts 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/model/types.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/nodeConfig/types.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/ImagePreview/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/hooks/useDialog.ts 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/AppMain.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/SocialCallback/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/permission.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitor/logininfor/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitor/operlog/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/client/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/config/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/dept/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/menu/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/oss/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/role/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/onlineDevice.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/resetPwd.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/thirdParty.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/formManage/index.ts
@@ -25,7 +25,7 @@
export const selectListFormManage = (): AxiosPromise<FormManageVO[]> => {
  return request({
    url: '/workflow/formManage/list/selectList',
    method: 'get',
    method: 'get'
  });
};
src/api/workflow/model/index.ts
src/api/workflow/model/types.ts
@@ -1,10 +1,10 @@
export interface ModelForm {
  id: string,
  id: string;
  name: string;
  key: string;
  categoryCode: string;
  xml:string,
  svg:string,
  xml: string;
  svg: string;
  description: string;
}
src/api/workflow/nodeConfig/types.ts
@@ -35,9 +35,4 @@
   * 表单管理
   */
  wfFormManageVo: FormManageVO;
}
src/components/ImagePreview/index.vue
src/hooks/useDialog.ts
src/layout/components/AppMain.vue
@@ -3,10 +3,10 @@
    <router-view v-slot="{ Component, route }">
      <transition :enter-active-class="animante" mode="out-in">
        <div>
          <keep-alive :include="tagsViewStore.cachedViews" v-if="!route.meta.noCache">
            <component v-if="!route.meta.link" :is="Component" :key="route.path" />
          <keep-alive v-if="!route.meta.noCache" :include="tagsViewStore.cachedViews">
            <component :is="Component" v-if="!route.meta.link" :key="route.path" />
          </keep-alive>
          <component v-if="!route.meta.link && route.meta.noCache" :is="Component" :key="route.path" />
          <component :is="Component" v-if="!route.meta.link && route.meta.noCache" :key="route.path" />
        </div>
      </transition>
    </router-view>
src/layout/components/SocialCallback/index.vue
@@ -18,7 +18,7 @@
const state = route.query.state as string;
const source = route.query.source as string;
const stateJson = JSON.parse(atob(state));
const tenantId = stateJson.tenantId as string ? stateJson.tenantId as string : '000000';
const tenantId = (stateJson.tenantId as string) ? (stateJson.tenantId as string) : '000000';
const domain = stateJson.domain as string;
const processResponse = async (res: any) => {
src/permission.ts
@@ -53,7 +53,7 @@
      next();
    } else {
      const redirect = encodeURIComponent(to.fullPath || '/');
      next(`/login?redirect=${redirect}`) // 否则全部重定向到登录页
      next(`/login?redirect=${redirect}`); // 否则全部重定向到登录页
      NProgress.done();
    }
  }
src/views/monitor/logininfor/index.vue
src/views/monitor/operlog/index.vue
src/views/system/client/index.vue
src/views/system/config/index.vue
src/views/system/dept/index.vue
src/views/system/menu/index.vue
src/views/system/oss/index.vue
@@ -13,7 +13,7 @@
            <el-form-item label="文件后缀" prop="fileSuffix">
              <el-input v-model="queryParams.fileSuffix" placeholder="请输入文件后缀" clearable @keyup.enter="handleQuery" />
            </el-form-item>
            <el-form-item label="创建时间" style="width: 308px;">
            <el-form-item label="创建时间" style="width: 308px">
              <el-date-picker
                v-model="dateRangeCreateTime"
                value-format="YYYY-MM-DD HH:mm:ss"
@@ -198,9 +198,9 @@
  showTable.value = true;
};
function checkFileSuffix(fileSuffix: string | string[]) {
  const arr = [".png", ".jpg", ".jpeg"];
  const arr = ['.png', '.jpg', '.jpeg'];
  const suffixArray = Array.isArray(fileSuffix) ? fileSuffix : [fileSuffix];
  return suffixArray.some(suffix => arr.includes(suffix.toLowerCase()));
  return suffixArray.some((suffix) => arr.includes(suffix.toLowerCase()));
}
/** 取消按钮 */
function cancel() {
src/views/system/role/index.vue
src/views/system/user/profile/onlineDevice.vue
@@ -18,8 +18,7 @@
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template #default="scope">
          <el-tooltip content="删除" placement="top">
            <el-button link type="primary" icon="Delete" @click="handldDelOnline(scope.row)">
            </el-button>
            <el-button link type="primary" icon="Delete" @click="handldDelOnline(scope.row)"> </el-button>
          </el-tooltip>
        </template>
      </el-table-column>
@@ -55,5 +54,4 @@
    })
    .catch(() => {});
};
</script>
src/views/system/user/profile/resetPwd.vue
@@ -45,7 +45,7 @@
      message: '长度在 6 到 20 个字符',
      trigger: 'blur'
    },
    { pattern: /^[^<>"'|\\]+$/, message: "不能包含非法字符:< > \" ' \\\ |", trigger: "blur" }
    { pattern: /^[^<>"'|\\]+$/, message: '不能包含非法字符:< > " \' \\\ |', trigger: 'blur' }
  ],
  confirmPassword: [
    { required: true, message: '确认密码不能为空', trigger: 'blur' },
src/views/system/user/profile/thirdParty.vue
@@ -58,7 +58,7 @@
<script lang="ts" setup>
import { authUnlock, authBinding } from '@/api/system/social/auth';
import { propTypes } from '@/utils/propTypes';
import useUserStore from "@/store/modules/user";
import useUserStore from '@/store/modules/user';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;