Browse Source

修改

master_tdsql
xzt 1 year ago
parent
commit
14b29c3e4f
  1. 2
      src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue
  2. 2
      src/views/dyke/engineeringCondition/dykeCompare/components/projectManagement.vue
  3. 2
      src/views/engineeringCondition/baseInfo/dyke/dykeCompare/components/basePage.vue
  4. 2
      src/views/engineeringCondition/baseInfo/dyke/dykeCompare/components/projectManagement.vue
  5. 1
      src/views/engineeringCondition/baseInfo/sluice/sluiceBaseInfo/index.vue
  6. 2
      src/views/engineeringCondition/baseInfo/sluice/sluiceCompare/components/basePage.vue
  7. 2
      src/views/engineeringCondition/baseInfo/sluice/sluiceCompare/components/projectManagement.vue
  8. 2
      src/views/safetyManage/confirmDelimitationManage/sluice/index.vue
  9. 8
      src/views/safetyManage/declarationManage/sluice/declare/components/listPage/index.vue
  10. 27
      src/views/safetyManage/declarationManage/sluice/declare/components/listPage/transform.vue
  11. 32
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/basePage.vue
  12. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/designParameter.vue
  13. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/dischargeCapacity.vue
  14. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/electromechanicalEquipment.vue
  15. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/engineeringBenefit.vue
  16. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/hydrologicalCharacteristics.vue
  17. 13
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/index.vue
  18. 4
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/managementSystemFxzz.vue
  19. 2
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/managementSystemFzr.vue
  20. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/transform.vue
  21. 2
      src/views/safetyManage/safetyAppraisal/sluice/components/listBaseInfo_em.vue
  22. 2
      src/views/safetyManage/safetyAppraisal/sluice/components/listSafetyDetection_em.vue
  23. 19
      src/views/safetyManage/safetyAppraisal/sluice/list.vue
  24. 2
      src/views/sluice/engineeringCondition/sluiceCompare/components/basePage.vue
  25. 2
      src/views/sluice/engineeringCondition/sluiceCompare/components/projectManagement.vue
  26. 71
      src/views/system/dept/index.vue

2
src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
ref="descriptions" ref="descriptions"
> >
<el-descriptions-item :contentClassName="isDiff('dikeName')"> <el-descriptions-item :contentClassName="isDiff('dikeName')">

2
src/views/dyke/engineeringCondition/dykeCompare/components/projectManagement.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item <el-descriptions-item
:contentClassName="isDiff('engineeringManagementUnit')" :contentClassName="isDiff('engineeringManagementUnit')"

2
src/views/engineeringCondition/baseInfo/dyke/dykeCompare/components/basePage.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
ref="descriptions" ref="descriptions"
> >
<el-descriptions-item :contentClassName="isDiff('dikeName')"> <el-descriptions-item :contentClassName="isDiff('dikeName')">

2
src/views/engineeringCondition/baseInfo/dyke/dykeCompare/components/projectManagement.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item <el-descriptions-item
:contentClassName="isDiff('engineeringManagementUnit')" :contentClassName="isDiff('engineeringManagementUnit')"

1
src/views/engineeringCondition/baseInfo/sluice/sluiceBaseInfo/index.vue

