刘翔宇-旅管家 2 years ago
parent b2ca9e61eb
commit 73c602c2c0

@ -42,7 +42,7 @@
"@vue/cli-service": "4.4.4", "@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29", "@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1", "autoprefixer": "9.5.1",
"babel-eslint": "10.1.0", "babel-eslint": "^8.2.2",
"babel-jest": "23.6.0", "babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3", "babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2", "chalk": "2.4.2",

@ -4,7 +4,7 @@
<!-- 最顶部导航栏--> <!-- 最顶部导航栏-->
<div class="top-head-bar"> <div class="top-head-bar">
<div class="top-head-bar__logo"> <div class="top-head-bar__logo">
<img style="height: 20px" src="../assets/logo_test.png" alt="logo" /> <img style="height: 20px" src="../assets/logo.png" alt="logo" />
</div> </div>
<ul> <ul>

@ -743,11 +743,11 @@ export default {
prop: "year", prop: "year",
width: 105, width: 105,
}, },
{ // {
label: "相关科室", // label: "",
prop: "plan_department.name", // prop: "plan_department.name",
width: 110, // width: 110,
}, // },
{ {
label: "年初预算金额(元)", label: "年初预算金额(元)",
prop: "money", prop: "money",
@ -788,6 +788,7 @@ export default {
year: "", year: "",
type: "", type: "",
department: "", department: "",
is_auth:0
}, },
departments: [], // departments: [], //
@ -931,6 +932,7 @@ export default {
plan_department_id: this.select.department, plan_department_id: this.select.department,
is_tree: this.isTree ? 1 : "", is_tree: this.isTree ? 1 : "",
top_pid: !this.isTree ? 1 : "", top_pid: !this.isTree ? 1 : "",
is_auth:this.select.is_auth
}).then((res) => { }).then((res) => {
if (this.isTree) this.treeData = res.list; if (this.isTree) this.treeData = res.list;
else { else {

@ -1210,7 +1210,7 @@ export default {
plan_name: "请选择预算计划", plan_name: "请选择预算计划",
start_plan_price: undefined, start_plan_price: undefined,
end_plan_price: undefined, end_plan_price: undefined,
is_myself: 0, is_myself: 0
}, },
selectCopy: { selectCopy: {
keyword: "", keyword: "",

@ -90,7 +90,7 @@
labelLine: { labelLine: {
show: true show: true
}, },
center: ['50%', '45%'], center: ['50%', '50%'],
data: chartdata.yArr, data: chartdata.yArr,
animationDuration animationDuration
}] }]

@ -448,17 +448,25 @@ export default {
this.getStatistic(); this.getStatistic();
}, },
async getStatistic() { async getStatistic() {
const res = await statistic(this.select); const res = await statistic(this.select);
console.log(res); console.log(res);
this.statistic = res; this.statistic = res;
let m2 = res.progress.money_total_2;
let m1 = res.progress.money_total_1;
var user_m = res.progress.use_money_total;
var m3=m1-user_m
if (m2 != 0) {
m3=m2-user_m;
} else if (m1 != 0) {
m3=m1-user_m;
}
this.rptChartData = { this.rptChartData = {
xArr: ["预算合计金额", "预算已执行金额"], xArr: ["预算未执行金额", "预算已执行金额"],
radiusArr: "50%", radiusArr: "50%",
yArr: [ yArr: [
{ {
value: res.progress.money_total_1, value: m3,
name: "预算合计金额", name: "预算未执行金额",
label: { label: {
show: false, //labellabel show: false, //labellabel
}, },
@ -468,7 +476,7 @@ export default {
}, },
}, },
}, },
{ value: res.progress.use_money_total, name: "预算已执行金额" }, { value: user_m, name: "预算已执行金额" },
], ],
}; };
}, },

@ -316,8 +316,10 @@ export default {
{ {
prop: "name", prop: "name",
label: "项目名称", label: "项目名称",
width: 190, width: 290,
fixed: "left", fixed: "left",
align:"left"
}, },
{ {
label: this.$route.path.split("_")[1] == 2 ? "报销类型" : "支出类型", label: this.$route.path.split("_")[1] == 2 ? "报销类型" : "支出类型",

@ -26,7 +26,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/admin/', publicPath: '/admin/',
outputDir: './dist', outputDir: '/Users/liuxiangyu/Work/h-huanjingjiance/app/hjjc-workbench-service/public/admin',
assetsDir: 'static', assetsDir: 'static',
lintOnSave: false, lintOnSave: false,
productionSourceMap: false, productionSourceMap: false,

Loading…
Cancel
Save