处理问题
This commit is contained in:
parent
5c628f81a9
commit
03b3f420b0
@ -373,7 +373,7 @@ export default {
|
|||||||
onClick() {
|
onClick() {
|
||||||
vueSelf.onOverScoreClick(row, index);
|
vueSelf.onOverScoreClick(row, index);
|
||||||
}
|
}
|
||||||
}, row.U);
|
}, row.Q);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -919,6 +919,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computeAE(row) {
|
computeAE(row) {
|
||||||
let result = row.C + row.H - row.J + row.L - row.M - row.N - row.O - row.P + row.Q - row.S - row.T - row.U - row.V + row.W + row.X + row.Y - row.Z + row.AA + row.AB + row.AC - row.AD;
|
let result = row.C + row.H - row.J + row.L - row.M - row.N - row.O - row.P + row.Q - row.S - row.T - row.U - row.V + row.W + row.X + row.Y - row.Z + row.AA + row.AB + row.AC - row.AD;
|
||||||
|
console.log(row);
|
||||||
result = Math.min(result, 100);
|
result = Math.min(result, 100);
|
||||||
return result < 0 ? 0 : result.toFixed(2);
|
return result < 0 ? 0 : result.toFixed(2);
|
||||||
},
|
},
|
||||||
@ -1048,6 +1049,7 @@ export default {
|
|||||||
vueSelf.$axios.get(`api/kpi/khxz/list-wgy`, {
|
vueSelf.$axios.get(`api/kpi/khxz/list-wgy`, {
|
||||||
params: vueSelf.getQuery()
|
params: vueSelf.getQuery()
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
|
let totalGridCount = 0;
|
||||||
data.forEach((item, index) => {
|
data.forEach((item, index) => {
|
||||||
item.A = index + 1;
|
item.A = index + 1;
|
||||||
item.F = item.E === 0 ? 0 : (item.D / item.E).toFixed(2);
|
item.F = item.E === 0 ? 0 : (item.D / item.E).toFixed(2);
|
||||||
@ -1055,8 +1057,10 @@ export default {
|
|||||||
item.J = Math.min(item.F * item.I, item.D);
|
item.J = Math.min(item.F * item.I, item.D);
|
||||||
item.L = (item.K > 10 ? 10 : item.K) * 0.5;
|
item.L = (item.K > 10 ? 10 : item.K) * 0.5;
|
||||||
item.S = item.R * 0.2;
|
item.S = item.R * 0.2;
|
||||||
|
totalGridCount += item.gridCount;
|
||||||
})
|
})
|
||||||
this.table.data = data;
|
this.table.data = data;
|
||||||
|
console.log(`totalGridCount: ${totalGridCount}`)
|
||||||
}).catch(({ data }) => {
|
}).catch(({ data }) => {
|
||||||
vueSelf.message.error(data.msg);
|
vueSelf.message.error(data.msg);
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
@ -12,8 +12,8 @@ import Znbm from './components/table/Znbm.vue';
|
|||||||
|
|
||||||
// 路由
|
// 路由
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
// history: createWebHashHistory(),
|
history: createWebHashHistory(),
|
||||||
history: createWebHistory(),
|
// history: createWebHistory(),
|
||||||
routes: [
|
routes: [
|
||||||
{ name: 'wgy', path: '/', component: Wgy },
|
{ name: 'wgy', path: '/', component: Wgy },
|
||||||
{ name: 'ddy', path: '/ddy', component: Ddy },
|
{ name: 'ddy', path: '/ddy', component: Ddy },
|
||||||
@ -26,8 +26,8 @@ const router = createRouter({
|
|||||||
// axios
|
// axios
|
||||||
const createAxios = {
|
const createAxios = {
|
||||||
install(app, options) {
|
install(app, options) {
|
||||||
axios.defaults.baseURL = 'http://127.0.0.1:8087/bigdata';
|
// axios.defaults.baseURL = 'http://127.0.0.1:8087/bigdata';
|
||||||
// axios.defaults.baseURL = '/bigdata';
|
axios.defaults.baseURL = '/bigdata';
|
||||||
axios.defaults.timeout = 20000;
|
axios.defaults.timeout = 20000;
|
||||||
app.config.globalProperties.$axios = axios;
|
app.config.globalProperties.$axios = axios;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user