已添加3个文件
已删除77个文件
已修改35个文件
已重命名1个文件
| | |
| | | <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> |
| | | <outputRelativeToContentRoot value="true" /> |
| | | <module name="lianghelihua" /> |
| | | <module name="dmttwebsite" /> |
| | | </profile> |
| | | </annotationProcessing> |
| | | <bytecodeTargetLevel> |
| | | <module name="dmttwebsite" target="1.8" /> |
| | | <module name="lianghelihua" target="1.8" /> |
| | | </bytecodeTargetLevel> |
| | | </component> |
| | | <component name="JavacSettings"> |
| | | <option name="ADDITIONAL_OPTIONS_OVERRIDE"> |
| | | <module name="dmttwebsite" options="-parameters" /> |
| | | <module name="lianghelihua" options="-parameters" /> |
| | | </option> |
| | | </component> |
| | |
| | | <project version="4"> |
| | | <component name="ProjectModuleManager"> |
| | | <modules> |
| | | <module fileurl="file://$PROJECT_DIR$/server/dmttwebsite.iml" filepath="$PROJECT_DIR$/server/dmttwebsite.iml" /> |
| | | <module fileurl="file://$PROJECT_DIR$/server/lianghelihua.iml" filepath="$PROJECT_DIR$/server/lianghelihua.iml" /> |
| | | <module fileurl="file://$PROJECT_DIR$/lianhelihua_sh.iml" filepath="$PROJECT_DIR$/lianhelihua_sh.iml" /> |
| | | </modules> |
| | | </component> |
| | | </project> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="$PROJECT_DIR$" vcs="Git" /> |
| | | <mapping directory="" vcs="Git" /> |
| | | </component> |
| | | </project> |
| | |
| | | VUE_APP_CONTEXT_PATH = '/lianhelihua_admin' |
| | | |
| | | # æ¥å£åç¼ |
| | | VUE_APP_API_PREFIX = '/lianhelihua_interface' |
| | | VUE_APP_API_PREFIX = '' |
| | |
| | | # å¼åç¯å¢é
ç½® |
| | | NODE_ENV = 'development' |
| | | VUE_APP_API_URL = 'http://localhost:10010' |
| | | VUE_APP_API_URL = 'http://192.168.0.129:10040' |
| | |
| | | "integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=", |
| | | "dev": true |
| | | }, |
| | | "ansi-styles": { |
| | | "version": "4.3.0", |
| | | "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", |
| | | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "color-convert": "^2.0.1" |
| | | } |
| | | }, |
| | | "chalk": { |
| | | "version": "4.1.2", |
| | | "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", |
| | | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "ansi-styles": "^4.1.0", |
| | | "supports-color": "^7.1.0" |
| | | } |
| | | }, |
| | | "color-convert": { |
| | | "version": "2.0.1", |
| | | "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", |
| | | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "color-name": "~1.1.4" |
| | | } |
| | | }, |
| | | "color-name": { |
| | | "version": "1.1.4", |
| | | "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", |
| | | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "has-flag": { |
| | | "version": "4.0.0", |
| | | "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", |
| | | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "loader-utils": { |
| | | "version": "2.0.4", |
| | | "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.4.tgz", |
| | | "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "big.js": "^5.2.2", |
| | | "emojis-list": "^3.0.0", |
| | | "json5": "^2.1.2" |
| | | } |
| | | }, |
| | | "ssri": { |
| | | "version": "8.0.1", |
| | | "resolved": "https://registry.npm.taobao.org/ssri/download/ssri-8.0.1.tgz?cache=0&sync_timestamp=1617826515595&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fssri%2Fdownload%2Fssri-8.0.1.tgz", |
| | |
| | | "dev": true, |
| | | "requires": { |
| | | "minipass": "^3.1.1" |
| | | } |
| | | }, |
| | | "supports-color": { |
| | | "version": "7.2.0", |
| | | "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", |
| | | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "has-flag": "^4.0.0" |
| | | } |
| | | }, |
| | | "vue-loader-v16": { |
| | | "version": "npm:vue-loader@16.8.3", |
| | | "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz", |
| | | "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "chalk": "^4.1.0", |
| | | "hash-sum": "^2.0.0", |
| | | "loader-utils": "^2.0.0" |
| | | } |
| | | } |
| | | } |
| | |
| | | "resolved": "https://registry.npm.taobao.org/hash-sum/download/hash-sum-1.0.2.tgz", |
| | | "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=", |
| | | "dev": true |
| | | } |
| | | } |
| | | }, |
| | | "vue-loader-v16": { |
| | | "version": "npm:vue-loader@16.8.3", |
| | | "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz", |
| | | "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "chalk": "^4.1.0", |
| | | "hash-sum": "^2.0.0", |
| | | "loader-utils": "^2.0.0" |
| | | }, |
| | | "dependencies": { |
| | | "ansi-styles": { |
| | | "version": "4.3.0", |
| | | "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", |
| | | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "color-convert": "^2.0.1" |
| | | } |
| | | }, |
| | | "chalk": { |
| | | "version": "4.1.2", |
| | | "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", |
| | | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "ansi-styles": "^4.1.0", |
| | | "supports-color": "^7.1.0" |
| | | } |
| | | }, |
| | | "color-convert": { |
| | | "version": "2.0.1", |
| | | "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", |
| | | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "color-name": "~1.1.4" |
| | | } |
| | | }, |
| | | "color-name": { |
| | | "version": "1.1.4", |
| | | "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", |
| | | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "has-flag": { |
| | | "version": "4.0.0", |
| | | "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", |
| | | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "loader-utils": { |
| | | "version": "2.0.4", |
| | | "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.4.tgz", |
| | | "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "big.js": "^5.2.2", |
| | | "emojis-list": "^3.0.0", |
| | | "json5": "^2.1.2" |
| | | } |
| | | }, |
| | | "supports-color": { |
| | | "version": "7.2.0", |
| | | "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", |
| | | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", |
| | | "dev": true, |
| | | "optional": true, |
| | | "requires": { |
| | | "has-flag": "^4.0.0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | <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 %>icon.png"> |
| | | <title>èåå©åäºä»¶ä¸æ¥ç³»ç»</title> |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
| | | <title>è±ç±³è·³è·³å®ç½åå°ç®¡ç</title> |
| | | </head> |
| | | <body> |
| | | <div id="app"></div> |
| | |
| | | import request from '@/utils/request' |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | |
| | | // è·åå¾çéªè¯ç |
| | | export function getCaptcha () { |
| | |
| | | |
| | | // æ ¹æ®å¯ç ç»å½ |
| | | export function loginByPassword (data, iv) { |
| | | if(iv){ |
| | | var actData = encryptData(data) |
| | | return request.post('/system/login', actData) |
| | | } else{ |
| | | return request.post('/system/login', data) |
| | | } |
| | | |
| | | return request.post('/system/login', data) |
| | | } |
| | | |
| | | // ç»åº |
| | |
| | | |
| | | // ä¿®æ¹å¯ç |
| | | export function updatePwd (data,iv) { |
| | | return request.post('/system/updatePwd', iv?encryptData(data):data) |
| | | return request.post('/system/updatePwd',data) |
| | | } |
| | | |
| | | // è·åå·²ç»å½çç¨æ·ä¿¡æ¯ |
| | |
| | | import request from '@/utils/request' |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | |
| | | import request from '@/utils/request' |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/job/page', data, { |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/job/log/page', data, { |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/loginLog/page', data, { |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchTree (data) { |
| | | return request.post('/system/menu/treeList', data) |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // è·åç³»ç»ä¿¡æ¯ |
| | | export function getSystemInfo () { |
| | | return request.get('/system/monitor/getSystemInfo') |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢æ å表 |
| | | export function fetchTree () { |
| | | return request.get('/system/permission/tree') |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/role/page', data) |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/job/snippet/page', data, { |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/traceLog/page', data, { |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/system/user/page', data) |
| | |
| | | <script> |
| | | import { memberSync } from '@/api/business/member' |
| | | |
| | | export default { |
| | | name: 'BaseOpera', |
| | | data () { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="calc(100% - 250px)" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="å建人ç¼ç " prop="creator"> |
| | | <el-input v-model="form.creator" placeholder="请è¾å
¥å建人ç¼ç " v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å建æ¶é´" prop="createDate"> |
| | | <el-date-picker v-model="form.createDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥å建æ¶é´"></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ°äººç¼ç " prop="editor"> |
| | | <el-input v-model="form.editor" placeholder="请è¾å
¥æ´æ°äººç¼ç " v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ°æ¶é´" prop="editDate"> |
| | | <el-date-picker v-model="form.editDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥æ´æ°æ¶é´"></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦å é¤0å¦ 1æ¯" prop="isdeleted"> |
| | | <el-input v-model="form.isdeleted" placeholder="请è¾å
¥æ¯å¦å é¤0å¦ 1æ¯" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="夿³¨" prop="remark"> |
| | | <el-input v-model="form.remark" placeholder="请è¾å
¥å¤æ³¨" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æ é¢" prop="title"> |
| | | <el-input v-model="form.title" placeholder="请è¾å
¥æ é¢" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" prop="describe"> |
| | | <el-input v-model="form.describe" placeholder="请è¾å
¥æè¿°" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å
容" prop="contnet"> |
| | | <el-input v-model="form.contnet" placeholder="请è¾å
¥å
容" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å°é¢å¾çå°å" prop="imgurl"> |
| | | <el-input v-model="form.imgurl" placeholder="请è¾å
¥å°é¢å¾çå°å" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å叿¶é´" prop="leleaseDate"> |
| | | <el-date-picker v-model="form.leleaseDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥å叿¶é´"></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="æåºç " prop="sortnum"> |
| | | <el-input v-model="form.sortnum" placeholder="请è¾å
¥æåºç " v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | export default { |
| | | name: 'OperaInformationWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | creator: '', |
| | | createDate: '', |
| | | editor: '', |
| | | editDate: '', |
| | | isdeleted: '', |
| | | remark: '', |
| | | title: '', |
| | | describe: '', |
| | | contnet: '', |
| | | imgurl: '', |
| | | leleaseDate: '', |
| | | sortnum: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/information', |
| | | 'field.id': 'id' |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | updatePwd({ |
| | | oldPwd: this.changePwdData.form.oldPwd, |
| | | newPwd: this.changePwdData.form.newPwd |
| | | },true) |
| | | },) |
| | | .then(() => { |
| | | this.visible.changePwd = false |
| | | setTimeout(() => { |
| | |
| | | <div class="menu" :class="{collapse: menuData.collapse}"> |
| | | <div class="logo"> |
| | | <div><img src="@/assets/logo.png"></div> |
| | | <h1 :class="{hidden: menuData.collapse}">èåå©åäºä»¶ä¸æ¥ç³»ç»</h1> |
| | | <h1 :class="{hidden: menuData.collapse}">è±ç±³è·³è·³å®ç½åå°ç®¡ç</h1> |
| | | </div> |
| | | <scrollbar> |
| | | <el-menu |
| | |
| | | <template> |
| | | <div :style="styleEditor"> |
| | | <Toolbar style="border-bottom: 1px solid #ccc" :editor="editor" :defaultConfig="toolbarConfig" :mode="mode" /> |
| | | <Editor style="min-height: 80px; overflow-y: hidden;" v-model="html" :defaultConfig="editorConfig" :mode="mode" |
| | | <Editor :style="style" class="declass" v-model="html" :defaultConfig="editorConfig" :mode="mode" |
| | | @onCreated="onCreated" @onChange="onChange" /> |
| | | </div> |
| | | </template> |
| | |
| | | default: '' |
| | | }, |
| | | styleEditor: '', |
| | | style:'', |
| | | readonly: false // æ¯å¦å¯ä»¥è¾å
¥ |
| | | }, |
| | | name: 'RichEditor', |
| | |
| | | MENU_CONF: { |
| | | // å¾çä¸ä¼ |
| | | uploadImage: { |
| | | server: process.env.VUE_APP_API_PREFIX + '/web/public/upload?folder=richeditor', |
| | | server: process.env.VUE_APP_API_PREFIX + '/web/public/uploadLocal?folder=', |
| | | fieldName: 'file', |
| | | // å个æä»¶çæå¤§ä½ç§¯éå¶ï¼é»è®¤ä¸º 2M |
| | | maxFileSize: 20 * 1024 * 1024, // 10M |
| | |
| | | }) |
| | | </script> |
| | | <style lang="scss"> |
| | | .declass{ |
| | | min-height: 80px; overflow-y: hidden; |
| | | } |
| | | </style>> |
| | |
| | | data() { |
| | | return { |
| | | loading: null, |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/web/public/upload' |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/web/public/uploadLocal' |
| | | } |
| | | }, |
| | | |
| | |
| | | img: null, |
| | | updateImg: false, |
| | | imageSrc: null, |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/web/public/upload' |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/visitsAdmin/cloudService/public/upload' |
| | | } |
| | | }, |
| | | |
| | |
| | | data() { |
| | | return { |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/web/public/uploadLocal', |
| | | |
| | | realList: [], |
| | | srcList: [], |
| | | tempIndex: 0, |
| | |
| | | }, |
| | | methods: { |
| | | beforeUpload(file) { |
| | | |
| | | this.$emit('beginUpload') |
| | | return true |
| | | }, |
| | |
| | | this.fileList.splice(tempIndex, 1) |
| | | this.srcList.splice(tempIndex, 1) |
| | | |
| | | }, |
| | | } |
| | | }, |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="box" style="height:100%;overflow-y: auto" > |
| | | <el-form :model="form" ref="form" label-width="140px"> |
| | | <div style="margin: 0px 0 50px 0"> |
| | | <span style="font-size: 15px; font-weight: bold">ã1ãç½ç«é
ç½®ï¼</span> |
| | | </div> |
| | | <el-form-item label="å
¬å¸å°å:" prop="address"> |
| | | <el-input |
| | | style="width: 50%" |
| | | type="textarea" |
| | | v-model="form.address" |
| | | placeholder="请è¾å
¥å
¬å¸å°å" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åºå®çµè¯:" prop="linkPhone"> |
| | | <el-input |
| | | style="width: 50%" |
| | | type="textarea" |
| | | v-model="form.linkPhone" |
| | | placeholder="请è¾å
¥åºå®çµè¯" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="èç³»ææºå·:" prop="linkMobile"> |
| | | <el-input |
| | | style="width: 50%" |
| | | type="textarea" |
| | | v-model="form.linkMobile" |
| | | placeholder="请è¾å
¥åºå®çµè¯" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="æå¡æ¶é´:" prop="serverTime"> |
| | | <el-input |
| | | style="width: 50%" |
| | | type="textarea" |
| | | v-model="form.serverTime" |
| | | placeholder="请è¾å
¥æå¡æ¶é´" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="夿¡å·:" prop="footWords"> |
| | | <el-input |
| | | style="width: 50%" |
| | | type="textarea" |
| | | v-model="form.footWords" |
| | | placeholder="请è¾å
¥å¤æ¡å·" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="äºç»´ç " prop="faceImgFull"> |
| | | <div class="upload_wrap"> |
| | | |
| | | <UploadAvatarImage :file="{ 'imgurlfull': form.footFullImgUrl, 'imgurl': form.footImgUrl }" :uploadData="uploadData" |
| | | @uploadSuccess="uploadAvatarSuccess" /> |
| | | </div> |
| | | </el-form-item> |
| | | <div style="margin:20px 0 50px 0"> |
| | | <span style="font-size: 15px; font-weight: bold">ã2ãè§£å³æ¹æ¡ï¼</span> |
| | | </div> |
| | | <div v-for="(item,index) in form.solveScheme" :key="'è§£å³æ¹æ¡'+index" style="display: flex;width: 100%"> |
| | | <div style="flex: 1"> |
| | | <el-form-item label="æ é¢:" :required="true"> |
| | | <el-input style="width: 100%" |
| | | type="text" |
| | | v-model="item.name" |
| | | placeholder="请è¾å
¥æ é¢" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="display: block;flex: 3"> |
| | | <el-form-item label="跳转å°å:" style="display:inline-block; width: 80%" > |
| | | <el-input |
| | | style="width: 100%" |
| | | type="text" |
| | | v-model="item.address" |
| | | placeholder="请è¾å
¥è·³è½¬å°å" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label-width="30px" style="display:inline-block;" > |
| | | <el-button type="danger" v-if="form.solveScheme && form.solveScheme.length >1" icon="el-icon-delete" @click="del1(index)">å é¤</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | <el-form-item style="display: block"> |
| | | <el-button type="primary" icon="el-icon-plus" @click="add1">æ·»å è§£å³æ¹æ¡</el-button> |
| | | </el-form-item> |
| | | <div style="margin: 100px 0 50px 0"> |
| | | <span style="font-size: 15px; font-weight: bold;">ã3ãæºæ
§ç³»ç»ï¼</span> |
| | | </div> |
| | | <div v-for="(item1,index) in form.wisdomSystem" :key="'æºæ
§ç³»ç»'+index" style="display: flex"> |
| | | <div style="flex: 1;"> |
| | | <el-form-item label="æ é¢:" :required="true" > |
| | | <el-input |
| | | style="width: 100%" |
| | | type="text" |
| | | v-model="item1.name" |
| | | placeholder="请è¾å
¥æ é¢" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="display: block;flex: 3"> |
| | | <el-form-item label="跳转å°å:" style="display:inline-block; width: 80%"> |
| | | <el-input |
| | | style="width: 100%" |
| | | type="text" |
| | | v-model="item1.address" |
| | | placeholder="请è¾å
¥è·³è½¬å°å" |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label-width="30px" style="display:inline-block;"> |
| | | <el-button type="danger" v-if="form.wisdomSystem && form.wisdomSystem.length >1" icon="el-icon-delete" @click="del2(index)">å é¤</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | <div> |
| | | </div> |
| | | </div> |
| | | <el-form-item style="display: block"> |
| | | <el-button type="primary" icon="el-icon-plus" @click="add2">æ·»å ææ¥ç³»ç»</el-button> |
| | | </el-form-item> |
| | | <el-form-item style="margin-top: 100px;width: 100%;text-align: center"> |
| | | <el-button type="primary" style="width: 300px" :loading="working" @click="submit">ä¿åé
置项</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFoodDataVO, updFoodData } from '@/api/business/carousel' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | export default { |
| | | name: '', |
| | | components: {UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | uploadData: { |
| | | folder: '' |
| | | }, |
| | | isUploading: false, |
| | | working: false, |
| | | form: { |
| | | address: null, |
| | | footImgUrl: 0, |
| | | footFullImgUrl: 0, |
| | | footWords: 0, |
| | | linkMobile: 0, |
| | | linkPhone: 0, |
| | | serverTime: '', |
| | | solveScheme: [{ name: '', address: '' }], |
| | | wisdomSystem: [{ name: '', address: '' }] |
| | | } |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | this.getData() |
| | | }, |
| | | |
| | | methods: { |
| | | del1 (index) { |
| | | if (this.form.solveScheme.length == 1) { |
| | | return |
| | | } |
| | | this.form.solveScheme.splice(index) |
| | | }, |
| | | add1 () { |
| | | this.form.solveScheme.push({ name: '', address: '' }) |
| | | }, |
| | | del2 (index) { |
| | | if (this.form.wisdomSystem.length == 1) { |
| | | return |
| | | } |
| | | this.form.wisdomSystem.splice(index) |
| | | }, |
| | | add2 () { |
| | | this.form.wisdomSystem.push({ name: '', address: '' }) |
| | | }, |
| | | getData () { |
| | | getFoodDataVO({}) |
| | | .then(res => { |
| | | if (res) { |
| | | this.form.address = res.address |
| | | this.form.footImgUrl = res.footImgUrl |
| | | this.form.footFullImgUrl = res.footFullImgUrl |
| | | this.form.footWords = res.footWords |
| | | this.form.linkMobile = res.linkMobile |
| | | this.form.linkPhone = res.linkPhone |
| | | this.form.serverTime = res.serverTime |
| | | this.form.solveScheme = res.solveScheme || [{ name: '', address: '' }] |
| | | this.form.wisdomSystem = res.wisdomSystem || [{ name: '', address: '' }] |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // ä¸ä¼ å¾ç |
| | | uploadAvatarSuccess(file) { |
| | | this.form.footImgUrl = file.imgurl |
| | | this.form.footFullImgUrl = file.imgurlfull |
| | | }, |
| | | submit () { |
| | | console.log(this.form) |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | // è°ç¨æ°å»ºæ¥å£ |
| | | this.isWorking = true |
| | | updFoodData(this.form).then(res => { |
| | | this.$message.success('ä¿åæå') |
| | | this.getData() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .el-container /deep/ .el-main{ |
| | | width: 100%; |
| | | overflow-y: auto !important ; |
| | | height: calc(100% - 94px); |
| | | } |
| | | /deep/ .el-main{ |
| | | width: 100%; |
| | | //height: 100%; |
| | | overflow-y: auto !important ; |
| | | height: calc(100% - 94px); |
| | | } |
| | | .box { |
| | | width: 100%; |
| | | padding: 30px; |
| | | box-sizing: border-box; |
| | | background: #ffffff; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:information:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="主é®" prop="id"> |
| | | <el-input v-model="searchForm.id" placeholder="请è¾å
¥ä¸»é®" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å建人ç¼ç " prop="creator"> |
| | | <el-input v-model="searchForm.creator" placeholder="请è¾å
¥å建人ç¼ç " @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å建æ¶é´" prop="createDate"> |
| | | <el-date-picker v-model="searchForm.createDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥å建æ¶é´" @change="search"/> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ°äººç¼ç " prop="editor"> |
| | | <el-input v-model="searchForm.editor" placeholder="请è¾å
¥æ´æ°äººç¼ç " @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ°æ¶é´" prop="editDate"> |
| | | <el-date-picker v-model="searchForm.editDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥æ´æ°æ¶é´" @change="search"/> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦å é¤0å¦ 1æ¯" prop="isdeleted"> |
| | | <el-input v-model="searchForm.isdeleted" placeholder="请è¾å
¥æ¯å¦å é¤0å¦ 1æ¯" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="夿³¨" prop="remark"> |
| | | <el-input v-model="searchForm.remark" placeholder="请è¾å
¥å¤æ³¨" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ é¢" prop="title"> |
| | | <el-input v-model="searchForm.title" placeholder="请è¾å
¥æ é¢" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" prop="describe"> |
| | | <el-input v-model="searchForm.describe" placeholder="请è¾å
¥æè¿°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å
容" prop="contnet"> |
| | | <el-input v-model="searchForm.contnet" placeholder="请è¾å
¥å
容" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å°é¢å¾çå°å" prop="imgurl"> |
| | | <el-input v-model="searchForm.imgurl" placeholder="请è¾å
¥å°é¢å¾çå°å" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å叿¶é´" prop="releaseDate"> |
| | | <el-date-picker v-model="searchForm.releaseDate" value-format="yyyy-MM-dd" placeholder="请è¾å
¥å叿¶é´" @change="search"/> |
| | | </el-form-item> |
| | | <el-form-item label="æåºç " prop="sortnum"> |
| | | <el-input v-model="searchForm.sortnum" placeholder="请è¾å
¥æåºç " @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" v-permissions="['business:information:exportExcel']" @click="exportExcel">导åº</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:information:create', 'business:information:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaInformationWindow.open('æ°å»ºå¨æå¨è¯¢')" icon="el-icon-plus" v-permissions="['business:information:create']">æ°å»º</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:information:delete']">å é¤</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="id" label="主é®" min-width="100px"></el-table-column> |
| | | <el-table-column prop="creator" label="å建人ç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="å建æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="editor" label="æ´æ°äººç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="editDate" label="æ´æ°æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="isdeleted" label="æ¯å¦å é¤0å¦ 1æ¯" min-width="100px"></el-table-column> |
| | | <el-table-column prop="remark" label="夿³¨" min-width="100px"></el-table-column> |
| | | <el-table-column prop="title" label="æ é¢" min-width="100px"></el-table-column> |
| | | <el-table-column prop="describe" label="æè¿°" min-width="100px"></el-table-column> |
| | | <el-table-column prop="contnet" label="å
容" min-width="100px"></el-table-column> |
| | | <el-table-column prop="imgurl" label="å°é¢å¾çå°å" min-width="100px"></el-table-column> |
| | | <el-table-column prop="releaseDate" label="å叿¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="sortnum" label="æåºç " min-width="100px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:information:update', 'business:information:delete'])" |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaInformationWindow.open('ç¼è¾å¨æå¨è¯¢', row)" icon="el-icon-edit" v-permissions="['business:information:update']">ç¼è¾</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:information:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaInformationWindow ref="operaInformationWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaInformationWindow from '@/components/business/OperaInformationWindow' |
| | | export default { |
| | | name: 'Information', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInformationWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | id: '', |
| | | creator: '', |
| | | createDate: '', |
| | | editor: '', |
| | | editDate: '', |
| | | isdeleted: '', |
| | | remark: '', |
| | | title: '', |
| | | describe: '', |
| | | contnet: '', |
| | | imgurl: '', |
| | | releaseDate: '', |
| | | sortnum: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: '卿å¨è¯¢', |
| | | api: '/business/information', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <div class="home_header"> |
| | | <div class="mb10 fs17">ä¸å好ï¼{{ userInfo.realname }}</div> |
| | | <div class="fs13"> |
| | | ä»å¤©æ¯ {{ nowDate }} {{ nowWeek }}ï¼æ¬¢è¿è®¿é®èåå©åäºä»¶ä¸æ¥ç³»ç»ç®¡çå¹³å° |
| | | </div> |
| | | </div> |
| | | <div class="main"> |
| | | <div class="app_content"> |
| | | <div class="static_card"> |
| | | <div class="card"> |
| | | <div class="header" > |
| | | <div class="left"> |
| | | <div class="fs15">SHE仿¥ææ¥æ°é</div> |
| | | <div class="num">{{ headerData.todaySheNum ||0 }}</div> |
| | | </div> |
| | | <!-- <img src="@/assets/images/bg_a.png" alt="" />--> |
| | | </div> |
| | | <div class="content"> |
| | | <div>æªè§£å³ï¼{{ 0}}</div> |
| | | <div>已解å³ï¼{{ headerData.sheNum || 0}}</div> |
| | | <div>æ»å·¥åéï¼{{ headerData.sheNum || 0}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="card"> |
| | | <div class="header"> |
| | | <div class="left"> |
| | | <div class="fs15">è·ç»æ»ä»æ¥å·¥åæ°é</div> |
| | | <div class="num">{{ headerData.todayDbhNum ||0 }}</div> |
| | | </div> |
| | | <!-- |
| | | <img src="@/assets/icons/home_icon2.png" alt="" /> |
| | | --> |
| | | </div> |
| | | <div class="content"> |
| | | <div>æªè§£å³ï¼{{ headerData.dbhYesNum || 0}}</div> |
| | | <div>已解å³ï¼{{ headerData.dbhNoNum || 0}}</div> |
| | | <div>æ»å·¥åéï¼{{ headerData.dbhNum || 0}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="card"> |
| | | <div class="header"> |
| | | <div class="left"> |
| | | <div class="fs15">DCA仿¥ä¸æ¥æ¬¡æ°</div> |
| | | <div class="num">{{ headerData.todayDcaNum ||0 }}</div> |
| | | </div> |
| | | <!-- <img src="@/assets/icons/home_icon3.png" alt="" />--> |
| | | </div> |
| | | <div class="content"> |
| | | <div>符å项ï¼{{ headerData.dcaYesNum || 0}}</div> |
| | | <div>ä¸ç¬¦å项ï¼{{ headerData.dcaNoNum || 0}}</div> |
| | | <div>æ»ä¸æ¥æ¬¡æ°ï¼{{ headerData.dcaNum || 0}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="card"> |
| | | <div class="header"> |
| | | <div class="left"> |
| | | <div class="fs15">DCA仿¥å·¥åæ°é</div> |
| | | <div class="num">{{ headerData.todayDcaChildNum ||0 }}</div> |
| | | </div> |
| | | <!-- <img src="@/assets/images/bg_a.png" alt="" />--> |
| | | </div> |
| | | <div class="content"> |
| | | <div>æªè§£å³ï¼{{ headerData.dcaChildYesNum || 0}}</div> |
| | | <div>已解å³ï¼{{ headerData.dcaChildNoNum || 0}}</div> |
| | | <div>æ»å·¥åéï¼{{ headerData.dcaChildNum || 0}}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="static_wrap"> |
| | | <div class="df mb50" > |
| | | <div class="wrap static1"> |
| | | <div class="header" style="text-align: center"> |
| | | <div class="home_title" style="text-align: center;width: 80%">åç±»åå·¥åå æ¯ç»è®¡ï¼{{searchForm.timeName}}ï¼</div> |
| | | <div style="text-align: right;width: 150px;font-size: 12px;height: 25px"> |
| | | <el-form :model="searchForm" label-width="100px" inline > |
| | | <el-select v-model="searchForm.timeType" :popper-append-to-body="true" clearable placeholder="æ¶é´èå´" @change="reloadDataByType()"> |
| | | <el-option value="0" label="æ¬å¨"/> |
| | | <el-option value="1" label="æ¬æ"/> |
| | | <el-option value="2" label="æ¬å£åº¦"/> |
| | | <el-option value="3" label="æ¬å¹´"/> |
| | | </el-select> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="echart" style="height: 400px" > |
| | | <div id="circleChart0"></div> |
| | | <div id="circleChart1"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="df mb50" > |
| | | <div class="wrap static1"> |
| | | <div class="header"> |
| | | <div class="home_title">1.SHEäºä»¶ä¸æ¥</div> |
| | | </div> |
| | | <div class="echart" > |
| | | <div id="echart0"></div> |
| | | <div id="echart01"></div> |
| | | </div> |
| | | </div> |
| | | <div class="wrap static2"> |
| | | <div class="header"> |
| | | <div class="home_title">2.æ·±åº¦ç¬¦åæ§å®¡æ¥DCA䏿¥è®°å½</div> |
| | | </div> |
| | | <div class="echart" > |
| | | <div id="echart1"> </div> |
| | | <div id="echart11"> </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrap static3"> |
| | | <div class="header"> |
| | | <div class="home_title">3.æ·±åº¦ç¬¦åæ§å®¡æ¥DCAäºä»¶å·¥å</div> |
| | | </div> |
| | | <div class="echart" > |
| | | <div id="echart2"> </div> |
| | | <div id="echart21"> </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrap static4"> |
| | | <div class="header"> |
| | | <div class="home_title">4.è·ç»æ»é£é©ä¸æ¥</div> |
| | | </div> |
| | | <div class="echart" > |
| | | <div id="echart3"> </div> |
| | | <div id="echart31"> </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | ä»å¤©æ¯ {{ nowDate }} {{ nowWeek }}ï¼æ¬¢è¿è®¿é®è±ç±³è·³è·³å®ç½åå°ç®¡çå¹³å° |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import dayjs from 'dayjs' |
| | | import * as echarts from 'echarts' |
| | | import { weeks } from '@/utils/config' |
| | | import { getIndexData, getWorkOrderData } from '@/api/business/workorder' |
| | | const colors = ['#52a4f7', '#7678f7', '#5fc6d5'] |
| | | export default { |
| | | components: { |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | this.initData() |
| | | }, |
| | | mounted () { |
| | | this.updateDate() |
| | | // this.initData() |
| | | }, |
| | | methods: { |
| | | initData () { |
| | | this.updateDate() |
| | | this.getWorkHead() |
| | | this.getWorkBody0() |
| | | this.getWorkBody1() |
| | | this.getWorkBody2() |
| | | this.getWorkBody3() |
| | | // this.getWorkBody() |
| | | }, |
| | | reloadDataByType () { |
| | | getIndexData({timeType: this.searchForm.timeType }).then(res => { |
| | | if (this.searchForm.timeType == '0') { |
| | | this.searchForm.timeName = 'æ¬å¨' |
| | | } else if (this.searchForm.timeType =='1') { |
| | | this.searchForm.timeName = 'æ¬æ' |
| | | } else if (this.searchForm.timeType =='2') { |
| | | this.searchForm.timeName = 'æ¬å£åº¦' |
| | | } else if (this.searchForm.timeType == '3') { |
| | | this.searchForm.timeName = 'æ¬å¹´' |
| | | } else { |
| | | this.searchForm.timeName = 'å
¨é¨' |
| | | } |
| | | this.headerData1 =res || [] |
| | | this.initAllData() |
| | | }) |
| | | }, |
| | | getWorkBody0 () { |
| | | getWorkOrderData({ queryType: 0, orderType: 0 }).then(res => { |
| | | this.staticData0 = res || [] |
| | | this.initEchart0() |
| | | }) |
| | | getWorkOrderData({ queryType: 1, orderType: 0 }).then(res => { |
| | | this.staticData01 = res || [] |
| | | this.initEchart01() |
| | | }) |
| | | }, |
| | | getWorkBody1 () { |
| | | getWorkOrderData({ queryType: 0, orderType: 1 }).then(res => { |
| | | this.staticData1 = res || [] |
| | | this.initEchart1() |
| | | }) |
| | | getWorkOrderData({ queryType: 1, orderType: 1 }).then(res => { |
| | | this.staticData11 = res || [] |
| | | this.initEchart11() |
| | | }) |
| | | }, |
| | | getWorkBody2 () { |
| | | getWorkOrderData({ queryType: 0, orderType: 2 }).then(res => { |
| | | this.staticData2 = res || [] |
| | | this.initEchart2() |
| | | }) |
| | | getWorkOrderData({ queryType: 1, orderType: 2 }).then(res => { |
| | | this.staticData21 = res || [] |
| | | this.initEchart21() |
| | | }) |
| | | }, |
| | | getWorkBody3 () { |
| | | getWorkOrderData({ queryType: 0, orderType: 3 }).then(res => { |
| | | this.staticData3 = res || [] |
| | | this.initEchart3() |
| | | }) |
| | | getWorkOrderData({ queryType: 1, orderType: 3 }).then(res => { |
| | | this.staticData31 = res || [] |
| | | this.initEchart31() |
| | | }) |
| | | }, |
| | | getWorkHead () { |
| | | getIndexData({ }).then(res => { |
| | | this.headerData = res || {} |
| | | this.headerData1 = res || {} |
| | | this.initAllData() |
| | | }) |
| | | }, |
| | | initAllData(){ |
| | | var cdata = [] |
| | | cdata.push({ name: 'è·ç»æ»äºä»¶', value: this.headerData1.dbhNum || 0 }) |
| | | cdata.push({ name: 'DCAäºä»¶', value: this.headerData1.dcaChildNum || 0 }) |
| | | cdata.push({ name: 'SHEäºä»¶', value: this.headerData1.sheNum || 0 }) |
| | | this.initEchartCircleDo('circleChart0', 'åç±»åäºä»¶å·¥å䏿¥ç»è®¡', '', cdata) |
| | | var xdata = ['SHEäºä»¶', 'è·ç»æ»äºä»¶', 'DCAäºä»¶'] |
| | | var ydata = [] |
| | | ydata.push({ name: '已解å³', stack: 'cateNum', type: 'bar', unit: '项', color: '#f07e6f', data: [this.headerData1.sheNum || 0, this.headerData1.dbhYesNum || 0, this.headerData1.dcaChildYesNum || 0] }) |
| | | ydata.push({ name: 'æªè§£å³', stack: 'cateNum', type: 'bar', unit: '项', color: '#8383ff', data: [0, this.headerData1.dbhNoNum || 0, this.headerData1.dcaChildNoNum || 0] }) |
| | | ydata.push({ name: 'æ»åé', type: 'bar', unit: '次', color: '#29aeff', data: [this.headerData1.sheNum || 0, this.headerData1.dbhNum || 0, this.headerData1.dcaChildNum || 0] }) |
| | | this.initEchartDataDo('åç±»åäºä»¶ç¶æç»è®¡', 'circleChart1', xdata, ydata) |
| | | }, |
| | | updateDate () { |
| | | this.nowDate = dayjs().format('YYYYå¹´MæDæ¥') |
| | | this.nowWeek = weeks[new Date().getDay()] |
| | | }, |
| | | initEchart0 () { |
| | | var ydata = [{ name: '工忰é', type: 'line', unit: 'å', color: '#29aeff', data: this.staticData0.map(i => i.total) }] |
| | | this.initEchartDataDo('æåº¦ç»è®¡', 'echart0', this.staticData0.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart01 () { |
| | | var ydata = [{ name: '工忰é', type: 'bar', unit: 'å', color: '#29aeff', data: this.staticData01.map(i => i.total) }] |
| | | this.initEchartDataDo('å£åº¦ç»è®¡', 'echart01', this.staticData01.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart1 () { |
| | | var ydata = [] |
| | | ydata.push({ name: '符å项', type: 'line', unit: '项', color: '#f07e6f', data: this.staticData1.map(i => i.dcaYesTotal) }) |
| | | ydata.push({ name: 'ä¸ç¬¦å项', type: 'line', unit: '项', color: '#8383ff', data: this.staticData1.map(i => i.dcaNoTotal) }) |
| | | ydata.push({ name: '䏿¥æ¬¡æ°', type: 'bar', unit: '次', color: '#29aeff', data: this.staticData1.map(i => i.total) }) |
| | | this.initEchartDataDo('æåº¦ç»è®¡', 'echart1', this.staticData1.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart11 () { |
| | | var ydata = [] |
| | | ydata.push({ name: '符å项', type: 'line', unit: '项', color: '#f07e6f', data: this.staticData11.map(i => i.dcaYesTotal) }) |
| | | ydata.push({ name: 'ä¸ç¬¦å项', type: 'line', unit: '项', color: '#8383ff', data: this.staticData11.map(i => i.dcaNoTotal) }) |
| | | ydata.push({ name: '䏿¥æ¬¡æ°', type: 'bar', unit: '次', color: '#29aeff', data: this.staticData11.map(i => i.total) }) |
| | | this.initEchartDataDo('å£åº¦ç»è®¡', 'echart11', this.staticData11.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart2 () { |
| | | var ydata = [] |
| | | ydata.push({ name: 'å·¥ç¨å¸å
³éåé', type: 'line', unit: 'å', color: '#f0ee6f', data: this.staticData2.map(i => i.gcsTotal) }) |
| | | ydata.push({ name: 'WTSå
³éåé', type: 'line', unit: 'å', color: '#29aeff', data: this.staticData2.map(i => i.wtsTotal) }) |
| | | ydata.push({ name: 'SHEå
³éåé', type: 'line', unit: 'å', color: '#e75314', data: this.staticData2.map(i => i.sheTotal) }) |
| | | ydata.push({ name: 'æªè§£å³åé', type: 'line', unit: 'å', color: '#8383ff', data: this.staticData2.map(i => i.unCloseTotal) }) |
| | | ydata.push({ name: '工忻é', type: 'line', unit: 'å', color: '#30d3de', data: this.staticData2.map(i => i.total) }) |
| | | this.initEchartDataDo('æåº¦ç»è®¡', 'echart2', this.staticData2.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart21 () { |
| | | var ydata = [] |
| | | ydata.push({ name: 'å·¥ç¨å¸å
³éåé', type: 'bar', unit: 'å', color: '#f0ee6f', data: this.staticData21.map(i => i.gcsTotal) }) |
| | | ydata.push({ name: 'WTSå
³éåé', type: 'bar', unit: 'å', color: '#29aeff', data: this.staticData21.map(i => i.wtsTotal) }) |
| | | ydata.push({ name: 'SHEå
³éåé', type: 'bar', unit: 'å', color: '#e75314', data: this.staticData21.map(i => i.sheTotal) }) |
| | | ydata.push({ name: 'æªè§£å³åé', type: 'bar', unit: 'å', color: '#8383ff', data: this.staticData21.map(i => i.unCloseTotal) }) |
| | | ydata.push({ name: '工忻é', type: 'line', unit: 'å', color: '#30d3de', data: this.staticData21.map(i => i.total) }) |
| | | this.initEchartDataDo('å£åº¦ç»è®¡', 'echart21', this.staticData21.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart3 () { |
| | | var ydata = [] |
| | | ydata.push({ name: 'å·¥ç¨å¸å
³éåé', type: 'line', unit: 'å', color: '#6feef0', data: this.staticData3.map(i => i.gcsTotal) }) |
| | | ydata.push({ name: 'WTSå
³éåé', type: 'line', unit: 'å', color: 'rgba(217,4,34,0.83)', data: this.staticData3.map(i => i.wtsTotal) }) |
| | | ydata.push({ name: 'SHEå
³éåé', type: 'line', unit: 'å', color: '#e75314', data: this.staticData3.map(i => i.sheTotal) }) |
| | | ydata.push({ name: 'æªè§£å³åé', type: 'line', unit: 'å', color: '#8383ff', data: this.staticData3.map(i => i.unCloseTotal) }) |
| | | ydata.push({ name: '工忻é', type: 'line', unit: 'å', color: '#30d3de', data: this.staticData3.map(i => i.total) }) |
| | | this.initEchartDataDo('æåº¦ç»è®¡', 'echart3', this.staticData3.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchart31 () { |
| | | var ydata = [] |
| | | ydata.push({ name: 'å·¥ç¨å¸å
³éåé', type: 'bar', unit: 'å', color: '#6feef0', data: this.staticData31.map(i => i.gcsTotal) }) |
| | | ydata.push({ name: 'WTSå
³éåé', type: 'bar', unit: 'å', color: 'rgba(217,4,34,0.83)', data: this.staticData31.map(i => i.wtsTotal) }) |
| | | ydata.push({ name: 'SHEå
³éåé', type: 'bar', unit: 'å', color: '#e75314', data: this.staticData31.map(i => i.sheTotal) }) |
| | | ydata.push({ name: 'æªè§£å³åé', type: 'bar', unit: 'å', color: '#8383ff', data: this.staticData31.map(i => i.unCloseTotal) }) |
| | | ydata.push({ name: '工忻é', type: 'line', unit: 'å', color: '#30d3de', data: this.staticData31.map(i => i.total) }) |
| | | this.initEchartDataDo('å£åº¦ç»è®¡', 'echart31', this.staticData31.map(i => i.dateStr), ydata) |
| | | }, |
| | | initEchartDataDo (title, id, xdata, ydata) { |
| | | const myChart = echarts.init(document.getElementById(id)) |
| | | myChart.setOption({ |
| | | title: { |
| | | text: (title || ''), |
| | | textStyle: { |
| | | fontSize: 12, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'bold' |
| | | } |
| | | }, |
| | | tooltip: { |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: 'shadow' |
| | | }, |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'normal' |
| | | } |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | left: 'right', |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'normal' |
| | | } |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | | // boundaryGap: false, |
| | | data: xdata |
| | | }, |
| | | yAxis: { |
| | | type: 'value', |
| | | name: '', |
| | | min: 0, |
| | | axisLabel: { |
| | | formatter: function (value) { |
| | | return Number.isInteger(value) ? value : '' |
| | | } |
| | | }, |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'normal' |
| | | }, |
| | | nameTextStyle: { |
| | | padding: [0, 0, 4, -30] // å个æ°ååå«ä¸ºä¸å³ä¸å·¦ä¸åä½ç½®è·ç¦» |
| | | }, |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | // è¿éè¾å
¥çº¿æ¡çæ ·å¼ |
| | | color: 'rgba(255,255,255,0.14)' |
| | | } |
| | | } |
| | | }, |
| | | grid: { |
| | | top: '16%', |
| | | left: '2%', |
| | | right: '8%', |
| | | bottom: '2%', |
| | | containLabel: true |
| | | }, |
| | | series: this.seriesInitData(ydata) |
| | | }) |
| | | window.addEventListener('resize', function () { // æ§è¡ |
| | | myChart.resize() |
| | | }) |
| | | }, |
| | | seriesInitData (ydata) { |
| | | var array = [] |
| | | for (let i = 0; i < ydata.length; i++) { |
| | | array.push({ |
| | | data: ydata[i].data, |
| | | name: ydata[i].name, |
| | | stack: ydata[i].stack || '', |
| | | type: ydata[i].type || 'line', |
| | | areaStyle: { |
| | | normal: { |
| | | color: { |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: ydata[i].color || '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(255,255,255,.2)' // 100% å¤çé¢è² |
| | | }], |
| | | globalCoord: false // 缺ç为 false |
| | | } |
| | | } |
| | | }, |
| | | lineStyle: { // çº¿æ¡æ ·å¼ |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, color: ydata[i].color || '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, color: ydata[i].color || '#207FF7' // 100% å¤çé¢è² |
| | | }] |
| | | }, |
| | | width: 2 // 线æ¡ç²ç» |
| | | }, |
| | | symbol: 'circle', |
| | | symbolSize: 10, |
| | | itemStyle: { |
| | | borderWidth: 1, |
| | | borderColor: '#fff', |
| | | color: ydata[i].color || '#207FF7' |
| | | }, |
| | | smooth: false |
| | | }) |
| | | } |
| | | |
| | | return array |
| | | }, |
| | | initEchartCircleDo (id, title, subTitle, data) { |
| | | var option = { |
| | | title: { |
| | | text: '', |
| | | subtext: '', |
| | | left: 'center', |
| | | bottom: 'bottom', |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'bold' |
| | | } |
| | | }, |
| | | tooltip: { |
| | | trigger: 'item' |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | left: 'left', |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'normal' |
| | | } |
| | | }, |
| | | series: [ |
| | | { |
| | | name: title || '', |
| | | type: 'pie', |
| | | radius: '50%', |
| | | data: data, |
| | | label: { |
| | | show: true, |
| | | formatter: '{b}:{d}%', |
| | | textStyle: { |
| | | fontSize: 10, |
| | | fontStyle: 'normal', |
| | | fontWeight: 'normal' |
| | | } |
| | | }, |
| | | labelLine: { |
| | | show: true |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | shadowBlur: 10, |
| | | shadowOffsetX: 0, |
| | | shadowColor: 'rgba(0, 0, 0, 0.5)' |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | const myChart = echarts.init(document.getElementById(id)) |
| | | myChart.setOption(option) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="wrap"> |
| | | <div class="introduce"> |
| | | <h2>èåå©åäºä»¶ä¸æ¥ç³»ç»</h2> |
| | | <h2>è±ç±³è·³è·³å®ç½åå°ç®¡ç</h2> |
| | | <h3></h3> |
| | | </div> |
| | | <div class="login"> |
| | |
| | | } |
| | | module.exports = { |
| | | publicPath: process.env.VUE_APP_CONTEXT_PATH, |
| | | outputDir: 'lianhelihua_admin', |
| | | outputDir: 'admin', |
| | | assetsDir: 'static', |
| | | lintOnSave: false, |
| | | devServer: { |
| | |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <groupId>com.doumee</groupId> |
| | | <artifactId>official_website</artifactId> |
| | | <artifactId>dmttwebsite</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | <packaging>jar</packaging> |
| | | <packaging>war</packaging> |
| | | <name>official_website</name> |
| | | <description></description> |
| | | |
| | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | <!-- <exclusions> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-tomcat</artifactId> |
| | | </exclusion> |
| | | </exclusions> --> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-tomcat</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | <!-- Redis --> |
| | | <dependency> |
| | |
| | | <dependency> |
| | | <groupId>mysql</groupId> |
| | | <artifactId>mysql-connector-java</artifactId> |
| | | <scope>runtime</scope> |
| | | <version>8.0.19</version> |
| | | <!--<scope>system</scope>--> |
| | | </dependency> |
| | | <!-- <dependency> |
| | | <groupId>mysql</groupId> |
| | | <artifactId>mysql-connector-java</artifactId> |
| | | <version>8.0.19</version> |
| | | <scope>system</scope> |
| | | <systemPath>${project.basedir}/doc/mysql-connector-java-8.0.19.jar</systemPath> |
| | | </dependency>--> |
| | | <!-- swagger --> |
| | | <!--<dependency> |
| | | <groupId>io.springfox</groupId> |
| | |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <finalName>official_website</finalName> |
| | | <finalName>dmttwebsite</finalName> |
| | | <resources> |
| | | <resource> |
| | | <directory>src/main/resources</directory> |
| | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.builder.SpringApplicationBuilder; |
| | | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | |
| | |
| | | @SpringBootApplication |
| | | @MapperScan("com.doumee.dao") |
| | | @EnableAsync |
| | | public class OfficialWebsiteApplication { |
| | | public class OfficialWebsiteApplication extends SpringBootServletInitializer { |
| | | public static void main(String[] args) { |
| | | ApplicationContext context = SpringApplication.run(OfficialWebsiteApplication.class); |
| | | context.getEnvironment(); |
| | | } |
| | | |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { |
| | | return builder.sources(OfficialWebsiteApplication.class) ; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * åå§åJobs |
| | | */ |
| | | @PostConstruct |
| | | // @PostConstruct |
| | | public void initJobs () { |
| | | log.debug("Initializing jobs"); |
| | | // ä¿®å¤JOB |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: test |
| | | active: dev |
| | | # JSONè¿åé
ç½® |
| | | jackson: |
| | | # é»è®¤æ¶åº |