Browse Source

fix: 巡查项目相关文案替换

feature-sy-v1.0.0
易浩轩 1 year ago
parent
commit
5039d2604e
  1. 2
      src/store/modules/permission.js
  2. 14
      src/views/runManage/engineering/inspectionItems/Dike.vue
  3. 2
      src/views/runManage/engineering/inspectionItems/Reservoir.vue
  4. 2
      src/views/runManage/engineering/inspectionItems/Sluice.vue
  5. 2
      src/views/runManage/engineering/inspectionItems/index.vue
  6. 23
      src/views/runManage/engineering/inspectionPlan/Dike.vue
  7. 2
      src/views/runManage/engineering/inspectionPlan/Reservoir.vue
  8. 2
      src/views/runManage/engineering/inspectionPlan/Sluice.vue

2
src/store/modules/permission.js

@ -41,7 +41,7 @@ const permission = {
{
component: "runManage/engineering/inspectionItems",
hidden: false,
meta: { title: "巡查项管理", icon: "user" },
meta: { title: "巡查项管理", icon: "user" },
name: "InspectionItems",
path: "/inspectionItems"
},

14
src/views/runManage/engineering/inspectionItems/Dike.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理-堤防 -->
<!-- 巡查项管理-堤防 -->
<script>
import { getDictionaryList, postEmbankmentInspectionChecklist, postEmbankmentInspection, putEmbankmentInspection, deleteEmbankmentInspection, getEmbankmentInspectionCheck } from '@/api/management'
export default {
@ -65,7 +65,7 @@ export default {
console.log('🚀表格数据🚀', res)
})
},
//
//
editTableItem(row) {
getEmbankmentInspectionCheck(row.id).then((res) => {
console.log('🚀res🚀', res)
@ -85,7 +85,7 @@ export default {
this.dialogVisible = true
})
},
//
//
deleteTableItem(row) {
deleteEmbankmentInspection(row.id).then((res) => {
console.log('🚀res🚀', res)
@ -102,7 +102,7 @@ export default {
}
)
},
//
//
newInspectionItems() {
this.dialogVisible = true
this.ruleForm = {
@ -149,7 +149,7 @@ export default {
row.content = value
}
},
//
//
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
@ -168,7 +168,7 @@ export default {
this.$refs[formName].resetFields();
this.dialogVisible = false
},
//
//
addInspectionItems() {
},
@ -268,7 +268,7 @@ export default {
:total="pageData.total" @size-change="getTableData()">
</el-pagination>
</div>
<el-dialog title="新增/编辑巡查项" :visible.sync="dialogVisible" width="50%">
<el-dialog title="新增/编辑巡查项" :visible.sync="dialogVisible" width="50%">
<div style="display: flex; margin-bottom: 16px;">
<div style="width: 5px; height: 16px; background-color: #31a08e; margin-right: 8px;"></div><span
style="font-weight: 600;">基础信息</span>

2
src/views/runManage/engineering/inspectionItems/Reservoir.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理-水库 -->
<!-- 巡查项管理-水库 -->
<script>
export default {
name: '',

2
src/views/runManage/engineering/inspectionItems/Sluice.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理-水闸 -->
<!-- 巡查项管理-水闸 -->
<script>
export default {
name: '',

2
src/views/runManage/engineering/inspectionItems/index.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理 -->
<!-- 巡查项管理 -->
<script>
import Dike from './Dike.vue'
import Reservoir from './Reservoir.vue'

23
src/views/runManage/engineering/inspectionPlan/Dike.vue

@ -1,6 +1,6 @@
<!-- 巡查计划管理-堤防 -->
<script>
import { getDictionaryList, postEmbankmentInspectionChecklist, postEmbankmentInspection, putEmbankmentInspection, deleteEmbankmentInspection } from '@/api/management'
import { getDictionaryList, postInspectionPlanlist, postEmbankmentInspection, putEmbankmentInspection, deleteEmbankmentInspection } from '@/api/management'
export default {
name: 'InspectionItems',
data() {
@ -40,7 +40,7 @@ export default {
}
},
methods: {
//
//
editTableItem(row) {
putEmbankmentInspection({ id: row.id }).then((res) => {
console.log('🚀res🚀', res)
@ -50,7 +50,7 @@ export default {
console.log(this.examType);
})
},
//
//
deleteTableItem(row) {
deleteEmbankmentInspection(row.id).then((res) => {
console.log('🚀res🚀', res)
@ -66,7 +66,7 @@ export default {
}
)
},
//
//
newInspectionItems() {
this.dialogVisible = true
this.ruleForm = {
@ -113,7 +113,7 @@ export default {
row.content = value
}
},
//
//
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
@ -132,12 +132,12 @@ export default {
this.$refs[formName].resetFields();
this.dialogVisible = false
},
//
//
addInspectionItems() {
},
getTableData() {
postEmbankmentInspectionChecklist({
postInspectionPlanlist({
data: {
timeView: {
timeField: "create_time"
@ -145,8 +145,7 @@ export default {
},
cv: {
name: "name",
type: "like",
value: this.searchInput
type: "like"
},
pageSize: this.pageData.pageSize,
pageNum: this.pageData.pageNum
@ -177,7 +176,7 @@ export default {
}
})
//
postEmbankmentInspectionChecklist({
postInspectionPlanlist({
data: {
timeView: {
timeField: "create_time"
@ -249,7 +248,7 @@ export default {
:total="pageData.total" @size-change="getTableData()">
</el-pagination>
</div>
<el-dialog title="新增/编辑巡查项" :visible.sync="dialogVisible" width="50%">
<el-dialog title="新增/编辑巡查项" :visible.sync="dialogVisible" width="50%">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label-width="120px" label="计划名称" prop="name">
<el-input style="width: 202px;" v-model="ruleForm.name"></el-input>
@ -260,7 +259,7 @@ export default {
:key="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="120px" label="巡查项目名称" prop="checkContentType">
<el-form-item label-width="120px" label="巡查项目名称" prop="checkContentType">
<el-select v-model="ruleForm.checkContentType" @change="changeContentType(ruleForm.checkContentType)"
placeholder="请选择巡视检查内容">
<el-option v-for="item in firstType" :label="item.dictLabel" :value="item.dictValue"

2
src/views/runManage/engineering/inspectionPlan/Reservoir.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理-水库 -->
<!-- 巡查项管理-水库 -->
<script>
export default {
name: '',

2
src/views/runManage/engineering/inspectionPlan/Sluice.vue

@ -1,4 +1,4 @@
<!-- 巡查项管理-水闸 -->
<!-- 巡查项管理-水闸 -->
<script>
export default {
name: '',

Loading…
Cancel
Save