Commit 3f23d956 authored by dragondean@qq.com's avatar dragondean@qq.com

暂存

parent 60c70ba9
import request from '@/utils/request'
// 查询公告列表
export function panelData() {
return request({
url: '/system/panel/panelData',
method: 'get'
})
}
\ No newline at end of file
<template> <template>
<el-row class="" :gutter="10"> <div class="flex" :gutter="10">
<el-col :span="10"> <div class="flex-1">
<el-card> <el-card>
<div slot="header" class="header"> <div slot="header" class="header">
<el-select v-model="queryParams.typeId" :placeholder="$t('选择类型')" style="width:120px" clearable> <el-select v-model="queryParams.typeId" :placeholder="$t('选择类型')" style="width:120px" clearable>
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
</div> </div>
</div> </div>
</el-card> </el-card>
</el-col> </div>
<el-col :span="10"> <div class="flex-1 ml-10">
<el-card> <el-card style="height:100%">
<div slot="header" class="header"> <div slot="header" class="header">
{{$t('已选产品')}} {{$t('已选产品')}}
</div> </div>
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
</div> </div>
</div> </div>
</el-card> </el-card>
</el-col> </div>
</el-row> </div>
</template> </template>
<script> <script>
import { getProductPage } from '@/api/ecw/product' import { getProductPage } from '@/api/ecw/product'
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
/> />
</div> </div>
<el-form label-position="left" label-width="100px"> <el-form label-position="left" label-width="100px">
<el-form-item label="抄送"> <el-form-item :label="$t('抄送')">
<el-select v-model="valueSync" multiple placeholder="请选择抄送人" style="width:100%"> <el-select v-model="valueSync" multiple :placeholder="$t('请选择抄送人')" style="width:100%">
<el-option <el-option
v-for="item in users" v-for="item in users"
:key="item.id" :key="item.id"
......
import router from '@/router'
window.router = router
const state = { const state = {
visitedViews: [], visitedViews: [],
cachedViews: [] cachedViews: []
...@@ -172,6 +174,25 @@ const actions = { ...@@ -172,6 +174,25 @@ const actions = {
commit('DEL_RIGHT_VIEWS', view) commit('DEL_RIGHT_VIEWS', view)
resolve([...state.visitedViews]) resolve([...state.visitedViews])
}) })
},
delCurrentView({ dispatch }){
// console.log('delCurrentView', router.history.current)
const view = router.history.current
return dispatch('delView', view).then(({visitedViews}) => {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
router.push(latestView.fullPath)
} else {
// now the default is to redirect to the home page if there is no tags-view,
// you can adjust it according to your needs.
if (view.name === 'Dashboard') {
// to reload home page
router.replace({ path: '/redirect' + view.fullPath })
} else {
router.push('/')
}
}
})
} }
} }
......
<template> <template>
<el-row :gutter="40" class="panel-group"> <el-row :gutter="40" class="panel-group" v-if="data">
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleSetLineChartData('newVisitis')"> <div class="card-panel" @click="handleSetLineChartData('newVisitis')">
<div class="card-panel-icon-wrapper icon-people"> <div class="card-panel-icon-wrapper icon-people">
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
访客 {{$t('注册会员数')}}
</div> </div>
<count-to :start-val="0" :end-val="102400" :duration="2600" class="card-panel-num" /> <count-to :start-val="0" :end-val="data.memberCount" :duration="2600" class="card-panel-num" />
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -20,22 +20,22 @@ ...@@ -20,22 +20,22 @@
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
消息 {{$t('未读消息数')}}
</div> </div>
<count-to :start-val="0" :end-val="81212" :duration="3000" class="card-panel-num" /> <count-to :start-val="0" :end-val="data.messageCount" :duration="3000" class="card-panel-num" />
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleSetLineChartData('purchases')"> <div class="card-panel" @click="handleSetLineChartData('purchases')">
<div class="card-panel-icon-wrapper icon-money"> <div class="card-panel-icon-wrapper icon-money">
<svg-icon icon-class="money" class-name="card-panel-icon" /> <svg-icon icon-class="date" class-name="card-panel-icon" />
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
金额 {{$t('待办事项')}}
</div> </div>
<count-to :start-val="0" :end-val="9280" :duration="3200" class="card-panel-num" /> <count-to :start-val="0" :end-val="data.todoCount" :duration="3200" class="card-panel-num" />
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
订单 {{$t('我的订单')}}
</div> </div>
<count-to :start-val="0" :end-val="13600" :duration="3600" class="card-panel-num" /> <count-to :start-val="0" :end-val="data.orderCount" :duration="3600" class="card-panel-num" />
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -57,15 +57,25 @@ ...@@ -57,15 +57,25 @@
<script> <script>
import CountTo from 'vue-count-to' import CountTo from 'vue-count-to'
import {panelData} from '@/api/system/pannel'
export default { export default {
components: { components: {
CountTo CountTo
}, },
data(){
return {
data: null
}
},
methods: { methods: {
handleSetLineChartData(type) { handleSetLineChartData(type) {
this.$emit('handleSetLineChartData', type) this.$emit('handleSetLineChartData', type)
} }
},
created(){
panelData().then(res => {
this.data = res.data
})
} }
} }
</script> </script>
......
...@@ -464,7 +464,7 @@ ...@@ -464,7 +464,7 @@
<el-form-item label=""> <el-form-item label="">
<el-button type="primary" @click="submitForm">{{$t('确定')}}</el-button> <el-button type="primary" @click="submitForm">{{$t('确定')}}</el-button>
<el-button @click="$router.back()">{{$t('取消')}}</el-button> <el-button @click="$store.dispatch('tagsView/delCurrentView')">{{$t('取消')}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<el-table-column prop="price" :label="$t('价格')" align="center"> <el-table-column prop="price" :label="$t('价格')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{$t('运费')}}:{{ getCurrencySymbol(scope.row.transportPriceUnit) + scope.row.transportPrice}}&nbsp; {{$t('运费')}}:{{ getCurrencySymbol(scope.row.transportPriceUnit) + scope.row.transportPrice}}&nbsp;
{{ getCurrencyTitle(scope.row.transportPriceUnit) + '/' + getUnitTitle(scope.row.transportVolumeUnit)}} {{ getCurrencyTitle(scope.row.transportPriceUnit) + '/' + getUnitTitle(scope.row.transportVolumeUnit)}}
<br /> <br />
{{$t('清关费')}}:{{ getCurrencySymbol(scope.row.clearancePriceUnit) + scope.row.clearancePrice}}&nbsp; {{$t('清关费')}}:{{ getCurrencySymbol(scope.row.clearancePriceUnit) + scope.row.clearancePrice}}&nbsp;
......
...@@ -54,6 +54,7 @@ import RaddarChart from './dashboard/RaddarChart' ...@@ -54,6 +54,7 @@ import RaddarChart from './dashboard/RaddarChart'
import PieChart from './dashboard/PieChart' import PieChart from './dashboard/PieChart'
import BarChart from './dashboard/BarChart' import BarChart from './dashboard/BarChart'
import Ueditor from '@/components/Ueditor' import Ueditor from '@/components/Ueditor'
import { import {
getProcessDefinitionBpmnXMLByKey getProcessDefinitionBpmnXMLByKey
} from "@/api/bpm/definition"; } from "@/api/bpm/definition";
...@@ -98,7 +99,7 @@ export default { ...@@ -98,7 +99,7 @@ export default {
prefix: "activiti" prefix: "activiti"
}, },
html: "默认内容", html: "默认内容",
watchHtml: '' watchHtml: '',
} }
}, },
watch:{ watch:{
...@@ -108,6 +109,7 @@ export default { ...@@ -108,6 +109,7 @@ export default {
}, },
created() { created() {
this.handlerBpm(); this.handlerBpm();
}, },
methods: { methods: {
handleSetLineChartData(type) { handleSetLineChartData(type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment