refactor(webapp): 更新 API地址并优化代码
-将本地 API 地址替换为阿里云服务器地址 - 更新 HTML 文件中的脚本和样式链接- 优化 manage.vue 文件中的导入路径和类型定义 - 移除 report.vue 中的冗余 alert
This commit is contained in:
parent
31404cf225
commit
40367a4e12
499
alibabacloud_sample/templates/assets/index-BKogJWAb.js
Normal file
499
alibabacloud_sample/templates/assets/index-BKogJWAb.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
alibabacloud_sample/templates/assets/index-DdVjXnlc.css
Normal file
1
alibabacloud_sample/templates/assets/index-DdVjXnlc.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{width:100%;height:100%;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.pdf[data-v-63a0040f]{width:100%;height:100%}.container[data-v-9f5a173f]{margin-top:50px;height:100%}.pdf[data-v-34c6f13c]{width:100%;height:100%}.ant-steps[data-v-c563b4dc]{padding:0 20px 20px}.table-operations[data-v-08087e29]{margin-bottom:16px;text-align:right}.table-operations>button[data-v-08087e29]{margin-right:8px}#components-layout-demo-top-side .logo[data-v-0093e7ee]{float:left;height:31px;margin:16px 24px 16px 0;background:#ffffff4d}.ant-row-rtl #components-layout-demo-top-side .logo[data-v-0093e7ee]{float:right;margin:16px 0 16px 24px}.container[data-v-0093e7ee]{height:100%}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}
|
||||||
@ -1 +0,0 @@
|
|||||||
:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;width:100%;height:100%;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.pdf[data-v-7685f0fd]{width:100%;height:100%}.container[data-v-2afd7e53]{height:100%}.pdf[data-v-d0789a87]{width:100%;height:100%}.ant-steps[data-v-234ab503]{padding:0 20px 20px}.table-operations[data-v-36953f9b]{margin-bottom:16px;text-align:right}.table-operations>button[data-v-36953f9b]{margin-right:8px}#components-layout-demo-top-side .logo[data-v-274d3151]{float:left;height:31px;margin:16px 24px 16px 0;background:#ffffff4d}.ant-row-rtl #components-layout-demo-top-side .logo[data-v-274d3151]{float:right;margin:16px 0 16px 24px}.container[data-v-274d3151]{height:100%}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + Vue + TS</title>
|
<title>Vite + Vue + TS</title>
|
||||||
<script type="module" crossorigin src="/assets/index-BwXTYU5t.js"></script>
|
<script type="module" crossorigin src="/assets/index-BKogJWAb.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DnCVOfYc.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DdVjXnlc.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -19,7 +19,7 @@ import {baseURL} from "../../utils/baseurl.ts";
|
|||||||
|
|
||||||
const fileType = ref<string>('img')
|
const fileType = ref<string>('img')
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
alert(props.filePath)
|
// alert(props.filePath)
|
||||||
if(props.filePath){
|
if(props.filePath){
|
||||||
fileType.value = props.filePath.split('.').pop() ==='pdf'?'pdf':'img'
|
fileType.value = props.filePath.split('.').pop() ==='pdf'?'pdf':'img'
|
||||||
request.get('/verify?filePath='+encodeURIComponent(props.filePath)).then((res) => {
|
request.get('/verify?filePath='+encodeURIComponent(props.filePath)).then((res) => {
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import {
|
|||||||
FileSearchOutlined,
|
FileSearchOutlined,
|
||||||
PlusOutlined
|
PlusOutlined
|
||||||
} from '@ant-design/icons-vue'
|
} from '@ant-design/icons-vue'
|
||||||
import request from '#/utils/request.ts';
|
import request from '../utils/request.ts';
|
||||||
import {baseURL} from "../utils/baseurl.ts";
|
import {baseURL} from "../utils/baseurl.ts";
|
||||||
import type {TableProps, UploadChangeParam, UploadProps} from "ant-design-vue";
|
import type {TableProps, UploadChangeParam, UploadProps} from "ant-design-vue";
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
@ -15,6 +15,7 @@ import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import 'dayjs/locale/zh-cn';
|
import 'dayjs/locale/zh-cn';
|
||||||
import type {UploadFile} from "ant-design-vue/es/upload/interface";
|
import type {UploadFile} from "ant-design-vue/es/upload/interface";
|
||||||
|
import type {Key} from "ant-design-vue/es/_util/type";
|
||||||
const [messageApi, contextHolder] = message.useMessage();
|
const [messageApi, contextHolder] = message.useMessage();
|
||||||
interface DataType {
|
interface DataType {
|
||||||
id: string;
|
id: string;
|
||||||
@ -102,7 +103,7 @@ let searchParams = ref({
|
|||||||
});
|
});
|
||||||
// 下拉框
|
// 下拉框
|
||||||
const rowSelection: TableProps['rowSelection'] = {
|
const rowSelection: TableProps['rowSelection'] = {
|
||||||
onChange: (selectedRowKeys: string[], selectedRows: DataType[]) => {
|
onChange: (selectedRowKeys: Key[], selectedRows: DataType[]) => {
|
||||||
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
||||||
},
|
},
|
||||||
getCheckboxProps: (record: DataType) => ({
|
getCheckboxProps: (record: DataType) => ({
|
||||||
@ -137,7 +138,7 @@ const handleOk = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
const handleOpen = (record) => {
|
const handleOpen = (record:any) => {
|
||||||
if (record.status === 'yes') {
|
if (record.status === 'yes') {
|
||||||
modalTitle.value = "备注"
|
modalTitle.value = "备注"
|
||||||
}else {
|
}else {
|
||||||
@ -188,7 +189,7 @@ const handleCancelPreview = () => {
|
|||||||
previewVisible.value = false;
|
previewVisible.value = false;
|
||||||
previewTitle.value = '';
|
previewTitle.value = '';
|
||||||
};
|
};
|
||||||
const handlePreview = async (file: UploadProps['fileList'][number]) => {
|
const handlePreview = async (file: any) => {
|
||||||
if (!file.url && !file.preview) {
|
if (!file.url && !file.preview) {
|
||||||
file.preview = (await getBase64(file.originFileObj)) as string;
|
file.preview = (await getBase64(file.originFileObj)) as string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
export const baseURL = "http://127.0.0.1:5555"
|
// export const baseURL = "http://127.0.0.1:5555"
|
||||||
// export const baseURL = "http://101.200.148.149:8555"
|
export const baseURL = "http://101.200.148.149:8555"
|
||||||
Loading…
Reference in New Issue
Block a user