hotFix: refs #6636 fix ref optionsList
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
652e85a6e0
commit
88e1e577c4
|
@ -41,6 +41,7 @@ const workers = ref([]);
|
||||||
const workersCopy = ref([]);
|
const workersCopy = ref([]);
|
||||||
const claimStates = ref([]);
|
const claimStates = ref([]);
|
||||||
const claimStatesCopy = ref([]);
|
const claimStatesCopy = ref([]);
|
||||||
|
const optionsList = ref([]);
|
||||||
|
|
||||||
function setWorkers(data) {
|
function setWorkers(data) {
|
||||||
workers.value = data;
|
workers.value = data;
|
||||||
|
@ -51,9 +52,9 @@ function setClaimStates(data) {
|
||||||
claimStates.value = data;
|
claimStates.value = data;
|
||||||
claimStatesCopy.value = data;
|
claimStatesCopy.value = data;
|
||||||
}
|
}
|
||||||
let optionsList;
|
|
||||||
async function getEnumValues() {
|
async function getEnumValues() {
|
||||||
optionsList = [{ id: null, description: t('claim.basicData.null') }];
|
optionsList.value = [{ id: null, description: t('claim.basicData.null') }];
|
||||||
const { data } = await axios.get(`Applications/get-enum-values`, {
|
const { data } = await axios.get(`Applications/get-enum-values`, {
|
||||||
params: {
|
params: {
|
||||||
schema: 'vn',
|
schema: 'vn',
|
||||||
|
@ -62,8 +63,9 @@ async function getEnumValues() {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
for (let value of data)
|
for (let value of data)
|
||||||
optionsList.push({ id: value, description: t(`claim.basicData.${value}`) });
|
optionsList.value.push({ id: value, description: t(`claim.basicData.${value}`) });
|
||||||
}
|
}
|
||||||
|
|
||||||
getEnumValues();
|
getEnumValues();
|
||||||
|
|
||||||
const workerFilter = {
|
const workerFilter = {
|
||||||
|
|
Loading…
Reference in New Issue