# Conflicts:
#	frontend/src/business/components/settings/project/MsProject.vue
This commit is contained in:
fit2-zhao 2021-01-06 13:43:30 +08:00
commit 624970c16d
3 changed files with 18 additions and 7 deletions

@ -1 +1 @@
Subproject commit 068127ce59ea8b016434ed52a9de4a7a4b13bdb4 Subproject commit 9f4a9bbf46fc1333dbcccea21f83e27e3ec10b1f

View File

@ -3,7 +3,12 @@
<el-card class="table-card"> <el-card class="table-card">
<template v-slot:header> <template v-slot:header>
<ms-table-header :is-tester-permission="true" :condition.sync="condition" @search="search" @create="create" <ms-table-header :is-tester-permission="true" :condition.sync="condition" @search="search" @create="create"
:create-tip="btnTips" :title="$t('commons.project')"/> :create-tip="btnTips" :title="$t('commons.project')">
<template v-slot:button>
<ms-table-button :is-tester-permission="true" icon="el-icon-box"
:content="$t('api_test.jar_config.title')" @click="openJarConfig"/>
</template>
</ms-table-header>
</template> </template>
<el-table border class="adjust-table" :data="items" style="width: 100%" @sort-change="sort"> <el-table border class="adjust-table" :data="items" style="width: 100%" @sort-change="sort">
<el-table-column prop="name" :label="$t('commons.name')" width="250" show-overflow-tooltip/> <el-table-column prop="name" :label="$t('commons.name')" width="250" show-overflow-tooltip/>
@ -48,7 +53,7 @@
</el-card> </el-card>
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="createVisible" destroy-on-close @close="handleClose"> <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="createVisible" destroy-on-close @close="handleClose">
<el-form :model="form" :rules="rules" ref="form" label-position="right" label-width="140px" size="small"> <el-form :model="form" :rules="rules" ref="form" label-position="right" label-width="100px" size="small">
<el-form-item :label="$t('commons.name')" prop="name"> <el-form-item :label="$t('commons.name')" prop="name">
<el-input v-model="form.name" autocomplete="off"></el-input> <el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
@ -81,6 +86,8 @@
<api-environment-config ref="environmentConfig"/> <api-environment-config ref="environmentConfig"/>
<ms-jar-config :is-read-only="isReadOnly" ref="jarConfig"/>
</div> </div>
</template> </template>
@ -99,10 +106,13 @@
import ApiEnvironmentConfig from "../../api/test/components/ApiEnvironmentConfig"; import ApiEnvironmentConfig from "../../api/test/components/ApiEnvironmentConfig";
import TemplateComponent from "../../track/plan/view/comonents/report/TemplateComponent/TemplateComponent"; import TemplateComponent from "../../track/plan/view/comonents/report/TemplateComponent/TemplateComponent";
import {PROJECT_ID} from "@/common/js/constants"; import {PROJECT_ID} from "@/common/js/constants";
import MsJarConfig from "../../api/test/components/jar/JarConfig";
import MsTableButton from "../../common/components/MsTableButton";
export default { export default {
name: "MsProject", name: "MsProject",
components: { components: {
MsTableButton,
MsJarConfig,
TemplateComponent, TemplateComponent,
ApiEnvironmentConfig, ApiEnvironmentConfig,
MsTableOperatorButton, MsTableOperatorButton,
@ -191,7 +201,6 @@
} }
}); });
}, },
submit(formName) { submit(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
@ -209,6 +218,9 @@
} }
}); });
}, },
openJarConfig() {
this.$refs.jarConfig.open();
},
handleDelete(project) { handleDelete(project) {
this.$refs.deleteConfirm.open(project); this.$refs.deleteConfirm.open(project);
}, },
@ -278,5 +290,4 @@
margin: 0 0; margin: 0 0;
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
} }
</style> </style>

@ -1 +1 @@
Subproject commit 7d43154a7c19732407a8e9ace8a7d1ea13c91f36 Subproject commit 010ad7a5f072a5e9d368c756a2473bbd20781433