@ -1021,6 +1021,7 @@ export default {
rules: { rules: {
wagaName: [ wagaName: [
{ required: true, message: "请输入水闸名称", trigger: "blur" }, { required: true, message: "请输入水闸名称", trigger: "blur" },
{ max:250, message: "字符长度最大为250", trigger: "blur" },
], ],
wagaCode: [ wagaCode: [
{ required: true, message: "请输入水闸编码", trigger: "blur" }, { required: true, message: "请输入水闸编码", trigger: "blur" },

2
src/views/engineeringCondition/baseInfo/sluice/sluiceCompare/components/basePage.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
ref="descriptions" ref="descriptions"
> >
<el-descriptions-item :contentClassName="isDiff('wagaName')"> <el-descriptions-item :contentClassName="isDiff('wagaName')">

2
src/views/engineeringCondition/baseInfo/sluice/sluiceCompare/components/projectManagement.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item <el-descriptions-item
:contentClassName="isDiff('engineeringManagementUnit')" :contentClassName="isDiff('engineeringManagementUnit')"

2
src/views/safetyManage/confirmDelimitationManage/sluice/index.vue

@ -298,7 +298,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 工程功能 </template> <template slot="label"> 工程功能 </template>

8
src/views/safetyManage/declarationManage/sluice/declare/components/listPage/index.vue

@ -64,7 +64,7 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['yg:jbxx:add']" v-hasPermi="['yg:jbxx:add']"
>申报</el-button >登记</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -622,7 +622,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="安全鉴定状态"> <el-form-item label="安全鉴定状态">
<el-radio-group v-model="form.securityStatus"> <el-radio-group v-model="form.securityStatus">
<el-radio <el-radio
@ -633,7 +633,7 @@
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
</el-form> </el-form>
</el-row> </el-row>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -848,6 +848,8 @@ export default {
this.djOpen = true; this.djOpen = true;
setTimeout(() => { setTimeout(() => {
this.$refs.transform.inFo = row; this.$refs.transform.inFo = row;
console.log("this.$refs.transform.inFo", this.$refs.transform.inFo);
this.$refs.transform.open = this.djOpen; this.$refs.transform.open = this.djOpen;
this.$refs.transform.title = "换证信息"; this.$refs.transform.title = "换证信息";
}, 0); }, 0);

27
src/views/safetyManage/declarationManage/sluice/declare/components/listPage/transform.vue

@ -116,15 +116,6 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="所管部门" prop="departmentManagement">
<el-input
v-model="form.departmentManagement"
placeholder="请输入所管部门"
/>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="原安全类别" prop="securityCategory"> <el-form-item label="原安全类别" prop="securityCategory">
<el-select <el-select
@ -142,6 +133,14 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="所管部门" prop="departmentManagement">
<el-input
v-model="form.departmentManagement"
placeholder="请输入所管部门"
/>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="变更后安全类别" prop="securityCategoryNow"> <el-form-item label="变更后安全类别" prop="securityCategoryNow">
<!-- <el-input <!-- <el-input
@ -441,6 +440,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.data.wagaId = this.inFo.id; this.queryParams.data.wagaId = this.inFo.id;
console.log(111, this.inFo);
listHzxx(this.queryParams).then((response) => { listHzxx(this.queryParams).then((response) => {
if (response.records[0]) { if (response.records[0]) {
this.form = response.records[0]; this.form = response.records[0];
@ -458,6 +458,15 @@ export default {
if (this.form.securityCategoryAttachment) { if (this.form.securityCategoryAttachment) {
this.fileList2 = JSON.parse(this.form.securityCategoryAttachment); this.fileList2 = JSON.parse(this.form.securityCategoryAttachment);
} }
} else {
this.form.wagaName = this.inFo.wagaName;
this.form.wagaCode = this.inFo.wagaCode;
this.form.wagaType = this.inFo.wagaType;
this.form.adcd = this.inFo.adcd;
this.form.engScal = this.inFo.engScal;
this.form.wagaUse = this.inFo.wagaUse;
this.form.completionTime = this.inFo.compDate;
this.form.securityCategory = this.inFo.securityCategory;
} }
console.log("☃☃登记表单信息☃☃", this.form); console.log("☃☃登记表单信息☃☃", this.form);
// this.total = response.total; // this.total = response.total;

32
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/basePage.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 水闸名称 </template> <template slot="label"> 水闸名称 </template>
@ -98,7 +98,7 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 观测项目 </template> <template slot="label"> 观测项目 </template>
{{ this.form.observationProject }} {{ observationProjectFormat(this.form) }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 水准基面 </template> <template slot="label"> 水准基面 </template>
@ -108,14 +108,6 @@
<template slot="label"> 水闸概况 </template> <template slot="label"> 水闸概况 </template>
{{ this.form.sluiceOverview }} {{ this.form.sluiceOverview }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 观测项目 </template>
{{ this.form.observationProject }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 观测项目 </template>
{{ this.form.observationProject }}
</el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 安全类别 </template> <template slot="label"> 安全类别 </template>
{{ securityCategoryFormat(this.form) }} {{ securityCategoryFormat(this.form) }}
@ -128,8 +120,8 @@
</el-descriptions> </el-descriptions>
<div class="btnList"> <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="pass"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="noPass">不通过</el-button>
</div> </div>
</div> </div>
</template> </template>
@ -315,6 +307,12 @@ export default {
}); });
}, },
methods: { methods: {
pass() {
console.log("审核通过");
},
noPass() {
console.log("审核不通过");
},
getTreeData() { getTreeData() {
getAreasData().then((items) => { getAreasData().then((items) => {
// console.log("getAreasData", items.data); // console.log("getAreasData", items.data);
@ -381,6 +379,14 @@ export default {
isGateProjectFormat(row, column) { isGateProjectFormat(row, column) {
return this.selectDictLabel(this.isGateProjectOptions, row.isGateProject); return this.selectDictLabel(this.isGateProjectOptions, row.isGateProject);
}, },
//
observationProjectFormat(row, column) {
return this.selectDictLabel(
this.observationProjectOptions,
row.observationProject
);
},
// //
securityCategoryFormat(row, column) { securityCategoryFormat(row, column) {
return this.selectDictLabel( return this.selectDictLabel(
@ -443,7 +449,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
console.log("审核"); console.log("审核通过");
// this.$refs["form"].validate((valid) => { // this.$refs["form"].validate((valid) => {
// if (valid) { // if (valid) {
// if (this.form.id != null) { // if (this.form.id != null) {

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/designParameter.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 闸基地质条件 </template> <template slot="label"> 闸基地质条件 </template>
@ -103,10 +103,10 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div> -->
</div> </div>
</template> </template>

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/dischargeCapacity.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 闸上水位 </template> <template slot="label"> 闸上水位 </template>
@ -38,10 +38,10 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div> -->
</div> </div>
</template> </template>

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/electromechanicalEquipment.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 启闭设备 </template> <template slot="label"> 启闭设备 </template>
@ -59,10 +59,10 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div> -->
</div> </div>
</template> </template>

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/engineeringBenefit.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 设计灌溉面积m² </template> <template slot="label"> 设计灌溉面积m² </template>
@ -38,10 +38,10 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div> -->
</div> </div>
</template> </template>

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/hydrologicalCharacteristics.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 河道宽度m </template> <template slot="label"> 河道宽度m </template>
@ -74,10 +74,10 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div> -->
</div> </div>
</template> </template>

13
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/index.vue

@ -74,6 +74,10 @@
> >
<engineeringBenefit /> <engineeringBenefit />
</el-tab-pane> </el-tab-pane>
<!-- <div class="btnList">
<el-button type="primary" @click="pass"> </el-button>
<el-button @click="noPass">不通过</el-button>
</div> -->
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
@ -116,6 +120,12 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
pass() {
console.log("审核通过");
},
noPass() {
console.log("审核不通过");
},
goBack() { goBack() {
this.$router.back(); this.$router.back();
}, },
@ -147,4 +157,7 @@ export default {
justify-content: space-between; justify-content: space-between;
margin-bottom: 20px; margin-bottom: 20px;
} }
.btnList {
text-align: right;
}
</style> </style>

4
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/managementSystemFxzz.vue

@ -237,7 +237,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 组织名称 </template> <template slot="label"> 组织名称 </template>
@ -311,7 +311,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<template v-for="(item, index) in counter"> <template v-for="(item, index) in counter">
<el-descriptions-item :key="'name' + index"> <el-descriptions-item :key="'name' + index">

2
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/managementSystemFzr.vue

@ -196,7 +196,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 责任人部门类型 </template> <template slot="label"> 责任人部门类型 </template>

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/transform.vue

@ -24,7 +24,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 水闸名称 </template> <template slot="label"> 水闸名称 </template>
@ -92,7 +92,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 安全鉴定情况 </template> <template slot="label"> 安全鉴定情况 </template>
@ -143,7 +143,7 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button type="primary" @click="notPass">不通过</el-button> <el-button type="primary" @click="notPass">不通过</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>

2
src/views/safetyManage/safetyAppraisal/sluice/components/listBaseInfo_em.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 水闸名称 </template> <template slot="label"> 水闸名称 </template>

2
src/views/safetyManage/safetyAppraisal/sluice/components/listSafetyDetection_em.vue

@ -9,7 +9,7 @@
width: '180px', width: '180px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item :span="2"> <el-descriptions-item :span="2">
<template slot="label"> 水闸名称 </template> <template slot="label"> 水闸名称 </template>

19
src/views/safetyManage/safetyAppraisal/sluice/list.vue

@ -251,7 +251,7 @@
</el-tabs> </el-tabs>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary"> 66</el-button> <el-button type="primary"> </el-button>
<el-button>不通过</el-button> <el-button>不通过</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -446,6 +446,23 @@ export default {
margin-top: 8vh !important; margin-top: 8vh !important;
height: 800px; height: 800px;
overflow: auto; overflow: auto;
position: relative;
.el-dialog__footer {
border-top: 2px solid #e6ebf5;
position: absolute;
right: 0;
bottom: 0;
display: flex;
width: 100%;
justify-content: center;
.dialog-footer {
background: #f5f7fa;
width: 100%;
text-align: center;
padding: 10px 0;
border-radius: 10px;
}
}
} }
} }
</style> </style>

2
src/views/sluice/engineeringCondition/sluiceCompare/components/basePage.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
ref="descriptions" ref="descriptions"
> >
<el-descriptions-item :contentClassName="isDiff('wagaName')"> <el-descriptions-item :contentClassName="isDiff('wagaName')">

2
src/views/sluice/engineeringCondition/sluiceCompare/components/projectManagement.vue

@ -24,7 +24,7 @@
width: '120px', width: '120px',
height: '50px', height: '50px',
}" }"
:contentStyle="{}" :contentStyle="{ minWidth: '350px' }"
> >
<el-descriptions-item <el-descriptions-item
:contentClassName="isDiff('engineeringManagementUnit')" :contentClassName="isDiff('engineeringManagementUnit')"

71
src/views/system/dept/index.vue

@ -248,7 +248,21 @@
/> />
</el-form-item> </el-form-item>
</el-col>--> </el-col>-->
<el-col :span="12">
<el-form-item label="行政区划" prop="xzqhId">
<el-cascader
:options="areasOptions"
v-model="form.xzqhId"
:props="areasOptionProps"
placeholder="请选择行政区划"
clearable
size="small"
style="width: 100%"
@change="handleChange"
>
</el-cascader>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="SLOGAN"> <el-form-item label="SLOGAN">
@ -539,7 +553,7 @@ import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { getFile } from "@/api/common"; import { getFile } from "@/api/common";
import { getAreasData } from "@/api/areas/index";
import myaxios from "axios"; import myaxios from "axios";
@ -553,6 +567,16 @@ export default {
components: { Treeselect }, components: { Treeselect },
data() { data() {
return { return {
areasOptionProps: {
emitPath: false,
checkStrictly: true, //
// lazy: true,
// lazyLoad: function qylazyLoad(node) {
// // node.level = 5;
// console.log("node", node.level);
// },
},
areasOptions: [],
uploadForm: new FormData(), uploadForm: new FormData(),
fileList: [], fileList: [],
list: [], list: [],
@ -637,6 +661,9 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
xzqhId: [
{ required: true, message: "行政区划不能为空", trigger: "blur" },
],
}, },
// //
checkTags: false, checkTags: false,
@ -645,11 +672,12 @@ export default {
}; };
}, },
created() { created() {
this.getTreeData();
this.getList(); this.getList();
this.getDicts("sys_normal_disable").then((response) => { this.getDicts("sys_normal_disable").then((response) => {
this.statusOptions = response.data; this.statusOptions = response.data;
}); });
this.getDicts('characteristic_type').then((response) => { this.getDicts("characteristic_type").then((response) => {
this.dataTypes = response.data; this.dataTypes = response.data;
}); });
this.getDicts("sys_notice_status").then((response) => { this.getDicts("sys_notice_status").then((response) => {
@ -669,12 +697,39 @@ export default {
// }); // });
}, },
methods: { methods: {
getTreeData() {
getAreasData().then((items) => {
let res = [];
let getChildren = (res, pid) => {
for (const i of items.data) {
if (i.parentid === pid) {
const newItem = {
label: i.name,
value: i.id,
};
if (i.layer != 3) newItem.children = [];
res.push(newItem);
getChildren(newItem.children, newItem.value);
}
}
};
getChildren(res, items.data[0].parentid);
console.log("areasOptions", res);
this.areasOptions = res;
});
},
handleChange(value) {
//valuecode
if (value) {
console.log("value", value);
}
},
handleRouter(path, row) { handleRouter(path, row) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
deptId: row.id, deptId: row.id,
name:row.deptName name: row.deptName,
}, },
}); });
}, },
@ -818,7 +873,13 @@ export default {
if (this.queryParams.deptName || this.queryParams.status) { if (this.queryParams.deptName || this.queryParams.status) {
this.deptList = response.data; this.deptList = response.data;
} else { } else {
this.deptList = this.handleTree(response.data, "id","parentId","children","0"); this.deptList = this.handleTree(
response.data,
"id",
"parentId",
"children",
"0"
);
} }
this.loading = false; this.loading = false;
}); });

Loading…
Cancel
Save