mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 00:31:07 +03:30
Edit Test result
This commit is contained in:
Vendored
+1
@@ -6,6 +6,7 @@ const urls = {
|
||||
logout : "/logout",
|
||||
storeMedicalCenter : "/MedicalCenters",
|
||||
listTestTypeName : "/TestTypes/ListNames",
|
||||
getInputs : `/GetInputs`,
|
||||
listOpertor : "/Users",
|
||||
listMedicalCenter : function(page) {
|
||||
return "/MedicalCenters?page=" + page;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-form>
|
||||
<v-form ref="form">
|
||||
<v-container grid-list-xs>
|
||||
<material-card
|
||||
color="black"
|
||||
@@ -56,21 +56,22 @@
|
||||
<v-flex v-for="(item, key) in form.data" :key="key">
|
||||
<v-text-field
|
||||
v-if="item.type == 'Text'"
|
||||
v-model="form.data[key][item.name]"
|
||||
label="Resualt"
|
||||
v-model="item[item.name]"
|
||||
:label="item.name"
|
||||
color="black"
|
||||
class="pa-2"
|
||||
></v-text-field>
|
||||
<v-select
|
||||
v-if="item.type == 'Select'"
|
||||
:items="item.options"
|
||||
v-model="form.data[key][item.name]"
|
||||
label="Resualt"
|
||||
v-model="item[item.name]"
|
||||
:label="item.name"
|
||||
color="black"
|
||||
class="pa-2"
|
||||
item-text="title"
|
||||
></v-select>
|
||||
<template v-if="item.type == 'CheckBox'">
|
||||
<p>{{ item.name }}</p>
|
||||
<v-container fluid v-for="(optionValue, keyOption) in item.options" :key="keyOption">
|
||||
<v-checkbox :label="option.title" v-model="form.data[key][item.name]" :value="optionValue"></v-checkbox>
|
||||
</v-container>
|
||||
@@ -130,8 +131,11 @@ export default {
|
||||
const result = await ApiService.get(urls.listTestTypeName);
|
||||
this.testTypeNames = result.data.data;
|
||||
},
|
||||
selectTestType() {
|
||||
|
||||
async selectTestType() {
|
||||
const result = await ApiService.post(urls.getInputs, this.filter);
|
||||
if (result && result.status == 200) {
|
||||
this.form.data = result.data.data;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user