Commit f927d090 by 叶富雄

CODE_XZUNIT

parent 28b98ac3
......@@ -17,6 +17,22 @@ const menuLayouts = [
component: () => import("@/views/mxgl/mxclydy/addMxclydy.vue")
},
{
path: "/ywgxlfx",
name: "ywgxlfx",
meta: {
title: '业务贡献率分析'
},
component: () => import("@/views/mxgl/mxclydy/ywgxlfx.vue")
},
{
path: "/fzjcgxlfx",
name: "fzjcgxlfx",
meta: {
title: '辅助决策贡献率分析'
},
component: () => import("@/views/mxgl/mxclydy/fzjcgxlfx.vue")
},
{
path: "/queryMxgl",
name: "queryMxgl",
meta: {
......
......@@ -403,8 +403,26 @@ export default {
newAuth: "M04",
index: "wjpj",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children:[
{
id: "ywgxlfx",
label: "业务贡献率分析",
newAuth: "M04",
index: "ywgxlfx",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "fzjcgxlfx",
label: "辅助决策贡献率分析",
newAuth: "M04",
index: "fzjcgxlfx",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
]
},
],
rules: {
mxmc: [{ required: true, message: "请输入模型名称", trigger: "blur" }],
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
>
<template #btnGroup="scope">
<span class="hbyp" @click="toXq(scope.scope)">查看详情</span>
<!-- <span class="hbyp" @click="toWjpj(scope.scope)">微决评价</span> -->
</template>
</right-content>
<el-dialog title="详情信息" :visible.sync="dialogFormVisible" width="60%">
<div style="margin: 20px;height: 374px;overflow-y: scroll;" v-loading="loading">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
v-for="(item, index) in tableData1"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
<template slot-scope="scope">
<span v-if="item.prop == 'gllx' && scope.row.gllx == '1'">
模型管理
</span>
<span v-else-if="item.prop == 'gllx' && scope.row.gllx == '2'">
算法管理
</span>
<span v-else-if="item.prop == 'pflx' && scope.row.pflx == '1'">
业务贡献率分析
</span>
<span v-else-if="item.prop == 'pflx' && scope.row.pflx == '2'">
辅助决策贡献率分析
</span>
<span v-else class="none" v-html="scope.row[item.prop]"></span>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="page"
:page-sizes="[5, 10, 20, 50]"
:page-size="limit"
layout="sizes,prev, pager, next"
:total="tableDataLength"
>
</el-pagination>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { pageTbYwWjpjckxq } from "@/api/fzjc.js";
export default {
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
loading: false,
tableData: [],
dwss: "",
page: 1,
limit: 5,
pflx: 1,
tableDataLength: 0,
tableData1: [
{
label: "模型名称",
prop: "sfmc",
width: "200",
},
{
label: "单位",
width: "300",
prop: "dwStr",
},
{
label: "平均分",
width: "200",
prop: "pjf",
},
{
label: "管理类型",
width: "200",
prop: "gllx",
},
{
label: "评分类型",
width: "200",
prop: "pflx",
},
{
label: "工作问题分数",
width: "200",
prop: "fxgzwtfs",
},
{
label: "证据问题分数",
width: "200",
prop: "fxzjwtfs",
},
{
label: "引导工作方向分数",
width: "200",
prop: "ydgzfxfs",
},
{
label: "减少审批环节分数",
width: "200",
prop: "jssphjfs",
},
{
label: "登记人姓名",
width: "200",
prop: "xxdjryXm",
},
{
label: "登记人身份号码",
width: "200",
prop: "xxczryGmsfhm",
},
],
mxmc: "",
dw: "",
pjForm: {},
value: 0,
dialogFormVisible: false,
colors: ["#99A9BF", "#F7BA2A", "#FF9900"],
dialogFormVisiblePj: false,
formLabelWidth: "130px",
gxlfxList: [
{
name: "发现工作问题:",
value: 0,
},
{
name: "发现证据问题:",
value: 0,
},
{
name: "引导工作方向:",
value: 0,
},
{
name: "减少审批环节:",
value: 0,
},
],
header: "微决评价完善中心",
pageBs: "queryWjpj",
cxFormData: {
limit: 10,
page: 1,
mxmc: "",
dw: "",
pflx:'2'
},
cxQueryField: [
{
name: "模型名称",
id: "mxmc",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "单位",
id: "dw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
],
cxDefaultFormThead: [
{
label: "模型/算法名称",
prop: "sfmc",
},
{
label: "平均分",
prop: "pjf",
},
{
label: "登记人姓名",
prop: "xxdjryXm",
},
{
label: "登记人身份号码",
prop: "xxdjryGmsfhm",
},
{
label: "操作人姓名",
prop: "xxczryXm",
},
{
label: "操作人身份号码",
prop: "xxczryGmsfhm",
},
{
label: "操作单位公安机关",
prop: "xxczdwGajgmc",
},
{
label: "登记人联系电话",
prop: "xxdjryLxdh",
},
{
label: "登记单位公安机关",
prop: "xxdjdwGajgmc",
},
],
cxUrl: "/wjpjwszx/pageTbYwGrwjpj",
Menu: [
// zylx:"asj",
{
id: "queryWjpj",
label: "微决评价完善中心",
index: "queryWjpj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
handleSizeChange(val) {
this.limit = val;
this.getZbzzList();
},
handleCurrentChange(val) {
this.page = val;
this.getZbzzList();
},
// 详情
toXq(scope) {
this.dialogFormVisible = true;
this.dwss = scope.row.mxmc;
this.getZbzzList();
},
getZbzzList() {
this.loading = true;
pageTbYwWjpjckxq({
mxmc: this.dwss,
page: this.page,
limit: this.limit,
pflx: this.pflx,
}).then((res) => {
this.tableData = res.data.rows;
this.loading = false;
this.tableDataLength = res.data.total;
});
},
// 微决评价
toWjpj(scope) {
debugger;
this.dialogFormVisiblePj = true;
this.mxmc = scope.row.mxmc;
this.dw = scope.row.dw;
},
submitPj(scope) {
console.log("res", this.gxlfxList);
this.dialogFormVisiblePj = false;
},
},
watch: {
dialogFormVisiblePj(newVal, oldVal) {
if (!newVal) {
Object.assign(this.$data.gxlfxList, this.$options.data().gxlfxList);
this.value = 0;
}
},
},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
::v-deep .diolog {
.el-input {
width: 100% !important;
.el-input__inner {
width: 100% !important;
}
}
.el-button {
display: inline-block;
}
}
.el-rate {
margin-top: 10px;
}
/deep/.el-select.el-select--mini {
width: 100px;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
>
<template #btnGroup="scope">
<span class="hbyp" @click="toXq(scope.scope)">查看详情</span>
<!-- <span class="hbyp" @click="toWjpj(scope.scope)">微决评价</span> -->
</template>
</right-content>
<el-dialog title="详情信息" :visible.sync="dialogFormVisible" width="60%">
<div style="margin: 20px;height: 374px;overflow-y: scroll;" v-loading="loading">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
v-for="(item, index) in tableData1"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
<template slot-scope="scope">
<span v-if="item.prop == 'gllx' && scope.row.gllx == '1'">
模型管理
</span>
<span v-else-if="item.prop == 'gllx' && scope.row.gllx == '2'">
算法管理
</span>
<span v-else-if="item.prop == 'pflx' && scope.row.pflx == '1'">
业务贡献率分析
</span>
<span v-else-if="item.prop == 'pflx' && scope.row.pflx == '2'">
辅助决策贡献率分析
</span>
<span v-else class="none" v-html="scope.row[item.prop]"></span>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="page"
:page-sizes="[5, 10, 20, 50]"
:page-size="limit"
layout="sizes,prev, pager, next"
:total="tableDataLength"
>
</el-pagination>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { pageTbYwWjpjckxq } from "@/api/fzjc.js";
export default {
name: "ywgxlfx"
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
loading: false,
tableData: [],
dwss: "",
page: 1,
limit: 5,
pflx: 1,
tableDataLength: 0,
tableData1: [
{
label: "模型名称",
prop: "sfmc",
width: "200",
},
{
label: "单位",
width: "300",
prop: "dwStr",
},
{
label: "平均分",
width: "200",
prop: "pjf",
},
{
label: "管理类型",
width: "200",
prop: "gllx",
},
{
label: "评分类型",
width: "200",
prop: "pflx",
},
{
label: "工作问题分数",
width: "200",
prop: "fxgzwtfs",
},
{
label: "证据问题分数",
width: "200",
prop: "fxzjwtfs",
},
{
label: "引导工作方向分数",
width: "200",
prop: "ydgzfxfs",
},
{
label: "减少审批环节分数",
width: "200",
prop: "jssphjfs",
},
{
label: "登记人姓名",
width: "200",
prop: "xxdjryXm",
},
{
label: "登记人身份号码",
width: "200",
prop: "xxczryGmsfhm",
},
],
mxmc: "",
dw: "",
pjForm: {},
value: 0,
dialogFormVisible: false,
colors: ["#99A9BF", "#F7BA2A", "#FF9900"],
dialogFormVisiblePj: false,
formLabelWidth: "130px",
gxlfxList: [
{
name: "发现工作问题:",
value: 0,
},
{
name: "发现证据问题:",
value: 0,
},
{
name: "引导工作方向:",
value: 0,
},
{
name: "减少审批环节:",
value: 0,
},
],
header: "微决评价完善中心",
pageBs: "queryWjpj",
cxFormData: {
limit: 10,
page: 1,
mxmc: "",
dw: "",
pflx:'1'
},
cxQueryField: [
{
name: "模型名称",
id: "mxmc",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "单位",
id: "dw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
],
cxDefaultFormThead: [
{
label: "模型/算法名称",
prop: "sfmc",
},
{
label: "平均分",
prop: "pjf",
},
{
label: "登记人姓名",
prop: "xxdjryXm",
},
{
label: "登记人身份号码",
prop: "xxdjryGmsfhm",
},
{
label: "操作人姓名",
prop: "xxczryXm",
},
{
label: "操作人身份号码",
prop: "xxczryGmsfhm",
},
{
label: "操作单位公安机关",
prop: "xxczdwGajgmc",
},
{
label: "登记人联系电话",
prop: "xxdjryLxdh",
},
{
label: "登记单位公安机关",
prop: "xxdjdwGajgmc",
},
],
cxUrl: "/wjpjwszx/pageTbYwGrwjpj",
Menu: [
// zylx:"asj",
{
id: "queryWjpj",
label: "微决评价完善中心",
index: "queryWjpj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
handleSizeChange(val) {
this.limit = val;
this.getZbzzList();
},
handleCurrentChange(val) {
this.page = val;
this.getZbzzList();
},
// 详情
toXq(scope) {
this.dialogFormVisible = true;
this.dwss = scope.row.mxmc;
this.getZbzzList();
},
getZbzzList() {
this.loading = true;
pageTbYwWjpjckxq({
mxmc: this.dwss,
page: this.page,
limit: this.limit,
pflx: this.pflx,
}).then((res) => {
this.tableData = res.data.rows;
this.loading = false;
this.tableDataLength = res.data.total;
});
},
// 微决评价
toWjpj(scope) {
debugger;
this.dialogFormVisiblePj = true;
this.mxmc = scope.row.mxmc;
this.dw = scope.row.dw;
},
submitPj(scope) {
console.log("res", this.gxlfxList);
this.dialogFormVisiblePj = false;
},
},
watch: {
dialogFormVisiblePj(newVal, oldVal) {
if (!newVal) {
Object.assign(this.$data.gxlfxList, this.$options.data().gxlfxList);
this.value = 0;
}
},
},
};
</script>
<style scoped>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
::v-deep .diolog {
.el-input {
width: 100% !important;
.el-input__inner {
width: 100% !important;
}
}
.el-button {
display: inline-block;
}
}
.el-rate {
margin-top: 10px;
}
/deep/.el-select.el-select--mini {
width: 100px;
}
</style>
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