Browse Source

fix: 完善个人/单位画像

master
wxc 1 month ago
parent
commit
adfeaa382a
  1. 2
      src/components/datav/chart-bar.vue
  2. 15
      src/components/negativeInfo/depart-dialog.vue
  3. 130
      src/views/sensitivePerception/Model.vue
  4. 9
      src/views/sensitivePerception/PoliceNegative.vue

2
src/components/datav/chart-bar.vue

@ -189,7 +189,7 @@ function getColor(val) {
font-size: 12px; font-size: 12px;
.bar-item_content { .bar-item_content {
width: calc(100% - 180px); width: calc(100% - var(--label-width));
} }
} }

15
src/components/negativeInfo/depart-dialog.vue

@ -193,7 +193,7 @@
<h5>个人问题排名</h5> <h5>个人问题排名</h5>
<div class="card-item"> <div class="card-item">
<el-scrollbar max-height="300px"> <el-scrollbar max-height="300px">
<datav-chart-bar size="small" :data="policeBarList" :color="colors" /> <datav-chart-bar size="small" :data="policeBarList" :color="colors" :labelWidth="60" />
<el-empty v-if="policeBarList.length === 0" /> <el-empty v-if="policeBarList.length === 0" />
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -202,7 +202,7 @@
<h5>问题涉及领导</h5> <h5>问题涉及领导</h5>
<div class="card-item"> <div class="card-item">
<el-scrollbar max-height="300px"> <el-scrollbar max-height="300px">
<datav-chart-bar size="small" :data="policeLeadBarList" :color="colors" /> <datav-chart-bar size="small" :data="policeLeadBarList" :color="colors" :labelWidth="60" />
<el-empty v-if="policeLeadBarList.length === 0" /> <el-empty v-if="policeLeadBarList.length === 0" />
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -211,7 +211,7 @@
<h5>突出问题排名</h5> <h5>突出问题排名</h5>
<div class="card-item"> <div class="card-item">
<el-scrollbar max-height="300px"> <el-scrollbar max-height="300px">
<datav-chart-bar <datav-chart-bar1
size="small" size="small"
:data="problemTypeBarList" :data="problemTypeBarList"
:color="colors" :color="colors"
@ -228,7 +228,7 @@
<v-charts style="height: 320px" :option="barOption" autoresize /> <v-charts style="height: 320px" :option="barOption" autoresize />
</div> </div>
</div> </div>
<h5>问题清单</h5> <h5>问题清单 {{ negativeList.length }}</h5>
<el-table :data="negativeList" height="500"> <el-table :data="negativeList" height="500">
<el-table-column label="发现时间" prop="discoveryTime" width="160" /> <el-table-column label="发现时间" prop="discoveryTime" width="160" />
<el-table-column label="问题来源" prop="problemSources" width="150" /> <el-table-column label="问题来源" prop="problemSources" width="150" />
@ -250,10 +250,13 @@
/> />
<el-table-column <el-table-column
label="分值" label="分值"
prop="score"
width="100" width="100"
align="center" align="center"
/> >
<template #default="{ row }">
<span class="text-danger">{{ row.score }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="160"> <el-table-column label="操作" width="160">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="handleAction(row)" <el-button type="primary" link @click="handleAction(row)"

130
src/views/sensitivePerception/Model.vue

@ -193,6 +193,69 @@
placeholder="请输入" placeholder="请输入"
/> />
</el-form-item> </el-form-item>
<el-divider />
<el-form-item
label="模型分类"
prop="modelType"
:rules="{
required: true,
message: '请选择模型分类',
}"
>
<el-radio-group v-model="form.modelType">
<el-radio
v-for="item in dict.modelType"
:key="item.dictCode"
:value="item.dictValue"
>{{ item.dictLabel }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item
label="模型类型"
prop="classId"
:rules="{
required: true,
message: '请选择模型类型',
}"
v-if="form.modelType"
>
<el-select v-model="form.classId" style="width: 340px">
<el-option
v-for="item in classes.filter(
(item) => item.modelType === form.modelType
)"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item
label="风险因素"
:rules="{
required: true,
message: '请选择风险因素',
}"
prop="riskScoreRuleId"
v-if="form.modelType === '2'"
>
<el-tree-select
class="flex-1"
v-model="form.riskScoreRuleId"
:data="treeOptions"
clearable
node-key="id"
:props="{
label: 'riskName',
}"
placeholder="请选择风险因素"
filterable
style="width: 340px"
/>
</el-form-item>
<el-form-item <el-form-item
label="建模方式" label="建模方式"
prop="modelingMethod" prop="modelingMethod"
@ -306,6 +369,7 @@
handleChangeColumn(val, row) handleChangeColumn(val, row)
" "
clearable clearable
filterable
> >
<el-option <el-option
v-for="item in fields" v-for="item in fields"
@ -360,6 +424,7 @@
<el-select <el-select
style="width: 340px" style="width: 340px"
v-model="form.clueUniqueFieldName" v-model="form.clueUniqueFieldName"
filterable
> >
<el-option <el-option
v-for="item in fields" v-for="item in fields"
@ -467,68 +532,7 @@
</el-form-item> </el-form-item>
</template> </template>
<el-form-item
label="模型分类"
prop="modelType"
:rules="{
required: true,
message: '请选择模型分类',
}"
>
<el-radio-group v-model="form.modelType">
<el-radio
v-for="item in dict.modelType"
:key="item.dictCode"
:value="item.dictValue"
>{{ item.dictLabel }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-divider />
<el-form-item
label="模型类型"
prop="classId"
:rules="{
required: true,
message: '请选择模型类型',
}"
v-if="form.modelType"
>
<el-select v-model="form.classId" style="width: 340px">
<el-option
v-for="item in classes.filter(
(item) => item.modelType === form.modelType
)"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item
label="风险因素"
:rules="{
required: true,
message: '请选择风险因素',
}"
prop="riskScoreRuleId"
v-if="form.modelType === '2'"
>
<el-tree-select
class="flex-1"
v-model="form.riskScoreRuleId"
:data="treeOptions"
clearable
node-key="id"
:props="{
label: 'riskName',
}"
placeholder="请选择风险因素"
filterable
style="width: 340px"
/>
</el-form-item>
<el-form-item <el-form-item
label="预警类型" label="预警类型"
prop="modelDataType" prop="modelDataType"
@ -852,7 +856,7 @@
> >
<el-radio value="1">问题涉及单位</el-radio> <el-radio value="1">问题涉及单位</el-radio>
<el-radio value="2">指定单位</el-radio> <el-radio value="2">指定单位</el-radio>
<el-radio value="3">涉及单位及指定单位</el-radio> <el-radio value="3">问题涉及单位+指定单位</el-radio>
</el-radio-group> </el-radio-group>
<div class="tips"> <div class="tips">
<span class="text-danger mr-8">说明</span> <span class="text-danger mr-8">说明</span>
@ -882,7 +886,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="指定单位类型" label="指定单位类型"
prop="handleDepartId" prop="handleDepartGroup"
v-if="form.handleDepartType === '3'" v-if="form.handleDepartType === '3'"
:rules="{ :rules="{
required: true, required: true,

9
src/views/sensitivePerception/PoliceNegative.vue

@ -318,7 +318,7 @@
<div class="card-item"> <div class="card-item">
<v-charts style="height: 320px" :option="barOption" autoresize /> <v-charts style="height: 320px" :option="barOption" autoresize />
</div> </div>
<h5>问题清单</h5> <h5>问题清单 {{ negativeList.length }}</h5>
<el-table :data="negativeList" height="500"> <el-table :data="negativeList" height="500">
<el-table-column label="发现时间" prop="discoveryTime" width="160" /> <el-table-column label="发现时间" prop="discoveryTime" width="160" />
<el-table-column label="问题来源" prop="problemSources" width="150" /> <el-table-column label="问题来源" prop="problemSources" width="150" />
@ -340,10 +340,13 @@
/> />
<el-table-column <el-table-column
label="分值" label="分值"
prop="score"
width="100" width="100"
align="center" align="center"
/> >
<template #default="{ row }">
<span class="text-danger">{{ row.score }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="160"> <el-table-column label="操作" width="160">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="handleAction(row)" <el-button type="primary" link @click="handleAction(row)"

Loading…
Cancel
Save