添加了请求权限

This commit is contained in:
2020-10-25 20:56:40 +08:00
parent eee433837d
commit aa0b492cf8
3 changed files with 61 additions and 19 deletions

View File

@@ -148,14 +148,14 @@
<div class="input-box time-zone-box">
<div class="label">时区</div>
<a-select
v-model:value="userinfo.zoneStr"
v-model:value="userinfo.zoneid"
style="width: 171px"
size="small"
ref="select"
:getPopupContainer="triggerNode => triggerNode.parentNode"
>
<a-select-option v-for="(item, index) in ['北京 GMT +08:00']" :key="index" :value="item">
{{ item }}
<a-select-option v-for="(item, index) in zonelist" :key="index" :value="item.zoneid">
{{item.city}}{{item.gmt}}
</a-select-option>
</a-select>
</div>
@@ -168,21 +168,21 @@
ref="select"
:getPopupContainer="triggerNode => triggerNode.parentNode"
>
<a-select-option v-for="(item, index) in ['人民币']" :key="index" :value="item">
{{ item }}
<a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value">
{{item.name}}
</a-select-option>
</a-select>
</div>
<div class="input-box time-zone">
<div class="label">语言</div>
<a-select
v-model:value="userinfo.language"
v-model:value="userinfo.languageValue"
style="width: 171px"
size="small"
ref="select"
:getPopupContainer="triggerNode => triggerNode.parentNode"
>
<a-select-option v-for="(item, index) in languages" :key="index" :value="item.name">
<a-select-option v-for="(item, index) in languages" :key="index" :value="item.value">
{{ item.name }}
</a-select-option>
</a-select>
@@ -287,7 +287,7 @@ import { uploadflie } from "@/utils/vod"
import store from '@/store';
import smile from "@/static/images/smile.png"
import smilet from "@/static/images/smilet.png"
import { changetel, checksmscode, editpassword, getarchives, getlanguages, getquhaolist, putmember, sendsms } from "@/api/index"
import { changetel, checksmscode, editpassword, getarchives, getcurrencys, getlanguages, getquhaolist, getzonelist, putmember, sendsms } from "@/api/index"
import { message } from 'ant-design-vue';
export default defineComponent({
@@ -321,11 +321,32 @@ export default defineComponent({
const mynewtel = ref<string>("");
const isSecondStep: Ref<boolean> = ref(false);
const currencylist=ref<any>([{
alias: "CNY",
code: "104110041000",
createdAt: "2020-08-19 11:54:59",
deletedAt: null,
dictionaryid: 241,
name: "人民币¥",
position: 1,
publish: 1,
updatedAt: "2020-08-19 11:54:59",
value: "1"
}])
const zonelist=ref<any>([{
city: "中途岛",
gmt: "GMT-11:00",
id: "Pacific/Midway",
zoneid: 1
}])
onMounted(async ()=>{
chiveslist.value = await getarchives()
languages.value = await getlanguages()
quhaolist.value=await getquhaolist()
myquhao.value=quhaolist.value[0].code
quhaolist.value = await getquhaolist()
myquhao.value = quhaolist.value[0].code
currencylist.value = await getcurrencys()
zonelist.value=await getzonelist()
console.log(quhaolist.value,"listsssss")
})
@@ -604,7 +625,9 @@ export default defineComponent({
mynewtel,
quhaolist,
getquhao,
myquhao
myquhao,
currencylist,
zonelist
}
}
});