mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
select Array
This commit is contained in:
Vendored
+14
-6
@@ -155,6 +155,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
@@ -244,10 +246,15 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
if (result.data.data.inputs[key].type == 'Form') {
|
||||
for (keyForm in result.data.data.inputs[key].children) {
|
||||
if (result.data.data.inputs[key].children.hasOwnProperty(keyForm)) {
|
||||
this.formData[result.data.data.inputs[key].children[keyForm].name] = '';
|
||||
if (result.data.data.inputs[key].children[keyForm].type == 'Checkbox' || result.data.data.inputs[key].children[keyForm].type == 'Select') {
|
||||
this.formData[result.data.data.inputs[key].children[keyForm].name] = [];
|
||||
console.log(this.formData[result.data.data.inputs[key].children[keyForm].name]);
|
||||
} else {
|
||||
this.formData[result.data.data.inputs[key].children[keyForm].name] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (result.data.data.inputs[key].type == 'Checkbox') {
|
||||
} else if (result.data.data.inputs[key].type == 'Checkbox' || result.data.data.inputs[key].type == 'Select') {
|
||||
this.formData[result.data.data.inputs[key].name] = [];
|
||||
} else {
|
||||
this.formData[result.data.data.inputs[key].name] = '';
|
||||
@@ -288,8 +295,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
var _submitForm = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() {
|
||||
var _result2, _result3;
|
||||
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
@@ -303,7 +309,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].put(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].updateTestResult(this.$route.params.testResult), this.formData);
|
||||
|
||||
case 3:
|
||||
_result2 = _context3.sent;
|
||||
result = _context3.sent;
|
||||
_context3.next = 9;
|
||||
break;
|
||||
|
||||
@@ -312,7 +318,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].storeTestResult, this.formData);
|
||||
|
||||
case 8:
|
||||
_result3 = _context3.sent;
|
||||
result = _context3.sent;
|
||||
|
||||
case 9:
|
||||
if (result && result.status == 200) {
|
||||
@@ -554,6 +560,7 @@ var render = function() {
|
||||
item.type == "Select"
|
||||
? _c("v-select", {
|
||||
attrs: {
|
||||
multiple: "",
|
||||
items: item.options,
|
||||
label: item.name,
|
||||
color: "black",
|
||||
@@ -645,6 +652,7 @@ var render = function() {
|
||||
children.type == "Select"
|
||||
? _c("v-select", {
|
||||
attrs: {
|
||||
multiple: "",
|
||||
items: children.options,
|
||||
label: children.name,
|
||||
color: "black",
|
||||
|
||||
Reference in New Issue
Block a user