Commit 00cbe8db by chenwq

Merge branch 'SAAS+V5.8.2' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.8.2-cwq
2 parents c7eb7a1c 25067816
File mode changed
File mode changed
File mode changed
File mode changed
File mode changed
## API规范
调用接口时:
* 优先复用现有 API
* 使用项目已有 axios 封装
* 保持统一错误处理
不要直接创建新的请求框架。
## 调试规范
发现问题时:
### 第一步
阅读相关代码:
* 页面
* API
* Vuex
* Router
先理解逻辑再修改。
---
### 第二步
定位问题原因。
不要通过不断试错碰运气修复问题。
---
### 第三步
如果连续两次修改仍未解决:
必须进入系统化分析模式:
1. 分析可能根因
2. 提出验证方案
3. 给出至少3种解决方案
4. 分析优缺点
5. 推荐最终方案
## 表单规范
新增业务表单优先使用:
```text
glsx-combi-form
```
适用场景:
* 新增页面
* 编辑页面
* 弹窗表单
仅在无法满足需求时使用:
```text
el-form
```
并说明原因。
# Git Commit Message 规范
生成 commit message 时必须遵循 **Conventional Commits 规范**。
# Language
默认使用 **简体中文** 输出,包括:
- Git commit message
- Pull Request 描述
- 代码解释
- 技术说明
只有在代码注释或特殊要求时才使用英文。
## AI协作规范
与用户沟通时:
* 使用中文
* 简洁清晰
* 面向业务结果
避免:
* 堆砌术语
* 长篇理论分析
* 无关架构讨论
解释问题时:
向“不懂代码但逻辑清晰的人”解释。
## 本地开发规范
常用命令:
```bash
npm run dev
npm run start
npm run lint
npm run test:unit
```
默认不要执行:
```bash
npm run build
```
仅在:
* 用户明确要求
* 排查构建问题
时执行。
## 路由规范
遵循现有:
```text
router/modules
```
结构。
权限控制与动态路由逻辑保持一致。
不要创建第二套路由体系。
## 状态管理
使用:
```text
Vuex Modules
```
保持与现有 store 结构一致。
不要新增 Pinia。
## UI规范
### UI框架
统一使用:
* Element UI
* D2Admin
新增页面需要保持:
* 间距一致
* 表单风格一致
* 表格风格一致
* 弹窗风格一致
不要引入新的大型UI框架。
File mode changed
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
---
## 项目概述
嘀加智享车生活后台管理系统 (SAAS+) - 基于 Vue 2 + Element UI + D2Admin 的企业级后台管理系统
## 技术栈
| 类别 | 技术 |
|------|------|
| 核心框架 | Vue 2.6.10 + Vue Router 3.0.5 + Vuex 3.0.1 |
| UI 组件 | Element UI 2.13.2 + D2Admin |
| 构建工具 | Vue CLI 5.0.8 + Webpack 5 |
| Node 版本 | 14.21.3 (volta 配置) |
## 开发命令
```bash
# 开发启动
npm run dev # 或 npm run start (兼容旧 OpenSSL)
# 单元测试
npm run test:unit -- tests/unit/xxx.spec.js
npm run test:unit:legacy -- tests/unit/xxx.spec.js # legacy 模式
# E2E 测试
npx playwright test tests/e2e/xxx.spec.js
# 构建
npm run build
npm run build:nomock # 无 Mock 构建
# 代码检查
npm run lint
```
## 常见问题解决
### OpenSSL 参数问题
```bash
# 错误:--openssl-legacy-provider is not allowed in NODE_OPTIONS
# 解决:直接运行或使用 npx
npx vue-cli-service test:unit
npm run test:unit # 已移除 openssl 参数
```
### ES 模块转换问题
```bash
# 错误:SyntaxError: Unexpected token 'export' (lodash-es/nanoid)
# 已在 jest.config.js 配置 transformIgnorePatterns
```
### 测试相关
- Mock API: `jest.mock("@/api/xxx", () => ({ xxxApi: jest.fn() }))`
- 组件测试使用 `shallowMount` + stub 自定义指令
- Mixin inject 问题:`provide: { formContext: null }`
## 代码结构
```
src/
├── api/ # API 接口层 (按业务模块划分)
├── views/ # 页面视图 (24 个业务模块)
├── components/ # 公共组件 (d2-* 系列)
├── router/modules/ # 路由模块 (权限 902-921)
├── store/modules/ # Vuex 模块 (d2admin + 业务模块)
├── plugin/d2admin/ # D2Admin 核心插件
├── common/ # 公共业务逻辑
└── libs/ # 工具库
```
## 业务模块
| 编号 | 模块 | 编号 | 模块 |
|------|------|------|------|
| 902 | 流量管理 | 912 | 驻店管理 |
| 903 | 产品管理 | 913 | 内容管理 |
| 904 | 订单管理 | 914 | 积分管理 |
| 905 | 财务管理 | 915 | 预警管理 |
| 906 | 系统设置 | 916 | 大模型 |
| 907 | 首页 | 917 | 发票管理 |
| 908 | 库存管理 | 918 | 话术管理 |
| 909 | 采购管理 | 919 | 服务中心 |
| 910 | 权益管理 | 920 | 二手车管理 |
| 911 | 车损管理 | 921 | 销售管理 |
## 架构特点
1. **动态路由** - 基于权限的路由和菜单生成
2. **统一 API 层** - 按业务模块划分,统一签名/鉴权机制
3. **D2Admin 封装** - d2-container/d2-table/d2-form 等组件
4. **多环境配置** - .env + .env.development + .env.nomock
## 环境地址
- 开发:http://192.168.3.233:8090/saas_plus/dj-car-life-system
- 测试:http://frontend.test.glsx.com.cn/dj-carlife-web/
- 生产:http://dj.glsx.com.cn/dj-carlife-web/
## 分支管理
主干:`master` / `develop`
# dj-car-life-system — Cursor / AI 工作区规则
## 项目与本仓库技术栈(唯一事实)
- **项目名称**:`dj-car-life-system`
- **产品形态**:嘀加智享车生活 **Web 管理后台 SPA**,与**微信小程序工程、小程序原生 API 无关**。不要按小程序目录或分包去设计功能。
- **构建**:Vue CLI 5(`vue-cli-service`),Webpack 打包;本地常用 `npm run serve` / `npm run start`。
- **核心依赖**:Vue **2.6**,**Vue Router 3**,**Vuex 3**,**Element UI 2**,**axios**(及项目既有封装如 `glsk-toolkit` 等)。
- **工程语言**:主体为 **JavaScript**,与现有 `.vue`、`src/store`、`src/router` 保持一致。**不要默认**把整个项目改写为 Vue 3 / Pinia / `<script setup>` / 全仓库 TypeScript,除非仓库已明确迁移且用户提出要求。
- **UI 与框架**:沿用 **Element UI** 与 **`d2admin` 插件体系**(见 `src/plugin/d2admin`),新页面样式与全局布局应与现有后台一致。
- **非本仓库技术栈**:**Next.js / App Router / React** 等不适用;勿在方案中预设这些栈。
编写新代码时以 **Vue 2 单文件组件(SFC)**、**Options API**(`export default { … }`)为主,Vuex **模块化**、`store.modules`、路由模块化与 **`src/router`、`src/store`** 现有写法对齐。
Vue 能力与习惯用法参见 [Vue 2 文档](https://v2.cn.vuejs.org/)(中文版),勿以 Vue 3 独有 API(如 Composition API/`ref()` 作为必选规范)为主线。
# 角色与协作方式
你是精通 Vue 2 与中后台开发的工程师,以帮助业务侧完成本后台需求为目标;表达清晰易懂,但不要为了「炫技」而引入与仓库不一致的技术。
# Goal
在用户提出需求后,主动推进需求澄清、方案与实现,尽量减少无效往返。
在理解需求、编写代码和解决问题时,遵循下面**统一的一条流程**,避免多套重复条目。
---
## 第一步:熟悉上下文
- 先阅读项目根目录 **README.md** 与相关代码,理解目标、模块划分和既有实现。
- 若 README 缺失重要说明且用户需要,可补充;**不要**仅为满足规则而大面积改写 README(用户另有要求时除外)。
# 本规则由 AI进化论-花生 创建,版权所有,引用请注明出处
---
## 第二步:需求与实现
### 理解需求
- 站在业务与最终用户角度理解;若存在歧义,用产品化方式追问,补全验收条件。
- 在满足需求的前提下,优先**最简单、可维护**的实现,并与本仓库风格一致。
### 编写代码
- 使用 Vue 2 SFC,组件化拆分;路由与导航、权限与现有 `router` 逻辑一致。
- 使用 **Vuex 3** 管理跨页状态,按模块组织;与 `d2admin`、现有 `store/modules` 模式一致。
- 网络请求使用项目已有 **axios** 封装与工具,不引入与后台无关的「小程序式」请求假设。
- 样式与响应式:管理后台以桌面端为主,与现有 Element + 布局习惯一致;新增页面注意与全局主题、表格/表单规范统一。
- 注释与错误处理:对非显而易见处写清意图;关键请求与用户操作保留必要错误提示(与项目现有 `Message` 等用法一致)。
### 解决问题
- 先通读相关文件,定位原因后再改。
- 善用浏览器 DevTools 与 **Vue DevTools**(Vue 2)排查。
- **当一个 bug 经过两次调整仍未解决时,启动「系统二」思考模式**:
1. 系统性分析可能根因
2. 列出可验证的假设与验证步骤
3. 给出**三种**可行方案,并说明各自优缺点
4. 由用户或场景选择最终方案
---
## 第三步:收尾
- 简要回顾改动与风险点;若涉及可复用模式,可提示后续优化方向(非强制摊派任务)。
---
## 架构与习惯(本仓库内)
1. 未说明技术栈时,**默认即本仓库栈**(Vue 2 + Vue Router 3 + Vuex 3 + Element UI + Vue CLI),不要引入 Next.js / React / 小程序原生作为默认方案。
2. 尽量复用现有目录与抽象,避免重复造轮子;功能块宜按现有习惯拆到独立文件。
3. 尽量不让用户为单次需求安装与项目无关的新运行时或大规模换栈。
## 设计要求
1. 管理后台界面与现有 Element 风格、间距与信息层级保持一致;避免与整站 UI 突兀的「另起一套」。
2. 需要图标时,优先与项目现有 icon/svg 体系一致;必要时可用简洁 SVG。
## 对话风格
1. 先理解用户要达成的结果,必要时追问关键细节。
2. 需求不清时,用简短问题收敛范围。
3. 完成后可客观补充**可选**的后续优化点,不强制。
## 本项目(dj-car-life-system)本地开发约定
- 本地开发**不要自动执行 `npm run build`**(生产构建耗时长,且非日常调试必需)。
- 验证改动优先:本地 **`npm run serve`**(或 `npm run start` / `npm run dev`,见 `package.json`)/ 在 IDE 中看报错;仅当用户明确要求打包、或需排查构建问题时再运行 `npm run build`。
# DJ Car Life System - AI Agent Instructions
## Project Overview
嘀加智享车生活后台系统是一个大型Vue 2企业管理后台系统,涵盖车主生活管理、订单管理、财务清分、员工管理等多个业务领域。支持多个API网关和签名方案。
## Architecture Essentials
### Tech Stack
- **Frontend**: Vue 2.6 + Vue Router 3.0 + Vuex 3.0
- **UI Framework**: Element UI 2.13
- **Build**: Vue CLI 5 + Webpack 5 + Babel
- **HTTP**: Axios with custom signing layer
- **State Management**: Vuex with d2admin framework module
- **Node Version**: 14.21.3
### Project Structure
```
src/
├── api/ # API layer with custom request signing (~50+ service files)
├── views/ # 23+ feature modules (financeManage/, salesManagement/, etc.)
├── router/ # Dynamic route loading with permission checks
├── store/ # Vuex modules (d2admin, goodsInfoData, FinancialRules)
├── common/ # Shared utilities & configs (baseConfig.js, util.js, format.js)
├── components/ # Reusable UI components
├── plugin/ # Core plugins (d2admin framework, axios, error handling)
└── assets/ # Style, SVG icons, localization resources
```
## Critical Development Patterns
### 1. API Request Layer Architecture
The system uses a **custom ROP (Request-Over-Protocol) gateway pattern** with multiple API endpoints:
```javascript
// Each API file (api/account.js, api/orderManage.js, etc.) follows:
import request from './request'
const path = 'dj.api.smartcarlife.'
export function getListApi(data) {
data.method = `${path}orderDivision.page` // Service method name
return request(data, 'post')
}
```
**Key Points**:
- `data.method` determines which backend service is invoked (not the URL)
- `request()` in [src/api/request.js](src/api/request.js) handles:
- API routing via `baseConfig[apiName]` mappings (axios, axios2-10, axios_strategy)
- Request signing (SHA1/MD5) based on method prefix
- Session token injection from cookies
- Multiple API gateways: dj, scrm, merchants, reportExport, riskmanage, strategy
### 2. Multi-Gateway Routing
[src/api/request.js#L18-L66](src/api/request.js#L18-L66) contains the routing logic:
- `dj.api.smartcarlife.*` → axios (main gateway)
- `dj.api.script.*` → axios7 (script service)
- `risk.manage.api.*` → axios10 (risk management)
- `scrm.api.shopmall.*` → axios2 (SCRM shopping)
- Each maps to different `appkey/secret` in [src/common/baseConfig.js](src/common/baseConfig.js)
### 3. State Management
Vuex store structure ([src/store/modules/](src/store/modules/)):
- **d2admin**: Main framework state (page navigation, auth, search, themes)
- **goodsInfoData**: Product information shared across modules
- **FinancialRules**: Financial configuration rules
- **performanceFormStore**: Resident management performance data
Access pattern: `this.$store.dispatch('d2admin/page/currentSet', path)`
### 4. Router & Permission System
[src/router/index.js](src/router/index.js):
- Dynamic route loading from Vuex auth state
- Router guards intercept all navigation (`router.beforeEach`)
- NProgress bar shows loading state
- Permission source comes from `store.state.d2admin.auth.source`
### 5. View Module Organization
Features live in [src/views/](src/views/) folders with encapsulated patterns:
```
views/
├── financeManage/ # Financial clearing & reconciliation
├── salesManagement/ # Sales dashboards & analytics
├── orderManage/ # Order lifecycle management
├── residentManage/ # Resident info & performance tracking
├── goods/ # Product management & SKU
└── invoiceManage/ # Invoice generation & tracking
```
Each module can have local stores, components, and APIs.
## Build & Development Workflow
### Commands
```bash
npm run dev # Local development (with --openssl-legacy-provider flag)
npm run build # Production build
npm run build:nomock # Build without mock data
npm run lint # ESLint fix
npm run test:unit # Jest unit tests
npm run report # Build with webpack report
```
### Configuration
- **Base path**: `/dj-carlife-web/` (set in [vue.config.js](vue.config.js))
- **CDN**: https://img02.glsx.com.cn/dj-carlife-web for assets
- **Mock support**: Via [src/mock/d2-mock/](src/mock/d2-mock/) (mockjs-based)
- **Sentry integration**: Error tracking in production only
## Code Patterns & Conventions
### Export Functions from API Files
Always use named exports with `Api` suffix:
```javascript
export function getListApi(data) { ... } // List endpoints
export function getDetailApi(data) { ... } // Detail/fetch
export function updateXxxApi(data) { ... } // Create/update
export function deleteXxxApi(data) { ... } // Delete
export function exportXxxApi(data) { ... } // Export to Excel
```
### View Component Structure
```vue
<template>
<!-- Element UI components: el-table, el-dialog, el-form -->
</template>
<script>
import * as accountApi from '@/api/account'
export default {
data() { return { list: [], filters: {} } },
methods: {
async fetchList() {
const res = await accountApi.getListApi(this.filters)
this.list = res.data
}
}
}
</script>
```
### Common Utilities
- **[src/common/util.js](src/common/util.js)**: Util.msg() for dialogs, cookies management, date formatting
- **[src/common/format.js](src/common/format.js)**: Formatting helpers for display
- **[src/common/Export2Excel.js](src/common/Export2Excel.js)**: Excel export via xlsx
- **[src/common/constants.js](src/common/constant/)**: Shared enums and constants
## Testing & Quality
### Jest Configuration
[jest.config.js](jest.config.js) tests located in `/tests/unit/**/*.spec.js`
### ESLint
Modern ESLint 9 + antfu config ([eslint.config.js](eslint.config.js))
## Deployment Notes
- **Environments**: Production (dj.glsx.com.cn), Testing (frontend.test.glsx.com.cn)
- **Multiple release branches**: dev_v4.x.x branches per release cycle
- **Legacy Node flags**: Build requires `NODE_OPTIONS=--openssl-legacy-provider` (Node 14 compatibility)
## Key Files for New Features
1. **API integration**: Add new exports in [src/api/](src/api/) matching service method
2. **View component**: Create in appropriate [src/views/](src/views/) module folder
3. **Store data**: Add to Vuex if cross-module state needed
4. **Routes**: Register in [src/router/routes.js](src/router/routes.js) or dynamic loading
5. **Styles**: Use SCSS in [src/assets/style/](src/assets/style/), leverage flex.css utility classes
## Common Tasks
- **Add new API endpoint**: Create function in relevant api/*.js file, inject session/signature in request()
- **Create list page**: Use Element Table + pagination, implement async fetchList() method
- **Export to Excel**: Import Export2Excel from common/, pass table data
- **Add menu item**: Register in router + add permission checks in router.beforeEach
- **Cross-component communication**: Use Vuex store or pass via props/events
---
# Language
默认使用 **简体中文** 输出,包括:
- Git commit message
- Pull Request 描述
- 代码解释
- 技术说明
只有在代码注释或特殊要求时才使用英文。
---
# Git Commit Message 规范
生成 commit message 时必须遵循 **Conventional Commits 规范**。
## 基本格式
type: 简短描述
......@@ -26,3 +26,11 @@ yarn-error.log*
*.njsproj
*.sln
*.sw*
# AI Local
.cursor/
.claude/settings.local.json
.roo/
.copilot/
.windsurf/
# 项目协作规则
# AGENTS.md
## 沟通方式
- 向用户汇报成果时,用简洁明了的中文说明做了什么、发生了什么。
- 避免使用术语、技术实现细节和代码行话;按“向不懂代码的聪明人解释”的方式表达。
- 汇报前尽量先检查工作,能运行或测试的先运行或测试。
# 项目AI规范
## 表单规则
- 后台页面新增或重写业务表单时,优先使用 `glsx-combi-form` 组件。
- 弹窗表单也按 `glsx-combi-form` 的配置化写法组织字段、校验和自定义插槽。
- 只有在 `glsx-combi-form` 无法满足交互时,才单独使用原生 `el-form`,并说明原因。
请优先阅读:
- /.ai/rules/ 目录下的文件
## 项目概述
### 项目名称
dj-car-life-system(嘀加智享车生活后台管理系统)
### 项目类型
企业级 Web 管理后台 SPA。
注意:
* 不是微信小程序
* 不是 H5 活动页
* 不是 React / Next.js 项目
* 不要按小程序架构设计功能
---
## 技术栈
### 核心框架
* Vue 2.6
* Vue Router 3
* Vuex 3
* Element UI 2
* D2Admin
### 构建工具
* Vue CLI 5
* Webpack 5
### 网络请求
* axios
* 项目已有封装
### 语言
* JavaScript
除非用户明确要求,否则不要:
* 升级 Vue3
* 引入 Pinia
* 使用 Composition API
* 使用 script setup
* 大规模 TypeScript 改造
---
## 项目结构
```text
src/
├── api/
├── views/
├── components/
├── router/modules/
├── store/modules/
├── plugin/d2admin/
├── common/
└── libs/
```
新增功能时优先遵循现有目录结构。
不要创建重复能力的目录和工具。
---
## 编码原则
### 优先遵循现有代码风格
修改代码时:
* 先阅读相关模块
* 保持现有命名风格
* 保持现有文件组织方式
* 保持现有组件拆分方式
不要为了追求“最佳实践”而大规模重构。
---
### 实现原则
优先级:
```text
正确
↓
简单
↓
可维护
↓
性能优化
```
优先选择:
* 最简单方案
* 最小改动方案
* 与现有系统一致方案
---
### 组件开发
默认使用:
```js
export default {};
```
即:
* Vue2 Options API
* 单文件组件(SFC)
不要默认使用:
* Composition API
* script setup
---
## 错误处理
用户操作失败时:
* 给出明确提示
* 保持与项目现有 Message 风格一致
不要静默失败。
## 测试规范
修改完成后优先:
* 检查代码逻辑
* 检查运行结果
* 检查控制台报错
能够验证的内容先验证。
不要直接宣布完成。
## 输出要求
完成任务后优先说明:
1. 做了什么
2. 为什么这么做
3. 风险点是什么
然后再补充可选优化建议。
不要把优化建议当成必须任务。
[![Build Status](https://www.travis-ci.org/d2-projects/d2-admin-start-kit.svg?branch=master)](https://www.travis-ci.org/d2-projects/d2-admin-start-kit)
## node 版本
14.21.3
[D2Admin](https://github.com/d2-projects/d2-admin) 简化版起始模板,删除所有完整版中的示例代码,保留所有核心功能。
## 包管理工具
npm 6.14.8
[码云镜像](https://gitee.com/fairyever/d2-admin-start-kit)
\ No newline at end of file
### AI 相关
* 项目忽略所有AI相关文件. 不要提交如 CLAUDE.md 等文件.
* 项目提供统一目录, 个人使用什么 AI 自己配置读取.ai/下的文件
* 如果你的AI工具不支持自定义目录, 请将 .ai 目录下的文件复制到你对应的目录下去, 以节省你的token
......@@ -13,94 +13,94 @@
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
// 测试文件位置
testDir: "./tests/e2e",
// 测试文件位置
testDir: "./tests/e2e",
// 超时时间
timeout: 30 * 1000,
// 超时时间
timeout: 30 * 1000,
// 每个测试的期望时间
expect: {
timeout: 5000,
},
// 每个测试的期望时间
expect: {
timeout: 5000,
},
// 失败重试次数
retries: 1,
// 失败重试次数
retries: 1,
// 并行执行配置
workers: 4,
// 并行执行配置
workers: 4,
// 是否失败即停止
failOnFlakyTests: false,
// 是否失败即停止
failOnFlakyTests: false,
// 报告配置
reporter: [
["list"],
["html", { outputFolder: "playwright-report", open: "never" }],
],
// 报告配置
reporter: [
["list"],
["html", { outputFolder: "playwright-report", open: "never" }],
],
// 共享配置
use: {
// 基础 URL
baseURL: process.env.BASE_URL || "http://localhost:8080",
// 共享配置
use: {
// 基础 URL
baseURL: process.env.BASE_URL || "http://localhost:8080",
// 截图配置
screenshot: "only-on-failure",
// 截图配置
screenshot: "only-on-failure",
// 录屏配置
video: "retain-on-failure",
// 录屏配置
video: "retain-on-failure",
// 追踪配置
trace: "retain-on-failure",
// 追踪配置
trace: "retain-on-failure",
// 浏览器上下文选项
actionTimeout: 10000,
navigationTimeout: 30000,
},
// 浏览器上下文选项
actionTimeout: 10000,
navigationTimeout: 30000,
},
// 浏览器配置
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1080 },
},
},
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
viewport: { width: 1920, height: 1080 },
},
},
{
name: "webkit",
use: {
...devices["Desktop Safari"],
viewport: { width: 1920, height: 1080 },
},
},
// 移动端测试
{
name: "Mobile Chrome",
use: {
...devices["Pixel 5"],
},
},
{
name: "Mobile Safari",
use: {
...devices["iPhone 12"],
},
},
],
// 浏览器配置
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1080 },
},
},
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
viewport: { width: 1920, height: 1080 },
},
},
{
name: "webkit",
use: {
...devices["Desktop Safari"],
viewport: { width: 1920, height: 1080 },
},
},
// 移动端测试
{
name: "Mobile Chrome",
use: {
...devices["Pixel 5"],
},
},
{
name: "Mobile Safari",
use: {
...devices["iPhone 12"],
},
},
],
// Web 服务器配置 (可选,用于自动启动开发服务器)
// webServer: {
// command: "npm run dev",
// port: 8080,
// timeout: 120 * 1000,
// reuseExistingServer: true,
// },
// Web 服务器配置 (可选,用于自动启动开发服务器)
// webServer: {
// command: "npm run dev",
// port: 8080,
// timeout: 120 * 1000,
// reuseExistingServer: true,
// },
});
......@@ -141,9 +141,8 @@
<el-tag v-if="hasValue(sub, scope.row)" :type="getSchemaTagOptions(sub, scope.row).type">
{{ getSchemaTagOptions(sub, scope.row).label }}
</el-tag>
<el-tag v-else>
-
</el-tag>
<span v-else>-</span>
</div>
</template>
......@@ -257,9 +256,7 @@
<el-tag v-if="hasValue(item, scope.row)" :type="getSchemaTagOptions(item, scope.row).type">
{{ getSchemaTagOptions(item, scope.row).label }}
</el-tag>
<el-tag v-else>
-
</el-tag>
<span v-else>-</span>
</div>
</template>
......
......@@ -60,6 +60,8 @@ export async function getTaskCenterTaskDescriptionSchema() {
item?.label || "-",
);
},
isHide: ({ formModel }) => !formModel.priority,
},
{
name: "assignees",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!