fix: BUG修改

This commit is contained in:
kun 2024-04-30 02:35:31 +08:00
parent a7c12b8a20
commit 51fec5e645
9 changed files with 57 additions and 33 deletions

View File

@ -2379,13 +2379,6 @@ const routes2 = [
component: (resolve) =>
require(["@/views/companyAdmin/basicSetup/checkItem.vue"], resolve),
},
//安全标准
{
path: "/project/basicSafeSetup/checkItem",
name: "安全管理质量标准",
component: (resolve) =>
require(["@/views/companyAdmin/basicSafeSetup/checkItem.vue"], resolve),
},
//临边防护
{
path: "/project/edgeProtection/edgequtManagement",
@ -3276,6 +3269,37 @@ const routes2 = [
},
],
},
{
path: "/companyAdmin/basicSafeSetup/index",
name: "basicSafeSetup",
component: () => import("../views/companyAdmin/basicSafeSetup/index.vue"),
children: [
{
path: "/companyAdmin/basicSafeSetup/checkItem",
name: "checkItem",
component: (resolve) =>
require([
"@/views/companyAdmin/basicSafeSetup/checkItem.vue",
], resolve),
},
{
path: "/companyAdmin/basicSafeSetup/specialCheck",
name: "specialCheck",
component: (resolve) =>
require([
"@/views/companyAdmin/basicSafeSetup/specialCheck.vue",
], resolve),
},
{
path: "/companyAdmin/basicSafeSetup/planTemplate",
name: "planTemplate",
component: (resolve) =>
require([
"@/views/companyAdmin/basicSafeSetup/planTemplate.vue",
], resolve),
},
],
},
{
path: "/companyAdmin/progressOfWorks/index",
name: "progressOfWorks",

View File

@ -337,7 +337,7 @@ export default {
//
addForm() {
this.dialogVisible = true
this.dialogTitle = '新增质量验收'
this.dialogTitle = '新增安全验收'
this.dialogdata = {
subsectionId: '', //id
subentryId: '', //id
@ -356,7 +356,7 @@ export default {
editData(val) {
console.log('编辑时调用的参数 ', val)
this.dialogVisible = true
this.dialogTitle = '编辑质量验收'
this.dialogTitle = '编辑安全验收'
this.dialogdata = JSON.parse(JSON.stringify(val))
this.listData.forEach((value) => {
if (value.id == this.dialogdata.subsectionId) {
@ -395,7 +395,7 @@ export default {
params.projectSn = this.$store.state.projectSn
this.$refs.form.validate((valid) => {
if (valid) {
if (this.dialogTitle == '新增质量验收') {
if (this.dialogTitle == '新增安全验收') {
addSubdivisionAcceptanceApi(params).then((res) => {
this.$message.success('新增成功')
this.dialogVisible = false

View File

@ -1,5 +1,5 @@
<template>
<!-- 质量问题库 -->
<!-- 安全问题库 -->
<div class="qualityProblemBank">
<vue-scroll style="height: 100%; width: 100%" class="scroll">
<div class="flex content">

View File

@ -74,7 +74,7 @@
>
<el-option :label="$t('message.quality.add')" value=""></el-option>
<el-option label="排查记录" :value="2"></el-option>
<el-option label="质量问题" :value="1"></el-option>
<el-option label="安全问题" :value="1"></el-option>
<!-- <el-option
:label="$t('message.quality.recordsOfTheFebruary')"
:value="1"
@ -217,7 +217,7 @@
</el-table-column>
<el-table-column label="检查类型" align="center" prop="recordType">
<template slot-scope="scope">{{
scope.row.recordType == 1 ? "质量问题" : "排查记录"
scope.row.recordType == 1 ? "安全问题" : "排查记录"
}}</template>
</el-table-column>
<!-- 检查结果-->
@ -1496,7 +1496,7 @@
class="value"
style="font-weight: 500; color: #5181f6; cursor: pointer"
>{{
detailData.recordType == 1 ? "质量问题" : "排查记录"
detailData.recordType == 1 ? "安全问题" : "排查记录"
}}</span
>
</div>
@ -2001,7 +2001,7 @@ export default {
completeRatio: 0, //
},
tableData: [], //
recordType: 1, // 12
recordType: 1, // 12
addDialog: false,
addTitle:
this.$t("message.quality.new") +

View File

@ -74,7 +74,7 @@
>
<el-option :label="$t('message.quality.add')" value=""></el-option>
<el-option label="排查记录" :value="2"></el-option>
<el-option label="质量问题" :value="1"></el-option>
<el-option label="安全问题" :value="1"></el-option>
<!-- <el-option
:label="$t('message.quality.recordsOfTheFebruary')"
:value="1"
@ -217,7 +217,7 @@
</el-table-column>
<el-table-column label="检查类型" align="center" prop="recordType">
<template slot-scope="scope">{{
scope.row.recordType == 1 ? '质量问题' : '排查记录'
scope.row.recordType == 1 ? '安全问题' : '排查记录'
}}</template>
</el-table-column>
<!-- 检查结果-->
@ -1496,7 +1496,7 @@
class="value"
style="font-weight: 500; color: #5181f6; cursor: pointer"
>{{
detailData.recordType == 1 ? '质量问题' : '排查记录'
detailData.recordType == 1 ? '安全问题' : '排查记录'
}}</span
>
</div>
@ -2000,7 +2000,7 @@
completeRatio: 0,//
},
tableData: [], //
recordType: 1, // 12
recordType: 1, // 12
addDialog: false,
addTitle:
this.$t('message.quality.new') +

View File

@ -1,5 +1,5 @@
<template>
<!-- 质量亮点页面 -->
<!-- 安全亮点页面 -->
<div class="panoramaPlan">
<div class="header-box">
<el-button type="primary" @click="addForm"> 新增 </el-button>
@ -89,7 +89,7 @@
>
<el-form-item label="文件类型" prop="typeId">
<el-select v-model="dialogdata.typeId" placeholder="请选择">
<el-option :value="1" label="质量"></el-option>
<el-option :value="1" label="安全"></el-option>
<el-option :value="2" label="安全"></el-option>
<el-option :value="3" label="技术"></el-option>
</el-select>
@ -168,7 +168,7 @@ export default {
methods: {
getStatus(typeId){
if(typeId===1){
return '质量'
return '安全'
}else if(typeId===2){
return '安全'
}else{
@ -211,12 +211,12 @@ export default {
//
addForm() {
this.dialogVisible = true;
this.dialogTitle = "新增质量亮点";
this.dialogTitle = "新增安全亮点";
},
//
editData(val) {
this.dialogVisible = true;
this.dialogTitle = "编辑质量亮点";
this.dialogTitle = "编辑安全亮点";
this.dialogdata = JSON.parse(JSON.stringify(val));
this.fileList = val.imageUrl;
},
@ -250,13 +250,13 @@ export default {
params.projectSn = this.$store.state.projectSn;
this.$refs.form.validate((valid) => {
if (valid) {
if (this.dialogTitle == "新增质量亮点") {
if (this.dialogTitle == "新增安全亮点") {
addWindowDisplaytApi(params).then((res) => {
this.$message.success("新增成功");
this.dialogVisible = false;
this.getData();
});
}else if(this.dialogTitle == "编辑质量亮点"){
}else if(this.dialogTitle == "编辑安全亮点"){
updateWindowDisplayApi(params).then((res) => {
this.$message.success("编辑成功");
this.dialogVisible = false;

View File

@ -8,7 +8,7 @@
text-color="#262D47"
active-text-color="#5181F6"
>
<!-- 质量检查记录 -->
<!-- 安全检查记录 -->
<el-menu-item index="1">{{$t("message.personnelPosition.qualityCheckedNode")}}</el-menu-item>
</el-menu>
<inspection v-if="activeIndex == '1'" style="width:100%;height:calc(100% - 49px)"></inspection>

View File

@ -387,7 +387,7 @@
class="value"
style="font-weight: 500; color: #5584f6; cursor: pointer"
>{{
detailData.recordType == 1 ? '质量问题' : '排查记录'
detailData.recordType == 1 ? '安全问题' : '排查记录'
}}</span
>
</div>
@ -1040,7 +1040,7 @@ export default {
completeRatio: 0,//
},
tableData: [], //
recordType: 1, // 12
recordType: 1, // 12
addDialog: false,
addTitle:
this.$t('message.quality.new') +

View File

@ -79,7 +79,7 @@
>
<el-option :label="$t('message.quality.add')" value=""></el-option>
<el-option label="排查记录" :value="2"></el-option>
<el-option label="质量问题" :value="1"></el-option>
<el-option label="安全问题" :value="1"></el-option>
<!-- <el-option
:label="$t('message.quality.recordsOfTheFebruary')"
:value="1"
@ -222,7 +222,7 @@
</el-table-column>
<el-table-column label="检查类型" align="center" prop="recordType">
<template slot-scope="scope">{{
scope.row.recordType == 1 ? '质量问题' : '排查记录'
scope.row.recordType == 1 ? '安全问题' : '排查记录'
}}</template>
</el-table-column>
<!-- 检查结果-->
@ -1501,7 +1501,7 @@
class="value"
style="font-weight: 500; color: #5181f6; cursor: pointer"
>{{
detailData.recordType == 1 ? '质量问题' : '排查记录'
detailData.recordType == 1 ? '安全问题' : '排查记录'
}}</span
>
</div>
@ -2005,7 +2005,7 @@ export default {
completeRatio: 0,//
},
tableData: [], //
recordType: 1, // 12
recordType: 1, // 12
addDialog: false,
addTitle:
this.$t('message.quality.new') +