新建工作空间时选择组织
This commit is contained in:
parent
a77ba70aa7
commit
31389167bc
|
@ -17,7 +17,8 @@ const en_US = {
|
||||||
'input_name': 'Please enter a workspace name',
|
'input_name': 'Please enter a workspace name',
|
||||||
'input_name_2_50': '2 to 50 characters in length',
|
'input_name_2_50': '2 to 50 characters in length',
|
||||||
'search_by_name': 'Search by name',
|
'search_by_name': 'Search by name',
|
||||||
'organization_name': 'Organizationn Name'
|
'organization_name': 'Organizationn Name',
|
||||||
|
'please_choose_organization': 'Please Choose Organization',
|
||||||
},
|
},
|
||||||
project: {
|
project: {
|
||||||
'recent': 'Recent Projects'
|
'recent': 'Recent Projects'
|
||||||
|
|
|
@ -17,7 +17,8 @@ const zh_CN = {
|
||||||
'input_name': '请输入工作空间名称',
|
'input_name': '请输入工作空间名称',
|
||||||
'input_name_2_50': '长度在 2 到 50 个字符',
|
'input_name_2_50': '长度在 2 到 50 个字符',
|
||||||
'search_by_name': '根据名称搜索',
|
'search_by_name': '根据名称搜索',
|
||||||
'organization_name': '所属组织'
|
'organization_name': '所属组织',
|
||||||
|
'please_choose_organization': '请选择组织',
|
||||||
},
|
},
|
||||||
project: {
|
project: {
|
||||||
'recent': '最近的项目'
|
'recent': '最近的项目'
|
||||||
|
|
|
@ -17,6 +17,8 @@ const zh_TW = {
|
||||||
'input_name': '请输入工作空间名称',
|
'input_name': '请输入工作空间名称',
|
||||||
'input_name_2_50': '长度在 2 到 50 个字符',
|
'input_name_2_50': '长度在 2 到 50 个字符',
|
||||||
'search_by_name': '根据名称搜索',
|
'search_by_name': '根据名称搜索',
|
||||||
|
'organization_name': '所属组织',
|
||||||
|
'please_choose_organization': '请选择组织',
|
||||||
},
|
},
|
||||||
project: {
|
project: {
|
||||||
'recent': '最近的项目'
|
'recent': '最近的项目'
|
||||||
|
|
|
@ -52,6 +52,16 @@
|
||||||
<el-form-item :label="$t('commons.description')">
|
<el-form-item :label="$t('commons.description')">
|
||||||
<el-input type="textarea" v-model="form.description"></el-input>
|
<el-input type="textarea" v-model="form.description"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('workspace.organization_name')" prop="userIds">
|
||||||
|
<el-select v-model="form.organizationId" placeholder="请选择组织" class="select-width">
|
||||||
|
<el-option
|
||||||
|
v-for="item in form.orgList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submit('form')" size="medium">{{$t('commons.save')}}</el-button>
|
<el-button type="primary" @click="submit('form')" size="medium">{{$t('commons.save')}}</el-button>
|
||||||
|
@ -74,6 +84,9 @@
|
||||||
create() {
|
create() {
|
||||||
this.createVisible = true;
|
this.createVisible = true;
|
||||||
this.form = {};
|
this.form = {};
|
||||||
|
this.$get("/organization/list", response => {
|
||||||
|
this.form = { orgList: response.data }
|
||||||
|
})
|
||||||
},
|
},
|
||||||
submit(formName) {
|
submit(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
|
|
Loading…
Reference in New Issue