Commit 125e447f by ym

home

0 parents
Showing 97 changed files with 6962 additions and 0 deletions
NODE_ENV='development'
# must start with VUE_APP_
VUE_APP_ENV = 'development'
VUE_APP_PORT = 6652
NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'production'
\ No newline at end of file \ No newline at end of file
{
"root": true,
"env": {
"node": true
},
"extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": {
"no-console": "off",
"no-unused-vars":"off",
"prettier.endOfLine": "crlf",
"endOfLine":"auto"
},
"parserOptions": {
"parser": "babel-eslint"
}
}
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
{
"printWidth": 800,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"semi": false,
"wrap_line_length": 820,
"wrap_attributes": "auto",
"proseWrap": "always",
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true,
"files.insertFinalNewline": true,
"useTabs": false,
"eslintIntegration": true,
"overrides": [
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
}
],
"endOfLine": "auto"
}
# subapp-blog
微前端博客子应用
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
plugins: [
[
"component",
{
libraryName: "element-ui",
styleLibraryName: "theme-chalk"
}
]
]
};
/* Element Chalk Variables */
// Special comment for theme configurator
// type|skipAutoTranslation|Category|Order
// skipAutoTranslation 1
/* Transition
-------------------------- */
$--all-transition: all .3s cubic-bezier(.645,.045,.355,1) !default;
$--fade-transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
$--fade-linear-transition: opacity 200ms linear !default;
$--md-fade-transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
$--border-transition-base: border-color .2s cubic-bezier(.645,.045,.355,1) !default;
$--color-transition-base: color .2s cubic-bezier(.645,.045,.355,1) !default;
/* Color
-------------------------- */
/// color|1|Brand Color|0
$--color-primary: #5850FF !default;
/// color|1|Background Color|4
$--color-white: #FFFFFF !default;
/// color|1|Background Color|4
$--color-black: #000000 !default;
$--color-primary-light-1: mix($--color-white, $--color-primary, 10%) !default; /* 53a8ff */
$--color-primary-light-2: mix($--color-white, $--color-primary, 20%) !default; /* 66b1ff */
$--color-primary-light-3: mix($--color-white, $--color-primary, 30%) !default; /* 79bbff */
$--color-primary-light-4: mix($--color-white, $--color-primary, 40%) !default; /* 8cc5ff */
$--color-primary-light-5: mix($--color-white, $--color-primary, 50%) !default; /* a0cfff */
$--color-primary-light-6: mix($--color-white, $--color-primary, 60%) !default; /* b3d8ff */
$--color-primary-light-7: mix($--color-white, $--color-primary, 70%) !default; /* c6e2ff */
$--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default; /* d9ecff */
$--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default; /* ecf5ff */
/// color|1|Functional Color|1
$--color-success: #67C23A !default;
/// color|1|Functional Color|1
$--color-warning: #E6A23C !default;
/// color|1|Functional Color|1
$--color-danger: #F56C6C !default;
/// color|1|Functional Color|1
$--color-info: #909399 !default;
$--color-success-light: mix($--color-white, $--color-success, 80%) !default;
$--color-warning-light: mix($--color-white, $--color-warning, 80%) !default;
$--color-danger-light: mix($--color-white, $--color-danger, 80%) !default;
$--color-info-light: mix($--color-white, $--color-info, 80%) !default;
$--color-success-lighter: mix($--color-white, $--color-success, 90%) !default;
$--color-warning-lighter: mix($--color-white, $--color-warning, 90%) !default;
$--color-danger-lighter: mix($--color-white, $--color-danger, 90%) !default;
$--color-info-lighter: mix($--color-white, $--color-info, 90%) !default;
/// color|1|Font Color|2
$--color-text-primary: #303133 !default;
/// color|1|Font Color|2
$--color-text-regular: #606266 !default;
/// color|1|Font Color|2
$--color-text-secondary: #909399 !default;
/// color|1|Font Color|2
$--color-text-placeholder: #C0C4CC !default;
/// color|1|Border Color|3
$--border-color-base: #DCDFE6 !default;
/// color|1|Border Color|3
$--border-color-light: #E4E7ED !default;
/// color|1|Border Color|3
$--border-color-lighter: #EBEEF5 !default;
/// color|1|Border Color|3
$--border-color-extra-light: #F2F6FC !default;
// Background
/// color|1|Background Color|4
$--background-color-base: #F5F7FA !default;
/* Link
-------------------------- */
$--link-color: $--color-primary-light-2 !default;
$--link-hover-color: $--color-primary !default;
/* Border
-------------------------- */
$--border-width-base: 1px !default;
$--border-style-base: solid !default;
$--border-color-hover: $--color-text-placeholder !default;
$--border-base: $--border-width-base $--border-style-base $--border-color-base !default;
/// borderRadius|1|Radius|0
$--border-radius-base: 4px !default;
/// borderRadius|1|Radius|0
$--border-radius-small: 2px !default;
/// borderRadius|1|Radius|0
$--border-radius-circle: 100% !default;
/// borderRadius|1|Radius|0
$--border-radius-zero: 0 !default;
// Box-shadow
/// boxShadow|1|Shadow|1
$--box-shadow-base: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04) !default;
// boxShadow|1|Shadow|1
$--box-shadow-dark: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .12) !default;
/// boxShadow|1|Shadow|1
$--box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !default;
/* Fill
-------------------------- */
$--fill-base: $--color-white !default;
/* Typography
-------------------------- */
$--font-path: 'fonts' !default;
$--font-display: 'auto' !default;
/// fontSize|1|Font Size|0
$--font-size-extra-large: 20px !default;
/// fontSize|1|Font Size|0
$--font-size-large: 18px !default;
/// fontSize|1|Font Size|0
$--font-size-medium: 16px !default;
/// fontSize|1|Font Size|0
$--font-size-base: 14px !default;
/// fontSize|1|Font Size|0
$--font-size-small: 13px !default;
/// fontSize|1|Font Size|0
$--font-size-extra-small: 12px !default;
/// fontWeight|1|Font Weight|1
$--font-weight-primary: 500 !default;
/// fontWeight|1|Font Weight|1
$--font-weight-secondary: 100 !default;
/// fontLineHeight|1|Line Height|2
$--font-line-height-primary: 24px !default;
/// fontLineHeight|1|Line Height|2
$--font-line-height-secondary: 16px !default;
$--font-color-disabled-base: #bbb !default;
/* Size
-------------------------- */
$--size-base: 14px !default;
/* z-index
-------------------------- */
$--index-normal: 1 !default;
$--index-top: 1000 !default;
$--index-popper: 2000 !default;
/* Disable base
-------------------------- */
$--disabled-fill-base: $--background-color-base !default;
$--disabled-color-base: $--color-text-placeholder !default;
$--disabled-border-base: $--border-color-light !default;
/* Icon
-------------------------- */
$--icon-color: #666 !default;
$--icon-color-base: $--color-info !default;
/* Checkbox
-------------------------- */
/// fontSize||Font|1
$--checkbox-font-size: 14px !default;
/// fontWeight||Font|1
$--checkbox-font-weight: $--font-weight-primary !default;
/// color||Color|0
$--checkbox-font-color: $--color-text-regular !default;
$--checkbox-input-height: 14px !default;
$--checkbox-input-width: 14px !default;
/// borderRadius||Border|2
$--checkbox-border-radius: $--border-radius-small !default;
/// color||Color|0
$--checkbox-background-color: $--color-white !default;
$--checkbox-input-border: $--border-base !default;
/// color||Color|0
$--checkbox-disabled-border-color: $--border-color-base !default;
$--checkbox-disabled-input-fill: #edf2fc !default;
$--checkbox-disabled-icon-color: $--color-text-placeholder !default;
$--checkbox-disabled-checked-input-fill: $--border-color-extra-light !default;
$--checkbox-disabled-checked-input-border-color: $--border-color-base !default;
$--checkbox-disabled-checked-icon-color: $--color-text-placeholder !default;
/// color||Color|0
$--checkbox-checked-font-color: $--color-primary !default;
$--checkbox-checked-input-border-color: $--color-primary !default;
/// color||Color|0
$--checkbox-checked-background-color: $--color-primary !default;
$--checkbox-checked-icon-color: $--fill-base !default;
$--checkbox-input-border-color-hover: $--color-primary !default;
/// height||Other|4
$--checkbox-bordered-height: 40px !default;
/// padding||Spacing|3
$--checkbox-bordered-padding: 9px 20px 9px 10px !default;
/// padding||Spacing|3
$--checkbox-bordered-medium-padding: 7px 20px 7px 10px !default;
/// padding||Spacing|3
$--checkbox-bordered-small-padding: 5px 15px 5px 10px !default;
/// padding||Spacing|3
$--checkbox-bordered-mini-padding: 3px 15px 3px 10px !default;
$--checkbox-bordered-medium-input-height: 14px !default;
$--checkbox-bordered-medium-input-width: 14px !default;
/// height||Other|4
$--checkbox-bordered-medium-height: 36px !default;
$--checkbox-bordered-small-input-height: 12px !default;
$--checkbox-bordered-small-input-width: 12px !default;
/// height||Other|4
$--checkbox-bordered-small-height: 32px !default;
$--checkbox-bordered-mini-input-height: 12px !default;
$--checkbox-bordered-mini-input-width: 12px !default;
/// height||Other|4
$--checkbox-bordered-mini-height: 28px !default;
/// color||Color|0
$--checkbox-button-checked-background-color: $--color-primary !default;
/// color||Color|0
$--checkbox-button-checked-font-color: $--color-white !default;
/// color||Color|0
$--checkbox-button-checked-border-color: $--color-primary !default;
/* Radio
-------------------------- */
/// fontSize||Font|1
$--radio-font-size: $--font-size-base !default;
/// fontWeight||Font|1
$--radio-font-weight: $--font-weight-primary !default;
/// color||Color|0
$--radio-font-color: $--color-text-regular !default;
$--radio-input-height: 14px !default;
$--radio-input-width: 14px !default;
/// borderRadius||Border|2
$--radio-input-border-radius: $--border-radius-circle !default;
/// color||Color|0
$--radio-input-background-color: $--color-white !default;
$--radio-input-border: $--border-base !default;
/// color||Color|0
$--radio-input-border-color: $--border-color-base !default;
/// color||Color|0
$--radio-icon-color: $--color-white !default;
$--radio-disabled-input-border-color: $--disabled-border-base !default;
$--radio-disabled-input-fill: $--disabled-fill-base !default;
$--radio-disabled-icon-color: $--disabled-fill-base !default;
$--radio-disabled-checked-input-border-color: $--disabled-border-base !default;
$--radio-disabled-checked-input-fill: $--disabled-fill-base !default;
$--radio-disabled-checked-icon-color: $--color-text-placeholder !default;
/// color||Color|0
$--radio-checked-font-color: $--color-primary !default;
/// color||Color|0
$--radio-checked-input-border-color: $--color-primary !default;
/// color||Color|0
$--radio-checked-input-background-color: $--color-white !default;
/// color||Color|0
$--radio-checked-icon-color: $--color-primary !default;
$--radio-input-border-color-hover: $--color-primary !default;
$--radio-bordered-height: 40px !default;
$--radio-bordered-padding: 12px 20px 0 10px !default;
$--radio-bordered-medium-padding: 10px 20px 0 10px !default;
$--radio-bordered-small-padding: 8px 15px 0 10px !default;
$--radio-bordered-mini-padding: 6px 15px 0 10px !default;
$--radio-bordered-medium-input-height: 14px !default;
$--radio-bordered-medium-input-width: 14px !default;
$--radio-bordered-medium-height: 36px !default;
$--radio-bordered-small-input-height: 12px !default;
$--radio-bordered-small-input-width: 12px !default;
$--radio-bordered-small-height: 32px !default;
$--radio-bordered-mini-input-height: 12px !default;
$--radio-bordered-mini-input-width: 12px !default;
$--radio-bordered-mini-height: 28px !default;
/// fontSize||Font|1
$--radio-button-font-size: $--font-size-base !default;
/// color||Color|0
$--radio-button-checked-background-color: $--color-primary !default;
/// color||Color|0
$--radio-button-checked-font-color: $--color-white !default;
/// color||Color|0
$--radio-button-checked-border-color: $--color-primary !default;
$--radio-button-disabled-checked-fill: $--border-color-extra-light !default;
/* Select
-------------------------- */
$--select-border-color-hover: $--border-color-hover !default;
$--select-disabled-border: $--disabled-border-base !default;
/// fontSize||Font|1
$--select-font-size: $--font-size-base !default;
$--select-close-hover-color: $--color-text-secondary !default;
$--select-input-color: $--color-text-placeholder !default;
$--select-multiple-input-color: #666 !default;
/// color||Color|0
$--select-input-focus-border-color: $--color-primary !default;
/// fontSize||Font|1
$--select-input-font-size: 14px !default;
$--select-option-color: $--color-text-regular !default;
$--select-option-disabled-color: $--color-text-placeholder !default;
$--select-option-disabled-background: $--color-white !default;
/// height||Other|4
$--select-option-height: 34px !default;
$--select-option-hover-background: $--background-color-base !default;
/// color||Color|0
$--select-option-selected-font-color: $--color-primary !default;
$--select-option-selected-hover: $--background-color-base !default;
$--select-group-color: $--color-info !default;
$--select-group-height: 30px !default;
$--select-group-font-size: 12px !default;
$--select-dropdown-background: $--color-white !default;
$--select-dropdown-shadow: $--box-shadow-light !default;
$--select-dropdown-empty-color: #999 !default;
/// height||Other|4
$--select-dropdown-max-height: 274px !default;
$--select-dropdown-padding: 6px 0 !default;
$--select-dropdown-empty-padding: 10px 0 !default;
$--select-dropdown-border: solid 1px $--border-color-light !default;
/* Alert
-------------------------- */
$--alert-padding: 8px 16px !default;
/// borderRadius||Border|2
$--alert-border-radius: $--border-radius-base !default;
/// fontSize||Font|1
$--alert-title-font-size: 13px !default;
/// fontSize||Font|1
$--alert-description-font-size: 12px !default;
/// fontSize||Font|1
$--alert-close-font-size: 12px !default;
/// fontSize||Font|1
$--alert-close-customed-font-size: 13px !default;
$--alert-success-color: $--color-success-lighter !default;
$--alert-info-color: $--color-info-lighter !default;
$--alert-warning-color: $--color-warning-lighter !default;
$--alert-danger-color: $--color-danger-lighter !default;
/// height||Other|4
$--alert-icon-size: 16px !default;
/// height||Other|4
$--alert-icon-large-size: 28px !default;
/* MessageBox
-------------------------- */
/// color||Color|0
$--messagebox-title-color: $--color-text-primary !default;
$--msgbox-width: 420px !default;
$--msgbox-border-radius: 4px !default;
/// fontSize||Font|1
$--messagebox-font-size: $--font-size-large !default;
/// fontSize||Font|1
$--messagebox-content-font-size: $--font-size-base !default;
/// color||Color|0
$--messagebox-content-color: $--color-text-regular !default;
/// fontSize||Font|1
$--messagebox-error-font-size: 12px !default;
$--msgbox-padding-primary: 15px !default;
/// color||Color|0
$--messagebox-success-color: $--color-success !default;
/// color||Color|0
$--messagebox-info-color: $--color-info !default;
/// color||Color|0
$--messagebox-warning-color: $--color-warning !default;
/// color||Color|0
$--messagebox-danger-color: $--color-danger !default;
/* Message
-------------------------- */
$--message-shadow: $--box-shadow-base !default;
$--message-min-width: 380px !default;
$--message-background-color: #edf2fc !default;
$--message-padding: 15px 15px 15px 20px !default;
/// color||Color|0
$--message-close-icon-color: $--color-text-placeholder !default;
/// height||Other|4
$--message-close-size: 16px !default;
/// color||Color|0
$--message-close-hover-color: $--color-text-secondary !default;
/// color||Color|0
$--message-success-font-color: $--color-success !default;
/// color||Color|0
$--message-info-font-color: $--color-info !default;
/// color||Color|0
$--message-warning-font-color: $--color-warning !default;
/// color||Color|0
$--message-danger-font-color: $--color-danger !default;
/* Notification
-------------------------- */
$--notification-width: 330px !default;
/// padding||Spacing|3
$--notification-padding: 14px 26px 14px 13px !default;
$--notification-radius: 8px !default;
$--notification-shadow: $--box-shadow-light !default;
/// color||Color|0
$--notification-border-color: $--border-color-lighter !default;
$--notification-icon-size: 24px !default;
$--notification-close-font-size: $--message-close-size !default;
$--notification-group-margin-left: 13px !default;
$--notification-group-margin-right: 8px !default;
/// fontSize||Font|1
$--notification-content-font-size: $--font-size-base !default;
/// color||Color|0
$--notification-content-color: $--color-text-regular !default;
/// fontSize||Font|1
$--notification-title-font-size: 16px !default;
/// color||Color|0
$--notification-title-color: $--color-text-primary !default;
/// color||Color|0
$--notification-close-color: $--color-text-secondary !default;
/// color||Color|0
$--notification-close-hover-color: $--color-text-regular !default;
/// color||Color|0
$--notification-success-icon-color: $--color-success !default;
/// color||Color|0
$--notification-info-icon-color: $--color-info !default;
/// color||Color|0
$--notification-warning-icon-color: $--color-warning !default;
/// color||Color|0
$--notification-danger-icon-color: $--color-danger !default;
/* Input
-------------------------- */
$--input-font-size: $--font-size-base !default;
/// color||Color|0
$--input-font-color: $--color-text-regular !default;
/// height||Other|4
$--input-width: 140px !default;
/// height||Other|4
$--input-height: 40px !default;
$--input-border: $--border-base !default;
$--input-border-color: $--border-color-base !default;
/// borderRadius||Border|2
$--input-border-radius: $--border-radius-base !default;
$--input-border-color-hover: $--border-color-hover !default;
/// color||Color|0
$--input-background-color: $--color-white !default;
$--input-fill-disabled: $--disabled-fill-base !default;
$--input-color-disabled: $--font-color-disabled-base !default;
/// color||Color|0
$--input-icon-color: $--color-text-placeholder !default;
/// color||Color|0
$--input-placeholder-color: $--color-text-placeholder !default;
$--input-max-width: 314px !default;
$--input-hover-border: $--border-color-hover !default;
$--input-clear-hover-color: $--color-text-secondary !default;
$--input-focus-border: $--color-primary !default;
$--input-focus-fill: $--color-white !default;
$--input-disabled-fill: $--disabled-fill-base !default;
$--input-disabled-border: $--disabled-border-base !default;
$--input-disabled-color: $--disabled-color-base !default;
$--input-disabled-placeholder-color: $--color-text-placeholder !default;
/// fontSize||Font|1
$--input-medium-font-size: 14px !default;
/// height||Other|4
$--input-medium-height: 36px !default;
/// fontSize||Font|1
$--input-small-font-size: 13px !default;
/// height||Other|4
$--input-small-height: 32px !default;
/// fontSize||Font|1
$--input-mini-font-size: 12px !default;
/// height||Other|4
$--input-mini-height: 28px !default;
/* Cascader
-------------------------- */
/// color||Color|0
$--cascader-menu-font-color: $--color-text-regular !default;
/// color||Color|0
$--cascader-menu-selected-font-color: $--color-primary !default;
$--cascader-menu-fill: $--fill-base !default;
$--cascader-menu-font-size: $--font-size-base !default;
$--cascader-menu-radius: $--border-radius-base !default;
$--cascader-menu-border: solid 1px $--border-color-light !default;
$--cascader-menu-shadow: $--box-shadow-light !default;
$--cascader-node-background-hover: $--background-color-base !default;
$--cascader-node-color-disabled:$--color-text-placeholder !default;
$--cascader-color-empty:$--color-text-placeholder !default;
$--cascader-tag-background: #f0f2f5;
/* Group
-------------------------- */
$--group-option-flex: 0 0 (1/5) * 100% !default;
$--group-option-offset-bottom: 12px !default;
$--group-option-fill-hover: rgba($--color-black, 0.06) !default;
$--group-title-color: $--color-black !default;
$--group-title-font-size: $--font-size-base !default;
$--group-title-width: 66px !default;
/* Tab
-------------------------- */
$--tab-font-size: $--font-size-base !default;
$--tab-border-line: 1px solid #e4e4e4 !default;
$--tab-header-color-active: $--color-text-secondary !default;
$--tab-header-color-hover: $--color-text-regular !default;
$--tab-header-color: $--color-text-regular !default;
$--tab-header-fill-active: rgba($--color-black, 0.06) !default;
$--tab-header-fill-hover: rgba($--color-black, 0.06) !default;
$--tab-vertical-header-width: 90px !default;
$--tab-vertical-header-count-color: $--color-white !default;
$--tab-vertical-header-count-fill: $--color-text-secondary !default;
/* Button
-------------------------- */
/// fontSize||Font|1
$--button-font-size: $--font-size-base !default;
/// fontWeight||Font|1
$--button-font-weight: $--font-weight-primary !default;
/// borderRadius||Border|2
$--button-border-radius: $--border-radius-base !default;
/// padding||Spacing|3
$--button-padding-vertical: 12px !default;
/// padding||Spacing|3
$--button-padding-horizontal: 20px !default;
/// fontSize||Font|1
$--button-medium-font-size: $--font-size-base !default;
/// borderRadius||Border|2
$--button-medium-border-radius: $--border-radius-base !default;
/// padding||Spacing|3
$--button-medium-padding-vertical: 10px !default;
/// padding||Spacing|3
$--button-medium-padding-horizontal: 20px !default;
/// fontSize||Font|1
$--button-small-font-size: 12px !default;
$--button-small-border-radius: #{$--border-radius-base - 1} !default;
/// padding||Spacing|3
$--button-small-padding-vertical: 9px !default;
/// padding||Spacing|3
$--button-small-padding-horizontal: 15px !default;
/// fontSize||Font|1
$--button-mini-font-size: 12px !default;
$--button-mini-border-radius: #{$--border-radius-base - 1} !default;
/// padding||Spacing|3
$--button-mini-padding-vertical: 7px !default;
/// padding||Spacing|3
$--button-mini-padding-horizontal: 15px !default;
/// color||Color|0
$--button-default-font-color: $--color-text-regular !default;
/// color||Color|0
$--button-default-background-color: $--color-white !default;
/// color||Color|0
$--button-default-border-color: $--border-color-base !default;
/// color||Color|0
$--button-disabled-font-color: $--color-text-placeholder !default;
/// color||Color|0
$--button-disabled-background-color: $--color-white !default;
/// color||Color|0
$--button-disabled-border-color: $--border-color-lighter !default;
/// color||Color|0
$--button-primary-border-color: $--color-primary !default;
/// color||Color|0
$--button-primary-font-color: $--color-white !default;
/// color||Color|0
$--button-primary-background-color: $--color-primary !default;
/// color||Color|0
$--button-success-border-color: $--color-success !default;
/// color||Color|0
$--button-success-font-color: $--color-white !default;
/// color||Color|0
$--button-success-background-color: $--color-success !default;
/// color||Color|0
$--button-warning-border-color: $--color-warning !default;
/// color||Color|0
$--button-warning-font-color: $--color-white !default;
/// color||Color|0
$--button-warning-background-color: $--color-warning !default;
/// color||Color|0
$--button-danger-border-color: $--color-danger !default;
/// color||Color|0
$--button-danger-font-color: $--color-white !default;
/// color||Color|0
$--button-danger-background-color: $--color-danger !default;
/// color||Color|0
$--button-info-border-color: $--color-info !default;
/// color||Color|0
$--button-info-font-color: $--color-white !default;
/// color||Color|0
$--button-info-background-color: $--color-info !default;
$--button-hover-tint-percent: 20% !default;
$--button-active-shade-percent: 10% !default;
/* cascader
-------------------------- */
$--cascader-height: 200px !default;
/* Switch
-------------------------- */
/// color||Color|0
$--switch-on-color: $--color-primary !default;
/// color||Color|0
$--switch-off-color: $--border-color-base !default;
/// fontSize||Font|1
$--switch-font-size: $--font-size-base !default;
$--switch-core-border-radius: 10px !default;
// height||Other|4 TODO: width 代码写死的40px 所以下面这三个属性都没意义
$--switch-width: 40px !default;
// height||Other|4
$--switch-height: 20px !default;
// height||Other|4
$--switch-button-size: 16px !default;
/* Dialog
-------------------------- */
$--dialog-background-color: $--color-white !default;
$--dialog-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !default;
/// fontSize||Font|1
$--dialog-title-font-size: $--font-size-large !default;
/// fontSize||Font|1
$--dialog-content-font-size: 14px !default;
/// fontLineHeight||LineHeight|2
$--dialog-font-line-height: $--font-line-height-primary !default;
/// padding||Spacing|3
$--dialog-padding-primary: 20px !default;
/* Table
-------------------------- */
/// color||Color|0
$--table-border-color: $--border-color-lighter !default;
$--table-border: 1px solid $--table-border-color !default;
/// color||Color|0
$--table-font-color: $--color-text-regular !default;
/// color||Color|0
$--table-header-font-color: $--color-text-secondary !default;
/// color||Color|0
$--table-row-hover-background-color: $--background-color-base !default;
$--table-current-row-background-color: $--color-primary-light-9 !default;
/// color||Color|0
$--table-header-background-color: $--color-white !default;
$--table-fixed-box-shadow: 0 0 10px rgba(0, 0, 0, .12) !default;
/* Pagination
-------------------------- */
/// fontSize||Font|1
$--pagination-font-size: 13px !default;
/// color||Color|0
$--pagination-background-color: $--color-white !default;
/// color||Color|0
$--pagination-font-color: $--color-text-primary !default;
$--pagination-border-radius: 3px !default;
/// color||Color|0
$--pagination-button-color: $--color-text-primary !default;
/// height||Other|4
$--pagination-button-width: 35.5px !default;
/// height||Other|4
$--pagination-button-height: 28px !default;
/// color||Color|0
$--pagination-button-disabled-color: $--color-text-placeholder !default;
/// color||Color|0
$--pagination-button-disabled-background-color: $--color-white !default;
/// color||Color|0
$--pagination-hover-color: $--color-primary !default;
/* Popup
-------------------------- */
/// color||Color|0
$--popup-modal-background-color: $--color-black !default;
/// opacity||Other|1
$--popup-modal-opacity: 0.5 !default;
/* Popover
-------------------------- */
/// color||Color|0
$--popover-background-color: $--color-white !default;
/// fontSize||Font|1
$--popover-font-size: $--font-size-base !default;
/// color||Color|0
$--popover-border-color: $--border-color-lighter !default;
$--popover-arrow-size: 6px !default;
/// padding||Spacing|3
$--popover-padding: 12px !default;
$--popover-padding-large: 18px 20px !default;
/// fontSize||Font|1
$--popover-title-font-size: 16px !default;
/// color||Color|0
$--popover-title-font-color: $--color-text-primary !default;
/* Tooltip
-------------------------- */
/// color|1|Color|0
$--tooltip-fill: $--color-text-primary !default;
/// color|1|Color|0
$--tooltip-color: $--color-white !default;
/// fontSize||Font|1
$--tooltip-font-size: 12px !default;
/// color||Color|0
$--tooltip-border-color: $--color-text-primary !default;
$--tooltip-arrow-size: 6px !default;
/// padding||Spacing|3
$--tooltip-padding: 10px !default;
/* Tag
-------------------------- */
/// color||Color|0
$--tag-info-color: $--color-info !default;
/// color||Color|0
$--tag-primary-color: $--color-primary !default;
/// color||Color|0
$--tag-success-color: $--color-success !default;
/// color||Color|0
$--tag-warning-color: $--color-warning !default;
/// color||Color|0
$--tag-danger-color: $--color-danger !default;
/// fontSize||Font|1
$--tag-font-size: 12px !default;
$--tag-border-radius: 4px !default;
$--tag-padding: 0 10px !default;
/* Tree
-------------------------- */
/// color||Color|0
$--tree-node-hover-background-color: $--background-color-base !default;
/// color||Color|0
$--tree-font-color: $--color-text-regular !default;
/// color||Color|0
$--tree-expand-icon-color: $--color-text-placeholder !default;
/* Dropdown
-------------------------- */
$--dropdown-menu-box-shadow: $--box-shadow-light !default;
$--dropdown-menuItem-hover-fill: $--color-primary-light-9 !default;
$--dropdown-menuItem-hover-color: $--link-color !default;
/* Badge
-------------------------- */
/// color||Color|0
$--badge-background-color: $--color-danger !default;
$--badge-radius: 10px !default;
/// fontSize||Font|1
$--badge-font-size: 12px !default;
/// padding||Spacing|3
$--badge-padding: 6px !default;
/// height||Other|4
$--badge-size: 18px !default;
/* Card
--------------------------*/
/// color||Color|0
$--card-border-color: $--border-color-lighter !default;
$--card-border-radius: 4px !default;
/// padding||Spacing|3
$--card-padding: 20px !default;
/* Slider
--------------------------*/
/// color||Color|0
$--slider-main-background-color: $--color-primary !default;
/// color||Color|0
$--slider-runway-background-color: $--border-color-light !default;
$--slider-button-hover-color: mix($--color-primary, black, 97%) !default;
$--slider-stop-background-color: $--color-white !default;
$--slider-disable-color: $--color-text-placeholder !default;
$--slider-margin: 16px 0 !default;
$--slider-border-radius: 3px !default;
/// height|1|Other|4
$--slider-height: 6px !default;
/// height||Other|4
$--slider-button-size: 16px !default;
$--slider-button-wrapper-size: 36px !default;
$--slider-button-wrapper-offset: -15px !default;
/* Steps
--------------------------*/
$--steps-border-color: $--disabled-border-base !default;
$--steps-border-radius: 4px !default;
$--steps-padding: 20px !default;
/* Menu
--------------------------*/
/// fontSize||Font|1
$--menu-item-font-size: $--font-size-base !default;
/// color||Color|0
$--menu-item-font-color: $--color-text-primary !default;
/// color||Color|0
$--menu-background-color: $--color-white !default;
$--menu-item-hover-fill: $--color-primary-light-9 !default;
/* Rate
--------------------------*/
$--rate-height: 20px !default;
/// fontSize||Font|1
$--rate-font-size: $--font-size-base !default;
/// height||Other|3
$--rate-icon-size: 18px !default;
/// margin||Spacing|2
$--rate-icon-margin: 6px !default;
$--rate-icon-color: $--color-text-placeholder !default;
/* DatePicker
--------------------------*/
$--datepicker-font-color: $--color-text-regular !default;
/// color|1|Color|0
$--datepicker-off-font-color: $--color-text-placeholder !default;
/// color||Color|0
$--datepicker-header-font-color: $--color-text-regular !default;
$--datepicker-icon-color: $--color-text-primary !default;
$--datepicker-border-color: $--disabled-border-base !default;
$--datepicker-inner-border-color: #e4e4e4 !default;
/// color||Color|0
$--datepicker-inrange-background-color: $--border-color-extra-light !default;
/// color||Color|0
$--datepicker-inrange-hover-background-color: $--border-color-extra-light !default;
/// color||Color|0
$--datepicker-active-color: $--color-primary !default;
/// color||Color|0
$--datepicker-hover-font-color: $--color-primary !default;
$--datepicker-cell-hover-color: #fff !default;
/* Loading
--------------------------*/
/// height||Other|4
$--loading-spinner-size: 42px !default;
/// height||Other|4
$--loading-fullscreen-spinner-size: 50px !default;
/* Scrollbar
--------------------------*/
$--scrollbar-background-color: rgba($--color-text-secondary, .3) !default;
$--scrollbar-hover-background-color: rgba($--color-text-secondary, .5) !default;
/* Carousel
--------------------------*/
/// fontSize||Font|1
$--carousel-arrow-font-size: 12px !default;
$--carousel-arrow-size: 36px !default;
$--carousel-arrow-background: rgba(31, 45, 61, 0.11) !default;
$--carousel-arrow-hover-background: rgba(31, 45, 61, 0.23) !default;
/// width||Other|4
$--carousel-indicator-width: 30px !default;
/// height||Other|4
$--carousel-indicator-height: 2px !default;
$--carousel-indicator-padding-horizontal: 4px !default;
$--carousel-indicator-padding-vertical: 12px !default;
$--carousel-indicator-out-color: $--border-color-hover !default;
/* Collapse
--------------------------*/
/// color||Color|0
$--collapse-border-color: $--border-color-lighter !default;
/// height||Other|4
$--collapse-header-height: 48px !default;
/// color||Color|0
$--collapse-header-background-color: $--color-white !default;
/// color||Color|0
$--collapse-header-font-color: $--color-text-primary !default;
/// fontSize||Font|1
$--collapse-header-font-size: 13px !default;
/// color||Color|0
$--collapse-content-background-color: $--color-white !default;
/// fontSize||Font|1
$--collapse-content-font-size: 13px !default;
/// color||Color|0
$--collapse-content-font-color: $--color-text-primary !default;
/* Transfer
--------------------------*/
$--transfer-border-color: $--border-color-lighter !default;
$--transfer-border-radius: $--border-radius-base !default;
/// height||Other|4
$--transfer-panel-width: 200px !default;
/// height||Other|4
$--transfer-panel-header-height: 40px !default;
/// color||Color|0
$--transfer-panel-header-background-color: $--background-color-base !default;
/// height||Other|4
$--transfer-panel-footer-height: 40px !default;
/// height||Other|4
$--transfer-panel-body-height: 246px !default;
/// height||Other|4
$--transfer-item-height: 30px !default;
/// height||Other|4
$--transfer-filter-height: 32px !default;
/* Header
--------------------------*/
$--header-padding: 0 20px !default;
/* Footer
--------------------------*/
$--footer-padding: 0 20px !default;
/* Main
--------------------------*/
$--main-padding: 20px !default;
/* Timeline
--------------------------*/
$--timeline-node-size-normal: 12px !default;
$--timeline-node-size-large: 14px !default;
$--timeline-node-color: $--border-color-light !default;
/* Backtop
--------------------------*/
/// color||Color|0
$--backtop-background-color: $--color-white !default;
/// color||Color|0
$--backtop-font-color: $--color-primary !default;
/// color||Color|0
$--backtop-hover-background-color: $--border-color-extra-light !default;
/* Link
--------------------------*/
/// fontSize||Font|1
$--link-font-size: $--font-size-base !default;
/// fontWeight||Font|1
$--link-font-weight: $--font-weight-primary !default;
/// color||Color|0
$--link-default-font-color: $--color-text-regular !default;
/// color||Color|0
$--link-default-active-color: $--color-primary !default;
/// color||Color|0
$--link-disabled-font-color: $--color-text-placeholder !default;
/// color||Color|0
$--link-primary-font-color: $--color-primary !default;
/// color||Color|0
$--link-success-font-color: $--color-success !default;
/// color||Color|0
$--link-warning-font-color: $--color-warning !default;
/// color||Color|0
$--link-danger-font-color: $--color-danger !default;
/// color||Color|0
$--link-info-font-color: $--color-info !default;
/* Calendar
--------------------------*/
/// border||Other|4
$--calendar-border: $--table-border !default;
/// color||Other|4
$--calendar-selected-background-color: #F2F8FE !default;
$--calendar-cell-width: 85px !default;
/* Form
-------------------------- */
/// fontSize||Font|1
$--form-label-font-size: $--font-size-base !default;
/* Avatar
--------------------------*/
/// color||Color|0
$--avatar-font-color: #fff !default;
/// color||Color|0
$--avatar-background-color: #C0C4CC !default;
/// fontSize||Font Size|1
$--avatar-text-font-size: 14px !default;
/// fontSize||Font Size|1
$--avatar-icon-font-size: 18px !default;
/// borderRadius||Border|2
$--avatar-border-radius: $--border-radius-base !default;
/// size|1|Avatar Size|3
$--avatar-large-size: 40px !default;
/// size|1|Avatar Size|3
$--avatar-medium-size: 36px !default;
/// size|1|Avatar Size|3
$--avatar-small-size: 28px !default;
/* Empty
-------------------------- */
$--empty-padding: 40px 0 !default;
$--empty-image-width: 160px !default;
$--empty-description-margin-top: 20px !default;
$--empty-bottom-margin-top: 20px !default;
/* Descriptions
-------------------------- */
$--descriptions-header-margin-bottom: 20px !default;
$--descriptions-title-font-size: 16px !default;
$--descriptions-table-border: 1px solid $--border-color-lighter !default;
$--descriptions-item-bordered-label-background: #fafafa !default;
/* Skeleton
--------------------------*/
$--skeleton-color: #f2f2f2 !default;
$--skeleton-to-color: #e6e6e6 !default;
/* Svg
--------------- */
$--svg-monochrome-grey: #DCDDE0 !default;
/* Result
-------------------------- */
$--result-padding: 40px 30px !default;
$--result-icon-font-size: 64px !default;
$--result-title-font-size: 20px !default;
$--result-title-margin-top: 20px !default;
$--result-subtitle-margin-top: 10px !default;
$--result-extra-margin-top: 30px !default;
$--result-info-color: $--color-info !default;
$--result-success-color: $--color-success !default;
$--result-warning-color: $--color-warning !default;
$--result-danger-color: $--color-danger !default;
/* Break-point
--------------------------*/
$--sm: 768px !default;
$--md: 992px !default;
$--lg: 1200px !default;
$--xl: 1920px !default;
$--breakpoints: (
'xs' : (max-width: $--sm - 1),
'sm' : (min-width: $--sm),
'md' : (min-width: $--md),
'lg' : (min-width: $--lg),
'xl' : (min-width: $--xl)
);
$--breakpoints-spec: (
'xs-only' : (max-width: $--sm - 1),
'sm-and-up' : (min-width: $--sm),
'sm-only': "(min-width: #{$--sm}) and (max-width: #{$--md - 1})",
'sm-and-down': (max-width: $--md - 1),
'md-and-up' : (min-width: $--md),
'md-only': "(min-width: #{$--md}) and (max-width: #{$--lg - 1})",
'md-and-down': (max-width: $--lg - 1),
'lg-and-up' : (min-width: $--lg),
'lg-only': "(min-width: #{$--lg}) and (max-width: #{$--xl - 1})",
'lg-and-down': (max-width: $--xl - 1),
'xl-only' : (min-width: $--xl),
);
This diff could not be displayed because it is too large.
{
"name": "scrm-sub-blog",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.4.4",
"echarts": "^5.2.0",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.0",
"glsx-components": "^1.0.4",
"glsx-table": "^1.0.9",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
No preview for this file type
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>微前端子应用:博客</title>
</head>
<body>
<noscript>
<strong>We're sorry but module-report doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file \ No newline at end of file
var express = require('express')
// var history = require('connect-history-api-fallback')
var cors = require('cors')
var app = express()
// app.use(history())
app.use(cors())
app.use(express.static('./dist'))
app.get('/', function(req, res) {
res.send('Hello jq')
})
const port = 6652
app.listen(port)
console.log(`服务已运行:\r\n http://127.0.0.1:${port}`)
<template>
<div id="app">
<!-- <h2>
报表子应用
<span class="right">{{ gs }}</span>
</h2>
<div id="nav">
<span>切换路由:</span>
<el-button-group class="right">
<el-button type="primary" size="medium" @click="routerChange('/')">报表</el-button>
<el-button type="primary" size="medium" @click="routerChange('/about')">穿梭框</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-1')">表格</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-2')">日历</el-button>
<el-button type="primary" size="medium" @click="toAppReport('3-1')">aaaa</el-button>
</el-button-group>
</div>
<div class="parent-child-communication">
<h3>父子应用通信:</h3>
<div style="margin-bottom: 20px;">
<span>rxjs通信方案:{{ myMsg }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('rxjs')">通知父应用变天了</el-button>
</div>
<div>
<span>官方通信方案:{{ myMessage }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<router-view />
</div>
</template>
<script>
export default {
name: 'report-app',
props: {
msg: String,
message: String
},
data() {
return {
myMsg: '',
gs: ''
}
},
created() {
this.myMsg = this.msg
this.myMessage = this.message
}
}
</script>
<style lang="scss">
.parent-child-communication {
padding: 20px 0;
line-height: 36px;
}
#app {
background: #F4F5FA;
}
</style>
/*
所有模块都定义在 modules
|-modules
|----demo.js
|----demo1.js
|----...
|-index.js ---动态对外暴露所有模块 无须手动添加
参考demo.js 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
*/
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
modules[moduleName] = value.default
return modules
}, {})
export default modules
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const getEmpList = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
export default {
getEmpList
}
\ No newline at end of file \ No newline at end of file
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const GETLISTDEVICEFILEUNSTOCK = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
const GETLISTDEVICEFILEUNSTOCK1 = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
export default {
GETLISTDEVICEFILEUNSTOCK,
GETLISTDEVICEFILEUNSTOCK1
}
\ No newline at end of file \ No newline at end of file
* {
font-family: PingFangSC-Regular, PingFang SC;
margin: 0;
padding: 0;
}
img {
width: 100%;
height: 100%;
vertical-align: top;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
.scrm-textRight {
position: relative;
text-align: right;
}
.scrm-textCenter {
text-align: center;
}
.scrm-c3 {
color: #333333;
}
.scrm-f12 {
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
}
.scrm-m20 {
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
}
.scrm-p20 {
padding: 20px;
}
.scrm-box-f {
background: #FFFFFF;
box-shadow: 0 10px 20px 0 rgba(88,80,255,0.10);
}
\ No newline at end of file \ No newline at end of file
.left {
float: left;
}
.right {
float: right;
}
.align-right {
text-align: right;
}
.left{float:left}.right{float:right}.align-right{text-align:right}
.left {
float: left;
}
.right {
float: right;
}
.align-right {
text-align: right;
}
/**
* 根据路由匹配地址
* @param {*} data 路由数据
* @param {*} base 路由前缀
* @param {*} options 粗略的配置项
*/
function routeMatch(data, base, options = { url: 'url', name: 'name', id: 'id', permissions: 'permissions' }) {
if (!Array.isArray(data)) return []
// 主视图路由 正式项目需要区分登陆注册等
/* let userRouter = {
path: "/layout",
name: "layout",
component: () => import('@/views/layout/index.vue'),
redirect: '/index',
children: []
}; */
// 创建路由盒子
let routerBox = []
// 将菜单数据处理为一维函数 如果有多级菜单
// let menu = flattenDeep(data, 'children');
let menu = data
// 遍历处理路由
menu.forEach(item => {
if (!item[options.url]) return
let _url = item[options.url].replace(base, '')
try {
let routerItem = {
path: _url, // 路由路径名
name: item[options.name] || item[options.id], // 命名路由 用于配合菜单简洁跳转
meta: {
purview: item[options.permissions]
}, // 路由元信息 定义路由时即可携带的参数,可用来管理每个路由的按钮操作权限
component: () => import(`@/views${_url}/index.vue`) // 路由映射真实视图路径
}
routerBox.push(routerItem)
} catch (err) {
item[options.url] = '/err-404'
}
})
// 推入需要授权后等异步加载的,非服务端获取的功能性页面
// routerBox.push(...nextRouter);
let errorBox = {
path: '*',
redirect: '/err-404'
}
routerBox.push(errorBox)
return routerBox
}
export default routeMatch
/**
* type : primary,success,default,error,danger
* size: 按钮大小,参照elementui
* id: 权限判断id
* mode:按钮类型 是a标签还是button,可选值为:button、link
*/
import { Button, Link } from 'element-ui'
// 权限校验
function judgePermissions(options) {
if (!options) {
return false
}
let _list = options.parent.permissions || []
let _o = options.props
let idx = _list.findIndex(k => k == _o.id)
// 如果没有权限,则返回空标签
if (idx < 0) {
return ''
}
if (_o.mode == 'link') {
return 'a'
}
return 'button'
}
// 获取class
function getClass(context) {
let o = context.props
let _class = []
_class.push('el-' + o.mode)
_class.push('el-' + o.mode + '--' + o.type)
if (o.size) {
_class.push('el-' + o.mode + '--' + o.size)
}
if (o.class) {
_class.push(o.class)
}
return _class
}
export default {
functional: true,
props: {
type: {
type: String,
default: 'default'
},
size: {
type: String,
default: 'medium'
},
id: {
type: [String, Number]
},
mode: {
type: String,
default: 'button'
},
class: {
type: String,
default: ''
}
},
render: function(createElement, context) {
let _props = context.props
let options = {
props: _props,
attrs: context.props,
class: getClass(context),
on: {
click: event => {
context.listeners.click('click', event)
}
}
}
return createElement(judgePermissions(context), options, context.children)
}
}
<template>
<div class="glsx-table" :class="{ hasTableContent: showClass }">
<el-table
id="initTable"
:ref="tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'"
:data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading"
:border="border"
:highlight-current-row="true"
:stripe="true"
@sort-change="sortChange"
@selection-change="handleSelect"
:size="size"
:header-cell-style="headerStyle"
>
<el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
width="55"
:selectable="checkSelectable"
:reserve-selection="true"
></el-table-column>
<el-table-column
v-if="hasNum"
align="center"
width="60px"
label="序号"
type="index"
:index="
(index) =>
index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1
"
></el-table-column>
<el-table-column
v-for="(item, index) in tableColumns"
:key="index"
:label="item.label"
:prop="item.prop"
:width="item.width"
:min-width="item.minWidth"
:align="item.align || 'center'"
:sortable="item.sortable"
>
<template slot-scope="scope">
<slot
v-if="item.addHtml"
:name="item.addHtml"
:scope="scope.row"
:prop="item.prop"
:width="item.width"
></slot>
<template v-else-if="item.formatter">
<span
class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="item.formatter(scope.row)"
v-text="item.formatter(scope.row)"
></span>
</template>
<template v-else-if="getListApi">
<span
class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="scope.row[item.prop]"
v-text="scope.row[item.prop]"
></span>
</template>
<template v-else>
<span
class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="tableData[scope.$index][item.prop]"
v-text="tableData[scope.$index][item.prop]"
></span>
</template>
<template v-if="item.addSymbol">
<span v-text="item.addSymbol"></span>
</template>
</template>
</el-table-column>
<el-table-column
v-if="tableParams.tableOption"
label="操作"
:align="tableParams.tableOption.align || 'center'"
:width="tableParams.tableOption.width || '200'"
fixed="right"
>
<template slot-scope="scope">
<slot name="auth-button" :scope="scope.row"></slot>
</template>
</el-table-column>
<div slot="empty" class="emptyBg">
<img class="noDataImg" :src="noDataImg" v-if="noDataImg" alt="" />
<div>{{ noDataText }}</div>
<slot name="additionalContent"></slot>
</div>
</el-table>
<el-pagination
v-if="hasPage"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page[this.pageConf.pageNum]"
:page-sizes="[10, 20, 30, 40]"
:page-size="page[this.pageConf.pageSize]"
:total="getListApi ? total : tableTotal"
:layout="layout"
></el-pagination>
</div>
</template>
<script>
import { Table, TableColumn, Pagination } from "element-ui";
export default {
name: "GLTable",
components: {
[Table.name]: Table,
[TableColumn.name]: TableColumn,
[Pagination.name]: Pagination,
},
props: {
size: {
type: String,
default: "medium",
},
height: {
type: String,
default: "",
},
// maxHeight:{
// type:String,
// default:'3000'
// },
noDataImg: {
type: String,
default: "",
},
noDataText: {
type: String,
default: "暂无数据",
},
border: {
type: Boolean,
default: false,
},
headerStyle: {
type: Object,
default: () => {},
},
// 搜索条件
searchForm: {
type: Object,
default: () => {},
},
// 是否定制表头
isCustomHead: {
type: Boolean,
default: false,
},
// 表头展示
customHeadShowList: {
type: Array,
default: () => [],
},
// 表格数据-外部传入
tableData: {
type: Array,
default: () => [],
},
tableTotal: {
type: Number,
default: 0,
},
// 获取列表接口
getListApi: {
type: Function,
default: null,
},
// 搜索前操作
beforeSearchFn: {
type: Function,
default: () => {
return new Promise((resolve, reject) => {
resolve();
});
},
},
// 分页,默认有
hasPage: {
type: Boolean,
default: true,
},
pageConf: {
type: Object,
default: () => ({
pageSize: "pageSize",
pageNum: "pageNum",
totalCount: "totalCount",
}),
},
// 分页组件配置
layout: {
type: String,
default: "sizes,total,->,prev,pager,next,jumper",
},
// 序号,默认有
hasNum: {
type: Boolean,
default: true,
},
tableParams: {
type: Object,
default: () => {
return {
// 多选-判断来自哪个页面
// mutiSelectName: {
// type: String,
// default: ''
// },
// 多选-唯一标识-行数据的key
// mutiSelectUniqueKey: {
// type: String,
// default: ''
// },
// 设置禁止选中的行数据
checkSelectKey: {
type: String,
default: "",
},
// 设置禁止选中的值
checkSelectVal: {
type: Array,
default: () => [],
},
// 后端返回列表参数名
listName: {
type: String,
default: "",
},
// 表格操作,默认没有
// tableOption: {
// type: Object,
// default: null
// },
// 表格栏
tableColumns: {
type: Array,
default: () => [],
},
};
},
},
},
data() {
return {
loading: false,
data: [],
// 页码
page: {},
total: 10,
// 多选数组
mutiSelectArr: {},
tableColumns: [],
showClass: false,
};
},
watch: {
customHeadShowList(val) {
this.isCustomHead && this.findShowHeadCol();
},
data: {
immediate: true,
handler(val) {
this.showClass = val.length > 0 ? true : false;
},
deep: true,
},
},
methods: {
findShowHeadCol() {
this.tableColumns = [];
this.tableParams.tableColumns.forEach((item) => {
let isCustomCol = item.hasOwnProperty("isCustomCol");
if (
!isCustomCol ||
(isCustomCol && this.customHeadShowList.includes(item.label))
) {
this.tableColumns.push(item);
}
});
},
// 设置禁止选中的行数据
checkSelectable(row) {
if (this.tableParams.checkSelectKey && this.tableParams.checkSelectVal.length > 0) {
return (
this.tableParams.checkSelectVal.indexOf(row[this.tableParams.checkSelectKey]) ==
-1
);
} else {
return true;
}
},
// 排序
sortChange({ column, prop, order }) {
this.$emit("sortChange", { column, prop, order });
},
// 多选
handleSelect(val) {
this.mutiSelectArr[this.tableParams.mutiSelectName] = val;
},
// 清空多选
clearMutiSelect() {
this.mutiSelectArr[this.tableParams.mutiSelectName] = [];
this.$refs[this.tableParams.mutiSelectName + "MutiTable"].clearSelection();
},
//设置表格高度
setTableHeightFun(navHeight = 0) {
//navHeight 传值底部高度
let paginationHeight;
if(document.querySelector(".el-pagination")) {
paginationHeight = document.querySelector(".el-pagination").clientHeight + 20;
}else {
paginationHeight = 0;
}
let offsettop = document.getElementById("initTable").offsetTop;
let clientHeight = document.documentElement.clientHeight;
document.getElementById("initTable").style.height =
clientHeight - offsettop - paginationHeight - navHeight + "px";
},
refreshTable(isResetPageNum = true, isClearMuti = true) {
this.beforeSearchFn().then((res) => {
// 清空多选
isClearMuti && this.clearMutiSelect();
this.loading = true;
isResetPageNum && (this.page[this.pageConf.pageNum] = 1);
var params = {
...this.page,
...this.searchForm,
};
this.getListApi(params)
.then((res) => {
console.log(res);
this.data = this.findVal(res, this.tableParams.listName);
this.total = this.findVal(res, this.pageConf.totalCount);
this.loading = false;
})
.catch(() => {
this.loading = false;
});
});
},
// 找返回值
findVal(res, rankStr) {
var rankList = rankStr.split(".");
if (!rankStr) {
return res;
}
return this.findVal(res[rankList[0]], rankList.splice(1).join("."));
},
// 每页条数
handleSizeChange(value) {
let offsettop = document.getElementById("initTable").offsetTop;
console.log("表格距离顶部1", offsettop);
this.page[this.pageConf.pageSize] = value;
this.getListApi
? this.refreshTable(false, false)
: this.$emit("refreshTable", this.page);
},
// 页码
handleCurrentChange(value) {
this.page[this.pageConf.pageNum] = value;
this.getListApi
? this.refreshTable(false, false)
: this.$emit("refreshTable", this.page);
},
},
mounted() {
this.isCustomHead
? this.findShowHeadCol()
: (this.tableColumns = this.tableParams.tableColumns);
this.page = {};
this.page[this.pageConf.pageSize] = 10;
this.page[this.pageConf.pageNum] = 1;
this.getListApi && this.refreshTable();
// this.$nextTick(() => {
// var _this=this
// setTimeout(() => {
// // 使用getListApi获取和返回数组为空时算高度 !(_this.getListApi && _this.data.length==0)
// if(_this.getListApi ){
// }
// }, 200)
// })
},
};
</script>
<style>
.a-click {
cursor: pointer;
}
.el-table .cell {
line-height: 14px;
}
.glsx-table p {
margin: 10px 0;
}
.glsx-table .line-ellipsis {
display: -webkit-box;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
/* -webkit-line-clamp: 2; */
-webkit-box-orient: vertical;
}
.el-table-column--selection .cell {
padding-left: 14px !important;
padding-right: 14px !important;
}
.glsx-table .emptyBg {
display: inline-block;
/* margin-top: 150px; */
height: 100%;
}
.glsx-table .emptyBg div {
margin: -20px 0 10px;
height: 100%;
}
/* .hasTableContent .el-table__body{
height: 100%;
} */
/* .hasTableContent .el-table__body-wrapper{
height: 100%;
} */
</style>
\ No newline at end of file \ No newline at end of file
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-06 10:10:44
* @LastEditors: limin
* @LastEditTime: 2021-09-06 10:11:49
* @FilePath: \scrm\scrm-sub-blog\src\components\index.js
*/
import Vue from 'vue'
// 导入权限按钮
import _button from '@/components/glsx-button/index'
import glsxTable from '@/components/glsx-table/index.vue'
Vue.component('glsx-button', _button)
// Vue.component('glsx-table', glsxTable)
\ No newline at end of file \ No newline at end of file
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-06-08 16:55:43
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
const environment = process.env.NODE_ENV || 'production'
let config = require('./env.' + environment)
module.exports = config
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-06 17:38:28
*/
// 本地环境配置
module.exports = {
title: 'scrm-sub-blog',
response: {
data_key: 'data',
message_key: 'message',
code_key: 'returnCode',
code_success_value: '0',
code_message_map: {}
},
request: {
baseURL: 'http://192.168.2.106:8083/scrm-wechat',
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
},
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
cdn: 'https://www.xxx.cn/static'
}
module.exports = {
title: 'gh-hall',
request: {
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
baseURL: 'http://cim.chinagrandauto.com/scrm-wechat1111' // 生产
// baseURL: 'http://cim.chinagrandauto.com' // 生产
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
}
}
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-07 14:38:52
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-09-14 09:34:52
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
import apis from './api'
import './public-path'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
Vue.config.productionTip = false
Vue.prototype.$apis = apis
start()
export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params)
\ No newline at end of file \ No newline at end of file
File mode changed
import Vue from 'vue'
import { Message,Autocomplete,Popover,Tag,Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker,Row, Col, DatePicker, Tree } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Switch)
Vue.use(Select)
Vue.use(Option)
Vue.use(TimePicker)
Vue.use(Col)
Vue.use(Row)
Vue.use(DatePicker)
Vue.use(Tree)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Loading)
Vue.use(Drawer)
Vue.use(Pagination)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Tooltip)
Vue.use(Autocomplete)
Vue.use(Tag)
Vue.use(Popover)
export const message = Message
\ No newline at end of file \ No newline at end of file
if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
}
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
Vue.use(VueRouter)
// 处理重复点击同一个路由报错的问题
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
function getRoutes({ name, id, routesData }) {
const routes = []
if (routesData && name && id) {
for (let i = 0, length = routesData.length; i < length; i += 1) {
const element = routesData[i]
if (element && element.path && element.path.includes(name) && element.meta && element.meta.id && element.meta.id.startsWith(id)) {
const path = element.path.slice(name.length + 1)
element.path = path
element.component = () => import('@/views' + path + '.vue')
routes.push(element)
}
}
}
return routes
}
export { VueRouter, routes, getRoutes }
\ No newline at end of file \ No newline at end of file
const staticRoutes = Object.freeze([
{
name: 'Home',
path: '/',
meta: {},
component: resolve => require([`@/views/home/index.vue`], resolve)
},
{
name: 'Ehome',
path: '/ehome',
meta: {},
component: resolve => require([`@/views/ehome/index.vue`], resolve)
},
{
name: 'About',
path: '/about',
component: resolve => require([`@/views/about/index.vue`], resolve),
meta: {}
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'Service',
path: '/service',
component: resolve => require([`@/views/service/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
}
])
export default staticRoutes
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:31:52
* @LastEditors: limin
* @LastEditTime: 2021-09-24 10:41:09
* @FilePath: \scrm\scrm-sub-blog\src\setup\index.js
*/
import { bootstrap, mount, unmount } from './qiankun'
import { start } from './single'
export { bootstrap, mount, unmount, start }
import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
// import glsxTable from 'glsx-table'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes({ name, id, routesData })
subscribe({ messenger })
}
export async function mount(props) {
const insts = render(props.routerBase, routes)
router = insts.router
instance = insts.vm
}
export async function unmount() {
instance.$destroy()
instance.$el.innerHTML = ''
instance = null
router = null
}
function subscribe({ messenger }) {
messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v)
})
}
\ No newline at end of file \ No newline at end of file
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:04:32
* @LastEditors: limin
* @LastEditTime: 2021-09-23 20:34:32
* @FilePath: \scrm\scrm-sub-blog\src\qiankun\render.js
*/
import App from '../App.vue'
import Vue from 'vue'
import store from '@/store'
import { VueRouter } from '@/router'
const render = (base, routes) => {
const router = new VueRouter({
base,
routes,
mode: 'history'
})
const vm = new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
return { router, vm }
}
export default render
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:02:23
* @LastEditors: limin
* @LastEditTime: 2021-09-24 10:41:17
* @FilePath: \scrm\scrm-sub-blog\src\setup\single.js
*/
import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { Http, utils } from 'glsx-common'
import render from './render'
import { routes } from '@/router'
export async function start() {
if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: '1112223333444' } })
Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes)
}
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-08-25 14:14:44
* @FilePath: \scrm\scrm-base\src\store\index.js
*/
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce(
(result, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
result.getters[moduleName] = state => state[moduleName]
result.modules[moduleName] = value.default
return result
},
{ modules: {}, getters: {} }
)
const store = new Vuex.Store(modules)
export default store
export default {
namespaced: true,
state: {
size: 10, // 分页 页大小
token: ''
},
mutations: {
// 设置分页大小
SET_PAGE_SIZE(state, data) {
state.size = data
},
// 设置token
SET_TOKEN(state, data) {
state.token = data
}
},
actions: {
// 设置分页大小
setPageSize({ commit }, data) {
commit('SET_PAGE_SIZE', data)
},
// 设置token
setToken({ commit }, data) {
commit('SET_TOKEN', data)
}
}
}
export default {
namespaced: true,
state: {},
mutations: {},
actions: {}
}
import { Message } from 'element-ui'
let util = {}
util.cloneText = function(message) {
let input = document.createElement('input')
input.value = message
document.body.appendChild(input)
input.select()
input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input)
Message.success('复制成功')
}
export default util
<template>
<div class="report-about">
<h4>穿梭框1</h4>
<h4 class="align-center">
<label>请打开f12查看移动数据</label>
<el-button size="medium" type="info" @click="changeMode">当前模式:{{ mode }}</el-button>
<el-button size="medium" @click="clearChecked()">清除选中</el-button>
</h4>
<div class="box">
<!-- lazy -->
<!-- :lazyFn="lazyFn" -->
<tree-transfer ref="wl-tree-transfer" filter high-light default-transfer :mode="mode" :title="title" :to_data="toData" :from_data="fromData" :filterNode="filterNode" :defaultProps="defaultProps" :defaultCheckedKeys="defaultCheckedKeys" :defaultExpandedKeys="[2, 3]" @right-check-change="rightCheckChange" @left-check-change="leftCheckChange" @removeBtn="remove" @addBtn="add" height="540px" node_key="id">
<span slot="title-right" class="my-title-right" @click="handleTitleRight">自定义内容</span>
</tree-transfer>
</div>
</div>
</template>
<script>
import treeTransfer from 'el-tree-transfer'
export default {
name: 'App',
components: { treeTransfer },
data() {
return {
mode: 'transfer', // transfer addressList
defaultProps: { label: 'name', children: 'children' },
fromData: [
{
id: 1,
pid: 0,
name: '测试左侧',
children: [
{
id: 2,
pid: 1,
name: '水电费是打发斯蒂芬斯蒂芬gas噶水电费噶地方死光光',
disabled: true,
children: []
},
{
id: 3,
pid: 1,
name: '11-3',
children: []
},
{
id: 4,
pid: 1,
name: '11-4',
children: [
{
id: 5,
pid: 4,
name: '11-5',
children: [
{
id: 111,
pid: 5,
name: '11-111'
}
]
},
{
id: 6,
pid: 4,
name: '11-6',
children: []
}
]
}
]
},
{
id: 7127,
pid: 0,
name: 'debug',
children: [
{
id: 71272,
pid: 7127,
name: 'debug22',
// disabled: true,
children: []
},
{
id: 71273,
pid: 7127,
name: 'debug11',
children: []
}
]
}
], // 穿梭框 - 源数据 - 树形
toData: [],
fromArray: [
{
id: '1',
name: '1',
pid: '0'
},
{
id: '2',
name: '2',
pid: '0'
},
{
id: '1-1',
name: '1-1',
pid: '1'
},
{
id: '1-2',
name: '1-2',
pid: '1'
},
{
id: '1-1-1',
name: '1-1-1',
pid: '1-1'
},
{
id: '1-1-1-1',
name: '1-1-1-1',
pid: '1-1-1'
},
{
id: '2-1',
name: '2-1',
pid: '2'
},
{
id: '2-2',
name: '2-2',
pid: '2'
}
],
toArray: [],
defaultCheckedKeys: [] // 左侧默认选中数据
}
},
created() {},
mounted() {
this.$apis.demo.GETLISTDEVICEFILEUNSTOCK({ k: 2, kdj: 5 }).then(res => {})
// 测试延迟默认选中
setTimeout(() => {
this.defaultCheckedKeys = [1]
}, 1000)
},
methods: {
// 清除选中
clearChecked() {
this.$refs['wl-tree-transfer'].clearChecked()
},
// 自定义筛选函数
filterNode(value, data, where) {
console.log(value, data, where)
if (!value) return true
return data[this.defaultProps.label].indexOf(value) !== -1
},
// 懒加载回调
lazyFn(node, resolve) {
setTimeout(() => {
resolve([
{
id: 71272,
pid: 7127,
name: 'debug22',
// disabled: true,
children: []
},
{
id: 71273,
pid: 7127,
name: 'debug11',
children: []
}
])
}, 500)
},
// 切换模式 现有树形穿梭框模式transfer 和通讯录模式addressList
changeMode() {
if (this.mode == 'transfer') {
this.mode = 'addressList'
} else {
this.mode = 'transfer'
}
},
// 添加按钮
add(fromData, toData, obj) {
// 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
// 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
console.log('fromData:', fromData)
console.log('toData:', toData)
console.log('obj:', obj)
},
// 移除按钮
remove(fromData, toData, obj) {
// 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
// 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
console.log('fromData:', fromData)
console.log('toData:', toData)
console.log('obj:', obj)
},
// 左侧源数据选中事件
leftCheckChange(nodeObj, treeObj, checkAll) {
console.log(nodeObj)
console.log(treeObj)
console.log(checkAll)
},
// 右侧目标数据选中事件
rightCheckChange(nodeObj, treeObj, checkAll) {
console.log(nodeObj)
console.log(treeObj)
console.log(checkAll)
},
// 自定义节点 仅树形结构支持
renderContent(h, { node, data }) {
return (
<span class="custom-tree-node">
<span>{node.label}</span>
<span>
<el-button size="mini" type="text" on-click={() => this.append(data)}>
Append
</el-button>
<el-button size="mini" type="text" on-click={() => this.remove(node, data)}>
Delete
</el-button>
</span>
</span>
)
},
// 标题自定义区点击事件
handleTitleRight() {
alert('标题自定义区点击事件')
}
},
computed: {
title() {
if (this.mode == 'transfer') {
return ['源列表', '目标列表']
} else {
return ['通讯录', '收件人', '抄送人', '密送人']
}
}
}
}
</script>
<style>
.align-center {
text-align: center;
}
.box {
width: 600px;
margin: 0 auto;
text-align: left;
}
.btn {
border: 1px solid #ebeef5;
padding: 5px 10px;
background-color: #f5f7fa;
outline: none;
}
.my-title-right {
float: right;
font-size: 12px;
cursor: pointer;
}
</style>
<template>
<div :id="echartId" class="chart-line"></div>
</template>
<script>
import * as echarts from "echarts";
export default {
name: "linechart",
props: {
echartId: {
type: String,
default: ''
},
},
data() {
return {
};
},
methods: {
getChartTotal() {
console.log(this.echartId);
var chartDom = document.getElementById(this.echartId);
var myChart = echarts.init(chartDom);
var option;
option = {
xAxis: {
type: "category",
boundaryGap: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: {
type: "value",
show: false,
},
series: [
{
data: [1, 932, 901, 934, 1290, 1330, 1320],
type: "line",
symbol: "none",
areaStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#5850FF", // 100% 处的颜色
},
{
offset: 1,
color: "#FFFFFF", // 0% 处的颜色
},
],
global: false, // 缺省为 false
},
},
},
],
};
option && myChart.setOption(option);
},
},
mounted() {
this.getChartTotal();
}
};
</script>
<style scoped lang="scss">
.chart-line {
height: 60px;
}
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
}
.summary-customer-panel {
display: flex;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
}
i {
color: #999999;
background: none;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
}
#main-customer {
height: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="summary-ranking-panel">
<div class="scrm-box-f summary-ranking-box">
<div class="summary-ranking-title scrm-c3">
<span>门店企微客户数排行</span>
<span>
<el-radio v-model="radioStore" label="1">累计新增</el-radio>
<el-radio v-model="radioStore" label="2">今日新增</el-radio>
<el-radio v-model="radioStore" label="3">累计流失</el-radio>
</span>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
<template v-else>
<div class="summary-ranking-td" v-for="(item, index) in summaryArr" :key="index">
<div class="summary-ranking-sno">
<span class="ranking-sno-circle2" v-if="index > 2">{{ index + 1 }}</span>
<span class="ranking-sno-circle" v-else>{{ index + 1 }}</span>
</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">
<div class="summary-process-panel">
<div class="summary-progress-bar">
<div class="summary-progress-barout"></div>
<div class="summary-progress-barin"></div>
</div>
<div class="summary-progress-value">100</div>
</div>
</div>
</div>
</template>
</div>
<div class="scrm-box-f summary-ranking-box">
<div class="summary-ranking-title scrm-c3">
<span>各门店产值排行 </span>
<span>
<el-radio v-model="radioOutput" label="1">累计新增</el-radio>
<el-radio v-model="radioOutput" label="2">今日新增</el-radio>
<el-select>
<el-option
v-for="item in monthOptions"
:key="item"
:label="item"
:value="item"
>
</el-option>
</el-select>
</span>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
<template v-else>
<div class="summary-ranking-td" v-for="(item, index) in summaryArr" :key="index">
<div class="summary-ranking-sno">
<span class="ranking-sno-circle2" v-if="index > 2">{{ index + 1 }}</span>
<span class="ranking-sno-circle" v-else>{{ index + 1 }}</span>
</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">
<div class="summary-process-panel">
<div class="summary-progress-bar">
<div class="summary-progress-barout"></div>
<div class="summary-progress-barin"></div>
</div>
<div class="summary-progress-value">100</div>
</div>
</div>
</div>
</template>
</div>
</div>
</template>
<script>
export default {
name: "summaryRanking",
data() {
return {
chartStatus: false,
radioStore: "1",
radioOutput: "1",
summaryArr: [1, 2, 3, 4, 5, 6, 7, 8],
monthOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
};
},
methods: {},
};
</script>
<style scoped lang="scss">
.summary-ranking-panel {
display: flex;
.summary-ranking-box {
width: 50%;
margin-right: 20px;
}
.summary-ranking-title {
height: 64px;
line-height: 64px;
padding: 0px 20px;
display: flex;
justify-content: space-between;
}
.summary-ranking-th {
display: flex;
border-radius: 2px 2px 0px 0px;
height: 46px;
line-height: 46px;
color: #000000;
background: rgba(0, 0, 0, 0.02);
.summary-ranking-sno {
width: 80px;
text-align: center;
}
.summary-ranking-name {
width: 160px;
}
.summary-ranking-value {
flex: 1;
}
}
.summary-ranking-td {
display: flex;
height: 30px;
height: 46px;
line-height: 46px;
align-items: center;
color: #333333;
.summary-ranking-sno {
width: 80px;
text-align: center;
.ranking-sno-circle {
display: inline-block;
text-align: center;
line-height: 18px;
width: 18px;
height: 18px;
background: #2a2946;
color: #ffffff;
border-radius: 50%;
font-size: 12px;
}
.ranking-sno-circle2 {
display: inline-block;
text-align: center;
line-height: 18px;
width: 18px;
height: 18px;
background: rgba(0, 0, 0, 0.15);
color: #ffffff;
border-radius: 50%;
font-size: 12px;
}
}
.summary-ranking-name {
width: 160px;
}
.summary-ranking-value {
flex: 1;
.summary-process-panel {
position: relative;
line-height: 1;
display: flex;
align-items: center;
.summary-progress-bar {
height: 10px;
flex: 1;
.summary-progress-barout {
width: 100%;
height: 100%;
background-color: #ebeef5;
}
.summary-progress-barin {
position: absolute;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: #5850ff;
}
}
.summary-progress-value {
width: 80px;
margin-left: 20px;
}
}
}
}
}
.chart-empty {
width: 100px;
height: 100px;
margin: 100px auto;
text-align: center;
&-d {
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 32px;
}
img {
width: 64px;
height: 32px;
}
}
</style>
<template>
<div class="scrm-box-f">
<div class="summary-header">
<div class="summary-title">汇总</div>
<div class="summary-time">
<span>统计截止至</span>
<el-date-picker v-model="value1" type="date" placeholder="选择日期">
</el-date-picker>
</div>
</div>
<div class="summary-customer-panel">
<div class="summary-item">
<div class="summary-item-title">
<span>客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId1"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>企微客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId2"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>企微流失客户数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId3"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>总产值</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId4"></linechart>
</div>
</div>
<div :class="{ 'expand-panel': expandStatus }" class="summary-line-panel">
<div class="summary-title">汇总</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png">
<div class="chart-empty-d">暂无数据</div>
</div>
<div id="main-customer" v-else></div>
</div>
<div class="expand-more">
<div v-if="expandStatus" class="expand-more-b" @click="handleExpand">
<span>展开查看详情</span>
<i class="el-icon-arrow-right"></i>
</div>
<div v-else class="expand-more-b" @click="handleExpand">
<span>收起详情</span>
<i class="el-icon-arrow-up"></i>
</div>
</div>
</div>
</template>
<script>
import linechart from "./linechart";
import * as echarts from "echarts";
export default {
name: "addSale",
components: {
linechart,
},
data() {
return {
value1: "",
expandStatus: true,
chartStatus: false,
echartId1: "customerEchartId1",
echartId2: "customerEchartId2",
echartId3: "customerEchartId3",
echartId4: "customerEchartId4",
};
},
methods: {
handleExpand() {
this.expandStatus = !this.expandStatus;
},
},
mounted() {
var chartDom = document.getElementById("main-customer");
var myChart = echarts.init(chartDom);
var option;
option = {
tooltip: {
trigger: "item",
formatter(params) {
console.log(params);
return (
params.name + "<br>" + params.marker + params.seriesName + ":" + params.value
);
},
},
legend: {
data: ["每日新增企微用户", "每日新增产值", "每日企微消失用户"],
left: "auto",
},
grid: {
left: "3%",
right: "4%",
bottom: "3%",
containLabel: true,
},
xAxis: {
type: "category",
boundaryGap: false,
color: "#A3A3A3",
data: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
},
yAxis: {
type: "value",
show: false,
},
series: [
{
name: "每日新增企微用户",
type: "line",
stack: "总量",
lineStyle: { color: "#5850FF " },
data: [120, 132, 101, 134, 90, 230, 210],
},
{
name: "每日新增产值",
type: "line",
stack: "总量",
lineStyle: { color: "#2CCA74 " },
data: [220, 182, 191, 234, 290, 330, 310],
},
{
name: "每日企微消失用户",
type: "line",
stack: "总量",
lineStyle: { color: "#FF6D00 " },
data: [150, 232, 201, 154, 190, 330, 410],
},
],
};
option && myChart.setOption(option);
},
};
</script>
<style scoped lang="scss">
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
margin-bottom: 20px;
.summary-title {
color: #3a3a3a;
line-height: 20px;
letter-spacing: 1px;
font-size: 20px;
font-weight: 600;
}
.summary-time {
font-size: 14px;
font-weight: 400;
color: #3a4c5f;
line-height: 20px;
> span {
margin-right: 10px;
}
}
}
.summary-customer-panel {
display: flex;
padding: 0px 20px;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
}
img {
width: 14px;
height: 14px;
margin-left: 6px;
margin-top: 4px;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
&-b {
cursor: pointer;
display: inline-block;
}
}
#main-customer {
height: 300px;
}
.summary-line-panel {
margin-top: 30px;
padding: 0px 20px;
height: 400px;
overflow: hidden;
transition: height 0.2s;
.summary-title {
color: #3a3a3a;
line-height: 20px;
letter-spacing: 1px;
font-size: 20px;
font-weight: 600;
margin: 40px 0px 20px 0px;
}
}
.summary-line-panel.expand-panel {
height: 0px;
}
.chart-empty {
width: 100px;
height: 100px;
margin: 100px auto;
text-align: center;
&-d {
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 32px;
}
img {
width: 64px;
height: 32px;
}
}
</style>
<template>
<div class="scrm-main">
<summary-statistics></summary-statistics>
<summary-ranking></summary-ranking>
<el-dialog
center
:visible.sync="dialogVisible"
width="30%"
>
<span>您还没有门店,暂无数据,请先创建门店</span>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import summaryRanking from "./components/summary-ranking";
import summaryStatistics from "./components/summary-statistics";
export default {
name: "index",
components: {
summaryRanking,
summaryStatistics,
},
data() {
return {
dialogVisible: true,
};
},
};
</script>
<style scoped lang="scss"></style>
<template>
<div class="scrm-main scrm-box-f">
<div class="enterprise-panel">
<div class="enterprise-title">
企业自建应用接入流程
<span>(适合没有自己技术团队的企业,接入即可使用全部功能)</span>
</div>
<div class="step-panel">
<div class="step-left scrm-box-f">
<div class="step-box">
<div class="el-steps el-steps--vertical">
<div class="el-step is-vertical" style="flex-basis: 50%">
<div class="el-step__head is-wait" :class="{ 'is-finish': active == 1 }">
<div class="el-step__line" style="margin-right: 0px"></div>
<div class="el-step__icon is-text" @click="active = 1">
<div class="el-step__icon-inner">1</div>
</div>
</div>
<div class="el-step__main">
<div
class="el-step__title is-wait"
:class="{ 'is-finish': active == 1 }"
>
第一步
</div>
<div
class="el-step__description is-wait"
:class="{ 'is-finish': active == 1 }"
>
管理员授权绑定企业
</div>
</div>
</div>
<div class="el-step is-vertical" style="flex-basis: 50%">
<div class="el-step__head is-wait" :class="{ 'is-finish': active == 2 }">
<div class="el-step__line" style="margin-right: 0px"></div>
<div class="el-step__icon is-text" @click="active = 2">
<div class="el-step__icon-inner">2</div>
</div>
</div>
<div class="el-step__main">
<div
class="el-step__title is-wait"
:class="{ 'is-finish': active == 2 }"
>
第二步
</div>
<div
class="el-step__description is-wait"
:class="{ 'is-finish': active == 2 }"
>
管理员授权配置
</div>
</div>
</div>
<div class="el-step is-vertical is-flex" style="flex-basis: 50%">
<div class="el-step__head is-wait" :class="{ 'is-finish': active == 3 }">
<div class="el-step__line"></div>
<div class="el-step__icon is-text" @click="active = 3">
<div class="el-step__icon-inner">3</div>
</div>
</div>
<div class="el-step__main">
<div
class="el-step__title is-wait"
:class="{ 'is-finish': active == 3 }"
>
第三步
</div>
<div
class="el-step__description is-wait"
:class="{ 'is-finish': active == 3 }"
>
配置完成
</div>
</div>
</div>
</div>
</div>
</div>
<div class="step-right scrm-box-f">
<div class="config-box" v-if="active == 1">
<div class="config-box-h1">
第一步:初次使用客户,需要企业微信超级管理员授权绑定企业,具体如下:
</div>
<div class="config-box-h2">
未注册企业微信的用户,请先前往企业微信的官网进行注册。<a>企业微信官网>></a>
</div>
<div class="config-box-h3">1.企业微信超级管理员扫码授权接入嘀加企微管家</div>
<div class="config-box-qrcode">
<div class="config-use-qrcode"></div>
<div class="config-use-desc">请联系超级管理员用企业微信扫码接入</div>
</div>
<div class="config-form-panel">
<div>
<div class="config-box-h3">2.填写嘀加智慧门店秘钥secret</div>
<div class="config-box-form">
<div class="config-box-input">
<label>*Secret:</label>
<input type="text" v-model="Secret" class="config-item-input" />
</div>
<div class="config-box-input">
<label>*客户联系Secret:</label>
<input
type="text"
v-model="SecretContact"
class="config-item-input"
/>
</div>
<div class="config-box-input">
<label>*通讯录Secret:</label>
<input type="text" v-model="SecretCode" class="config-item-input" />
</div>
<div class="config-box-link"><span>查看如何获取 >></span></div>
</div>
</div>
<div class="config-box-qrcode">
<div class="config-box-h3">如未成功,请加我微信帮您接入</div>
<div class="config-use-qrcode"></div>
<div class="config-use-desc">请联系超级管理员用企业微信扫码接入</div>
</div>
</div>
</div>
<div class="config-box" v-if="active == 2">
<div class="config-box-h1">第二步:如若完整使用本系统,还需要管理员</div>
<div class="config-form-panel">
<div>
<div class="config-box-h3">通讯录接收事件服务配置</div>
<div class="config-box-form">
<div class="config-box-input">
<label>*URL:</label>
<input type="text" readonly v-model="URL" class="config-item-input" />
<span @click="cloneText(URL)"
>复制 <img src="@/assets/img/enterprise/clone.png"
/></span>
</div>
<div class="config-box-input">
<label>*Token:</label>
<input
type="text"
readonly
v-model="Secret"
class="config-item-input"
/>
<span @click="cloneText(URL)"
>复制 <img src="@/assets/img/enterprise/clone.png"
/></span>
</div>
<div class="config-box-input">
<label>*EncodingAESKey:</label>
<input
type="text"
readonly
v-model="Secret"
class="config-item-input"
/>
<span @click="cloneText(URL)"
>复制 <img src="@/assets/img/enterprise/clone.png"
/></span>
</div>
<div class="config-box-link step-link">
<span>查看如何获取 >></span>
<el-button type="primary" size="mini" class="step-jump"
>立即配置</el-button
>
</div>
</div>
</div>
</div>
</div>
<div class="config-box" v-if="active == 3">
<div class="config-box-h1">第三步:配置完成后</div>
<div class="config-box-qrcode">
<div class="config-finish"></div>
</div>
<div class="config-box-h4">进入首页即可开始您的营销获客之旅。</div>
<div style="margin-top: 15px">
<div class="step-jump-home">前往首页>></div>
</div>
</div>
</div>
</div>
<div class="footer-panel">
<el-button type="primary" v-show="active == 2" @click="handlePrev"
>上一步</el-button
>
<el-button type="primary" v-show="active == 3" @click="handlePrev"
>返回上一步</el-button
>
<el-button type="primary" v-show="active == 1" @click="handleNext"
>确定</el-button
>
<el-button type="primary" v-show="active == 2" @click="handleNext"
>下一步</el-button
>
</div>
</div>
<div class="enterprise-dialog" v-show="dialogStatus">
<div class="enterprise-dialog-warpper">
<div class="dialog-close-btn" @click="dialogStatus = false">
{{ dialogTime }}s
</div>
<div class="enterprise-warpper-logo">
<img src="@/assets/img/enterprise/wechat.png" />
<span>></span>
<span>></span>
<img src="@/assets/img/enterprise/dj.png" />
</div>
<div class="enterprise-warpper-desc">
使用嘀加SCRM系统,需先接入企业微信,成功接入后系统后台功能方可使用!
</div>
<div class="dialog-footer">
<el-button type="primary" @click="dialogStatus = false">立即接入</el-button>
</div>
</div>
</div>
</div>
</template>
<script>
import util from "@/utils/util";
export default {
name: "index",
data() {
return {
dialogTime: 5,
active: 1,
dialogStatus: true,
Secret: "",
SecretContact: "",
SecretCode: "",
timer: null,
URL: "wwww.baidu.com",
Token: "",
};
},
methods: {
handleGetSecret() {
if (!this.SecretContact) {
this.$message({
message: "请填写客户联系Secret",
type: "error",
});
return;
}
if (!this.SecretCode) {
this.$message({
message: "请填写通讯录Secret",
type: "error",
});
return;
}
this.active++;
},
cloneText(msg) {
util.cloneText(msg);
this.$message({
message: "复制成功",
type: "success",
});
},
jumpConfig() {
window.open("https://www.baidu.com");
},
handleNext() {
if (this.active == 1) {
this.handleGetSecret();
} else {
this.active++;
}
},
handlePrev() {
this.active--;
},
closeDalog() {
this.dialogTime--;
if (this.dialogTime == 0) {
this.dialogStatus = false;
clearInterval(this.timer);
}
},
},
mounted() {
this.timer = setInterval(this.closeDalog, 1000);
},
};
</script>
<style scoped lang="scss">
.scrm-main {
// position: relative;
}
.el-step.is-vertical .el-step__head {
width: 32px;
}
.el-step__line {
background: rgba(0, 0, 0, 0.15);
}
.el-step__icon {
width: 32px;
height: 32px;
}
.el-step.is-vertical .el-step__line {
left: 16px;
}
.el-step__head.is-finish {
color: #ffffff;
border-color: #5850ff;
}
.el-step__head.is-finish .el-step__icon.is-text {
background-color: #5850ff;
}
.el-step__title.is-finish {
color: #5850ff;
font-weight: 700;
}
.el-step__description.is-finish {
color: #5850ff;
}
.enterprise-title {
padding: 15px 0px;
font-size: 20px;
font-weight: 600;
color: #424242;
line-height: 20px;
> span {
font-size: 12px;
font-weight: 500;
color: #aaaaaa;
margin: 0 10px;
}
}
.footer-panel {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.step-panel {
display: flex;
.step-left {
width: 220px;
padding: 40px 20px;
height: calc(100%-100px);
.step-box {
height: 300px;
margin: 0 auto;
text-align: center;
}
}
.step-right {
flex: 1;
margin-left: 20px;
.config-box {
padding: 40px;
&-h1 {
height: 25px;
font-size: 18px;
font-weight: 600;
color: #424242;
line-height: 25px;
letter-spacing: 1px;
}
&-h2 {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
letter-spacing: 1px;
margin-top: 10px;
> a {
font-size: 12px;
font-weight: 500;
color: #5850ff;
}
}
&-h3 {
margin: 30px 0px 10px 0px;
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
&-h4 {
font-weight: 500;
color: #8d8d8d;
line-height: 20px;
letter-spacing: 1px;
}
.config-finish {
width: 300px;
height: 300px;
margin: 40px;
border: 1px solid #979797;
}
.step-jump-home {
cursor: pointer;
font-size: 16px;
font-weight: 500;
color: #6e65ff;
line-height: 22px;
letter-spacing: 1px;
}
.config-box-qrcode {
width: 300px;
margin-left: 200px;
text-align: center;
.config-box-h4 {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.config-use-qrcode {
width: 120px;
height: 120px;
border: 1px solid #979797;
margin: 14px auto;
}
.config-use-desc {
font-size: 12px;
font-weight: 400;
color: #a0a0a0;
line-height: 17px;
letter-spacing: 1px;
}
}
.config-form-panel {
display: flex;
}
.config-box-form {
margin-left: 60px;
.config-box-input {
width: 380px;
height: 32px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #e8e8ea;
font-size: 12px;
line-height: 32px;
padding-left: 10px;
margin-bottom: 10px;
color: #999999;
display: flex;
align-items: center;
> label {
font-weight: 500;
color: #333333;
line-height: 17px;
letter-spacing: 1px;
font-size: 12px;
}
.config-item-input {
flex: 1;
color: #999999;
font-size: 12px;
border: none;
appearance: none;
outline: none;
}
> span {
cursor: pointer;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
}
img {
width: 16px;
height: 16px;
margin-right: 10px;
cursor: pointer;
}
}
.config-box-link {
width: 390px;
font-size: 12px;
text-align: right;
font-weight: 400;
color: #a0a0a0;
line-height: 30px;
&.step-link {
display: flex;
justify-content: space-between;
}
> span {
cursor: pointer;
}
}
}
}
}
}
.step-ul {
padding: 30px;
}
.step-li {
position: relative;
padding: 0 30px;
list-style: none;
min-height: 100px;
border-left: 2px solid #ccc;
padding-bottom: 20px;
.step-two-panel {
margin-top: 20px;
padding: 20px;
display: flex;
justify-content: space-around;
.step-use-qrcode {
width: 100px;
height: 100px;
border: 1px solid #333333;
margin: 20px auto;
}
}
.step-three-panel {
margin-top: 20px;
display: flex;
.service-config-border {
border: 1px solid #cccccc;
width: 500px;
margin-right: 30px;
}
.service-config-title {
height: 40px;
line-height: 40px;
background: #f4f6fc;
padding: 0px 20px;
}
.service-config-item {
line-height: 30px;
height: 30px;
border-bottom: 1px solid #cccccc;
padding-left: 10px;
}
.service-config-operation {
height: 46px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 10px;
}
}
.step-jump {
margin: 0px 8px;
}
}
.step-li:last-child {
border: none;
}
.step-li:before {
content: "";
display: block;
position: absolute;
margin-left: -6px;
top: 0;
left: -5px;
width: 22px;
height: 22px;
line-height: 22px;
text-align: center;
background: #e6e9ff;
color: #fff;
font-size: 14px;
border-radius: 50%;
}
.enterprise-dialog {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 2001;
background: rgba(0, 0, 0, 0.3);
.enterprise-dialog-warpper {
position: relative;
margin: 0 auto 50px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
width: 40%;
height: 260px;
border-radius: 4px;
margin-top: 15vh;
padding: 10px 62px;
.dialog-close-btn {
position: absolute;
top: 16px;
right: 16px;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
background: #ffffff;
border: 1px solid #999999;
border-radius: 50%;
font-size: 16px;
color: #999999;
}
.enterprise-warpper-logo {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
> img {
width: 56px;
height: 56px;
&:first-child {
margin-right: 30px;
}
&:last-child {
margin-left: 20px;
}
}
> span {
font-size: 30px;
font-weight: 400;
color: #6e65ff;
line-height: 42px;
margin-right: 10px;
&:nth-child(2) {
color: #008df1;
}
}
}
.enterprise-warpper-desc {
font-size: 18px;
font-weight: 400;
color: #3a3a3a;
line-height: 25px;
margin: 20px 0px;
text-align: center;
}
.dialog-footer {
margin: 0 auto;
text-align: center;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="drawer-sale-panel">
<el-form label-width="150px" :model="addForm">
<div class="scrm-textRight sale-reload">
<el-button slot="append" type="primary" @click="addEmpType"
>同步有外部联系人权限的员工</el-button
>
</div>
<el-form-item label="请选择员工">
<div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(idx)"
>
{{ tag.name }}
</el-tag>
<el-input
v-model.trim="newTag"
placeholder="选择员工"
style="outline: none; border: none"
></el-input>
</div>
<el-button class="sale-select-btn" type="primary" @click="addEmp"
>确定</el-button
>
</div>
<div>
<div class="select-sale-panel">
<select-emp ref="selectEmpTabel"></select-emp>
<div class="popper__arrow"></div>
</div>
</div>
</el-form-item>
<el-form-item label="请选择跟进员工类型:">
<div class="emp-type">
<div @click="handleType(index)" :class="{'checked': typeIndex == index}" class="emp-type-btn" v-for="(item, index) in empType" :key="index"
>{{ item.name }} <i class="el-icon-error" @click="delEmpType(index)" v-if="!item.status"></i
></div>
</div>
<div class="sale-select">
<el-input v-model="empTypeValue" placeholder="添加类型名称" maxlength="8" show-word-limit> </el-input>
<el-button class="sale-select-btn" type="primary" @click="addEmpType"
>新增</el-button
>
</div>
<div class="sale-type-desc">跟进员工类型最多新增30个,已新增{{32-empType.length}}个</div>
</el-form-item>
<el-form-item>
<el-button @click="onCancel">取消</el-button>
<el-button type="primary" @click="onSubmit">确定</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import selectEmp from "./selectEmp";
export default {
name: "addSale",
components: {
selectEmp,
},
data() {
return {
addForm: {},
typeIndex: 0,
empType: [
{ name: "新车跟进专员",status: 1},
{ name: "售后跟进专员",status: 1},
{ name: "sdfsdfsd"},
],
empTypeValue: "",
newTag: "",
innerTags: [],
dialog_temp: {},
};
},
methods: {
handleType(index) {
this.typeIndex = index;
},
foucusTagInput() {
if (this.readOnly || !this.$el.querySelector(".tag-input")) {
return;
} else {
this.$el.querySelector(".tag-input").focus();
}
},
// handleSelect是自己实现的方法
handleSelect(item) {
let addSuucess = false;
if (this.addTag(this.newTag.trim())) {
addSuucess = true;
}
if (addSuucess) {
this.tagChange();
this.newTag = "";
}
console.log("value---1");
console.log(this.innerTags); // 选中的数据保存在了this.innerTags中,这个用来和后端交互
console.log("value---2");
},
// addNew是https://github.com/xiispace/el-input-tag/blob/master/src/ElInputTag.vue上原先的方法
addNew(e) {
if (e && !this.addTagOnKeys.includes(e.keyCode) && e.type !== "blur") {
return;
}
if (e) {
e.stopPropagation();
e.preventDefault();
}
let addSuucess = false;
if (this.newTag.includes(",")) {
this.newTag.split(",").forEach((item) => {
if (this.addTag(item.trim())) {
addSuucess = true;
}
});
} else {
if (this.addTag(this.newTag.trim())) {
addSuucess = true;
}
}
if (addSuucess) {
this.tagChange();
this.newTag = "";
}
},
addTag(tag) {
tag = tag.trim();
if (tag && !this.innerTags.includes(tag)) {
this.innerTags.push(tag);
return true;
}
return false;
},
remove(index) {
this.innerTags.splice(index, 1);
this.reloadTags();
},
//添加员工
addEmp() {
this.innerTags = this.innerTags.concat(this.$refs.selectEmpTabel.$refs.saleTable.mutiSelectArr['salelist']);
this.reloadTags();
},
reloadTags() {
const arr = [];
this.innerTags.forEach(item=>{
arr.push(item.id)
})
this.$refs.selectEmpTabel.clearSelect(arr)
},
addEmpType() {
if(!this.empTypeValue) {
this.$message.error('请输入类型名称');
return;
}
this.empType.push({ name: this.empTypeValue });
this.empTypeValue = "";
},
delEmpType(index) {
this.empType.splice(index, 1);
},
onSubmit() {
this.$emit("handSelectdEmp");
},
onCancel() {
this.$emit("closeDrawer");
},
},
};
</script>
<style scoped lang="scss">
.drawer-sale-panel {
padding: 0px 20px;
.sale-reload {
margin-bottom: 10px;
}
.sale-select {
display: flex;
}
.sale-select-btn {
margin-left: 8px;
}
.sale-type-desc {
font-size: 14px;
font-weight: 400;
color: #ADADAD;
line-height: 17px;
margin-top: 10px;
}
}
.emp-type {
margin-bottom: 10px;
&-btn {
cursor: pointer;
display: inline-block;
padding: 10px 15px;
margin-bottom: 10px;
margin-right: 10px;
position: relative;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E8E8EA;
line-height: 1;
font-size: 14px;
color: #7D7D7D;
&.checked {
border: 1px solid #5850FF;
color: #5850FF;
}
i {
position: absolute;
right: -6px;
top: -6px;
font-size: 12px;
color: #999999;
}
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
display: flex;
align-items: center;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
}
.el-tag {
margin-right: 4px;
}
.tag-input {
background: transparent;
border: none !important;
font-size: 14px;
height: 40px;
outline: none;
padding-left: 0;
width: 100px;
}
.el-input-tag--mini .tag-input {
height: 28px;
line-height: 28px;
}
.el-input-tag--small .tag-input {
height: 32px;
line-height: 32px;
}
.el-input-tag--medium .tag-input {
height: 36px;
line-height: 36px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div>
<div class="tree-title">所在门店/部门</div>
<el-tree
:data="data"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div>
<el-col class="scrm-p10 emp-table-panel">
<glsx-table
ref="saleTable"
:layout="layout"
:tableData="tableData"
:tableTotal="tableTotal"
:tableParams="tableParams"
:hasNum="false"
>
</glsx-table>
</el-col>
</div>
</template>
<script>
export default {
name: "selectEmp",
data() {
return {
data: [
{
label: "一级 1",
children: [
{
label: "二级 1-1",
children: [
{
label: "三级 1-1-1",
},
],
},
],
},
{
label: "一级 2",
children: [
{
label: "二级 2-1",
children: [
{
label: "三级 2-1-1",
},
],
},
{
label: "二级 2-2",
children: [
{
label: "三级 2-2-1",
},
],
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
// 表格参数
tableParams: {
checkSelectKey: "id",
checkSelectVal: [],
listName: "list",
// 行数据的key
mutiSelectUniqueKey: "id",
// 多选ref的名称
mutiSelectName: "salelist",
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: "姓名",
prop: "name",
},
{
label: "职务",
prop: "部门",
},
],
},
layout: "sizes, prev, pager, next, jumper, ->, total",
tableData: [
{ name: 1, id: 1 },
{ name: 2, id: 2 },
{ name: 3, id: 3 },
],
tableTotal: 0,
};
},
methods: {
clearSelect(arr) {
this.tableParams.checkSelectVal = arr;
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection();
},
handleNodeClick(data) {
console.log(data);
},
},
};
</script>
<style scoped lang="scss">
.select-emp-panel {
display: flex;
.emp-tree-panel {
margin-top: 10px;
width: 200px;
position: relative;
background: #FFFFFF;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #E4E7ED;
.popper-arrow {
border-top-width: 0;
border-width: 6px;
position: absolute;
top: -12px;
left: 30px;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #E4E7ED;
&:after {
content: " ";
border-width: 6px;
top: 1px;
margin-left: -6px;
border-top-width: 0;
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #fff;
}
}
}
.emp-table-panel {
flex: 1;
margin-top: 10px;
background: #FFFFFF;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #E4E7ED;
}
.emp-tree-panel {
margin-right: 10px;
font-size: 15px;
/deep/ .el-tree-node:focus > .el-tree-node__content {
color: #5850ff;
background: #f2f5fa;
}
}
.tree-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 14px;
padding: 10px;
}
}
</style>
<template>
<div className="scrm-main">
<div class="follow-header">
<p>1、跟进专员可以接收/发放活动任务;</p>
<p>2、跟进专员接收任务后可分发给客户;</p>
<p>3、拥有“添加外部联系人权限”的员工才允许设置为跟进专员;</p>
<div class="follow-process-a">企微管理员为员工“设置外部联系人权限”流程>></div>
</div>
<div class="follow-form">
<el-form :inline="true" :model="searchForm" class="follow-form-item">
<el-form-item label="跟进专员类型">
<el-select v-model="searchForm.type" placeholder="请选择">
<el-option
v-for="item in optionsType"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="员工搜索">
<el-input v-model="searchForm.name" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
<el-form-item class="follow-form-jump">
<el-button
icon="el-icon-plus"
type="primary"
@click="drawer = true"
class="scrm-mr10"
>跟进专员</el-button
>
</el-form-item>
</el-form>
<GLTable
ref="table"
:layout="layout"
:tableData="tableData"
:tableTotal="tableTotal"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"
>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDele(scope.scope)">删除</el-button>
</template>
</GLTable>
</div>
<el-drawer
size="60%"
title="添加跟进员工"
:visible.sync="drawer"
:direction="direction"
:before-close="handleClose"
>
<add-sale @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></add-sale>
</el-drawer>
</div>
</template>
<script>
import addSale from "./components/addSale";
export default {
name: "index",
components: {
addSale,
},
data() {
return {
drawer: false,
direction: "rtl",
searchForm: {
type: "",
name: "",
},
optionsType: [
{
value: "",
label: "全部",
},
{
value: "1",
label: "新车跟进专员",
},
{
value: "2",
label: "售后跟进专员",
},
],
scope: {
scope: "",
},
// 表格参数
tableParams: {
tableOption: true,
mutiSelectName: "user",
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: "姓名",
prop: "name",
},
{
label: "一级订单",
prop: "部门",
},
{
label: "跟进专员类型",
prop: "部门",
},
{
label: "手机号",
prop: "部门",
},
{
label: "首次开通时间",
prop: "部门",
},
{
label: "是否有外部联系人权限",
prop: "部门",
},
],
},
layout: "sizes, prev, pager, next, jumper, ->, total",
tableData: [],
tableTotal: 0,
};
},
methods: {
beforeSearchFn() {
return new Promise((resolve) => {
// 调接口前,操作
resolve();
});
},
handleClose() {
this.drawer = false;
},
closeDrawer() {
this.handleClose();
},
handSelectdEmp() {
this.handleClose();
},
handleSearch() {},
handleDele() {},
},
mounted() {
this.$refs.table.setTableHeightFun();
console.log(this.$apis.emp.getEmpList())
},
};
</script>
<style scoped lang="scss">
.follow-header {
background: #ffffff;
border: 1px solid #5850ff;
border-radius: 4px;
line-height: 27px;
padding: 10px 20px;
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
.follow-process-a {
position: absolute;
right: 50px;
bottom: 10px;
line-height: 24px;
color: #5850ff;
cursor: pointer;
}
}
.follow-form {
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 10px;
&-item {
position: relative;
.follow-form-jump {
position: absolute;
right: 0px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="accurate-sercives">
<div class="accurate-item scrm-box-f">
<div class="accurate-img">
<img
class="accurate-img"
src="@/assets/img/home/yx.png"
alt=""
/>
</div>
<div class="accurate-content">
<div class="accurate-content-l">
<div class="accurate-title">客户引流企微策略</div>
<div class="accurate-desc">
导入外部客户,系统智能匹配企微客户,并自动打标签。且不同的客户提供不同引流策略。
</div>
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
</div>
</div>
</div>
<div class="accurate-item scrm-box-f">
<div class="accurate-img">
<img
class="accurate-img"
src="@/assets/img/home/cl.png"
alt=""
/>
</div>
<div class="accurate-content">
<div class="accurate-content-l">
<div class="accurate-title">续费策略</div>
<div class="accurate-desc">
提前给需要续费的客户精准推送续费活动,提高复购率。支持企业微信、短信、智能语音电话推送。
</div>
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "accurateMarketing",
data() {
return {};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.accurate-sercives {
display: flex;
justify-content: space-around;
.accurate-item {
flex: 1;
padding: 20px;
margin-right: 30px;
text-align: center;
.accurate-img {
width: 100%;
height: auto;
}
.accurate-content {
display: flex;
align-items: flex-end;
margin-top: 20px;
&-l {
width: 50%;
}
.accurate-use-btn {
width: 50%;
text-align: right;
}
}
&:last-child {
margin-right: 0px;
}
.accurate-icon {
img {
width: 50px;
height: auto;
margin: 4px auto;
}
}
.accurate-title {
font-size: 16px;
font-weight: 400;
color: #000000;
line-height: 22px;
margin-bottom: 10px;
}
.accurate-desc {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="chart-home-panel scrm-box-f">
<div class="chart-home-left">
<output-echart></output-echart>
</div>
<div class="chart-home-right">
<same-add-echart></same-add-echart>
</div>
</div>
</template>
<script>
import outputEchart from "./output-echart";
import sameAddEchart from "./same-add-echart";
export default {
name: "customerEchart",
components: {
outputEchart,
sameAddEchart,
},
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.chart-home-panel {
display: flex;
margin-top: 20px;
.chart-home-left {
width: 50%;
padding: 20px;
}
.chart-home-right {
width: 50%;
padding: 20px;
}
}
</style>
<template>
<div class="scrm-main">
<div class="info-border">
<div class="info-title">企业信息 <span>门店</span></div>
<div class="info-content">
<p>所属企业:</p>
<p>所属门店:</p>
<p>关联企微:</p>
<p>企微成员:</p>
</div>
</div>
<div class="info-border consult-box">
<div class="info-title scrm-textCenter">嘀加企微管家</div>
<div class="info-title scrm-textCenter">专属顾问</div>
<div class="info-content">
<div class="info-qrcode">
<div class="info-qrcode-image">
<img src="@/assets/img/home/logo.png" alt="" />
</div>
<div class="info-qrcode-desc">扫码添加您的专属顾问</div>
</div>
<div class="info-consult-icon">
<i class="el-icon-chat-dot-round">
</i><span>联系客服</span>
</div>
<div class="info-time">
<span>工作时间:9:00-18:00</span>
</div>
</div>
</div>
<div class="info-border">
<div class="info-title">赢销学院</div>
<div class="info-content">
<p>子账户的注册和管理>></p>
<p>老客户引流企微操作流程>></p>
<p>企微授权流程>></p>
<p>权益裂变操作流程>></p>
<p>优惠券营销使用手册>></p>
</div>
<div class="info-more">了解更多</div>
</div>
<div class="info-border">
<div class="info-title">版本更新</div>
<div class="info-content"></div>
<div class="info-more">了解更多</div>
</div>
</div>
</template>
<script>
export default {
name: "enterpriseInformation",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style scoped lang="scss">
.info-border {
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-bottom: 20px;
padding: 20px;
width: 218px;
box-sizing: border-box;
.info-title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 24px;
letter-spacing: 1px;
span {
display: inline-block;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
padding: 0px 5px;
border-radius: 2px;
vertical-align: top;
border: 1px solid #5850ff;
}
}
}
.info-content {
margin-top: 20px;
p {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-bottom: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span {
color: #666666;
}
}
}
.info-more {
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
letter-spacing: 1px;
cursor: pointer;
}
.info-qrcode {
text-align: center;
}
.info-qrcode-image {
height: 100px;
width: 100px;
margin: 0 auto;
}
.info-qrcode-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
line-height: 24px;
margin: 10px 0px;
}
.info-time {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.info-consult-icon {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 26px;
letter-spacing: 1px;
text-align: center;
i {
font-size: 20px;
color: #FE911A;
vertical-align: middle;
margin-right: 5px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="header-panel">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
</div>
</template>
<script>
export default {
name: 'overview',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
}
}
</script>
<style lang="scss" scoped>
.header-panel {
width: 100%;
height: auto;
>img {
width: 100%;
height: auto;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div :id="echartId" class="chart-line"></div>
</template>
<script>
import * as echarts from "echarts";
export default {
name: "linechart",
props: {
echartId: {
type: String,
default: "",
},
},
data() {
return {};
},
methods: {
getChartTotal() {
console.log(this.echartId);
var chartDom = document.getElementById(this.echartId);
var myChart = echarts.init(chartDom);
var option;
option = {
xAxis: {
type: "category",
boundaryGap: false,
show: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
grid: {
bottom: 0,
top: 0,
},
yAxis: {
type: "value",
show: false,
},
series: [
{
data: [1, 12, 33, 23, 45, 65, 4445],
type: "line",
symbol: "none",
areaStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#5850FF", // 100% 处的颜色
},
{
offset: 1,
color: "#FFFFFF", // 0% 处的颜色
},
],
global: false, // 缺省为 false
},
},
},
],
};
option && myChart.setOption(option);
},
},
mounted() {
this.getChartTotal();
},
};
</script>
<style scoped lang="scss">
.chart-line {
height: 100px;
}
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
}
.summary-customer-panel {
display: flex;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
}
i {
color: #999999;
background: none;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
}
#main-customer {
height: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="marketing-tools scrm-box-f">
<div class="marketing-item" v-for="(item, index) in tools" :key="index">
<div class="marketing-icon"><img :src="require('../../../assets/img/service/tool' + (index+1) + '.png')"></div>
<div class="marketing-desc">{{ item.name }}</div>
</div>
</div>
</template>
<script>
export default {
name: "marketingTools",
data() {
return {
tools: [
{
name: "活码引流",
},
{
name: "批量加好友",
},
{
name: "群发助手",
},
{
name: "企业素材库",
},
{
name: "权益裂变",
},
{
name: "优惠券营销",
},
],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.marketing-tools {
display: flex;
justify-content: space-around;
padding: 25px;
.marketing-item {
margin: 0 auto;
text-align: center;
.marketing-icon {
img {
width: 50px;
height: 50px;
margin: 4px auto;
}
}
.marketing-desc {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 16px;
letter-spacing: 1px;
margin-top: 6px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="operational-sercives">
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service1.png" /></div>
<div class="operational-title">新车售前打包增值方案</div>
<div class="operational-desc">4S店会员权益服务——赚钱 、锁客两不误</div>
<div class="operational-btn">立即使用</div>
</div>
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service2.png" /></div>
<div class="operational-title">精品售中升级</div>
<div class="operational-desc">驻店升级转化精品——帮助门店新车流量托管式增值变现</div>
<div class="operational-btn">立即使用</div>
</div>
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service3.png" /></div>
<div class="operational-title">售后直播代运营服务</div>
<div class="operational-desc">专业直播带货服务,助力商家直播带货,快速提高销量</div>
<div class="operational-btn">立即使用</div>
</div>
</div>
</template>
<script>
export default {
name: "operationalSercives",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.operational-sercives {
display: flex;
justify-content: space-around;
.operational-item {
padding: 20px 55px;
margin-right: 30px;
text-align: center;
&:last-child {
margin-right: 0px;
}
.operational-icon {
img {
width: 56px;
height: auto;
margin: 20px auto;
}
}
.operational-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 14px;
margin: 20px 0px 10px;
}
.operational-desc {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 24px;
}
.operational-btn {
cursor: pointer;
display: inline-block;
margin: 20px auto 10px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #5850ff;
padding: 8px 28px;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 14px;
&:hover {
background: #ededff;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="output-panel">
<div id="echarts1"></div>
</div>
</template>
<script>
import * as echarts from 'echarts';
export default {
name: 'outputEchart',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
},
mounted() {
var chartDom = document.getElementById('echarts1');
var myChart = echarts.init(chartDom);
var option;
option = {
tooltip: {
trigger: 'item'
},
legend: {
left: 'left'
},
color: ['#FE9C1C','#716AFF','#3DA4F4'],
series: [
{
name: '访问来源',
type: 'pie',
data: [
{value: 580, name: '精品升级'},
{value: 484, name: '权益'},
{value: 300, name: '其他'}
]
}
]
};
option && myChart.setOption(option);
}
};
</script>
<style>
#echarts1 {
height: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="scrm-box-f scrm-p20">
<div class="view-prise-panel">
<div class="view-prise-l">
<div class="view-l-title">
<div class="view-title-desc">
<span>客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="view-title-num">10,000人</div>
</div>
<div class="view-num-panel">
<div class="view-num-y">
<img
class="accurate-img"
src="@/assets/img/home/count1.png"
alt=""
/>
<div class="view-customer-desc">企微客户数</div>
<div class="view-customer-num">10,000人</div>
</div>
<div class="view-num-n">
<img
class="accurate-img"
src="@/assets/img/home/count2.png"
alt=""
/>
<div class="view-customer-desc">未加企微客户数</div>
<div class="view-customer-num">10,000人</div>
</div>
</div>
<div class="view-l-loss">
<div class="view-loss-desc">企微流失客户总数<span>100</span>人</div>
<div class="view-loss-btn">
<el-button type="primary" size="small">立即召回</el-button>
</div>
</div>
</div>
<div class="view-prise-r">
<div class="view-prise-h">
<div class="view-h-title">当日新增客户数<span>700人</span></div>
<div class="view-h-desc">当日新增企微客户数:60人</div>
</div>
<div class="view-prise-h">
<div class="view-h-title">当日新增群客户数<span>700人</span></div>
<div class="view-h-desc">群客户总数:110人</div>
</div>
<div class="view-prise-f">
<div class="view-h-title">当日企微流失数<span>700人</span></div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "overviewEnterprise",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.view-prise-panel {
display: flex;
.view-prise-l {
width: 60%;
padding: 20px 40px 20px 20px;
border-right: 1px solid rgba(0,0,0,.06);
.view-l-title {
display: flex;
justify-content: space-between;
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
img {
width: 14px;
height: 14px;
margin-left: 6px;
margin-top: 2px;
}
}
.view-num-panel {
display: flex;
justify-content: center;
margin: 50px 0px;
img {
width: 50px;
height: 50px;
margin-bottom: 30px;
}
.view-num-y {
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
margin-top: 8px;
}
}
.view-num-n {
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
margin-top: 8px;
}
}
}
.view-l-loss {
display: flex;
justify-content: space-between;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
span {
font-size: 30px;
margin: 0px 10px;
font-weight: 500;
color: #eb4e4e;
line-height: 38px;
}
}
}
.view-prise-r {
margin-left: 60px;
width: 40%;
.view-prise-h {
padding-bottom: 30px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
margin-bottom: 10px;
}
.view-prise-f {
padding-bottom: 10px;
margin-bottom: 10px;
}
.view-h-title {
height: 22px;
font-size: 16px;
font-weight: 400;
color: #333333;
line-height: 22px;
display: flex;
justify-content: space-between;
span {
font-size: 26px;
font-weight: 500;
color: #333333;
}
}
.view-h-desc {
font-size: 12px;
margin-top: 30px;
font-weight: 400;
color: #999999;
line-height: 17px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="report-home">
HOME
<glsx-button type="danger" @click="test()" class="test555" id="1211" mode="link">权限按钮测试</glsx-button>
<glsx-button type="success" size="small" @click="test()" id="1211" class="test">权限按钮测试2</glsx-button>
<el-button class="test" @click="test()">东方网分</el-button>
</div>
</template>
<script>
export default {
name: 'home',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
}
}
</script>
<template>
<div class="add-chart">
<linechart :echartId="echartId1"></linechart>
<linechart :echartId="echartId2"></linechart>
</div>
</template>
<script>
import * as echarts from 'echarts';
import linechart from "./linechart";
export default {
name: 'sameAddEchart',
components: {
linechart,
},
data() {
return {
permissions: [1211],
echartId1: "addEchartId1",
echartId2: "addEchartId2",
echartId3: "addrEchartId3",
echartId4: "addEchartId4",
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
},
mounted() {
}
};
</script>
<style>
#echarts2 {
height: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }">
<div class="main-left">
<div class="header-panel">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
</div>
<div class="home-statistics-title">企业数据概览</div>
<overview-enterprise></overview-enterprise>
<customer-echart></customer-echart>
<div class="home-overview-content"></div>
<div class="home-statistics-title">精准营销</div>
<accurate-marketing></accurate-marketing>
<div class="operational-panel-s">
<div class="home-statistics-title">免费代运营服务</div>
<operational-services></operational-services>
</div>
<div class="home-statistics-title">精选营销工具</div>
<marketing-tools></marketing-tools>
</div>
<div class="main-right">
<enterprise-information></enterprise-information>
</div>
</div>
<div class="guide-panel" v-if="guideStatus">
<div
v-if="step == 1"
@click="handleNext(1)"
class="guide-btn"
:style="{
left: guideLeft + guideWidth / 2 + imgWidth / 2 - 40 + 'px',
top: guideTop + guideHeight + imgHeight - 20 + 'px',
}"
>
我知道了
</div>
<div
v-if="step == 2"
@click="handleNext(2)"
class="guide-btn"
:style="{
right: guideRight + guideWidth + imgWidth / 2 - 40 + 'px',
top: guideTop + imgHeight - 40 + 'px',
}"
>
我知道了
</div>
<div
v-if="step == 3"
@click="handleNext(3)"
class="guide-btn"
:style="{
left: guideLeft + guideWidth / 4 + imgWidth / 2 - 100 + 'px',
top: guideTop - guideWidth / 4+imgHeight - 80 + 'px',
}"
>
我知道了
</div>
<img
v-if="step == 1"
class="guide-step-1"
src="@/assets/img/home/guide1.png"
alt=""
:style="{
width: imgWidth + 'px',
height: imgHeight + 'px',
left: guideLeft + guideWidth / 2 + 'px',
top: guideTop + guideHeight + 20 + 'px',
}"
/>
<img
@click="handleNext(2)"
v-if="step == 2"
class="guide-step-2"
src="@/assets/img/home/guide2.png"
alt=""
:style="{
width: imgWidth + 'px',
height: imgHeight + 'px',
right: guideRight + guideWidth + 'px',
top: guideTop + 'px',
}"
/>
<img
@click="handleNext(3)"
v-if="step == 3"
class="guide-step-3"
src="@/assets/img/home/guide3.png"
alt=""
:style="{
width: guideWidth / 1.5 + 'px',
left: guideLeft + guideWidth / 4+ 'px',
top: guideTop - guideWidth / 4 + 'px',
}"
/>
<div
v-if="step == 1"
class="guide-box-highlight"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
left: guideLeft + 'px',
top: guideTop + 'px',
}"
></div>
<div
v-if="step == 2"
class="guide-box-highlight border-b"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
right: guideRight + 'px',
top: guideTop + 'px',
}"
></div>
<div
v-if="step == 3"
class="guide-box-highlight border-b"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
left: guideLeft + 'px',
top: guideTop + 'px',
}"
></div>
</div>
</div>
</template>
<script>
import overviewEnterprise from "./components/overview-enterprise";
import customerEchart from "./components/customer-echart";
import marketingTools from "./components/marketing-tools";
import operationalServices from "./components/operational-services";
import enterpriseInformation from "./components/enterprise-information";
import accurateMarketing from "./components/accurate-marketing";
export default {
name: "home",
components: {
overviewEnterprise,
customerEchart,
operationalServices,
marketingTools,
enterpriseInformation,
accurateMarketing,
},
data() {
return {
guideStatus: true,
step: 1,
guideWidth: "",
guideHeight: "",
guideLeft: 0,
guideTop: 0,
guideRight: 0,
imgHeight: 0,
imgWidth: 0,
};
},
methods: {
handleNext(val) {
if (val == 3) {
this.guideStatus = false;
document.documentElement.scrollTop = 0;
document.body.parentNode.style.overflowY = "auto";
} else {
this.step++;
this.getRezie();
}
},
getRezie() {
// document.body.parentNode.style.overflowY = "hidden";
if (this.step == 1) {
this.guideWidth = document.querySelector(".header-panel").offsetWidth;
this.guideHeight = document.querySelector(".header-panel").offsetHeight;
this.imgWidth = this.guideWidth / 2;
this.imgHeight = (this.imgWidth * 342) / 541;
this.guideLeft = document.querySelector(".header-panel").offsetLeft;
this.guideTop = document.querySelector(".header-panel").offsetTop;
} else if (this.step == 2) {
this.guideWidth = document.querySelector(".consult-box").offsetWidth;
this.guideHeight = document.querySelector(".consult-box").offsetHeight;
this.imgHeight = this.guideHeight;
this.imgWidth = (this.imgHeight * 614) / 285;
this.guideRight =
document.body.clientWidth -
document.querySelector(".consult-box").offsetLeft -
document.querySelector(".consult-box").offsetWidth;
this.guideTop = document.querySelector(".consult-box").offsetTop;
} else {
this.guideLeft = document.querySelector(".operational-panel-s").offsetLeft;
this.guideTop = document.querySelector(".operational-panel-s").offsetTop;
document.documentElement.scrollTop = document.body.scrollHeight - 100;
this.guideWidth = document.querySelector(".operational-panel-s").offsetWidth;
this.guideHeight = document.querySelector(".operational-panel-s").offsetHeight;
this.imgWidth = this.guideWidth / 1.5;
this.imgHeight = (this.imgWidth * 229) / 668;
}
},
},
mounted() {
this.getRezie();
window.addEventListener("onresize", () => {
this.getRezie();
});
},
};
</script>
<style lang="scss" scoped>
.header-panel {
width: 100%;
height: 170px;
> img {
width: 100%;
height: 170px;
}
}
.main-isScroll2 {
position: absolute;
overflow: hidden;
width: 100%;
height: 100%;
}
.main-panel {
display: flex;
}
.home-statistics-title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin: 20px 0;
}
.operational-panel-s {
margin-top: 20px;
}
.main-left {
flex: 1;
margin-right: 10px;
}
.main-right {
width: 230px;
}
.h-overview-content {
border: 1px solid #000000;
margin-top: 10px;
padding: 10px;
}
.enterprise-statistics {
display: flex;
justify-content: space-between;
}
.statistics-time {
span {
margin-right: 6px;
}
}
.guide-panel {
.guide-btn {
cursor: pointer;
z-index: 1000;
position: absolute;
background: #5850ff;
border-radius: 4px;
padding: 12px 20px;
color: #ffffff;
display: inline-block;
}
.guide-box {
position: relative;
width: 100%;
height: 100%;
}
.guide-box-highlight {
position: absolute;
outline: 5000px solid rgba(0, 0, 0, 0.75);
border: 2px solid #ffffff;
border-radius: 4px;
&.border-b {
border-color: #5850ff;
}
}
.guide-step-1 {
z-index: 999;
height: auto;
position: absolute;
top: 10px;
left: 10px;
}
.guide-step-2 {
z-index: 999;
width: auto;
position: absolute;
top: 10px;
}
.guide-step-3 {
z-index: 999;
height: auto;
position: absolute;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="report-home">
<h2>
报表子应用
<span class="right">{{ gs }}</span>
</h2>
<div id="nav">
<span>切换路由:</span>
<el-button-group class="right">
<el-button type="primary" size="medium" @click="routerChange('/')">报表</el-button>
<el-button type="primary" size="medium" @click="routerChange('/about')">穿梭框</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-1')">表格</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-2')">日历</el-button>
<el-button type="primary" size="medium" @click="toAppReport({ path: 'sub01/changeData' })">aaaa</el-button>
</el-button-group>
</div>
<div class="parent-child-communication">
<h3>父子应用通信:</h3>
<div style="margin-bottom: 20px;">
<span>rxjs通信方案:{{ myMsg }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('rxjs')">通知父应用变天了</el-button>
</div>
<div>
<span>官方通信方案:{{ myMessage }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="../assets/logo.png" alt="" srcset="" />
</div>
</div>
</template>
<script>
export default {
name: 'report-home',
data() {
return {
myMsg: '',
gs: '',
myMessage: ''
}
},
methods: {
/**
* 路由切换
* url 路由地址
*/
routerChange(url) {
this.$router.push(url).catch(err => {
console.log(err)
})
},
/**
* 跨应用路由切换
* url 路由地址
*/
toAppReport(menu) {
this.$history.push(menu)
},
/**
* 通知父应用变天了
* type 通信方案
*/
callParentChange(type) {
if (type === 'default') {
this.myMessage = '子应用scrm-sub-blog收到'
this.$messenger.send({
route: {
id: '3-1',
url: '/test1.html'
},
message: {
from: 'scrm-sub-blog',
token: '倘若有你,西湖一路无雨'
}
})
return
}
this.myMsg = '倘若有你,西湖一路无雨'
this.$globalState.dispatch({
from: 'scrm-sub-blog',
message: this.myMsg,
time: new Date()
})
}
}
}
</script>
<style lang="scss">
.parent-child-communication {
padding: 20px 0;
line-height: 36px;
}
</style>
<template>
<div class="scrm-main">
<div class="service-panel scrm-box-f">
<div class="service-active">
<div class="service-active-wrap">
<div class="service-active-l">
<div class="service-active-h1">帮助企业盘活客户</div>
<div class="service-active-h2">实现私域裂变增长</div>
<div class="service-active-btn">
<el-button type="primary" size="small">化流量为销量</el-button>
</div>
</div>
<div class="service-active-r"></div>
</div>
<hr />
</div>
<div class="service-content">
<div class="service-content-wrap">
<div class="service-content-l">
<div class="service-content-title">
嘀加智慧门店SCRM——赢在销售 Win Consumer
</div>
<div class="service-content-desc">
面向汽车营销场景,依托嘀加智慧门店SaaS产品服务能力,帮助汽车经销商及门店打通引流-互动-转化-复购的路径,满足企业精准营销+全链路SaaS+数字化运营的一站式增长需求,助力汽车经销商打造自己的数字化营销平台。
</div>
<div class="service-content-in">
我们不仅提供管理工具,我们更有方法论与策略 。
</div>
</div>
<div class="service-content-r"></div>
</div>
<div class="service-content-cause">
<div class="service-cause-border" v-for="(item, index) in cause" :key="index">
<div class="cause-icon"><img :src="require('../../assets/img/service/tool' + (index+1) + '.png')"></div>
<div class="cause-name">{{ item.name }}</div>
</div>
</div>
<hr />
</div>
</div>
<div class="service-footer">
<div class="service-footer-title">嘀加智慧门店——功能服务清单</div>
<table cellspacing="0" cellpadding="0" border="0" class="service-footer-table">
<tr>
<th>产品</th>
<th>功能</th>
<th>标准版</th>
<th>升级版</th>
</tr>
<tr v-for="item in 8" :key="item">
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<hr />
<div class="service-contact">
<div class="service-contact-h scrm-f20">联系方式</div>
<div class="service-contact-p">深圳市广联赛讯股份有限公司</div>
<div class="service-contact-p">联系人:杨经理</div>
<div class="service-contact-p">联系电话:13500001234</div>
<div class="service-contact-p">微信:13500001234</div>
<div class="service-contact-p">
地址:广东省深圳市南山区XXXXXX智园1栋14楼(整层)
</div>
<hr />
<div class="service-contact-f scrm-f20">
您也可在线申请,我们会24小时内安排工作人员主动跟您联系!
</div>
<div class="service-form">
<el-form ref="form" :model="form" label-width="150px">
<el-row>
<el-col :span="8">
<el-form-item label="您的姓名">
<el-input v-model="form.name"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="您的电话号码">
<el-input v-model="form.name"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<el-form-item label="描述说明">
<el-input type="textarea" rows="5" v-model="form.remark"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="service-form-btn">
<el-button type="primary" size="small">确定</el-button>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
const cause = [
{ name: "活码引流" },
{ name: "批量加好友" },
{ name: "群发助手" },
{ name: "企业素材库" },
{ name: "权益裂变" },
{ name: "会员中心" },
{ name: "分销裂变" },
{ name: "优惠券营销" },
];
export default {
name: "index",
data() {
return {
cause,
form: {
name: "",
phone: "",
remark: "",
},
};
},
};
</script>
<style scoped lang="scss">
.service-panel {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 68px;
width: 100%;
box-sizing: border-box;
}
.service-active {
.service-active-wrap {
display: flex;
.service-active-l {
flex: 1;
}
.service-active-r {
width: 380px;
height: 200px;
border: 1px solid #f2f2f2;
margin: 0px 135px;
}
}
.service-active-h1 {
font-size: 42px;
font-weight: 400;
color: #333333;
line-height: 59px;
}
.service-active-h2 {
font-size: 42px;
font-weight: 600;
color: #333333;
line-height: 59px;
}
.service-active-btn {
margin-top: 20px;
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-content {
.service-content-wrap {
display: flex;
.service-content-l {
flex: 1;
}
.service-content-r {
width: 380px;
height: 200px;
border: 1px solid #f2f2f2;
margin: 0px 135px;
}
.service-content-desc {
margin-top: 15px;
line-height: 22px;
}
.service-content-title {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0px;
}
.service-content-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
}
.service-content-in {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin: 30px 0px;
}
}
.service-content-cause {
margin-top: 30px;
display: flex;
justify-content: space-around;
padding: 15px;
.service-cause-border {
text-align: center;
.cause-icon {
img {
width: 50px;
height: 50px;
margin: 4px auto;
}
}
.cause-name {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 16px;
letter-spacing: 1px;
margin-top: 6px;
}
}
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-footer {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 30px 40px;
width: 100%;
box-sizing: border-box;
&-title {
font-size: 32px;
font-weight: 600;
color: #333333;
line-height: 45px;
margin: 10px 0px 60px;
}
&-table {
border-width: 1px;
border-color: #979797;
border-collapse: collapse;
width: 100%;
font-size: 14px;
color: #979797;
margin-bottom: 20px;
th {
color: #ffffff;
border-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
height: 50px;
border-style: solid;
border-color: #979797;
background-color: #5850ff;
}
td {
border-width: 1px;
height: 40px;
border-left-width: 0px;
border-right-width: 0px;
border-style: solid;
border-color: #979797;
background-color: #ffffff;
}
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-contact {
hr {
margin: 40px 0px;
border: 2px solid #e8e8ea;
}
}
.service-contact-h {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0;
}
.service-contact-p {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
padding: 5px 0px;
}
.service-contact-f {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-top: 50px;
}
.service-form {
margin-top: 60px;
.service-form-btn {
margin-left: 150px;
/deep/ .el-button--small {
padding: 9px 45px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
$defaultColor: #5850FF;
$lightColor: #7973ff;
$dackColor: #4f48e6;
/* 按钮 */
.el-button {
padding: 12px 20px;
font-size: 14px;
border-radius: 4px
}
.el-button:hover,
.el-button:focus {
color: $defaultColor;
border-color: #cdcbff;
background-color: #eef;
}
.el-button:active {
color: $dackColor;
border-color: $dackColor;
outline: none;
}
.el-button.is-round {
padding: 12px 20px
}
.el-button--primary {
color: #fff;
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-button--primary:focus,
.el-button--primary:hover {
background: $lightColor;
border-color: $lightColor;
color: #fff;
}
.el-button--text:focus,
.el-button--text:hover {
color: $lightColor;
border-color: transparent;
background-color: transparent;
}
.el-button.is-plain:focus,
.el-button.is-plain:hover {
background: #FFF;
border-color: $lightColor;
color: $lightColor;
}
.el-button--primary.is-active,
.el-button--primary:active {
background: $dackColor;
border-color: $dackColor;
color: #fff;
}
.el-select .el-input__inner:focus {
border-color: $dackColor;
}
.el-button--small {
padding: 8px 16px;
font-size: 14px;
border-radius: 4px;
}
.el-button--small.is-round {
padding: 8px 16px;
}
.el-button--mini {
padding: 5px 10px;
font-size: 14px;
border-radius: 4px;
}
.el-button--mini.is-round {
padding: 5px 10px;
}
.el-dialog__title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 28px;
}
/* 输入框 下拉框 选择器 开关 单选 多选*/
.el-input__inner:focus {
outline: none;
border-color: $defaultColor;
}
.el-date-table td.today span {
color: $defaultColor;
font-weight: bold;
}
.el-date-table td.current:not(.disabled) span {
color: #fff;
background-color: $defaultColor;
}
.el-date-table td.available:hover {
color: $defaultColor;
}
.el-time-panel__btn.confirm {
font-weight: 800;
color: $defaultColor;
}
.el-date-picker__header-label.active,
.el-date-picker__header-label:hover {
color: $defaultColor;
}
.el-year-table td.today .cell {
color: $defaultColor;
font-weight: 700;
}
.el-month-table td .cell:hover {
color: $defaultColor;
}
.el-picker-panel__icon-btn:hover {
color: $defaultColor;
}
.el-date-table td.end-date span,
.el-date-table td.start-date span {
background-color: $defaultColor;
}
.el-year-table td .cell:hover,
.el-year-table td.current:not(.disabled) .cell {
color: $defaultColor;
}
.el-select .el-input.is-focus .el-input__inner {
border-color: $defaultColor;
}
.el-button--text {
color: $defaultColor;
}
.el-select-dropdown__item.selected {
color: $defaultColor;
font-weight: bold;
}
.el-switch.is-checked .el-switch__core {
border-color: $defaultColor;
background-color: $defaultColor;
}
.el-radio__input.is-checked .el-radio__inner {
border-color: $defaultColor;
background: #fff;
}
.el-radio__inner:after {
background-color: $defaultColor;
width: 10px;
height: 10px;
}
.el-radio__inner:hover {
border-color: $defaultColor;
}
.el-radio__input.is-checked+.el-radio__label {
color: $defaultColor;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-checkbox__inner:hover {
border-color: $defaultColor;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: $defaultColor;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
border-color: $defaultColor;
}
/* 标签*/
.el-tag {
color: $lightColor;
background: #E6E9FF;
border: 1px solid #5850FF;
}
.el-tag .el-tag__close {
color: $lightColor;
}
.el-tag .el-tag__close:hover {
background-color: $lightColor;
}
/* 面包屑*/
.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
font-weight: 400;
color: #999999;
}
.el-breadcrumb__inner a:hover,
.el-breadcrumb__inner.is-link:hover {
color: $defaultColor;
}
.el-breadcrumb__inner {
font-weight: 700;
color: #3A3A3A;
}
.el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
font-weight: 700;
color: #3A3A3A;
}
/* 树形 */
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
color: $defaultColor;
background-color: #F2F5FA;
height: 34px;
}
.el-tree-node__content {
height: 34px;
}
/* 表格 */
.el-table--medium .el-table__cell {
padding: 8.5px 0px;
}
.el-table .cell {
line-height: 36px;
}
.el-table .el-table__header tr {
background: #F4F6FC;
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
}
.el-table th.el-table__cell {
background: #F4F6FC;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
}
.el-table__body {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 14px;
}
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell {
background-color: #F4F3FF;
}
.el-table__body tr.current-row>td.el-table__cell {
background-color: #F4F3FF;
}
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
background: #fff;
}
.el-table__body tr.hover-row.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
.el-table__body tr.hover-row>td.el-table__cell {
background-color: #F4F3FF;
}
/* 分页 */
.el-pager li.active {
color: $defaultColor;
cursor: default;
}
.el-pager li:hover {
color: $defaultColor;
}
.el-pagination button:hover {
color: $defaultColor;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: $defaultColor;
}
.el-pagination__sizes .el-input .el-input__inner:hover {
border-color: $defaultColor;
}
.el-form-item__label {
font-size: 14px;
font-weight: 400;
color: #666666;
}
/* common.css */
/* img {
width: 100%;
height: 100%;
vertical-align: top;
} */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.scrm-textRight {
text-align: right;
}
.scrm-textCenter {
text-align: center;
}
.scrm-f12 {
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
}
.scrm-m20 {
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
}
.scrm-p20 {
padding: 20px;
}
.scrm-box-background {
background: #FFFFFF;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.10);
}
.scrm-h1-title {
font-size: 20px;
font-weight: 600;
color: #424242;
line-height: 20px;
}
.scrm-h2-title {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 28px;
}
\ No newline at end of file \ No newline at end of file
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const baseUrl = '/'
const resolve = dir => path.join(__dirname, dir)
module.exports = {
outputDir: `../dist/${packageName}`,
publicPath: node_env ? baseUrl : '/',
assetsDir: 'static',
configureWebpack: {
resolve: {
alias: {
'@': resolve('src'),
assets: resolve('src/assets'),
views: resolve('src/views'),
components: resolve('src/components')
}
},
output: {
library: `${packageName}-[name]`,
libraryTarget: 'umd', // 把微应用打包成 umd 库格式
jsonpFunction: `webpackJsonp_${packageName}`
}
},
devServer: {
hot: true,
disableHostCheck: true,
host: process.env.VUE_APP_HOST,
port: process.env.VUE_APP_PORT,
headers: {
'Access-Control-Allow-Origin': '*' // 主应用获取子应用时跨域响应头
}
},
chainWebpack: config => {
config.plugins.delete('preload') // TODO: need test
config.plugins.delete('prefetch') // TODO: need test
config.module
.rule('fonts')
.test(/.(ttf|otf|eot|woff|woff2)$/)
.use('url-loader')
.loader('url-loader')
.tap(options => {
options = {
// limit: 10000,
name: '/static/fonts/[name].[ext]'
}
return options
})
.end()
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!