提交 48b417d3 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 497e7bf0
{ {
"name": "app", "name": "ibiz-studio-ftl",
"version": "0.1.0", "version": "0.0.1",
"private": true,
"scripts": { "scripts": {
"serve": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service serve --mode development", "serve": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service serve --mode development",
"dev-serve": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service serve --mode development", "dev-serve": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service serve --mode development",
...@@ -9,7 +8,8 @@ ...@@ -9,7 +8,8 @@
"dev-build": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service build --mode development", "dev-build": "node --max_old_space_size=8102 ./node_modules/@vue/cli-service/bin/vue-cli-service build --mode development",
"test:unit": "vue-cli-service test:unit", "test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e", "test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint",
"analyze": "source-map-explorer dist/js/chunk-vendors.*.js"
}, },
"dependencies": { "dependencies": {
"@fullcalendar/core": "^4.4.0", "@fullcalendar/core": "^4.4.0",
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"rxjs": "^6.5.4", "rxjs": "^6.5.4",
"tinymce": "4.8.5", "tinymce": "4.8.5",
"view-design": "^4.2.0", "view-design": "^4.2.0",
"vue": "^2.6.10", "vue": "^2.6.11",
"vue-class-component": "^7.0.2", "vue-class-component": "^7.0.2",
"vue-grid-layout": "^2.3.7", "vue-grid-layout": "^2.3.7",
"vue-i18n": "^8.15.3", "vue-i18n": "^8.15.3",
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
"less-loader": "^5.0.0", "less-loader": "^5.0.0",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"typescript": "^3.9.3", "source-map-explorer": "^2.4.2",
"vue-template-compiler": "^2.6.10" "typescript": "^3.9.5",
"vue-template-compiler": "^2.6.11"
} }
} }
...@@ -28,7 +28,6 @@ import AppCheckboxList from './components/app-checkbox-list/app-checkbox-list.vu ...@@ -28,7 +28,6 @@ import AppCheckboxList from './components/app-checkbox-list/app-checkbox-list.vu
import AppRadioGroup from './components/app-radio-group/app-radio-group.vue' import AppRadioGroup from './components/app-radio-group/app-radio-group.vue'
import AppEmbedPicker from './components/app-embed-picker/app-embed-picker.vue' import AppEmbedPicker from './components/app-embed-picker/app-embed-picker.vue'
import AppTreePicker from './components/app-tree-picker/app-tree-picker.vue' import AppTreePicker from './components/app-tree-picker/app-tree-picker.vue'
import AppRichTextEditor from './components/app-rich-text-editor/app-rich-text-editor.vue'
import AppFileUpload from './components/app-file-upload/app-file-upload.vue' import AppFileUpload from './components/app-file-upload/app-file-upload.vue'
import AppImageUpload from './components/app-image-upload/app-image-upload.vue' import AppImageUpload from './components/app-image-upload/app-image-upload.vue'
import PropertyLayout from './components/property-layout/property-layout.vue' import PropertyLayout from './components/property-layout/property-layout.vue'
...@@ -53,7 +52,6 @@ import AppRate from './components/app-rate/app-rate.vue' ...@@ -53,7 +52,6 @@ import AppRate from './components/app-rate/app-rate.vue'
import AppSwitch from './components/app-switch/app-switch.vue' import AppSwitch from './components/app-switch/app-switch.vue'
import AppSlider from './components/app-slider/app-slider.vue' import AppSlider from './components/app-slider/app-slider.vue'
import AppStepper from './components/app-stepper/app-stepper.vue' import AppStepper from './components/app-stepper/app-stepper.vue'
import AppPortalDesign from './components/app-portal-design/app-portal-design.vue'
import DatePickerRange from './components/date-picker-range/date-picker-range.vue' import DatePickerRange from './components/date-picker-range/date-picker-range.vue'
import AppRangeDate from './components/app-range-date/app-range-date.vue' import AppRangeDate from './components/app-range-date/app-range-date.vue'
import AppActionBar from './components/app-actionbar/app-actionbar.vue' import AppActionBar from './components/app-actionbar/app-actionbar.vue'
...@@ -63,7 +61,6 @@ import AppStudioAction from './components/app-studioaction/app-studioaction.vue' ...@@ -63,7 +61,6 @@ import AppStudioAction from './components/app-studioaction/app-studioaction.vue'
import AppDebugActions from './components/app-debug-actions/app-debug-actions.vue' import AppDebugActions from './components/app-debug-actions/app-debug-actions.vue'
import AppHeaderMenus from './components/app-header-menus/app-header-menus.vue' import AppHeaderMenus from './components/app-header-menus/app-header-menus.vue'
import AppColumnLink from './components/app-column-link/app-column-link.vue' import AppColumnLink from './components/app-column-link/app-column-link.vue'
import AppDataUploadView from './components/app-data-upload/app-data-upload.vue'
import DropDownListDynamic from './components/dropdown-list-dynamic/dropdown-list-dynamic.vue' import DropDownListDynamic from './components/dropdown-list-dynamic/dropdown-list-dynamic.vue'
import AppImagePreview from './components/app-image-preview/app-image-preview.vue' import AppImagePreview from './components/app-image-preview/app-image-preview.vue'
import AppFormatData from './components/app-format-data/app-format-data.vue' import AppFormatData from './components/app-format-data/app-format-data.vue'
...@@ -115,7 +112,7 @@ export const AppComponents = { ...@@ -115,7 +112,7 @@ export const AppComponents = {
v.component('app-radio-group',AppRadioGroup); v.component('app-radio-group',AppRadioGroup);
v.component('app-embed-picker', AppEmbedPicker); v.component('app-embed-picker', AppEmbedPicker);
v.component('app-tree-picker', AppTreePicker); v.component('app-tree-picker', AppTreePicker);
v.component('app-rich-text-editor',AppRichTextEditor); v.component('app-rich-text-editor', () => import('./components/app-rich-text-editor/app-rich-text-editor.vue'));
v.component('app-file-upload',AppFileUpload); v.component('app-file-upload',AppFileUpload);
v.component('app-image-upload',AppImageUpload); v.component('app-image-upload',AppImageUpload);
v.component('property-layout',PropertyLayout); v.component('property-layout',PropertyLayout);
...@@ -140,7 +137,7 @@ export const AppComponents = { ...@@ -140,7 +137,7 @@ export const AppComponents = {
v.component('app-switch', AppSwitch); v.component('app-switch', AppSwitch);
v.component('app-slider', AppSlider); v.component('app-slider', AppSlider);
v.component('app-stepper', AppStepper); v.component('app-stepper', AppStepper);
v.component('app-portal-design',AppPortalDesign); v.component('app-portal-design', () => import('./components/app-portal-design/app-portal-design.vue'));
v.component('date-picker-range',DatePickerRange); v.component('date-picker-range',DatePickerRange);
v.component('app-range-date', AppRangeDate); v.component('app-range-date', AppRangeDate);
v.component('app-actionbar', AppActionBar); v.component('app-actionbar', AppActionBar);
...@@ -150,7 +147,7 @@ export const AppComponents = { ...@@ -150,7 +147,7 @@ export const AppComponents = {
v.component('app-debug-actions', AppDebugActions); v.component('app-debug-actions', AppDebugActions);
v.component('app-header-menus', AppHeaderMenus); v.component('app-header-menus', AppHeaderMenus);
v.component('app-column-link', AppColumnLink); v.component('app-column-link', AppColumnLink);
v.component('app-data-upload', AppDataUploadView); v.component('app-data-upload', () => import('./components/app-data-upload/app-data-upload.vue'));
v.component('dropdown-list-dynamic', DropDownListDynamic); v.component('dropdown-list-dynamic', DropDownListDynamic);
v.component('app-image-preview', AppImagePreview); v.component('app-image-preview', AppImagePreview);
v.component('app-format-data', AppFormatData); v.component('app-format-data', AppFormatData);
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
height: 100%; height: 100%;
.app-form-item-label { .app-form-item-label {
min-height: 32px;
text-decoration: none; text-decoration: none;
display: block; display: block;
overflow: hidden; overflow: hidden;
...@@ -13,7 +14,12 @@ ...@@ -13,7 +14,12 @@
} }
} }
>.ivu-form-item-content { .ivu-form-item {
height: 100%;
margin-bottom: 0px;
}
.ivu-form-item-content {
height: 100%; height: 100%;
min-height: 36px; min-height: 36px;
......
<template> <template>
<div class="app-form-item-wrapper"> <div :class="classes">
<template v-if="this.uiStyle === 'STYLE2'"> <template v-if="this.uiStyle === 'STYLE2'">
<app-form-item2 <app-form-item2
:caption="caption" :caption="caption"
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</app-form-item2> </app-form-item2>
</template> </template>
<template v-if="this.uiStyle !== 'STYLE2'"> <template v-if="this.uiStyle !== 'STYLE2'">
<form-item :ref="name" :prop="name" :error="error" :rules="rules" :class="classes"> <form-item :ref="name" :prop="name" :error="error" :rules="rules">
<div <div
v-if="Object.is(this.labelPos,'BOTTOM') || Object.is(this.labelPos,'NONE') || !this.labelPos" v-if="Object.is(this.labelPos,'BOTTOM') || Object.is(this.labelPos,'NONE') || !this.labelPos"
class="editor-wrapper" class="editor-wrapper"
...@@ -26,8 +26,13 @@ ...@@ -26,8 +26,13 @@
<slot></slot> <slot></slot>
</div> </div>
<div v-if="itemRef && itemRef.validateState === 'error'" class="editor-error-tip"> <div v-if="itemRef && itemRef.validateState === 'error'" class="editor-error-tip">
<Tooltip :content="itemRef.validateMessage" placement="left" :transfer="true"> <Tooltip placement="left">
<Icon type="ios-alert-outline" /> <Icon type="ios-alert-outline" />
<template slot="content">
<span class="editor-error-tip-content">
{{itemRef.validateMessage}}
</span>
</template>
</Tooltip> </Tooltip>
</div> </div>
</div> </div>
......
<template> <template>
<div class='login'> <div class='login'>
<img src="/assets/img/background.png"/> <img>
<div class='login-con'> <div class='login-con'>
<card :bordered="false"> <card :bordered="false">
...@@ -166,7 +166,7 @@ export default class Login extends Vue { ...@@ -166,7 +166,7 @@ export default class Login extends Vue {
* @memberof Login * @memberof Login
*/ */
public handleSubmit(): void { public handleSubmit(): void {
let leftTime = new Date(); const leftTime = new Date();
leftTime.setTime(leftTime.getSeconds() - 1000); leftTime.setTime(leftTime.getSeconds() - 1000);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
const form: any = this.$refs.loginForm; const form: any = this.$refs.loginForm;
......
...@@ -55,6 +55,14 @@ export class UserInfo extends Vue { ...@@ -55,6 +55,14 @@ export class UserInfo extends Vue {
this.changeTheme(name); this.changeTheme(name);
return; return;
} }
if (name === 'custom-logout') {
const leftTime = new Date();
leftTime.setTime(leftTime.getSeconds() - 1000);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
localStorage.removeItem('token');
location.href = location.origin + location.pathname + '#/login?redirect=' + encodeURIComponent(location.href);
return;
}
const item: any = this.findMenuByName(name); const item: any = this.findMenuByName(name);
if (item) { if (item) {
this.menuClick(item); this.menuClick(item);
...@@ -191,10 +199,15 @@ export class UserInfo extends Vue { ...@@ -191,10 +199,15 @@ export class UserInfo extends Vue {
<dropdownItem name="app-theme-blue-dark" title="黑色主题">蓝黑</dropdownItem> <dropdownItem name="app-theme-blue-dark" title="黑色主题">蓝黑</dropdownItem>
</dropdownMenu> </dropdownMenu>
</dropdown> </dropdown>
<dropdown class="user-menu-child" placement="left-start">
<dropdownItem name="custom-logout" title="退出登录">
<icon type="md-log-out" />
退出登录
</dropdownItem>
</dropdown>
</dropdownMenu> </dropdownMenu>
</template> </template>
</dropdown> </dropdown>
return;
} }
} }
\ No newline at end of file
import Vue from 'vue'; import Vue from 'vue';
import { StudioCore } from './studio-core'; import { StudioCore } from './studio-core';
import IBizStudioComponentsVue from 'ibiz-studio-components-vue'; import IBizStudioComponentsVue from 'ibiz-studio-components-vue';
import AppVuePivotTable from './components/app-vue-pivottable/app-vue-pivottable.vue';
// 注册Vue插件 // 注册Vue插件
export const UserDefaultComponent = { export const UserDefaultComponent = {
install(v: any, opt: any) { install(v: any, opt: any) {
Vue.use(StudioCore); Vue.use(StudioCore);
Vue.use(IBizStudioComponentsVue); Vue.use(IBizStudioComponentsVue);
v.component('app-vue-pivottable', AppVuePivotTable); v.component('app-vue-pivottable', () => import('./components/app-vue-pivottable/app-vue-pivottable.vue'));
} }
}; };
\ No newline at end of file
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册