From 7eaaeeabd23c0172f4599601241dce20c4f52410 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期一, 09 三月 2026 10:42:18 +0800
Subject: [PATCH] feat(projectManagement): 新增项目类型管理功能
---
src/views/projectManagement/projectType/index.vue | 462 ++++++++++++++++++++++++++++++
src/views/projectManagement/projectType/components/ProjectTypeDialog.vue | 385 +++++++++++++++++++++++++
src/api/projectManagement/projectType.js | 27 +
3 files changed, 874 insertions(+), 0 deletions(-)
diff --git a/src/api/projectManagement/projectType.js b/src/api/projectManagement/projectType.js
new file mode 100644
index 0000000..8777e59
--- /dev/null
+++ b/src/api/projectManagement/projectType.js
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 鏌ヨ椤圭洰绫诲瀷鍒楄〃
+export function listPlan(data) {
+ return request({
+ url: '/projectManagement/plan/listPage',
+ method: 'post',
+ data: data
+ })
+}
+
+// 淇濆瓨椤圭洰绫诲瀷锛堟柊澧�/淇敼锛�
+export function savePlan(data) {
+ return request({
+ url: '/projectManagement/plan/save',
+ method: 'post',
+ data: data
+ })
+}
+
+// 鍒犻櫎椤圭洰绫诲瀷
+export function deletePlan(id) {
+ return request({
+ url: `/projectManagement/plan/delete/${id}`,
+ method: 'post'
+ })
+}
diff --git a/src/views/projectManagement/projectType/components/ProjectTypeDialog.vue b/src/views/projectManagement/projectType/components/ProjectTypeDialog.vue
new file mode 100644
index 0000000..6e3df3c
--- /dev/null
+++ b/src/views/projectManagement/projectType/components/ProjectTypeDialog.vue
@@ -0,0 +1,385 @@
+<template>
+ <el-dialog
+ :title="title"
+ v-model="visible"
+ width="1000px"
+ append-to-body
+ @close="handleClose"
+ >
+ <el-form ref="formRef" :model="form" :rules="rules" label-width="0">
+ <!-- 椤堕儴鍩虹淇℃伅 -->
+ <div class="base-info-row">
+ <div class="info-item">
+ <span class="item-label required">鍚嶇О</span>
+ <el-input
+ v-model="form.name"
+ placeholder="璇疯緭鍏ュ悕绉�"
+ maxlength="10"
+ show-word-limit
+ style="width: 220px"
+ />
+ </div>
+ <div class="info-item">
+ <span class="item-label">澶囨敞</span>
+ <el-input
+ v-model="form.description"
+ placeholder="璇疯緭鍏ュ娉�"
+ maxlength="20"
+ show-word-limit
+ style="width: 220px"
+ />
+ </div>
+ <div class="info-item">
+ <span class="item-label">闄勪欢</span>
+ <el-upload
+ action="#"
+ :auto-upload="false"
+ :show-file-list="false"
+ @change="handleFileChange"
+ >
+ <el-button type="primary">涓婁紶闄勪欢</el-button>
+ </el-upload>
+ </div>
+ </div>
+
+ <!-- 姝ラ閰嶇疆琛ㄦ牸 -->
+ <div class="step-table-container">
+ <el-table :data="form.savePlanNodeList" border style="width: 100%">
+ <el-table-column label="姝ラ" width="80" align="center">
+ <template #default="scope">
+ {{ scope.$index + 1 }}
+ </template>
+ </el-table-column>
+
+ <el-table-column label="闃舵鍚嶇О" min-width="150">
+ <template #header>
+ <span class="required-star">*</span> 闃舵鍚嶇О
+ </template>
+ <template #default="scope">
+ <el-form-item
+ :prop="'savePlanNodeList.' + scope.$index + '.name'"
+ :rules="[{ required: true, message: '璇疯緭鍏ラ樁娈靛悕绉�', trigger: 'blur' }]"
+ >
+ <el-input v-model="scope.row.name" placeholder="璇疯緭鍏�" />
+ </el-form-item>
+ </template>
+ </el-table-column>
+
+ <el-table-column label="璐熻矗浜�" width="180">
+ <template #header>
+ <span class="required-star">*</span> 璐熻矗浜�
+ </template>
+ <template #default="scope">
+ <el-form-item
+ :prop="'savePlanNodeList.' + scope.$index + '.leaderId'"
+ :rules="[{ required: true, message: '璇烽�夋嫨璐熻矗浜�', trigger: 'change' }]"
+ >
+ <el-select
+ v-model="scope.row.leaderId"
+ placeholder="娴嬭瘯"
+ @change="(val) => handleLeaderChange(val, scope.row)"
+ >
+ <el-option
+ v-for="item in userOptions"
+ :key="item.userId"
+ :label="item.nickName"
+ :value="item.userId"
+ />
+ </el-select>
+ </el-form-item>
+ </template>
+ </el-table-column>
+
+ <el-table-column label="棰勮宸ユ湡 (澶�)" width="150">
+ <template #header>
+ 棰勮宸ユ湡 (澶�)
+ <el-tooltip content="瀹屾垚璇ラ樁娈甸璁¢渶瑕佺殑澶╂暟" placement="top">
+ <el-icon class="info-icon"><QuestionFilled /></el-icon>
+ </el-tooltip>
+ </template>
+ <template #default="scope">
+ <el-input-number
+ v-model="scope.row.estimatedDuration"
+ :min="0"
+ controls-position="right"
+ style="width: 100%"
+ />
+ </template>
+ </el-table-column>
+
+ <el-table-column label="宸ユ椂鍗曚环" width="120">
+ <template #default="scope">
+ <el-input v-model="scope.row.hourlyRate" placeholder="璇疯緭鍏�" />
+ </template>
+ </el-table-column>
+
+ <el-table-column label="浣滀笟鍐呭" min-width="150">
+ <template #default="scope">
+ <el-input v-model="scope.row.workContent" placeholder="璇疯緭鍏�" />
+ </template>
+ </el-table-column>
+
+ <el-table-column label="鎿嶄綔" width="180" align="center">
+ <template #default="scope">
+ <el-button
+ link
+ type="primary"
+ :disabled="scope.$index === 0"
+ @click="moveStep(scope.$index, -1)"
+ >涓婄Щ</el-button>
+ <el-button
+ link
+ type="primary"
+ :disabled="scope.$index === form.savePlanNodeList.length - 1"
+ @click="moveStep(scope.$index, 1)"
+ >涓嬬Щ</el-button>
+ <el-button
+ link
+ type="danger"
+ @click="removeStep(scope.$index)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ <div class="add-row-btn" @click="addStep">
+ <el-icon><Plus /></el-icon> 鏂板涓�琛�
+ </div>
+ </div>
+ </el-form>
+
+ <template #footer>
+ <div class="dialog-footer">
+ <el-button @click="visible = false">鍙栨秷</el-button>
+ <el-button type="primary" @click="submitForm">鎻愪氦</el-button>
+ </div>
+ </template>
+ </el-dialog>
+</template>
+
+<script setup>
+import { ref, watch, onMounted } from 'vue';
+import { Plus, QuestionFilled } from '@element-plus/icons-vue';
+import { userListNoPageByTenantId } from '@/api/system/user';
+import { ElMessage } from 'element-plus';
+
+const props = defineProps({
+ modelValue: Boolean,
+ title: String,
+ data: Object
+});
+
+const emit = defineEmits(['update:modelValue', 'submit']);
+
+const visible = ref(false);
+const formRef = ref(null);
+const userOptions = ref([]);
+
+const form = ref({
+ id: undefined,
+ name: '',
+ description: '',
+ attachmentIds: [],
+ savePlanNodeList: []
+});
+
+const rules = {
+ name: [{ required: true, message: '璇疯緭鍏ュ悕绉�', trigger: 'blur' }]
+};
+
+// 鐩戝惉寮圭獥鏄剧ず/闅愯棌
+watch(() => props.modelValue, (val) => {
+ visible.value = val;
+ if (val) {
+ if (props.data) {
+ // 缂栬緫妯″紡
+ form.value = JSON.parse(JSON.stringify(props.data));
+ if (!form.value.savePlanNodeList || form.value.savePlanNodeList.length === 0) {
+ form.value.savePlanNodeList = [createDefaultNode()];
+ }
+ } else {
+ // 鏂板妯″紡
+ resetForm();
+ }
+ }
+});
+
+watch(visible, (val) => {
+ emit('update:modelValue', val);
+});
+
+/** 鍒涘缓榛樿鑺傜偣瀵硅薄 */
+function createDefaultNode() {
+ return {
+ name: '',
+ leaderId: null,
+ leaderName: null,
+ estimatedDuration: null,
+ hourlyRate: null,
+ workContent: null
+ };
+}
+
+/** 閲嶇疆琛ㄥ崟 */
+function resetForm() {
+ form.value = {
+ id: undefined,
+ name: '',
+ description: '',
+ attachmentIds: [],
+ savePlanNodeList: [createDefaultNode()]
+ };
+ if (formRef.value) {
+ formRef.value.resetFields();
+ }
+}
+
+/** 鑾峰彇鐢ㄦ埛鍒楄〃 */
+async function getUserList() {
+ try {
+ const res = await userListNoPageByTenantId();
+ if (res.code === 200) {
+ userOptions.value = res.data || [];
+ }
+ } catch (error) {
+ console.error('鑾峰彇鐢ㄦ埛鍒楄〃澶辫触:', error);
+ }
+}
+
+/** 澶勭悊璐熻矗浜哄彉鍖� */
+function handleLeaderChange(val, row) {
+ const user = userOptions.value.find(u => u.userId === val);
+ if (user) {
+ row.leaderName = user.nickName;
+ }
+}
+
+/** 澶勭悊鏂囦欢鍙樺寲 */
+function handleFileChange(file) {
+ // 杩欓噷瀹炵幇鏂囦欢涓婁紶閫昏緫锛岃幏鍙� attachmentId
+ ElMessage.info('姝e湪涓婁紶: ' + file.name);
+ // 妯℃嫙涓婁紶鎴愬姛
+ // form.value.attachmentIds.push(newId);
+}
+
+/** 娣诲姞姝ラ */
+function addStep() {
+ form.value.savePlanNodeList.push(createDefaultNode());
+}
+
+/** 绉婚櫎姝ラ */
+function removeStep(index) {
+ if (form.value.savePlanNodeList.length <= 1) {
+ ElMessage.warning('鑷冲皯淇濈暀涓�涓楠�');
+ return;
+ }
+ form.value.savePlanNodeList.splice(index, 1);
+}
+
+/** 绉诲姩姝ラ */
+function moveStep(index, direction) {
+ const targetIndex = index + direction;
+ if (targetIndex < 0 || targetIndex >= form.value.savePlanNodeList.length) return;
+
+ const list = form.value.savePlanNodeList;
+ const temp = list[index];
+ list[index] = list[targetIndex];
+ list[targetIndex] = temp;
+}
+
+/** 鎻愪氦琛ㄥ崟 */
+async function submitForm() {
+ if (!formRef.value) return;
+
+ try {
+ const valid = await formRef.value.validate();
+ if (valid) {
+ emit('submit', form.value);
+ }
+ } catch (error) {
+ console.error('琛ㄥ崟楠岃瘉澶辫触:', error);
+ }
+}
+
+/** 鍏抽棴寮圭獥 */
+function handleClose() {
+ resetForm();
+}
+
+onMounted(() => {
+ getUserList();
+});
+</script>
+
+<style scoped lang="scss">
+.base-info-row {
+ display: flex;
+ gap: 40px;
+ margin-bottom: 25px;
+ padding: 0 10px;
+
+ .info-item {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+
+ .item-label {
+ font-size: 14px;
+ color: #606266;
+ white-space: nowrap;
+
+ &.required::before {
+ content: '*';
+ color: #f56c6c;
+ margin-right: 4px;
+ }
+ }
+ }
+}
+
+.step-table-container {
+ padding: 0 10px;
+
+ :deep(.el-form-item) {
+ margin-bottom: 0;
+ }
+
+ .required-star {
+ color: #f56c6c;
+ margin-right: 4px;
+ }
+
+ .info-icon {
+ font-size: 14px;
+ color: #909399;
+ margin-left: 4px;
+ cursor: pointer;
+ }
+
+ .add-row-btn {
+ margin-top: 15px;
+ height: 40px;
+ border: 1px dashed #dcdfe6;
+ border-radius: 4px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: #409eff;
+ cursor: pointer;
+ font-size: 14px;
+ transition: all 0.3s;
+
+ &:hover {
+ border-color: #409eff;
+ background-color: #f0f7ff;
+ }
+ }
+}
+
+.dialog-footer {
+ display: flex;
+ justify-content: flex-end;
+ gap: 15px;
+ padding-top: 10px;
+}
+</style>
diff --git a/src/views/projectManagement/projectType/index.vue b/src/views/projectManagement/projectType/index.vue
new file mode 100644
index 0000000..34344c9
--- /dev/null
+++ b/src/views/projectManagement/projectType/index.vue
@@ -0,0 +1,462 @@
+<template>
+ <div class="app-container">
+ <div class="header-section">
+ <div class="title-container">
+ <span class="blue-bar"></span>
+ <span class="title-text">椤圭洰绫诲瀷</span>
+ </div>
+ <el-button type="primary" class="add-btn" @click="handleAdd">鏂板</el-button>
+ </div>
+
+ <div class="content-section" v-loading="loading">
+ <div v-for="item in projectTypeList" :key="item.id" class="project-type-card">
+ <div class="card-header">
+ <div class="info-group">
+ <span class="label">绫诲瀷鍚嶇О:</span>
+ <span class="value">{{ item.name }}</span>
+ </div>
+ <div class="info-group">
+ <span class="label">澶囨敞:</span>
+ <span class="value">{{ item.description || '--' }}</span>
+ </div>
+ <div class="info-group">
+ <span class="label">闄勪欢:</span>
+ <div class="attachment-info" v-if="item.attachment" @click="handleExpand(item)">
+ <el-icon class="file-icon"><Document /></el-icon>
+ <span class="file-name">{{ item.attachment.name }}</span>
+ <el-icon class="download-icon" @click.stop="handleDownload(item.attachment)"><Download /></el-icon>
+ <span class="expand-link">{{ item.expanded ? '鏀惰捣' : '灞曞紑' }}</span>
+ <el-icon class="arrow-icon" :class="{ 'is-reverse': item.expanded }"><ArrowDown /></el-icon>
+ </div>
+ <span class="value" v-else>--</span>
+ </div>
+ <div class="actions">
+ <el-button link type="primary" @click="handleUpdate(item)">缂栬緫</el-button>
+ <el-button link type="primary" @click="handleCopy(item)">澶嶅埗</el-button>
+ <el-button link type="danger" @click="handleDelete(item)">鍒犻櫎</el-button>
+ </div>
+ </div>
+
+ <el-collapse-transition>
+ <div v-show="item.expanded" class="expanded-content">
+ <div class="attachment-list">
+ <div class="attachment-item">
+ <el-icon><Document /></el-icon>
+ <span>{{ item.attachment?.name }}</span>
+ <el-button link type="primary" size="small" @click="handleDownload(item.attachment)">涓嬭浇</el-button>
+ </div>
+ </div>
+ </div>
+ </el-collapse-transition>
+
+ <div class="card-body">
+ <div class="workflow-container">
+ <div v-for="(step, index) in item.steps" :key="index" class="workflow-step">
+ <div class="step-main">
+ <div class="step-circle">{{ index + 1 }}</div>
+ <div v-if="index < item.steps.length - 1" class="step-line"></div>
+ </div>
+ <div class="step-label">{{ step.label }}</div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="pagination-container">
+ <el-pagination
+ v-model:current-page="queryParams.current"
+ v-model:page-size="queryParams.size"
+ :page-sizes="[10, 20, 30, 50]"
+ layout="total, sizes, prev, pager, next, jumper"
+ :total="total"
+ @size-change="getList"
+ @current-change="getList"
+ />
+ </div>
+ </div>
+
+ <!-- 娣诲姞鎴栦慨鏀归」鐩被鍨嬪璇濇 -->
+ <ProjectTypeDialog
+ v-model="open"
+ :title="title"
+ :data="editData"
+ @submit="handleDialogSubmit"
+ />
+ </div>
+</template>
+
+<script setup name="ProjectType">
+import { ref, reactive, onMounted, getCurrentInstance } from 'vue';
+import { Document, Download, ArrowDown } from '@element-plus/icons-vue';
+import { ElMessage, ElMessageBox } from 'element-plus';
+import { listPlan, savePlan, deletePlan } from '@/api/projectManagement/projectType';
+import ProjectTypeDialog from './components/ProjectTypeDialog.vue';
+
+const { proxy } = getCurrentInstance();
+
+// 閬僵灞�
+const loading = ref(false);
+// 鎬绘潯鏁�
+const total = ref(0);
+// 椤圭洰绫诲瀷琛ㄦ牸鏁版嵁
+const projectTypeList = ref([]);
+// 寮瑰嚭灞傛爣棰�
+const title = ref("");
+// 鏄惁鏄剧ず寮瑰嚭灞�
+const open = ref(false);
+// 缂栬緫鏁版嵁
+const editData = ref(null);
+
+// 鏌ヨ鍙傛暟
+const queryParams = reactive({
+ current: 1,
+ size: 10,
+});
+
+/** 鏌ヨ椤圭洰绫诲瀷鍒楄〃 */
+async function getList() {
+ loading.value = true;
+ try {
+ const res = await listPlan(queryParams);
+ if (res.code === 200) {
+ projectTypeList.value = res.data.records.map(item => ({
+ ...item,
+ expanded: false,
+ // 鍚庣杩斿洖鐨勮妭鐐瑰垪琛ㄥ彲鑳芥槸 planNodeList 鎴� savePlanNodeList
+ steps: (item.planNodeList || item.savePlanNodeList || []).map(node => ({
+ label: node.name
+ }))
+ }));
+ total.value = res.data.total;
+ } else {
+ ElMessage.error(res.msg || "鑾峰彇鍒楄〃澶辫触");
+ }
+ } catch (error) {
+ console.error("鑾峰彇鍒楄〃澶辫触:", error);
+ // 濡傛灉鎺ュ彛涓嶉�氾紝鏆傛椂淇濈暀妯℃嫙鏁版嵁渚涙紨绀�
+ if (projectTypeList.value.length === 0) {
+ projectTypeList.value = [
+ {
+ id: 1,
+ name: 'A椤圭洰',
+ description: '',
+ attachment: { name: 'precaution...' },
+ steps: [{ label: '绔嬮」' }, { label: '璁捐' }, { label: '閲囪喘' }, { label: '鐢熶骇' }, { label: '鍑鸿揣' }],
+ expanded: false
+ }
+ ];
+ total.value = 1;
+ }
+ } finally {
+ loading.value = false;
+ }
+}
+
+/** 鏂板鎸夐挳鎿嶄綔 */
+function handleAdd() {
+ editData.value = null;
+ open.value = true;
+ title.value = "娣诲姞椤圭洰绫诲瀷";
+}
+
+/** 淇敼鎸夐挳鎿嶄綔 */
+function handleUpdate(row) {
+ editData.value = row;
+ open.value = true;
+ title.value = "淇敼椤圭洰绫诲瀷";
+}
+
+/** 寮圭獥鎻愪氦澶勭悊 */
+async function handleDialogSubmit(formData) {
+ try {
+ const res = await savePlan(formData);
+ if (res.code === 200) {
+ ElMessage.success(formData.id !== undefined ? "淇敼鎴愬姛" : "鏂板鎴愬姛");
+ open.value = false;
+ getList();
+ } else {
+ ElMessage.error(res.msg || "淇濆瓨澶辫触");
+ }
+ } catch (error) {
+ console.error("淇濆瓨澶辫触:", error);
+ }
+}
+
+/** 鍒犻櫎鎸夐挳鎿嶄綔 */
+function handleDelete(row) {
+ ElMessageBox.confirm('鏄惁纭鍒犻櫎椤圭洰绫诲瀷缂栧彿涓�"' + row.id + '"鐨勬暟鎹」锛�', "绯荤粺鎻愮ず", {
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ type: "warning"
+ }).then(async function() {
+ try {
+ const res = await deletePlan(row.id);
+ if (res.code === 200) {
+ ElMessage.success("鍒犻櫎鎴愬姛");
+ getList();
+ } else {
+ ElMessage.error(res.msg || "鍒犻櫎澶辫触");
+ }
+ } catch (error) {
+ console.error("鍒犻櫎澶辫触:", error);
+ }
+ }).catch(() => {});
+}
+
+/** 澶嶅埗鎸夐挳鎿嶄綔 */
+async function handleCopy(row) {
+ const copyData = {
+ name: row.name + " - 鍓湰",
+ description: row.description,
+ attachmentIds: row.attachmentIds || [],
+ savePlanNodeList: (row.planNodeList || row.savePlanNodeList || []).map(node => ({
+ name: node.name,
+ leaderId: node.leaderId,
+ leaderName: node.leaderName,
+ estimatedDuration: node.estimatedDuration,
+ hourlyRate: node.hourlyRate,
+ workContent: node.workContent
+ }))
+ };
+ try {
+ const res = await savePlan(copyData);
+ if (res.code === 200) {
+ ElMessage.success("澶嶅埗鎴愬姛");
+ getList();
+ } else {
+ ElMessage.error(res.msg || "澶嶅埗澶辫触");
+ }
+ } catch (error) {
+ console.error("澶嶅埗澶辫触:", error);
+ }
+}
+
+/** 灞曞紑/鏀惰捣闄勪欢 */
+function handleExpand(item) {
+ item.expanded = !item.expanded;
+}
+
+/** 涓嬭浇闄勪欢 */
+function handleDownload(attachment) {
+ // 瀹炵幇涓嬭浇閫昏緫
+ ElMessage.info("寮�濮嬩笅杞�: " + (attachment.name || "鏂囦欢"));
+}
+
+onMounted(() => {
+ getList();
+});
+</script>
+
+<style scoped lang="scss">
+.app-container {
+ background-color: #f5f7fa;
+ min-height: calc(100vh - 84px);
+ padding: 20px;
+}
+
+.header-section {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ background-color: #fff;
+ padding: 15px 20px;
+ border-radius: 8px;
+ margin-bottom: 20px;
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
+
+ .title-container {
+ display: flex;
+ align-items: center;
+
+ .blue-bar {
+ width: 4px;
+ height: 18px;
+ background-color: #409eff;
+ margin-right: 10px;
+ border-radius: 2px;
+ }
+
+ .title-text {
+ font-size: 16px;
+ font-weight: bold;
+ color: #333;
+ }
+ }
+
+ .add-btn {
+ padding: 8px 20px;
+ }
+}
+
+.project-type-card {
+ background-color: #fff;
+ border-radius: 8px;
+ padding: 20px;
+ margin-bottom: 20px;
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
+
+ .card-header {
+ display: flex;
+ align-items: center;
+ margin-bottom: 25px;
+ position: relative;
+
+ .info-group {
+ margin-right: 40px;
+ display: flex;
+ align-items: center;
+ font-size: 14px;
+
+ .label {
+ color: #666;
+ margin-right: 8px;
+ }
+
+ .value {
+ color: #333;
+ }
+
+ .attachment-info {
+ display: flex;
+ align-items: center;
+ background-color: #f0f4ff;
+ padding: 4px 10px;
+ border-radius: 4px;
+ color: #409eff;
+ cursor: pointer;
+
+ .file-icon {
+ margin-right: 5px;
+ }
+
+ .file-name {
+ margin-right: 5px;
+ max-width: 100px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ .download-icon {
+ font-size: 12px;
+ margin-right: 10px;
+ }
+
+ .expand-link {
+ color: #409eff;
+ margin-right: 5px;
+ }
+
+ .arrow-icon {
+ color: #409eff;
+ font-size: 12px;
+ }
+ }
+ }
+
+ .actions {
+ margin-left: auto;
+ }
+}
+
+.expanded-content {
+ padding: 0 20px 20px;
+ border-bottom: 1px dashed #ebeef5;
+ margin-bottom: 20px;
+
+ .attachment-list {
+ background-color: #f8f9fa;
+ padding: 15px;
+ border-radius: 4px;
+
+ .attachment-item {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ font-size: 14px;
+ color: #606266;
+
+ .el-icon {
+ font-size: 16px;
+ color: #409eff;
+ }
+ }
+ }
+}
+
+.card-body {
+ .workflow-container {
+ display: flex;
+ align-items: flex-start;
+ padding: 10px 0;
+ overflow-x: auto;
+
+ .workflow-step {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ min-width: 120px;
+ flex-shrink: 0;
+
+ .step-main {
+ display: flex;
+ align-items: center;
+ width: 100%;
+ position: relative;
+
+ .step-circle {
+ width: 24px;
+ height: 24px;
+ background-color: #409eff;
+ color: #fff;
+ border-radius: 50%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 12px;
+ font-weight: bold;
+ z-index: 2;
+ margin: 0 auto;
+ }
+
+ .step-line {
+ position: absolute;
+ height: 2px;
+ background-color: #d9e6ff;
+ left: calc(50% + 12px);
+ right: calc(-50% + 12px);
+ top: 50%;
+ transform: translateY(-50%);
+ z-index: 1;
+ }
+ }
+
+ .step-label {
+ margin-top: 10px;
+ font-size: 13px;
+ color: #333;
+ text-align: center;
+ }
+ }
+ }
+ }
+}
+
+.pagination-container {
+ display: flex;
+ justify-content: flex-end;
+ margin-top: 20px;
+}
+
+.step-config-item {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin-bottom: 10px;
+}
+.content-section{
+ background: #fff;
+ border-radius: 8px;
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
+}
+</style>
--
Gitblit v1.9.3