删除不需要的代码,玻璃信息放入其他数据库 方便测试显示数据库连接的信息
| | |
| | | </template> |
| | | |
| | | <script > |
| | | import { SelectPassword } from "../../api/home"; |
| | | import LanguageMixin from '../../lang/LanguageMixin' |
| | | let socket; |
| | | export default { |
| | |
| | | }, |
| | | 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) { |
| | |
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { SelectPassword } from "../../api/home";
|
| | |
|
| | | let socket;
|
| | | import LanguageMixin from '../../lang/LanguageMixin'
|
| | |
| | | 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: {
|
| | |
|
| | |
| | | */ |
| | | 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; |
| | | } |
| | | |