110 lines
3.7 KiB
HTML
110 lines
3.7 KiB
HTML
<!doctype html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>可信供给中心</title>
|
|
<link href="assets/sdk/antd.css" rel="stylesheet"/>
|
|
<link href="assets/sdk/helper.css" rel="stylesheet"/>
|
|
<link href="assets/sdk/iconfont.css" rel="stylesheet"/>
|
|
<style>
|
|
html, body, #root {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
<script src="assets/sdk/sdk.js"></script>
|
|
<script type="module">
|
|
import {information} from './assets/component/constants.js'
|
|
import {userChangePasswordDialog} from './assets/component/pages/user/dialog-user-change-password'
|
|
import {tabUser} from './assets/component/pages/tab-user.js'
|
|
import {tabOverview} from './assets/component/pages/tab-overview.js'
|
|
import {apiGet} from "./assets/component/common.js";
|
|
|
|
(function () {
|
|
let amis = amisRequire('amis/embed')
|
|
let amisJSON = {
|
|
id: 'header-service',
|
|
className: 'h-full',
|
|
type: 'service',
|
|
api: apiGet('${base}/user/state'),
|
|
onEvent: {
|
|
fetchInited: {
|
|
actions: [
|
|
{
|
|
expression: '${!event.data.responseData.token}',
|
|
actionType: 'url',
|
|
args: {
|
|
url: '/login.html',
|
|
blank: false,
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
body: [
|
|
{
|
|
type: 'page',
|
|
title: information.title,
|
|
subTitle: '提供合法合规的数据要素可信供给工具',
|
|
toolbar: [
|
|
{
|
|
type: 'dropdown-button',
|
|
label: '${username}',
|
|
align: 'right',
|
|
trigger: 'hover',
|
|
buttons: [
|
|
{
|
|
label: '修改密码',
|
|
...userChangePasswordDialog(),
|
|
},
|
|
{
|
|
label: '退出登陆',
|
|
actionType: 'ajax',
|
|
api: apiGet('${base}/user/logout'),
|
|
reload: 'header-service',
|
|
}
|
|
]
|
|
}
|
|
],
|
|
bodyClassName: 'p-0',
|
|
body: {
|
|
className: 'h-full border-0',
|
|
type: 'tabs',
|
|
tabsMode: 'vertical',
|
|
tabs: [
|
|
tabOverview(),
|
|
tabUser(),
|
|
]
|
|
},
|
|
}
|
|
]
|
|
}
|
|
amis.embed(
|
|
'#root',
|
|
amisJSON,
|
|
{
|
|
data: {
|
|
base: information.baseUrl
|
|
},
|
|
},
|
|
{
|
|
theme: 'antd',
|
|
enableAMISDebug: information.debug,
|
|
},
|
|
);
|
|
if (information.debug) {
|
|
console.log('Source', amisJSON)
|
|
}
|
|
})()
|
|
</script>
|
|
</html> |