From e167c8df6c697012c4b82c94f1232db67abb602e Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Fri, 8 Aug 2025 16:28:43 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=83=A8=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=9F=BA=E7=A1=80=E9=80=BB=E8=BE=91=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../project-manage/dept-project.js | 36 ++
.../project-manage/dept-project/config.js | 49 +++
.../project-manage/dept-project/index.vue | 351 +++++++++++++++++-
3 files changed, 435 insertions(+), 1 deletion(-)
create mode 100644 src/views/basic-manage/project-manage/dept-project/config.js
diff --git a/src/api/basic-manage/project-manage/dept-project.js b/src/api/basic-manage/project-manage/dept-project.js
index e69de29..f47a2c5 100644
--- a/src/api/basic-manage/project-manage/dept-project.js
+++ b/src/api/basic-manage/project-manage/dept-project.js
@@ -0,0 +1,36 @@
+import request from '@/utils/request'
+
+// 新增项目部
+export const addDeptProjectAPI = (data) => {
+ return request({
+ url: '/project/***',
+ method: 'POST',
+ data,
+ })
+}
+
+// 修改项目部
+export const editDeptProjectAPI = (data) => {
+ return request({
+ url: '/project/***',
+ method: 'POST',
+ data,
+ })
+}
+
+// 删除项目部
+export const deleteDeptProjectAPI = (id) => {
+ return request({
+ url: `/project/****/${id}`,
+ method: 'DELETE',
+ })
+}
+
+// 获取项目部列表
+export const getDeptProjectListAPI = (data) => {
+ return request({
+ url: '/project/***',
+ method: 'GET',
+ params: data,
+ })
+}
diff --git a/src/views/basic-manage/project-manage/dept-project/config.js b/src/views/basic-manage/project-manage/dept-project/config.js
new file mode 100644
index 0000000..ea3d574
--- /dev/null
+++ b/src/views/basic-manage/project-manage/dept-project/config.js
@@ -0,0 +1,49 @@
+export const formLabel = [
+ {
+ f_label: '关键词',
+ f_model: 'keyWord',
+ f_type: 'ipt',
+ isShow: false, // 是否展示label
+ },
+]
+
+export const columnsList = [
+ { t_props: 'projectName', t_label: '分公司' },
+ { t_props: 'level', t_label: '项目部名称' },
+
+ {
+ t_props: 'count',
+ t_label: '项目部工程数量',
+ t_slot: 'count',
+ },
+ { t_props: 'status', t_label: '状态' },
+]
+
+export const testTableList = [
+ {
+ projectName: '总工程名称',
+ level: '电压等级',
+ status: '在建',
+ count: '6',
+ },
+ {
+ projectName: '总工程名称2',
+ level: '电压等级',
+ status: '停工',
+ count: '5',
+ },
+ {
+ projectName: '总工程名称3',
+ level: '电压等级',
+ status: '筹建',
+ count: '10',
+ },
+]
+
+export const dialogConfig = {
+ outerVisible: false,
+ outerTitle: '',
+ outerWidth: '50%',
+ minHeight: '',
+ maxHeight: '',
+}
diff --git a/src/views/basic-manage/project-manage/dept-project/index.vue b/src/views/basic-manage/project-manage/dept-project/index.vue
index d292c64..3c438c9 100644
--- a/src/views/basic-manage/project-manage/dept-project/index.vue
+++ b/src/views/basic-manage/project-manage/dept-project/index.vue
@@ -1,10 +1,359 @@
-
+
+
+
+
+ 导出
+
+
+
+ 新增
+
+
+
+
+
+
+ {{ data.count }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+