Commit ab6b4a6f by 叶富雄

新模块

parent e4a7acfe
...@@ -39,3 +39,7 @@ export const pageTbYwWjpjckxq = params => ...@@ -39,3 +39,7 @@ export const pageTbYwWjpjckxq = params =>
// 21.4.3 功能运行分析 // 21.4.3 功能运行分析
export const getGnyxFxjg = params => export const getGnyxFxjg = params =>
post(`${base.alyIP}/gnXnpg/getGnyxFxjg`, params); post(`${base.alyIP}/gnXnpg/getGnyxFxjg`, params);
//查询阶段性微决评价
export const queryJdswjpj = params =>
post(`${base.alyIP}/wjpjwszx/queryJdswjpj`, params);
...@@ -7,8 +7,14 @@ ...@@ -7,8 +7,14 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
:tableOperation="true"
@selectionChange="selectionChange"
ref="rightContent" ref="rightContent"
> >
<template #listOperation="scope">
<el-button size="small" @click="DBFX(scope.scope,'阶段性对比分析')">阶段性对比分析</el-button>
<el-button size="small" @click="DBFX(scope.scope,'单位对比分析')">单位对比分析</el-button>
</template>
<template #btnGroup="scope"> <template #btnGroup="scope">
<span class="hbyp" @click="toXq(scope.scope)">查看详情</span> <span class="hbyp" @click="toXq(scope.scope)">查看详情</span>
<!-- <span class="hbyp" @click="toWjpj(scope.scope)">微决评价</span> --> <!-- <span class="hbyp" @click="toWjpj(scope.scope)">微决评价</span> -->
...@@ -57,12 +63,27 @@ ...@@ -57,12 +63,27 @@
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :title="DBFXSHOWTITLE" :visible.sync="DBFXSHOW" width="60%">
<div class="block_fzjcgxlfx" style="width: 400px;margin: 20px;display: flex;justify-content: space-between">
<el-date-picker
v-model="value1"
type="daterange"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
<el-button size="mini" style="margin-left: 20px;" @click="getDate">查询</el-button>
</div>
<div v-if="DBFXSHOW" id="charts" ref="charts" ></div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { pageTbYwWjpjckxq } from "@/api/fzjc.js"; import { pageTbYwWjpjckxq,queryJdswjpj } from "@/api/fzjc.js";
export default { export default {
name: "queryHbyp", name: "queryHbyp",
components: { components: {
...@@ -70,7 +91,9 @@ ...@@ -70,7 +91,9 @@
}, },
data() { data() {
return { return {
selectedId:[],
loading: false, loading: false,
value1: [],
tableData: [], tableData: [],
dwss: "", dwss: "",
page: 1, page: 1,
...@@ -139,6 +162,8 @@ ...@@ -139,6 +162,8 @@
pjForm: {}, pjForm: {},
value: 0, value: 0,
dialogFormVisible: false, dialogFormVisible: false,
DBFXSHOW: false,
DBFXSHOWTITLE: '',
colors: ["#99A9BF", "#F7BA2A", "#FF9900"], colors: ["#99A9BF", "#F7BA2A", "#FF9900"],
dialogFormVisiblePj: false, dialogFormVisiblePj: false,
formLabelWidth: "130px", formLabelWidth: "130px",
...@@ -161,33 +186,23 @@ ...@@ -161,33 +186,23 @@
}, },
], ],
header: "微决评价完善中心", header: "微决评价完善中心",
pageBs: "queryWjpj", pageBs: "fzjcgxlfx",
cxFormData: { cxFormData: {
limit: 10, limit: 10,
page: 1, page: 1,
mxmc: "", sfmc: "",
dw: "", dw: "",
pflx:'2' pflx:'2'
}, },
cxQueryField: [ cxQueryField: [
{ {
name: "模型名称", name: "模型名称",
id: "mxmc", id: "sfmc",
type: "text", type: "text",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "3", col: "3",
}, },
{
name: "单位",
id: "dw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
...@@ -252,6 +267,63 @@ ...@@ -252,6 +267,63 @@
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
}, },
methods: { methods: {
getDate(){
this.DBFX(1,this.DBFXSHOWTITLE )
console.log(this.value1);
},
selectionChange(row){
this.selectedId = [];
row.forEach((item) => {
this.selectedId.push(item.xxzjbh);
});
},
DBFX(i,t){
this.DBFXSHOWTITLE =t;
this.DBFXSHOW = true;
let fxFlag='';
if(t==='阶段性对比分析'){fxFlag=1} else {fxFlag=2};
let kssj,jssj,xxzjbhList;
if(this.value1.length){kssj=this.value1[0];jssj=this.value1[1];}
if(this.selectedId.length){xxzjbhList = this.selectedId.toString()}
queryJdswjpj({
pflx:this.cxFormData.pflx,
fxFlag:fxFlag,kssj,jssj,xxzjbhList})
.then(res=>{
if( res.code===200){
let rows = res.data.rows;
let jdPjf = [];
let mxmc = [];
rows.find((v)=>{
jdPjf.push(v['jdPjf']);
mxmc.push(v['mxmc'])
})
let myChart = this.$echarts.init(this.$refs.charts);
let option = {
xAxis: {
type: 'category',
data: mxmc
},
yAxis: {
type: 'value'
},
series: [
{
data: jdPjf,
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}
]
};
myChart.setOption(option)
}
})
},
handleSizeChange(val) { handleSizeChange(val) {
this.limit = val; this.limit = val;
this.getZbzzList(); this.getZbzzList();
...@@ -263,13 +335,13 @@ ...@@ -263,13 +335,13 @@
// 详情 // 详情
toXq(scope) { toXq(scope) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.dwss = scope.row.mxmc; this.dwss = scope.row.sfmc;
this.getZbzzList(); this.getZbzzList();
}, },
getZbzzList() { getZbzzList() {
this.loading = true; this.loading = true;
pageTbYwWjpjckxq({ pageTbYwWjpjckxq({
mxmc: this.dwss, sfmc: this.dwss,
page: this.page, page: this.page,
limit: this.limit, limit: this.limit,
pflx: this.pflx, pflx: this.pflx,
...@@ -347,6 +419,11 @@ ...@@ -347,6 +419,11 @@
.Content .el-date-editor--daterange.el-input__inner { .Content .el-date-editor--daterange.el-input__inner {
width: 100% !important; width: 100% !important;
} }
.rightContent .el-input__icon, #formCommonPage .el-input__icon, .el-input__suffix-inner{
display: flex;
flex-direction: column;
justify-content: center;
}
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.el-form-item { .el-form-item {
...@@ -385,4 +462,9 @@ ...@@ -385,4 +462,9 @@
/deep/.el-select.el-select--mini { /deep/.el-select.el-select--mini {
width: 100px; width: 100px;
} }
#charts {
background-color: #fff;
width: 100%;
height: 400px;
}
</style> </style>
...@@ -172,22 +172,12 @@ ...@@ -172,22 +172,12 @@
cxQueryField: [ cxQueryField: [
{ {
name: "模型名称", name: "模型名称",
id: "mxmc", id: "sfmc",
type: "text", type: "text",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "3", col: "3",
}, }
{
name: "单位",
id: "dw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
......
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