后端添加域名访问首页入口单页;前端打包塞入Gateway中
This commit is contained in:
@@ -431,10 +431,10 @@ const saveEdit = async (formEl: FormInstance | undefined) => {
|
||||
var result;
|
||||
if (formId > 0) {
|
||||
// 修改记录
|
||||
var result = await props.editFunc(form)
|
||||
var result = await props.editFunc?.(form)
|
||||
} else {
|
||||
// 新增记录
|
||||
var result = await props.addFunc(form)
|
||||
var result = await props.addFunc?.(form)
|
||||
query.pageIndex = Math.ceil((pageTotal.value + 1) / query.pageSize);
|
||||
}
|
||||
console.log("result", result)
|
||||
@@ -460,7 +460,7 @@ const handleDelete = (index: number, row: any) => {
|
||||
// 二次确认删除
|
||||
ElMessageBox.confirm('确定要删除吗?', '提示', { type: 'warning' })
|
||||
.then(async () => {
|
||||
var result = await props.deleteFunc({
|
||||
var result = await props.deleteFunc?.({
|
||||
id: row[idFieldName],
|
||||
})
|
||||
if (result) {
|
||||
|
@@ -23,5 +23,5 @@ export default {
|
||||
* 后端接口请求地址
|
||||
* (结尾加不加 / 都可)
|
||||
*/
|
||||
backendHost: "https://epp.only4.work/",
|
||||
backendHost: "//epp.only4.work/",
|
||||
};
|
||||
|
@@ -71,34 +71,6 @@
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-card shadow="hover" style="height: 403px">
|
||||
<template #header>
|
||||
<div class="clearfix">
|
||||
<span>预警列表</span>
|
||||
<el-button style="float: right; padding: 3px 0" text>添加</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-table :show-header="false" :data="todoList" style="width: 100%">
|
||||
<el-table-column width="40">
|
||||
<template #default="scope">
|
||||
<el-checkbox v-model="scope.row.status"></el-checkbox>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column>
|
||||
<template #default="scope">
|
||||
<div
|
||||
class="todo-item"
|
||||
:class="{
|
||||
'todo-item-del': scope.row.status
|
||||
}"
|
||||
>
|
||||
{{ scope.row.title }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
@@ -113,15 +113,15 @@ const onSubmit = async () => {
|
||||
text: '请稍候',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
});
|
||||
await send_request('v1/user/alterPSW', "POST", {
|
||||
"userId": form.user_id,
|
||||
"oldPSW": form.old,
|
||||
"newPSW": form.new
|
||||
}, (data: any) => {
|
||||
console.log(data);
|
||||
ElMessage.success('删除成功');
|
||||
// tableData.value.splice(index, 1);
|
||||
})
|
||||
// await send_request('v1/user/alterPSW', "POST", {
|
||||
// "userId": form.user_id,
|
||||
// "oldPSW": form.old,
|
||||
// "newPSW": form.new
|
||||
// }, (data: any) => {
|
||||
// console.log(data);
|
||||
// ElMessage.success('删除成功');
|
||||
// // tableData.value.splice(index, 1);
|
||||
// })
|
||||
loading.close();
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user