删除不需要的代码,玻璃信息放入其他数据库 方便测试显示数据库连接的信息
3个文件已修改
48 ■■■■■ 已修改文件
CanadaMes-ui/src/views/Electrical/Action.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CanadaMes-ui/src/views/Electrical/Parameter.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CanadaMes-ui/src/views/Electrical/Action.vue
@@ -26,7 +26,6 @@
</template>
 
<script >
import { SelectPassword } from "../../api/home";
import LanguageMixin from '../../lang/LanguageMixin'
let socket;
export default {
@@ -109,28 +108,6 @@
  },
  created () {
    this.init();
    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) {
      // 密码正确,执行相应操作
    } else {
      this.$message.success(this.$t('Password error')); // 密码错误
    }
  }).catch(() => {
    this.$message({
      type: 'info',
      message: this.$t('Operation canceled')
    });
  });
  },
  methods: {
    setActiveButton(buttonName) {
CanadaMes-ui/src/views/Electrical/Parameter.vue
@@ -36,7 +36,6 @@
</template>
<script>
import { SelectPassword } from "../../api/home";
let socket;
import LanguageMixin from '../../lang/LanguageMixin'
@@ -80,28 +79,6 @@
  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) {
      // 密码正确,执行相应操作
    } else {
      this.$message.success(this.$t('Password error')); // 密码错误
    }
  }).catch(() => {
    this.$message({
      type: 'info',
      message: this.$t('Operation canceled')
    });
  });
  },
  methods: {
   
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -56,7 +56,7 @@
     */
    public static Connection getConn() throws SQLException {
        Connection conn = null;
        conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
        conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadameserp?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
        return conn;
    }