diff --git a/web/src/util/commonUtils.js b/web/src/util/commonUtils.js
index 6ef6ddf..aed9411 100644
--- a/web/src/util/commonUtils.js
+++ b/web/src/util/commonUtils.js
@@ -1,38 +1,19 @@
-
class CommonUtils {
-
- // static getCurlString(task_id, options) {
- // let data = { task_id: task_id };
- // data.title = 'message title';
- // data.text = 'Hello World!';
- // if (options.html) {
- // data.html = '
Hello World!
';
- // }
- // if (options.markdown) {
- // data.html = '**Hello World!**';
- // }
- // let dataStr = JSON.stringify(data, null, 4);
- // let example = `curl -X POST --location '${gethttpOrigin()}/api/v1/message/send' \\
- // --header 'Content-Type: application/json' \\
- // --data '${dataStr}'`;
- // return example;
- // }
-
- static formatInsConfigDisplay = (scope) => {
- if (!scope.row.config) {
- return ""
- }
- if (scope.row.way_type == "Email") {
- let config = JSON.parse(scope.row.config)
- let info = `发送账号:${config.to_account}`
- return info
- } else {
- return "暂无"
- }
- }
+ static formatInsConfigDisplay = (scope) => {
+ if (!scope.row.config) {
+ return ""
+ }
+ if (scope.row.way_type == "Email") {
+ let config = JSON.parse(scope.row.config)
+ let info = `发送账号:${config.to_account}`
+ return info
+ } else {
+ return "暂无"
+ }
+ }
}
diff --git a/web/src/views/common/tableDeleteButton.vue b/web/src/views/common/tableDeleteButton.vue
index 72e941f..b79b245 100644
--- a/web/src/views/common/tableDeleteButton.vue
+++ b/web/src/views/common/tableDeleteButton.vue
@@ -14,7 +14,6 @@ import { defineComponent } from 'vue';
export default defineComponent({
methods: {
handleDelete() {
- // 触发自定义事件
this.$emit('customHandleDelete');
}
}
diff --git a/web/src/views/home/index.vue b/web/src/views/home/index.vue
index 72af947..d234bd2 100644
--- a/web/src/views/home/index.vue
+++ b/web/src/views/home/index.vue
@@ -3,7 +3,6 @@
-
@@ -34,23 +33,10 @@ export default {
titleLogo: '',
});
const menuData = reactive([
- {
- id: '1',
- title: '发信日志',
- path: '/sendlogs',
- }, {
- id: '2',
- title: '发信任务',
- path: '/sendtasks',
- }, {
- id: '3',
- title: '发信渠道',
- path: '/sendways',
- }, {
- id: '4',
- title: '设置',
- path: '/settings',
- },
+ { id: '1', title: '发信日志', path: '/sendlogs' },
+ { id: '2', title: '发信任务', path: '/sendtasks' },
+ { id: '3', title: '发信渠道', path: '/sendways' },
+ { id: '4', title: '设置', path: '/settings' },
]);
const checkIsLogin = () => {
@@ -118,7 +104,6 @@ export default {
font-size: 15px;
justify-content: center;
align-items: center;
-
}
.el-menu-item li {
@@ -132,7 +117,8 @@ export default {
.logout-btn {
margin: auto 40px auto 40px;
float: right;
- /* background-color: #f7efee;
+ /*
+ background-color: #f7efee;
border: none;
padding: 10px 20px;
text-align: center;
@@ -140,6 +126,7 @@ export default {
font-size: 16px;
cursor: pointer;
border-radius: 5px;
- transition: background-color 0.3s ease; */
+ transition: background-color 0.3s ease;
+ */
}
diff --git a/web/src/views/home/login.vue b/web/src/views/home/login.vue
index eb2f40d..d7404b9 100644
--- a/web/src/views/home/login.vue
+++ b/web/src/views/home/login.vue
@@ -71,7 +71,6 @@ export default {
// 注册
const clickRegister = () => {
ElMessage({ message: `暂未开放注册!`, type: 'error' })
-
};
return { ...toRefs(state), clickLogin, clickRegister, pageState };
diff --git a/web/src/views/tabsTools/sendLogs/sendLogs.vue b/web/src/views/tabsTools/sendLogs/sendLogs.vue
index 4413884..106f93d 100644
--- a/web/src/views/tabsTools/sendLogs/sendLogs.vue
+++ b/web/src/views/tabsTools/sendLogs/sendLogs.vue
@@ -138,7 +138,6 @@ hr {
margin-top: -10vh;
}
-
.pagination-block {
margin-top: 30px;
display: flex;
diff --git a/web/src/views/tabsTools/sendTasks/sendTasks.vue b/web/src/views/tabsTools/sendTasks/sendTasks.vue
index 786f29b..9793b19 100644
--- a/web/src/views/tabsTools/sendTasks/sendTasks.vue
+++ b/web/src/views/tabsTools/sendTasks/sendTasks.vue
@@ -51,7 +51,6 @@
-
diff --git a/web/src/views/tabsTools/sendWays/sendWays.vue b/web/src/views/tabsTools/sendWays/sendWays.vue
index 5ae2fe4..bcf64c7 100644
--- a/web/src/views/tabsTools/sendWays/sendWays.vue
+++ b/web/src/views/tabsTools/sendWays/sendWays.vue
@@ -49,7 +49,6 @@
-
@@ -117,20 +116,20 @@ export default {
await queryListData(pageNum, state.pageSize);
}
+
const rowStyle = () => {
return {
'font-size': '13px',
}
}
+
const filterFunc = async () => {
- // console.log('state.optionValue', state.optionValue);
await queryListData(state.currPage, state.pageSize, state.search, state.optionValue);
}
const clickAdd = () => {
pageState.ShowDialogData[state.addWayComponentName] = {};
pageState.ShowDialogData[state.addWayComponentName].isShow = true;
- // console.log('clickAdd', pageState.ShowDialogData[state.addWayComponentName].isShow)
}
const queryListData = async (page, size, name = '', type = '') => {
diff --git a/web/src/views/tabsTools/sendWays/view/addWayPopUp.vue b/web/src/views/tabsTools/sendWays/view/addWayPopUp.vue
index 9d20d9a..50dbb6b 100644
--- a/web/src/views/tabsTools/sendWays/view/addWayPopUp.vue
+++ b/web/src/views/tabsTools/sendWays/view/addWayPopUp.vue
@@ -114,7 +114,6 @@ export default defineComponent({
handleCancer();
window.location.reload();
}
-
}
return {
@@ -125,15 +124,5 @@ export default defineComponent({
diff --git a/web/src/views/tabsTools/sendWays/view/editWayPopUp.vue b/web/src/views/tabsTools/sendWays/view/editWayPopUp.vue
index 042db39..7e6ebfc 100644
--- a/web/src/views/tabsTools/sendWays/view/editWayPopUp.vue
+++ b/web/src/views/tabsTools/sendWays/view/editWayPopUp.vue
@@ -7,13 +7,11 @@
-
-
@@ -53,14 +51,8 @@ export default defineComponent({
isShow: false,
waysLabelData: [],
editData: {},
-
});
- const dealDisplayData = () => {
-
- }
-
- // 监测父页面传过来的数据
watch(pageState.ShowDialogData, (newValue, oldValue) => {
if (newValue[props.componentName]) {
// 弹出编辑框
@@ -88,26 +80,22 @@ export default defineComponent({
};
});
-
const handleCancer = () => {
if (pageState.ShowDialogData[props.componentName]) {
pageState.ShowDialogData[props.componentName].isShow = false;
}
}
-
const handleClick = () => {
}
const getEditData = (type) => {
for (const element of state.waysLabelData) {
- // if (element.type == type) {
const data = {};
for (const item of element.inputs) {
data[item.col] = item.value;
}
return data;
- // }
}
return {};
}
@@ -136,7 +124,6 @@ export default defineComponent({
const handleSubmit = async () => {
let postData = getFinalData();
const rsp = await request.post('/sendways/edit', postData);
- // console.log('edit res',rsp)
if (await rsp.data.code == 200) {
handleCancer();
}
@@ -147,18 +134,9 @@ export default defineComponent({
};
},
});
+
diff --git a/web/src/views/tabsTools/settings/view/about.vue b/web/src/views/tabsTools/settings/view/about.vue
index 35e16a2..67ed113 100644
--- a/web/src/views/tabsTools/settings/view/about.vue
+++ b/web/src/views/tabsTools/settings/view/about.vue
@@ -27,10 +27,6 @@ export default defineComponent({
components: {
QuestionFilled,
},
- props: {
- },
- methods: {
- },
setup() {
const state = reactive({
version: '',
diff --git a/web/src/views/tabsTools/settings/view/resetPasswd.vue b/web/src/views/tabsTools/settings/view/resetPasswd.vue
index 622c67e..fdc96ec 100644
--- a/web/src/views/tabsTools/settings/view/resetPasswd.vue
+++ b/web/src/views/tabsTools/settings/view/resetPasswd.vue
@@ -44,10 +44,6 @@ export default defineComponent({