-
-
- {{ username }}
-
+
+
-
-
-
- {{ $t("header.personalData") }}
-
-
- {{ $t("header.changePassword") }}
-
-
- {{ $t("header.changeMode") }}
-
-
- {{ $t("header.versionRegister") }}
-
-
-
-
+
+ {{ username }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/login/components/LoginForm.vue b/frontend/src/views/login/components/LoginForm.vue
index 359d96a..81bad51 100644
--- a/frontend/src/views/login/components/LoginForm.vue
+++ b/frontend/src/views/login/components/LoginForm.vue
@@ -6,7 +6,7 @@
size='large'
>
-
+
@@ -21,6 +21,7 @@
placeholder='密码'
show-password
autocomplete='new-password'
+ disabled
>
@@ -87,8 +88,8 @@ const loginRules = reactive({
const loading = ref(false)
const loginForm = reactive({
- username: '',
- password: '',
+ username: 'user',
+ password: 'user12345.',
})
// login
diff --git a/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue b/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue
index 9ae539f..c77ac07 100644
--- a/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue
+++ b/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue
@@ -127,12 +127,14 @@
size="large"
@click="startLoading"
style="margin-left: 70px;margin-top: 10px;"
+ :disabled="startDisabeld"
>启动
停止
@@ -168,7 +170,7 @@
import { type PropType, ref, nextTick, onMounted, watch } from 'vue'
import Tree from './tree.vue'
import Commun from './communication.vue'
-import type { CascaderOption } from 'element-plus'
+import {type CascaderOption, ElMessage} from 'element-plus'
import { getTreeData } from '@/api/check/test'
import { CirclePlus, Delete, Check, CopyDocument, View, EditPen } from '@element-plus/icons-vue'
import type { TestScript } from '@/api/device/interface/testScript'
@@ -203,8 +205,18 @@ const props = defineProps({
formControl: {
type: Object,
required: true
- }
+ },
+ startDisabeld: {
+ type:Boolean,
+ required:true
+ },
+ pauseDisabled: {
+ type: Boolean,
+ required: true
+ }
})
+
+
const showDialog = ref(false)
const viewDialog = ref(false)
const dictStore = useDictStore()
@@ -234,7 +246,7 @@ const column = ref([
}
])
-const emit = defineEmits(['update:activeName','update:activeIndex'])
+const emit = defineEmits(['update:activeName','update:activeIndex','update:startDisabeld','update:pauseDisabled'])
const controlContent = ref