Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable declaration definition changed (var to let) #169

Merged
merged 2 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions datasophon-ui/src/components/steps/step7.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
handlearrayWithData(a) {
let obj = {};
let arr = [];
for (var k in a) {
for (let k in a) {
if (k.includes("arrayWith")) {
let key = "";
if (k.includes("arrayWithKey")) {
Expand All @@ -105,10 +105,10 @@ export default {
arr.map((item) => {
obj[item] = [];
});
for (var f in obj) {
for (let f in obj) {
let keys = [];
let vals = [];
for (var i in a) {
for (let i in a) {
if (i.includes(f)) {
if (i.includes("arrayWithKey")) {
keys.push(i);
Expand All @@ -129,9 +129,9 @@ export default {
handleMultipleData(a) {
let obj = {};
let arr = [];
for (var k in a) {
for (let k in a) {
if (k.includes("multiple")) {
let key = k.split("multiple")[0];
let key = k.split("multiple")[0];y
arr.push(key);
arr = [...new Set(arr)];
}
Expand All @@ -140,9 +140,9 @@ export default {
obj[item] = [];
});
// obj{ a: , b: }
for (var f in obj) {
for (let f in obj) {
let vals = [];
for (var i in a) {
for (let i in a) {
if (i.includes(f)) {
if (i.includes("multiple")) {
vals.push(i);
Expand All @@ -166,7 +166,7 @@ export default {
const arrayWithData = this.handlearrayWithData(values);
const multipleData = this.handleMultipleData(values);
const formData = { ...values, ...arrayWithData, ...multipleData };
for (var name in formData) {
for (let name in formData) {
param.forEach((item) => {
if (item.name === name) {
item.value = formData[name];
Expand Down Expand Up @@ -224,7 +224,7 @@ export default {
checkAllForm() {
const self = this;
let num = 0;
for (var i = 0; i < self.SERVICENAMES.length; i++) {
for (let i = 0; i < self.SERVICENAMES.length; i++) {
const item = self.SERVICENAMES[i];
self.$refs[`CommonTemplateRef${item}`][0].form.validateFields(
(err, values) => {
Expand Down Expand Up @@ -254,7 +254,7 @@ export default {
const arrayWithData = this.handlearrayWithData(values);
const multipleData = this.handleMultipleData(values);
const formData = { ...values, ...arrayWithData, ...multipleData };
for (var name in formData) {
for (let name in formData) {
param.forEach((item) => {
if (item.name === name) {
item.value = formData[name];
Expand Down
1 change: 0 additions & 1 deletion datasophon-ui/src/components/tool/AStepItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default {
:global{
.ant-steps-item-process{
.linkable{
color: @primary-color;
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions datasophon-ui/src/pages/serviceManage/setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default {
handlearrayWithData(a) {
let obj = {};
let arr = [];
for (var k in a) {
for (let k in a) {
if (k.includes("arrayWith")) {
let key = "";
if (k.includes("arrayWithKey")) {
Expand All @@ -216,10 +216,10 @@ export default {
arr.map((item) => {
obj[item] = [];
});
for (var f in obj) {
for (let f in obj) {
let keys = [];
let vals = [];
for (var i in a) {
for (let i in a) {
if (i.includes(f)) {
if (i.includes("arrayWithKey")) {
keys.push(i);
Expand All @@ -240,7 +240,7 @@ export default {
handleMultipleData(a) {
let obj = {};
let arr = [];
for (var k in a) {
for (let k in a) {
if (k.includes("multiple")) {
let key = k.split("multiple")[0];
arr.push(key);
Expand All @@ -251,9 +251,9 @@ export default {
obj[item] = [];
});
// obj{ a: , b: }
for (var f in obj) {
for (let f in obj) {
let vals = [];
for (var i in a) {
for (let i in a) {
if (i.includes(f)) {
if (i.includes("multiple")) {
vals.push(i);
Expand All @@ -277,7 +277,7 @@ export default {
const multipleData = this.handleMultipleData(values);
const formData = { ...values, ...arrayWithData, ...multipleData };
console.log(formData, "formDataformData");
for (var name in formData) {
for (let name in formData) {
param.forEach((item) => {
if (item.name === name) {
item.value = formData[name];
Expand Down