更新
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<!-- 搜索 -->
|
<!-- 搜索 -->
|
||||||
<div ref="searchBox" class="mt10">
|
<div ref="searchBox" class="mt10">
|
||||||
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount" />
|
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount" />
|
||||||
@ -14,7 +13,6 @@
|
|||||||
<span style="vertical-align: middle">导出</span>
|
<span style="vertical-align: middle">导出</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- <el-button v-if="qxkz.deptLevel == '01'" type="primary" :disabled="ids.length === 0" @click="batchMark(ids)">
|
<!-- <el-button v-if="qxkz.deptLevel == '01'" type="primary" :disabled="ids.length === 0" @click="batchMark(ids)">
|
||||||
<el-icon style="vertical-align: middle">
|
<el-icon style="vertical-align: middle">
|
||||||
<CirclePlus />
|
<CirclePlus />
|
||||||
@ -24,9 +22,15 @@
|
|||||||
</PageTitle>
|
</PageTitle>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<div class="tabBox">
|
<div class="tabBox">
|
||||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
<MyTable
|
||||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
|
:tableData="pageData.tableData"
|
||||||
@chooseData="chooseData">
|
:tableColumn="pageData.tableColumn"
|
||||||
|
:tableHeight="pageData.tableHeight"
|
||||||
|
:key="pageData.keyCount"
|
||||||
|
:tableConfiger="pageData.tableConfiger"
|
||||||
|
:controlsWidth="pageData.controlsWidth"
|
||||||
|
@chooseData="chooseData"
|
||||||
|
>
|
||||||
<template #qblx="{ row }">
|
<template #qblx="{ row }">
|
||||||
<DictTag :tag="false" :value="row.qblx" :options="D_GS_XS_LX" />
|
<DictTag :tag="false" :value="row.qblx" :options="D_GS_XS_LX" />
|
||||||
</template>
|
</template>
|
||||||
@ -46,6 +50,9 @@
|
|||||||
<el-link size="small" type="primary" @click="openCheckProcess(row)">补充信息</el-link>
|
<el-link size="small" type="primary" @click="openCheckProcess(row)">补充信息</el-link>
|
||||||
<!-- <el-link size="small" type="primary" @click="openCheckProcessXb(row)"> 续报</el-link> -->
|
<!-- <el-link size="small" type="primary" @click="openCheckProcessXb(row)"> 续报</el-link> -->
|
||||||
<el-link size="small" type="primary" @click="addEdit('info', row)">详情</el-link>
|
<el-link size="small" type="primary" @click="addEdit('info', row)">详情</el-link>
|
||||||
|
<el-link size="small" type="primary" @click="handleCase(row)">
|
||||||
|
<span :style="{'color': row.sfgz == '0' ? 'rgb(242,7,7)' : '#dede17'}">{{ row.sfgz == '0' ? '关注' : '取消关注' }}</span>
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</MyTable>
|
</MyTable>
|
||||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||||
@ -79,60 +86,58 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { qcckPost } from "@/api/qcckApi.js";
|
||||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||||
import MyTable from "@/components/aboutTable/MyTable.vue";
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||||
import Pages from "@/components/aboutTable/Pages.vue";
|
import Pages from "@/components/aboutTable/Pages.vue";
|
||||||
import Search from "@/components/aboutTable/Search.vue";
|
import Search from "@/components/aboutTable/Search.vue";
|
||||||
import AddForm from "@/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue";
|
import AddForm from "@/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue";
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { qbcjSelectPage, qbcjDeletes } from "@/api/Intelligence.js";
|
|
||||||
import { reactive, ref, onMounted, getCurrentInstance, watch } from "vue";
|
import { reactive, ref, onMounted, getCurrentInstance, watch } from "vue";
|
||||||
import MakeTag from '@/views/backOfficeSystem/HumanIntelligence/components/maketag.vue'
|
import MakeTag from '@/views/backOfficeSystem/HumanIntelligence/components/maketag.vue'
|
||||||
import ExportFile from '@/views/backOfficeSystem/HumanIntelligence/infoCollection/components/exportFile.vue'
|
import ExportFile from '@/views/backOfficeSystem/HumanIntelligence/infoCollection/components/exportFile.vue'
|
||||||
import pursueContent from "../components/pursueContent.vue";
|
import pursueContent from "../components/pursueContent.vue";
|
||||||
import Fszl from '../components/fszl.vue'
|
import Fszl from '../components/fszl.vue'
|
||||||
import { getItem } from '@//utils/storage.js'
|
import { getItem } from '@//utils/storage.js'
|
||||||
import { qbcjZxs } from '@/api/qbcj.js'
|
|
||||||
import {xxcjSelectPage,xxcjXxzsx} from '@/api/xxcj.js'
|
import {xxcjSelectPage,xxcjXxzsx} from '@/api/xxcj.js'
|
||||||
|
import { color } from "echarts";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { D_GS_XS_LY, D_BZ_SSZT, D_BZ_SF, D_GS_XS_LX, D_BZ_BQJB,
|
const {
|
||||||
D_GS_XS_QTLX, D_GS_ZDQT_LB,
|
D_GS_XS_LY,
|
||||||
D_BZ_BMJB, D_BZ_CLPP, D_BZ_CLYS, D_BZ_CLLX, D_BZ_XZQHDM, D_BZ_QBCZZT, D_BZ_CJLX ,D_BZ_LCZT} =
|
D_BZ_SSZT,
|
||||||
proxy.$dict("D_BZ_BMJB", "D_GS_XS_LY",
|
D_BZ_SF,
|
||||||
"D_BZ_SSZT", "D_BZ_SF", "D_GS_XS_LX", "D_GS_XS_QTLX",
|
D_GS_XS_LX,
|
||||||
"D_GS_ZDQT_LB", "D_BZ_CLPP", "D_BZ_CLYS", "D_BZ_CLLX", "D_BZ_XZQHDM", "D_BZ_QBCZZT", "D_BZ_CJLX", "D_BZ_BQJB","D_BZ_LCZT"); //获取字典数据
|
D_BZ_BQJB,
|
||||||
|
D_GS_XS_QTLX,
|
||||||
|
D_GS_ZDQT_LB,
|
||||||
|
D_BZ_BMJB,
|
||||||
|
D_BZ_CLPP,
|
||||||
|
D_BZ_CLYS,
|
||||||
|
D_BZ_CLLX,
|
||||||
|
D_BZ_XZQHDM,
|
||||||
|
D_BZ_QBCZZT,
|
||||||
|
D_BZ_CJLX ,D_BZ_LCZT } =
|
||||||
|
proxy.$dict(
|
||||||
|
"D_BZ_BMJB",
|
||||||
|
"D_GS_XS_LY",
|
||||||
|
"D_BZ_SSZT",
|
||||||
|
"D_BZ_SF",
|
||||||
|
"D_GS_XS_LX",
|
||||||
|
"D_GS_XS_QTLX",
|
||||||
|
"D_GS_ZDQT_LB",
|
||||||
|
"D_BZ_CLPP",
|
||||||
|
"D_BZ_CLYS",
|
||||||
|
"D_BZ_CLLX",
|
||||||
|
"D_BZ_XZQHDM",
|
||||||
|
"D_BZ_QBCZZT",
|
||||||
|
"D_BZ_CJLX",
|
||||||
|
"D_BZ_BQJB",
|
||||||
|
"D_BZ_LCZT"
|
||||||
|
); //获取字典数据
|
||||||
const detailDiloag = ref();
|
const detailDiloag = ref();
|
||||||
const searchBox = ref(); //搜索框
|
const searchBox = ref(); //搜索框
|
||||||
const ids = ref([])
|
const ids = ref([])
|
||||||
const tableList = ref([]);
|
const tableList = ref([]);
|
||||||
onMounted(() => {
|
|
||||||
const { deptBizType, deptLevel } = getItem('deptId')[0]
|
|
||||||
qxkz.userName = getItem('USERNAME')
|
|
||||||
const Jb = deptLevel[0] == '2' ? '01' : deptLevel[0] == '3' ? '02' : '03'
|
|
||||||
qxkz.deptBizType = deptBizType
|
|
||||||
qxkz.deptLevel = Jb
|
|
||||||
if (deptBizType == '23' && Jb == '01') {
|
|
||||||
qxkz.depBool = true
|
|
||||||
} else {
|
|
||||||
qxkz.depBool = false
|
|
||||||
}
|
|
||||||
|
|
||||||
getRouter()
|
|
||||||
tabHeightFn()
|
|
||||||
if (route.query.id) {
|
|
||||||
detailDiloag.value.init('edit', {
|
|
||||||
id: route.query.id
|
|
||||||
});
|
|
||||||
return
|
|
||||||
}
|
|
||||||
getList()
|
|
||||||
});
|
|
||||||
const chooseData = (val) => {
|
|
||||||
ids.value = val.map(item => {
|
|
||||||
return item.id
|
|
||||||
})
|
|
||||||
tableList.value = val
|
|
||||||
}
|
|
||||||
const qxkz = reactive({
|
const qxkz = reactive({
|
||||||
deptBizType: "",
|
deptBizType: "",
|
||||||
deptLevel: "",
|
deptLevel: "",
|
||||||
@ -140,15 +145,32 @@ const qxkz = reactive({
|
|||||||
})
|
})
|
||||||
const list = ref()
|
const list = ref()
|
||||||
const searchConfiger = ref();
|
const searchConfiger = ref();
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
const { deptBizType, deptLevel } = getItem('deptId')[0]
|
||||||
|
qxkz.userName = getItem('USERNAME')
|
||||||
|
const Jb = deptLevel[0] == '2' ? '01' : deptLevel[0] == '3' ? '02' : '03'
|
||||||
|
qxkz.deptBizType = deptBizType
|
||||||
|
qxkz.deptLevel = Jb
|
||||||
|
qxkz.depBool = deptBizType == '23' && Jb == '01' ? true : false;
|
||||||
|
getRouter()
|
||||||
|
tabHeightFn()
|
||||||
|
if (route.query.id) {
|
||||||
|
detailDiloag.value.init('edit', { id: route.query.id });
|
||||||
|
return
|
||||||
|
}
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
const chooseData = (val) => {
|
||||||
|
ids.value = val.map(item => item.id)
|
||||||
|
tableList.value = val
|
||||||
|
}
|
||||||
|
|
||||||
watch(() => D_BZ_BQJB, val => {
|
watch(() => D_BZ_BQJB, val => {
|
||||||
if (qxkz.deptLevel == '01') {
|
if (qxkz.deptLevel == '01') {
|
||||||
list.value = val.value.filter(item => {
|
list.value = val.value.filter(item => item.dm != '00')
|
||||||
return item.dm != '00'
|
|
||||||
})
|
|
||||||
} else if (qxkz.deptLevel == '02') {
|
} else if (qxkz.deptLevel == '02') {
|
||||||
list.value = val.value.filter(item => {
|
list.value = val.value.filter(item => (item.dm == '01' || item.dm == '02'))
|
||||||
return item.dm == '01' || item.dm == '02'
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
list.value = []
|
list.value = []
|
||||||
}
|
}
|
||||||
@ -184,10 +206,8 @@ const pageData = reactive({
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
const queryFrom = ref({});
|
const queryFrom = ref({});
|
||||||
|
|
||||||
const chooseRow = ref(false)
|
const chooseRow = ref(false)
|
||||||
const dataList = ref()
|
const dataList = ref()
|
||||||
|
|
||||||
// 搜索
|
// 搜索
|
||||||
const onSearch = (val) => {
|
const onSearch = (val) => {
|
||||||
const { lrkssj, zxkssj } = val
|
const { lrkssj, zxkssj } = val
|
||||||
@ -198,9 +218,7 @@ const onSearch = (val) => {
|
|||||||
lrjssj: lrkssj ? lrkssj[1] : '',
|
lrjssj: lrkssj ? lrkssj[1] : '',
|
||||||
zxkssj: zxkssj ? zxkssj[0] : '',
|
zxkssj: zxkssj ? zxkssj[0] : '',
|
||||||
zxjssj: zxkssj ? zxkssj[1] : '',
|
zxjssj: zxkssj ? zxkssj[1] : '',
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
queryFrom.value = { ...promes }
|
queryFrom.value = { ...promes }
|
||||||
pageData.pageConfiger.pageCurrent = 1;
|
pageData.pageConfiger.pageCurrent = 1;
|
||||||
getList()
|
getList()
|
||||||
@ -243,6 +261,16 @@ const addEdit = (type, row) => {
|
|||||||
detailDiloag.value.init(type, row);
|
detailDiloag.value.init(type, row);
|
||||||
}, 500)
|
}, 500)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleCase = (row) => {
|
||||||
|
let text = row.sfgz == '0' ? '关注' : '取消关注';
|
||||||
|
proxy.$confirm("确定要" + text + "吗?", "警告", { type: "warning" }).then(() => {
|
||||||
|
qcckPost({ id: row.id,sfgz: row.sfgz == '0' ? '1' : '0' },'/mosty-gsxt/xxcj/cjgz').then(res => {
|
||||||
|
proxy.$message({ type: "success", message: text + "成功" });
|
||||||
|
getList();
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
// 表格高度计算
|
// 表格高度计算
|
||||||
const tabHeightFn = () => {
|
const tabHeightFn = () => {
|
||||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||||
|
|||||||
@ -63,7 +63,7 @@ const createChartOption = (data, colors) => {
|
|||||||
orient: 'vertical',
|
orient: 'vertical',
|
||||||
left: '53%',
|
left: '53%',
|
||||||
top: 'center',
|
top: 'center',
|
||||||
itemGap: 40,
|
itemGap: 20,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
rich: {
|
rich: {
|
||||||
@ -101,9 +101,7 @@ const createChartOption = (data, colors) => {
|
|||||||
const value = Number(item.value) || 0;
|
const value = Number(item.value) || 0;
|
||||||
const totalValue = Number(total) || 0;
|
const totalValue = Number(total) || 0;
|
||||||
let percentage = (totalValue > 0 && value > 0) ? ((value / totalValue) * 100).toFixed(2) : '0.00';
|
let percentage = (totalValue > 0 && value > 0) ? ((value / totalValue) * 100).toFixed(2) : '0.00';
|
||||||
// let percentage = ((item.value / total) * 100).toFixed(2);
|
|
||||||
return `${name} ${item.value} {${item.colorType}|(${percentage}%)}`
|
return `${name} ${item.value} {${item.colorType}|(${percentage}%)}`
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
<div style="width: 33%;">
|
<div style="width: 33%;">
|
||||||
<transition name="flip" mode="out-in">
|
<transition name="flip" mode="out-in">
|
||||||
<div :key="'qb'" v-if="modelWarning" class="flip-wrapper">
|
<div :key="'qb'" v-if="modelWarning" class="flip-wrapper">
|
||||||
<WarningLevels @changeModel="changeModel"></WarningLevels>
|
<SevenWarning @changeModel="changeModel"></SevenWarning>
|
||||||
|
<!-- <WarningLevels @changeModel="changeModel"></WarningLevels> -->
|
||||||
</div>
|
</div>
|
||||||
<div :key="'text'" v-else class="flip-wrapper">
|
<div :key="'text'" v-else class="flip-wrapper">
|
||||||
<BkWarning @changeModel="changeModel"></BkWarning>
|
<BkWarning @changeModel="changeModel"></BkWarning>
|
||||||
@ -143,7 +144,8 @@ import QbsbCount from './model/qbsbCount.vue'
|
|||||||
import QblyType from './model/qblyType.vue'
|
import QblyType from './model/qblyType.vue'
|
||||||
import TextType from './model/textType.vue'
|
import TextType from './model/textType.vue'
|
||||||
import Bkcz from './model/bkcz.vue'
|
import Bkcz from './model/bkcz.vue'
|
||||||
import WarningLevels from './model/warningLevels.vue'
|
import SevenWarning from './model/sevenWarning.vue'
|
||||||
|
// import WarningLevels from './model/warningLevels.vue'
|
||||||
import BkWarning from './model/bkWarning.vue'
|
import BkWarning from './model/bkWarning.vue'
|
||||||
import Yszs from './model/yszs.vue'
|
import Yszs from './model/yszs.vue'
|
||||||
import DeployControl from './model/deployControl.vue';
|
import DeployControl from './model/deployControl.vue';
|
||||||
|
|||||||
70
src/views/home/model/sevenWarning.vue
Normal file
70
src/views/home/model/sevenWarning.vue
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<template>
|
||||||
|
<div class="comom-title">
|
||||||
|
<div class="title">7类重点人统计<span class="switchover" @click.stop="reversalPush">切换</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="comom-cnt" style="border-right: 1px solid #ebebeb;width: 100%;" v-loading="loadingyj">
|
||||||
|
<WarningCount ref="yjjbRef"></WarningCount>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
|
||||||
|
import WarningCount from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue";
|
||||||
|
import { onMounted,ref,defineEmits } from "vue";
|
||||||
|
const yjjbRef = ref()
|
||||||
|
const loadingyj = ref(false)
|
||||||
|
|
||||||
|
const emit = defineEmits(["changeModel"])
|
||||||
|
const reversalPush = () => {
|
||||||
|
emit('changeModel')
|
||||||
|
}
|
||||||
|
|
||||||
|
const getYjczDate = () => {
|
||||||
|
loadingyj.value = true;
|
||||||
|
qcckGet({}, '/mosty-gsxt/tbYjxx/qlzdrYjjb').then(res => {
|
||||||
|
loadingyj.value = false;
|
||||||
|
yjjbRef.value.initCharts(res)
|
||||||
|
})
|
||||||
|
};
|
||||||
|
onMounted(() => {
|
||||||
|
getYjczDate()
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "@/assets/css/homeScreen.scss";
|
||||||
|
::v-deeep .comom-title{
|
||||||
|
background: url("~@/assets/images/bg18.png") no-repeat center center;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
::v-deeep .comom-cnt{
|
||||||
|
background: url("~@/assets/images/bg18.png") no-repeat center center;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-table td.el-table__cell{
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{
|
||||||
|
background: rgba(0,61,130,0.75);
|
||||||
|
}
|
||||||
|
.switchover{
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-left: 20px;
|
||||||
|
color: rgb(255, 146, 4);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss">
|
||||||
|
.zdy_bkcz_table td.el-table__cell {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.zdy_bkcz_table th.el-table__cell {
|
||||||
|
color: #ffffff !important;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@ -30,13 +30,6 @@ onMounted(() => {
|
|||||||
getYjczDate()
|
getYjczDate()
|
||||||
});
|
});
|
||||||
|
|
||||||
// const tabHeightFn = () => {
|
|
||||||
// pageData.tableHeight = document.getElementById('qcbk').offsetHeight - 12;
|
|
||||||
// window.onresize = function () {
|
|
||||||
// tabHeightFn();
|
|
||||||
// };
|
|
||||||
// };
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user