refactor: 删除无用的前端组件

This commit is contained in:
shiziyuan9527 2021-12-09 10:51:41 +08:00 committed by shiziyuan9527
parent 7d877f7750
commit 338817aebc
13 changed files with 7 additions and 49 deletions

View File

@ -147,7 +147,6 @@
</template> </template>
<script> <script>
import MsCreateBox from '../../../../settings/CreateBox';
import MsTablePagination from '../../../../../components/common/pagination/TablePagination'; import MsTablePagination from '../../../../../components/common/pagination/TablePagination';
import MsTableHeader from "../../../../common/components/MsTableHeader"; import MsTableHeader from "../../../../common/components/MsTableHeader";
import MsDialogFooter from "../../../../common/components/MsDialogFooter"; import MsDialogFooter from "../../../../common/components/MsDialogFooter";
@ -177,7 +176,7 @@ export default {
TestReportTemplateList, TestReportTemplateList,
PlanStageTableItem, PlanStageTableItem,
PlanStatusTableItem, PlanStatusTableItem,
MsTableOperator, MsTableOperatorButton, MsDialogFooter, MsTableHeader, MsCreateBox, MsTablePagination, EnvPopover MsTableOperator, MsTableOperatorButton, MsDialogFooter, MsTableHeader, MsTablePagination, EnvPopover
}, },
props: { props: {
row: Set, row: Set,

View File

@ -99,7 +99,6 @@ import MsDeleteConfirm from "@/business/components/common/components/MsDeleteCon
import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer";
import MsContainer from "@/business/components/common/components/MsContainer"; import MsContainer from "@/business/components/common/components/MsContainer";
import MsTableOperator from "@/business/components/common/components/MsTableOperator"; import MsTableOperator from "@/business/components/common/components/MsTableOperator";
import MsCreateBox from "@/business/components/settings/CreateBox";
import MsTablePagination from "@/business/components/common/pagination/TablePagination"; import MsTablePagination from "@/business/components/common/pagination/TablePagination";
import MsTableHeader from "@/business/components/common/components/MsTableHeader"; import MsTableHeader from "@/business/components/common/components/MsTableHeader";
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter"; import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
@ -117,7 +116,7 @@ export default {
MsTableOperatorButton, MsTableOperatorButton,
MsDeleteConfirm, MsDeleteConfirm,
MsMainContainer, MsMainContainer,
MsContainer, MsTableOperator, MsCreateBox, MsTablePagination, MsTableHeader, MsDialogFooter MsContainer, MsTableOperator, MsTablePagination, MsTableHeader, MsDialogFooter
}, },
data() { data() {
return { return {

View File

@ -85,7 +85,6 @@
import MsRolesTag from "@/business/components/common/components/MsRolesTag"; import MsRolesTag from "@/business/components/common/components/MsRolesTag";
import MsTableOperator from "@/business/components/common/components/MsTableOperator"; import MsTableOperator from "@/business/components/common/components/MsTableOperator";
import MsTablePagination from "@/business/components/common/pagination/TablePagination"; import MsTablePagination from "@/business/components/common/pagination/TablePagination";
import MsCreateBox from "@/business/components/settings/CreateBox";
import MsTableHeader from "@/business/components/common/components/MsTableHeader"; import MsTableHeader from "@/business/components/common/components/MsTableHeader";
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter"; import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
import MsTableHeaderSelectPopover from "@/business/components/common/components/table/MsTableHeaderSelectPopover"; import MsTableHeaderSelectPopover from "@/business/components/common/components/table/MsTableHeaderSelectPopover";
@ -105,7 +104,6 @@ export default {
MsRolesTag, MsRolesTag,
MsTableOperator, MsTableOperator,
MsTablePagination, MsTablePagination,
MsCreateBox,
MsTableHeader, MsTableHeader,
MsDialogFooter, MsDialogFooter,
MsTableHeaderSelectPopover, MsTableHeaderSelectPopover,

View File

@ -1,26 +0,0 @@
<template>
<span class="box">
<el-tooltip class="item" effect="dark" :content="tips" placement="right">
<el-button @click="exec()" type="primary" size="mini" circle>
<font-awesome-icon :icon="['fas', 'plus']"/>
</el-button>
</el-tooltip>
</span>
</template>
<script>
export default {
name: "MsCreateBox",
props: {
tips: String,
exec: Function
}
}
</script>
<style scoped>
.box {
margin-left: 5px;
margin-right: 5px;
}
</style>

View File

@ -152,7 +152,6 @@
</template> </template>
<script> <script>
import MsCreateBox from "../CreateBox";
import {Message} from "element-ui"; import {Message} from "element-ui";
import MsTablePagination from "../../common/pagination/TablePagination"; import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader"; import MsTableHeader from "../../common/components/MsTableHeader";
@ -173,7 +172,6 @@ export default {
name: "MsSystemWorkspace", name: "MsSystemWorkspace",
components: { components: {
MsDeleteConfirm, MsDeleteConfirm,
MsCreateBox,
MsTablePagination, MsTablePagination,
MsTableHeader, MsTableHeader,
MsRolesTag, MsRolesTag,

View File

@ -230,7 +230,6 @@
</template> </template>
<script> <script>
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination"; import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader"; import MsTableHeader from "../../common/components/MsTableHeader";
import MsTableOperator from "../../common/components/MsTableOperator"; import MsTableOperator from "../../common/components/MsTableOperator";
@ -240,7 +239,7 @@ import BatchAddResource from "@/business/components/settings/system/components/B
export default { export default {
name: "MsTestResourcePool", name: "MsTestResourcePool",
components: {BatchAddResource, MsCreateBox, MsTablePagination, MsTableHeader, MsTableOperator, MsDialogFooter}, components: {BatchAddResource, MsTablePagination, MsTableHeader, MsTableOperator, MsDialogFooter},
data() { data() {
return { return {
result: {}, result: {},

View File

@ -107,7 +107,6 @@
</template> </template>
<script> <script>
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination"; import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader"; import MsTableHeader from "../../common/components/MsTableHeader";
import MsTableOperator from "../../common/components/MsTableOperator"; import MsTableOperator from "../../common/components/MsTableOperator";
@ -141,7 +140,6 @@ export default {
WorkspaceCascader, WorkspaceCascader,
GroupCascader, GroupCascader,
EditUser, EditUser,
MsCreateBox,
MsTablePagination, MsTablePagination,
MsTableHeader, MsTableHeader,
MsTableOperator, MsTableOperator,

View File

@ -251,7 +251,6 @@
</template> </template>
<script> <script>
import MsCreateBox from "../CreateBox";
import {Message} from "element-ui"; import {Message} from "element-ui";
import MsTablePagination from "../../common/pagination/TablePagination"; import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader"; import MsTableHeader from "../../common/components/MsTableHeader";
@ -295,7 +294,7 @@ export default {
MsTableOperatorButton, MsTableOperatorButton,
MsDeleteConfirm, MsDeleteConfirm,
MsMainContainer, MsRolesTag, MsMainContainer, MsRolesTag,
MsContainer, MsTableOperator, MsCreateBox, MsTablePagination, MsTableHeader, MsDialogFooter, MsContainer, MsTableOperator, MsTablePagination, MsTableHeader, MsDialogFooter,
AddMember AddMember
}, },
inject: [ inject: [

View File

@ -93,7 +93,6 @@
</template> </template>
<script> <script>
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination"; import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader"; import MsTableHeader from "../../common/components/MsTableHeader";
import MsRolesTag from "../../common/components/MsRolesTag"; import MsRolesTag from "../../common/components/MsRolesTag";
@ -125,7 +124,7 @@ export default {
name: "MsMember", name: "MsMember",
components: { components: {
BatchToProjectGroupCascader, GroupCascader, BatchToProjectGroupCascader, GroupCascader,
AddMember, MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator, MsDialogFooter, AddMember, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator, MsDialogFooter,
MsTableHeaderSelectPopover, UserCascader, ShowMoreBtn MsTableHeaderSelectPopover, UserCascader, ShowMoreBtn
}, },
data() { data() {

View File

@ -203,7 +203,6 @@
<script> <script>
import MsCreateBox from '../../../settings/CreateBox';
import MsTableHeaderSelectPopover from "@/business/components/common/components/table/MsTableHeaderSelectPopover"; import MsTableHeaderSelectPopover from "@/business/components/common/components/table/MsTableHeaderSelectPopover";
import TestCaseImport from '../components/TestCaseImport'; import TestCaseImport from '../components/TestCaseImport';
import TestCaseExport from '../components/TestCaseExport'; import TestCaseExport from '../components/TestCaseExport';
@ -266,7 +265,6 @@ export default {
MethodTableItem, MethodTableItem,
TypeTableItem, TypeTableItem,
PriorityTableItem, PriorityTableItem,
MsCreateBox,
TestCaseImport, TestCaseImport,
TestCaseExport, TestCaseExport,
MsTablePagination, MsTablePagination,

View File

@ -282,7 +282,6 @@
</template> </template>
<script> <script>
import MsCreateBox from '../../../settings/CreateBox';
import MsTablePagination from '../../../../components/common/pagination/TablePagination'; import MsTablePagination from '../../../../components/common/pagination/TablePagination';
import MsTableHeader from "../../../common/components/MsTableHeader"; import MsTableHeader from "../../../common/components/MsTableHeader";
import MsDialogFooter from "../../../common/components/MsDialogFooter"; import MsDialogFooter from "../../../common/components/MsDialogFooter";
@ -329,7 +328,7 @@ export default {
PlanStatusTableItem, PlanStatusTableItem,
MsTestPlanScheduleMaintain, MsTestPlanScheduleMaintain,
MsTableOperator, MsTableOperatorButton, MsTableOperator, MsTableOperatorButton,
MsDialogFooter, MsTableHeader, MsCreateBox, MsDialogFooter, MsTableHeader,
MsTablePagination, PlanRunModeWithEnv, MsTaskCenter MsTablePagination, PlanRunModeWithEnv, MsTaskCenter
}, },
data() { data() {

View File

@ -137,7 +137,6 @@ import MsTableOperator from "../../../common/components/MsTableOperator";
import MsTableOperatorButton from "../../../common/components/MsTableOperatorButton"; import MsTableOperatorButton from "../../../common/components/MsTableOperatorButton";
import MsDialogFooter from "../../../common/components/MsDialogFooter"; import MsDialogFooter from "../../../common/components/MsDialogFooter";
import MsTableHeader from "../../../common/components/MsTableHeader"; import MsTableHeader from "../../../common/components/MsTableHeader";
import MsCreateBox from "../../../settings/CreateBox";
import MsTablePagination from "../../../common/pagination/TablePagination"; import MsTablePagination from "../../../common/pagination/TablePagination";
import {getCurrentProjectID, getCurrentUser, getCurrentWorkspaceId} from "@/common/js/utils"; import {getCurrentProjectID, getCurrentUser, getCurrentWorkspaceId} from "@/common/js/utils";
import {_filter, _sort, deepClone, getLabel, getLastTableSortField,saveLastTableSortField} from "@/common/js/tableUtils"; import {_filter, _sort, deepClone, getLabel, getLastTableSortField,saveLastTableSortField} from "@/common/js/tableUtils";
@ -159,7 +158,6 @@ export default {
MsTableOperatorButton, MsTableOperatorButton,
MsDialogFooter, MsDialogFooter,
MsTableHeader, MsTableHeader,
MsCreateBox,
MsTablePagination, MsTablePagination,
PlanStatusTableItem PlanStatusTableItem
}, },

@ -1 +1 @@
Subproject commit 433c1b7e4dcf67ada7ca75219c10fdaaacd8c83a Subproject commit 3c4b3019861281c13d50dce7d1ebee65cfab4ce7