Browse Source

fix: 样式优化

main
wxc 1 year ago
parent
commit
b05367702c
  1. 12
      src/components/negative/confirmation-completion.vue
  2. 7
      src/components/negative/verify.vue
  3. 63
      src/views/sensitivePerception/Model.vue

12
src/components/negative/confirmation-completion.vue

@ -1,6 +1,6 @@
<template>
<el-dialog title="认定办结" top="5vh" width="900px" v-model="show">
<h3>问题赋分情况</h3>
<el-dialog title="认定办结" width="900px" v-model="show">
<!-- <h3>问题赋分情况</h3>
<p>
基础风险值 + (基础风险值 * 问题严重等级系数 ) + (基础风险值 * 问题发生频次系数)
<a
@ -10,9 +10,9 @@
>
<span>查看文档</span>
</a>
</p>
</p> -->
<el-form :label-width="120" ref="formRef" :model="formData">
<div v-for="(item, index) in blames" :key="index">
<!-- <div v-for="(item, index) in blames" :key="index">
<h5>涉及人员{{ index + 1 }}</h5>
<div class="row">
<div class="col col-6">
@ -131,7 +131,7 @@
重大影响当问题导致重大法律责任或产生严重负面社会影响时分值将在基础分值的基础上增加
50%
</p>
</div>
</div> -->
<h3>认定办结情况</h3>
<el-row>
<el-col :span="12">
@ -198,7 +198,7 @@
/>
</el-form-item>
</el-form>
<footer class="flex end">
<footer class="flex end mt-40">
<el-button size="large">取消</el-button>
<el-button type="primary" size="large" @click="submit"
>认定办结</el-button

7
src/components/negative/verify.vue

@ -1043,7 +1043,7 @@
v-model="item.responsibilityTypeCode"
@change="
(val) =>
(item.leadResponsibilityTypeName =
(item.responsibilityTypeName =
dict.responsibilityType.filter(
(item) =>
item.dictValue === val
@ -1354,12 +1354,13 @@ const formRef = ref(null);
async function validate() {
const flag = await formRef.value.validate();
if (flag) {
if (form.value.accountabilityTarget !== AccountabilityTarget.DEPARTMENT) {
let arr = [];
form.value.blameLeaders.forEach((item) => {
arr = arr.concat(item.blameIdCodes);
});
const blame = form.value.blames.filter(
(item) => !arr.includes(item.blameIdCode)
(item) => item.type === BlameType.PERSONAL && !arr.includes(item.blameIdCode)
);
if (blame.length) {
throw new Error(
@ -1368,6 +1369,8 @@ async function validate() {
.join("、")}未关联领导`
);
}
}
return form.value;
}
}

63
src/views/sensitivePerception/Model.vue

@ -78,26 +78,21 @@
class="model-card-content"
style="width: calc(100% - 76px)"
>
<el-tooltip :content="item.remarks">
<div>
<div class="row">
<div class="col">
<div class="col col-24">
<label>模型名称</label>
<span>{{
<span
class="text-nowrap"
:title="item.modelName"
>{{
item.modelName
}}</span>
</div>
</div>
<div class="row">
<div class="col">
<label>创建单位</label>
<span>{{
item.createDepartName
}}</span>
}}</span
>
</div>
</div>
<div class="row">
<div class="col col-12">
<div class="col col-24">
<label>分发方式</label>
<span>{{
getDictLable(
@ -107,14 +102,13 @@
}}</span>
</div>
</div>
<div class="col">
<div class="col col-24">
<label>最近活跃时间</label>
<span>{{
item.updateTime
}}</span>
</div>
</div>
</el-tooltip>
</div>
</div>
</div>
@ -520,7 +514,11 @@
"
>查看线索数据</el-button
>
<el-button type="primary" plain @click="handleDetailConfigShow">
<el-button
type="primary"
plain
@click="handleDetailConfigShow"
>
<template #icon>
<icon name="el-icon-Edit" />
</template>
@ -534,19 +532,13 @@
<div style="min-height: 300px">
<div class="table-container">
<el-table :data="tableData" size="small">
<el-table-column
label="同步时间"
prop="createTime"
/>
<el-table-column label="同步时间" prop="createTime" />
<el-table-column
label="预警条数"
prop="size"
align="center"
/>
<el-table-column
label="分发状态"
align="center"
>
<el-table-column label="分发状态" align="center">
<template #default="{ row }">
<el-tag
type="success"
@ -577,8 +569,11 @@
</footer>
</el-dialog>
<el-dialog title="线索详细信息配置" v-model="detailConfigShow" width="800px">
<el-dialog
title="线索详细信息配置"
v-model="detailConfigShow"
width="800px"
>
</el-dialog>
</template>
<script setup>
@ -708,20 +703,20 @@ async function openDetail(item) {
detailShow.value = true;
}
const detailConfigShow = ref(false)
const modelClueData = ref({})
const detailConfigShow = ref(false);
const modelClueData = ref({});
async function handleDetailConfigShow() {
const data = await listModelClue({
modelIds: [activeModel.value.id],
current: 1,
size: 1
})
size: 1,
});
if (data.records.length && data.records[0].data) {
console.log(data.records)
console.log(data.records);
} else {
modelClueData.value = JSON.parse(data.records[0].data)
modelClueData.value = JSON.parse(data.records[0].data);
}
detailConfigShow.value = true
detailConfigShow.value = true;
}
</script>
<style lang="scss" scoped>
@ -729,7 +724,7 @@ async function handleDetailConfigShow() {
> div {
height: 47px;
line-height: 47px;
padding: 0 36px;
padding-left: 36px;
&:hover,
&[active="true"] {
background: #e1e5ff;

Loading…
Cancel
Save