forked from TencentBlueKing/blueking-dbm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): 新增单据通知设置页面 TencentBlueKing#8335
- Loading branch information
Showing
8 changed files
with
143 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,19 @@ | ||
{ | ||
"eslint.validate": ["javascript", "javascriptreact", "html", "vue"], | ||
"eslint.alwaysShowStatus": true, | ||
"files.eol": "\n", | ||
"editor.unfoldOnClickAfterEndOfLine": true, | ||
"editor.tabSize": 2, | ||
"diffEditor.ignoreTrimWhitespace": false, | ||
"typescript.updateImportsOnFileMove.enabled": "always", | ||
"explorer.confirmDelete": false, | ||
"explorer.confirmDragAndDrop": false, | ||
"editor.fontLigatures": false, | ||
"editor.fontVariations": false, | ||
"i18n-lazyer.defaultFolder": "/src/locales", | ||
"search.smartCase": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[html]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
// "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 2, | ||
"css.validate": false, | ||
"stylelint.enable": true, | ||
"scss.validate": false, | ||
"stylelint.validate": ["css", "scss", "vue"], | ||
"preCI.localCodeCheck.filter.whitePath": "", | ||
"preCI.localCodeCheck.filter.skipPath": "", | ||
"preCI.localCodeCheck.checkerSet.JS": ["standard_js"], | ||
"peacock.remoteColor": "#45e35f", | ||
"bk-code-ai.enable": false, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"workbench.colorCustomizations": { | ||
"activityBar.activeBackground": "#65c89b", | ||
"activityBar.background": "#65c89b", | ||
"activityBar.foreground": "#15202b", | ||
"activityBar.inactiveForeground": "#15202b99", | ||
"activityBarBadge.background": "#945bc4", | ||
"activityBarBadge.foreground": "#e7e7e7", | ||
"commandCenter.border": "#15202b99", | ||
"sash.hoverBorder": "#65c89b", | ||
"statusBar.background": "#42b883", | ||
"statusBar.foreground": "#15202b", | ||
"statusBarItem.hoverBackground": "#359268", | ||
"statusBarItem.remoteBackground": "#42b883", | ||
"statusBarItem.remoteForeground": "#15202b", | ||
"titleBar.activeBackground": "#42b883", | ||
"titleBar.activeForeground": "#15202b", | ||
"titleBar.inactiveBackground": "#42b88399", | ||
"titleBar.inactiveForeground": "#15202b99" | ||
}, | ||
"peacock.color": "#42b883" | ||
} | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3658,5 +3658,6 @@ | |
"点击上传": "点击上传", | ||
"请选择本地 SQL 文件": "请选择本地 SQL 文件", | ||
"这行勿动!新增翻译请在上一行添加!": "" | ||
|
||
, | ||
"单据通知": "单据通知" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!-- | ||
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. | ||
* | ||
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License athttps://opensource.org/licenses/MIT | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for | ||
* the specific language governing permissions and limitations under the License. | ||
--> | ||
|
||
<template> | ||
<SmartAction | ||
class="apply-doris-page" | ||
:offset-target="getSmartActionOffsetTarget"> | ||
<BkTable :data="tableData"> | ||
<template | ||
v-for="column in columns" | ||
:key="column.label"> | ||
<BkTableColumn | ||
:field="column.field" | ||
:index="column.index" | ||
:label="column.label" | ||
:width="column.width" /> | ||
</template> | ||
</BkTable> | ||
<template #action> | ||
<div> | ||
<BkButton | ||
class="w-88" | ||
:loading="isSubmitting" | ||
theme="primary" | ||
@click="handleSubmit"> | ||
{{ t('提交') }} | ||
</BkButton> | ||
<BkButton | ||
class="ml8 w-88" | ||
:disabled="isSubmitting" | ||
@click="handleReset"> | ||
{{ t('重置') }} | ||
</BkButton> | ||
</div> | ||
</template> | ||
</SmartAction> | ||
</template> | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
|
||
const { t } = useI18n(); | ||
|
||
const tableData = ref([]); | ||
const isSubmitting = ref(false); | ||
|
||
const columns = [ | ||
{ label: '序号', type: 'index', width: '120px', index: 0 }, | ||
{ label: '名称/内网IP', field: 'ip', width: '320px', index: 1 }, | ||
]; | ||
|
||
const getSmartActionOffsetTarget = () => document.querySelector('.bk-form-content'); | ||
|
||
const handleSubmit = () => {}; | ||
|
||
const handleReset = () => {}; | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.apply-doris-page { | ||
display: block; | ||
|
||
.db-card { | ||
& ~ .db-card { | ||
margin-top: 20px; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. | ||
* | ||
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at https://opensource.org/licenses/MIT | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for | ||
* the specific language governing permissions and limitations under the License. | ||
*/ | ||
import { checkDbConsole } from '@utils'; | ||
|
||
import { t } from '@locales/index'; | ||
|
||
const routes = [ | ||
{ | ||
name: 'TicketNotice', | ||
path: 'ticket-notice', | ||
meta: { | ||
navName: t('单据通知'), | ||
fullscreen: true, | ||
}, | ||
component: () => import('@views/ticket-notice/Index.vue'), | ||
}, | ||
]; | ||
|
||
export default function getRoutes() { | ||
return checkDbConsole('bizConfigManage.ticketNotice') ? routes : []; | ||
} |