From 17b8d077f7efe3db20344987cdad9da9d9ab3de6 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期五, 03 十一月 2023 15:21:11 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes
---
CanadaMes-ui/src/views/Electrical/Parameter.vue | 29 +++--------------------------
1 files changed, 3 insertions(+), 26 deletions(-)
diff --git a/CanadaMes-ui/src/views/Electrical/Parameter.vue b/CanadaMes-ui/src/views/Electrical/Parameter.vue
index 5abab43..0910224 100644
--- a/CanadaMes-ui/src/views/Electrical/Parameter.vue
+++ b/CanadaMes-ui/src/views/Electrical/Parameter.vue
@@ -13,7 +13,7 @@
<el-form label-width="100px" style="display: flex; flex-wrap: wrap;" :model="messagepack.data">
<div id="btn_div">
- <el-button type="primary" @click="send()" id="xiafa" :disabled="isButtonDisabled">涓嬪彂鍙傛暟</el-button>
+ <el-button type="primary" @click="send()" id="xiafa" :disabled="isButtonDisabled">{{ $t('Distribute parameters') }}</el-button>
</div>
<div class="kuai_div" v-for="(item, index) in record.xyData" :key="index">
@@ -35,8 +35,7 @@
</template>
-<script>
-import { SelectPassword } from "../../api/home";
+<script>
let socket;
import LanguageMixin from '../../lang/LanguageMixin'
@@ -79,29 +78,7 @@
created () {
this.initWebSocket();
- this.isButtonDisabled = true;
- SelectPassword().then(res => {
- this.password = res.data.password;
-});
- this.$prompt(this.$t('Are you sure to perform this operation?'), this.$t('prompt'), {
- inputType: 'password',
- inputPlaceholder: this.$t('Please enter the password'),
- confirmButtonText: this.$t('Yes'),
- cancelButtonText: this.$t('No'),
- type: 'warning'
- }).then(({ value }) => {
- if (this.password === value) {
- // 瀵嗙爜姝g‘锛屾墽琛岀浉搴旀搷浣�
- } else {
- this.$message.success(this.$t('Password error')); // 瀵嗙爜閿欒
- }
- }).catch(() => {
- this.$message({
- type: 'info',
- message: this.$t('Operation canceled')
- });
- });
-
+ this.isButtonDisabled = true;
},
methods: {
--
Gitblit v1.8.0