子模块

This commit is contained in:
2025-09-08 17:11:29 +08:00
parent a6d5afad1d
commit 363f7d1a2f
10 changed files with 859 additions and 367 deletions

View File

@@ -40,55 +40,19 @@
</el-form-item>
</el-form>
<!-- <el-row :gutter="10" class="mb8">-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['project:module:add']"-->
<!-- >新增</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="success"-->
<!-- plain-->
<!-- icon="el-icon-edit"-->
<!-- size="mini"-->
<!-- :disabled="single"-->
<!-- @click="handleUpdate"-->
<!-- v-hasPermi="['project:module:edit']"-->
<!-- >修改</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="danger"-->
<!-- plain-->
<!-- icon="el-icon-delete"-->
<!-- size="mini"-->
<!-- :disabled="multiple"-->
<!-- @click="handleDelete"-->
<!-- v-hasPermi="['project:module:remove']"-->
<!-- >删除</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handleExport"-->
<!-- v-hasPermi="['project:module:export']"-->
<!-- >导出</el-button>-->
<!-- </el-col>-->
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
<!-- </el-row>-->
<el-table v-loading="loading" :data="moduleList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="moduleList"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-click="handleCellClick"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="模块名称" align="center" prop="moduleName" />
<el-table-column label="模块名称" align="center" prop="moduleName">
<template slot-scope="scope">
<el-link type="primary" @click.stop="openSubDrawer(scope.row)">{{ scope.row.moduleName }}</el-link>
</template>
</el-table-column>
<el-table-column label="所属项目" align="center" prop="projectName" />
<el-table-column label="接取状态" align="center" prop="status">
<template slot-scope="scope">
@@ -221,6 +185,7 @@
import { listModule, getModule, delModule, addModule, updateModule, assignModule, claimModule, giveupModule } from "@/api/project/module"
import { listProject } from "@/api/project/project"
import { listUser } from "@/api/system/user"
import { listSubmoduleByModule, addSubmodule } from "@/api/project/submodule"
export default {
name: "Module",
@@ -250,6 +215,18 @@ export default {
title: "",
// 是否显示弹出层
open: false,
currentModule: null,
// 新增子模块弹窗
subOpen: false,
subTitle: "新增子模块",
subForm: {
subName: null,
description: null
},
subRules: {
subName: [{ required: true, message: "子模块名称不能为空", trigger: "blur" }]
},
// 指派弹出层
assignOpen: false,
// 查询参数