处理问题

This commit is contained in:
TS-QD1 2023-07-26 18:30:59 +08:00
parent 00c7eb6a7d
commit 27402b350a
5 changed files with 40 additions and 9 deletions

View File

@ -23,10 +23,12 @@
</template>
<n-grid :cols="2" :x-gap="10">
<n-grid-item>
<n-select placeholder="请选择年份" :value="year.value" :options="year.options" @update:value="onYearUpdate"/>
<n-select placeholder="请选择年份" :value="year.value" :options="year.options"
@update:value="onYearUpdate" />
</n-grid-item>
<n-grid-item>
<n-select placeholder="请选择月份" :value="month.value" :options="month.options" @update:value="onMonthUpdate"/>
<n-select placeholder="请选择月份" :value="month.value" :options="month.options"
@update:value="onMonthUpdate" />
</n-grid-item>
</n-grid>
<template #footer>
@ -56,6 +58,27 @@ const message = useMessage();
const dialog = useDialog();
const router = useRouter();
const route = useRoute();
const getUserInfo = () => {
const url = window.location.href;
var dz_url = url.split('#')[0];
var cs = dz_url.split('?')[1];
var cs_arr = cs.split('&');
var cs = {};
for (var i = 0; i < cs_arr.length; i++) {
cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1]
}
console.log(cs);
$axios.get('https://www.yjhlcity.com/ysbservice/app/authing/ysblogin/getUserInfo', {
headers: {
token: cs.token
}
}).then(resp => {
console.log(resp.data);
}).catch(resp => {
})
}
// getUserInfo();
const isKpiUpdateModalShow = ref(false);
const isKpiUpdatProgressModalShow = ref(false);
const kpiUpdateProgress = ref(0);
@ -106,7 +129,7 @@ const checkProcess = () => {
}).then(({ data }) => {
let percent = parseInt(data.data);
kpiUpdateProgress.value = percent;
if(percent >= 100) {
if (percent >= 100) {
clearInterval(checkProcessInterval);
checkProcessInterval = null;
isKpiUpdatProgressModalShow.value = false;
@ -144,6 +167,6 @@ const onUpdateConfirm = () => {
onNegativeClick: () => {
}
});
}
</script>

View File

@ -156,6 +156,13 @@ export default {
keyName: 'baseScore',
width: 60
},
{
align: 'center',
title: '处理量',
key: 'N',
keyName: 'baseScore',
width: 60
},
{
align: 'center',
title: '案件调度',
@ -164,7 +171,7 @@ export default {
children: [
{
align: 'center',
title: '数量',
title: '数量超过24小时',
key: 'E',
keyName: 'dispatchCaseCount',
width: 60

View File

@ -466,7 +466,7 @@ export default {
let tableDatas = [];
vueSelf.table.data.forEach(item => {
item.M = vueSelf.computeM(item);
item.O = (item.M * item.N / 100).toFixed(2);
item.O = (item.M * item.N / 100 + item.F).toFixed(2);
tableDatas.push({...item});
})
vueSelf.dialog.warning({

View File

@ -423,7 +423,7 @@ export default {
let tableDatas = [];
vueSelf.table.data.forEach(item => {
item.N = vueSelf.computeN(item);
item.P = (item.N * item.O / 100).toFixed(2);
item.P = item.N * item.O / 100 + item.F;
tableDatas.push({...item});
})
vueSelf.dialog.warning({

View File

@ -1,5 +1,5 @@
import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import './style.css'
import App from './App.vue'
import axios from 'axios';
@ -12,7 +12,8 @@ import Znbm from './components/table/Znbm.vue';
// 路由
const router = createRouter({
history: createWebHashHistory(),
// history: createWebHashHistory(),
history: createWebHistory(),
routes: [
{ name: 'wgy', path: '/', component: Wgy },
{ name: 'ddy', path: '/ddy', component: Ddy },