团体类型国家协会
Showing
2 changed files
with
6 additions
and
3 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
| 47 | <el-form-item :label="language==0?'代表国家/地区':'Representing'" prop="countryId" required> | 47 | <el-form-item :label="language==0?'代表国家/地区':'Representing'" prop="countryId" required> |
| 48 | <el-select v-model="form.countryId" :disabled="language==0&&form.is=='0'" filterable> | 48 | <el-select v-model="form.countryId" :disabled="language==0&&form.is=='0'" filterable> |
| 49 | <!-- <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/>--> | 49 | <!-- <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/>--> |
| 50 | <el-option v-for="item in countryList" :key="item.id" :label="item.noc||item.enName" :value="item.id" /> | 50 | <el-option v-for="(item,inx) in countryList" :key="inx" :label="item.noc||item.enName" :value="item.id" /> |
| 51 | </el-select> | 51 | </el-select> |
| 52 | </el-form-item> | 52 | </el-form-item> |
| 53 | <el-form-item :label="language==0?'详细地址':'Address'" :required="form.is=='0'" prop="address"> | 53 | <el-form-item :label="language==0?'详细地址':'Address'" :required="form.is=='0'" prop="address"> |
| ... | @@ -67,7 +67,8 @@ | ... | @@ -67,7 +67,8 @@ |
| 67 | <el-option :label="language==0?'培训机构/俱乐部':'Company/Club'" value="2" /> | 67 | <el-option :label="language==0?'培训机构/俱乐部':'Company/Club'" value="2" /> |
| 68 | <el-option :label="language==0?'地方协会':'Local Association'" value="3" /> | 68 | <el-option :label="language==0?'地方协会':'Local Association'" value="3" /> |
| 69 | <el-option | 69 | <el-option |
| 70 | :disabled="form.is=='0'" :hidden="userStore.group.id" | 70 | v-show="group&&group.type==4" |
| 71 | :disabled="form.is=='0'" | ||
| 71 | :label="language==0?'国家协会':'National Association'" value="4" | 72 | :label="language==0?'国家协会':'National Association'" value="4" |
| 72 | /> | 73 | /> |
| 73 | </el-select> | 74 | </el-select> |
| ... | @@ -146,7 +147,7 @@ | ... | @@ -146,7 +147,7 @@ |
| 146 | 147 | ||
| 147 | <script setup> | 148 | <script setup> |
| 148 | import { getCurrentInstance } from '@vue/runtime-core' | 149 | import { getCurrentInstance } from '@vue/runtime-core' |
| 149 | import { onMounted, toRefs, reactive } from 'vue' | 150 | import { onMounted, toRefs, reactive, ref } from 'vue' |
| 150 | import * as match from '@/apiPc/match' | 151 | import * as match from '@/apiPc/match' |
| 151 | import { ElMessage } from 'element-plus' | 152 | import { ElMessage } from 'element-plus' |
| 152 | import { setToken } from '@/utils/auth' | 153 | import { setToken } from '@/utils/auth' |
| ... | @@ -162,6 +163,8 @@ const emit = defineEmits(['submit', 'prev']) | ... | @@ -162,6 +163,8 @@ const emit = defineEmits(['submit', 'prev']) |
| 162 | const language = useStorage('language', 0) | 163 | const language = useStorage('language', 0) |
| 163 | const userStore = useUserStore() | 164 | const userStore = useUserStore() |
| 164 | const user = useUserStore().user | 165 | const user = useUserStore().user |
| 166 | const group = useUserStore().group || {} | ||
| 167 | console.log(group) | ||
| 165 | const props = defineProps({ | 168 | const props = defineProps({ |
| 166 | accont: { | 169 | accont: { |
| 167 | type: String, | 170 | type: String, | ... | ... |
-
Please register or sign in to post a comment