fixed linting issues, pushing to github for test run
This commit is contained in:
parent
a1252c5701
commit
406332f6cd
@ -101,6 +101,7 @@
|
||||
|
||||
<CardElement
|
||||
v-for="(http_phase, index) in powerMeterConfigList.http_phases"
|
||||
:key="http_phase.index"
|
||||
:text="$t('powermeteradmin.httpPhase', { phaseNumber: http_phase.index })"
|
||||
textVariant="text-bg-primary"
|
||||
add-space>
|
||||
@ -188,7 +189,7 @@ import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
||||
import CardElement from '@/components/CardElement.vue';
|
||||
import InputElement from '@/components/InputElement.vue';
|
||||
import { handleResponse, authHeader } from '@/utils/authentication';
|
||||
import { BIconInfoCircle } from 'bootstrap-icons-vue';
|
||||
// import { BIconInfoCircle } from 'bootstrap-icons-vue';
|
||||
import type { PowerMeterHttpPhaseConfig, PowerMeterConfig } from "@/types/PowerMeterConfig";
|
||||
|
||||
export default defineComponent({
|
||||
@ -197,20 +198,9 @@ export default defineComponent({
|
||||
BootstrapAlert,
|
||||
CardElement,
|
||||
InputElement,
|
||||
BIconInfoCircle,
|
||||
// BIconInfoCircle,
|
||||
},
|
||||
data() {
|
||||
const people: { name: string; age: number; }[] = [
|
||||
{
|
||||
age: 27,
|
||||
name: 'Tim'
|
||||
},
|
||||
{
|
||||
age: 28,
|
||||
name: 'Bob'
|
||||
}
|
||||
];
|
||||
|
||||
return {
|
||||
dataLoading: true,
|
||||
powerMeterConfigList: {} as PowerMeterConfig,
|
||||
@ -223,7 +213,7 @@ export default defineComponent({
|
||||
alertMessage: "",
|
||||
alertType: "info",
|
||||
showAlert: false,
|
||||
testHttpRequestAlert: <{ message: string; type: string; show: boolean; }[]> [ ],
|
||||
testHttpRequestAlert: [{message: "", type: "", show: false}] as { message: string; type: string; show: boolean; }[]
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -238,14 +228,14 @@ export default defineComponent({
|
||||
this.powerMeterConfigList = data;
|
||||
this.dataLoading = false;
|
||||
|
||||
type MyType = {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
// type MyType = {
|
||||
// id: number;
|
||||
// name: string;
|
||||
// }
|
||||
|
||||
type MyGroupType = {
|
||||
[key:string]: MyType;
|
||||
}
|
||||
// type MyGroupType = {
|
||||
// [key:string]: MyType;
|
||||
// }
|
||||
|
||||
for (var i = 0; i < this.powerMeterConfigList.http_phases.length; i++) {
|
||||
this.testHttpRequestAlert.push({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user