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. 3
      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. 319
      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')"

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

@ -436,7 +436,7 @@
label-position="top" label-position="top"
> >
<el-col :span="8"> <el-col :span="8">
<el-form-item label="水闸名称" prop="wagaName"> <el-form-item label="水闸名称" prop="wagaName" >
<el-input v-model="form.wagaName" placeholder="请输入水闸名称" /> <el-input v-model="form.wagaName" placeholder="请输入水闸名称" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -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')"

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

@ -117,7 +117,7 @@
v-hasPermi="['system:dept:add']" v-hasPermi="['system:dept:add']"
>新增</el-button >新增</el-button
> >
<!-- v-if="scope.row.parentId != 0 && scope.row.id != 'water_youke_id'"--> <!-- v-if="scope.row.parentId != 0 && scope.row.id != 'water_youke_id'"-->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -200,7 +200,7 @@
<el-input v-model="form.deptName" placeholder="请输入单位名称" /> <el-input v-model="form.deptName" placeholder="请输入单位名称" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="显示排序" prop="orderNum"> <el-form-item label="显示排序" prop="orderNum">
<el-input-number <el-input-number
v-model="form.orderNum" v-model="form.orderNum"
@ -209,8 +209,8 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="前端名称" prop="name"> <el-form-item label="前端名称" prop="name">
<el-input v-model="form.name" placeholder="请输入前端系统名称" /> <el-input v-model="form.name" placeholder="请输入前端系统名称" />
@ -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">
@ -308,118 +322,118 @@
</el-col> </el-col>
</el-row> --> </el-row> -->
<!-- <el-row>--> <!-- <el-row>-->
<!-- <el-col :span="12">--> <!-- <el-col :span="12">-->
<!-- <el-form-item label="前端logo" prop="pcLogo">--> <!-- <el-form-item label="前端logo" prop="pcLogo">-->
<!-- <el-upload--> <!-- <el-upload-->
<!-- v-model="form.pcLogo"--> <!-- v-model="form.pcLogo"-->
<!-- class="upload-demo"--> <!-- class="upload-demo"-->
<!-- ref="upload"--> <!-- ref="upload"-->
<!-- action="this.url"--> <!-- action="this.url"-->
<!-- :show-file-list="false"--> <!-- :show-file-list="false"-->
<!-- :file-list="fileList"--> <!-- :file-list="fileList"-->
<!-- :http-request="uploadPcLogo"--> <!-- :http-request="uploadPcLogo"-->
<!-- :before-upload="beforeUpload"--> <!-- :before-upload="beforeUpload"-->
<!-- >--> <!-- >-->
<!-- <el-button slot="trigger" size="small" type="primary"--> <!-- <el-button slot="trigger" size="small" type="primary"-->
<!-- >选取图片</el-button--> <!-- >选取图片</el-button-->
<!-- >--> <!-- >-->
<!-- <el-button--> <!-- <el-button-->
<!-- style="margin-left: 30px"--> <!-- style="margin-left: 30px"-->
<!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"--> <!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- @click="deletePcLogo"--> <!-- @click="deletePcLogo"-->
<!-- v-if="img.pcLogoUrl != undefined"--> <!-- v-if="img.pcLogoUrl != undefined"-->
<!-- >删除图片</el-button--> <!-- >删除图片</el-button-->
<!-- >--> <!-- >-->
<!-- <div slot="tip" class="el-upload__tip">--> <!-- <div slot="tip" class="el-upload__tip">-->
<!-- 只能上传图片JPGPNG且不超过5MB--> <!-- 只能上传图片JPGPNG且不超过5MB-->
<!-- </div>--> <!-- </div>-->
<!-- </el-upload>--> <!-- </el-upload>-->
<!-- <img--> <!-- <img-->
<!-- v-if="img.pcLogoUrl"--> <!-- v-if="img.pcLogoUrl"-->
<!-- :src="img.pcLogoUrl"--> <!-- :src="img.pcLogoUrl"-->
<!-- class="avatar"--> <!-- class="avatar"-->
<!-- style="width: 200px; height: 124px"--> <!-- style="width: 200px; height: 124px"-->
<!-- />--> <!-- />-->
<!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>--> <!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- &lt;!&ndash; <el-col :span="8">--> <!-- &lt;!&ndash; <el-col :span="8">-->
<!-- <el-form-item label="首页背景" prop="pcBackground">--> <!-- <el-form-item label="首页背景" prop="pcBackground">-->
<!-- <el-upload--> <!-- <el-upload-->
<!-- v-model="form.pcBackground"--> <!-- v-model="form.pcBackground"-->
<!-- class="upload-demo"--> <!-- class="upload-demo"-->
<!-- ref="upload"--> <!-- ref="upload"-->
<!-- action="this.url"--> <!-- action="this.url"-->
<!-- :show-file-list="false"--> <!-- :show-file-list="false"-->
<!-- :file-list="fileList"--> <!-- :file-list="fileList"-->
<!-- :http-request="uploadPcBackground"--> <!-- :http-request="uploadPcBackground"-->
<!-- :before-upload="beforeUpload"--> <!-- :before-upload="beforeUpload"-->
<!-- >--> <!-- >-->
<!-- <el-button slot="trigger" size="small" type="primary"--> <!-- <el-button slot="trigger" size="small" type="primary"-->
<!-- >选取图片</el-button--> <!-- >选取图片</el-button-->
<!-- >--> <!-- >-->
<!-- <el-button--> <!-- <el-button-->
<!-- style="margin-left: 30px"--> <!-- style="margin-left: 30px"-->
<!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"--> <!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- @click="deletePcBackground"--> <!-- @click="deletePcBackground"-->
<!-- v-if="img.pcBackgroundUrl != undefined"--> <!-- v-if="img.pcBackgroundUrl != undefined"-->
<!-- >删除图片</el-button--> <!-- >删除图片</el-button-->
<!-- >--> <!-- >-->
<!-- <div slot="tip" class="el-upload__tip">--> <!-- <div slot="tip" class="el-upload__tip">-->
<!-- 只能上传图片JPGPNG且不超过5MB--> <!-- 只能上传图片JPGPNG且不超过5MB-->
<!-- </el-upload>--> <!-- </el-upload>-->
<!-- <img--> <!-- <img-->
<!-- v-if="img.pcBackgroundUrl"--> <!-- v-if="img.pcBackgroundUrl"-->
<!-- :src="img.pcBackgroundUrl"--> <!-- :src="img.pcBackgroundUrl"-->
<!-- class="avatar"--> <!-- class="avatar"-->
<!-- style="width: 200px; height: 124px"--> <!-- style="width: 200px; height: 124px"-->
<!-- />--> <!-- />-->
<!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>--> <!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
<!-- </el-form-item> &ndash;&gt;--> <!-- </el-form-item> &ndash;&gt;-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <el-col :span="12">--> <!-- <el-col :span="12">-->
<!-- <el-form-item label="后端logo" prop="adminLogo">--> <!-- <el-form-item label="后端logo" prop="adminLogo">-->
<!-- <el-upload--> <!-- <el-upload-->
<!-- v-model="form.adminLogo"--> <!-- v-model="form.adminLogo"-->
<!-- class="upload-demo"--> <!-- class="upload-demo"-->
<!-- ref="upload"--> <!-- ref="upload"-->
<!-- action="this.url"--> <!-- action="this.url"-->
<!-- :show-file-list="false"--> <!-- :show-file-list="false"-->
<!-- :file-list="fileList"--> <!-- :file-list="fileList"-->
<!-- :http-request="uploadAdminLogo"--> <!-- :http-request="uploadAdminLogo"-->
<!-- :before-upload="beforeUpload"--> <!-- :before-upload="beforeUpload"-->
<!-- >--> <!-- >-->
<!-- <el-button slot="trigger" size="small" type="primary"--> <!-- <el-button slot="trigger" size="small" type="primary"-->
<!-- >选取图片</el-button--> <!-- >选取图片</el-button-->
<!-- >--> <!-- >-->
<!-- <el-button--> <!-- <el-button-->
<!-- style="margin-left: 30px"--> <!-- style="margin-left: 30px"-->
<!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"--> <!-- class="el-button el-button&#45;&#45;primary el-button&#45;&#45;small"-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- @click="deleteAdminLogo"--> <!-- @click="deleteAdminLogo"-->
<!-- v-if="img.adminLogoUrl != undefined"--> <!-- v-if="img.adminLogoUrl != undefined"-->
<!-- >删除图片</el-button--> <!-- >删除图片</el-button-->
<!-- >--> <!-- >-->
<!-- <div slot="tip" class="el-upload__tip">--> <!-- <div slot="tip" class="el-upload__tip">-->
<!-- 只能上传图片JPGPNG且不超过5MB--> <!-- 只能上传图片JPGPNG且不超过5MB-->
<!-- </div>--> <!-- </div>-->
<!-- </el-upload>--> <!-- </el-upload>-->
<!-- <img--> <!-- <img-->
<!-- v-if="img.adminLogoUrl"--> <!-- v-if="img.adminLogoUrl"-->
<!-- :src="img.adminLogoUrl"--> <!-- :src="img.adminLogoUrl"-->
<!-- class="avatar"--> <!-- class="avatar"-->
<!-- style="width: 200px; height: 124px"--> <!-- style="width: 200px; height: 124px"-->
<!-- />--> <!-- />-->
<!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>--> <!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
<!-- <el-row> <!-- <el-row>
<el-col :span="8"> <el-col :span="8">
@ -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,11 +567,21 @@ 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: [],
dataTypes:[], dataTypes: [],
dataType:[], dataType: [],
pcLogoUrl: "", // Logo pcLogoUrl: "", // Logo
pcBackgroundUrl: "", // pcBackgroundUrl: "", //
adminLogoUrl: "", // Logo adminLogoUrl: "", // Logo
@ -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: {
handleRouter(path,row) { 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) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
deptId: row.id, deptId: row.id,
name:row.deptName name: row.deptName,
}, },
}); });
}, },
@ -815,10 +870,16 @@ export default {
this.loading = true; this.loading = true;
listDept(this.queryParams).then((response) => { listDept(this.queryParams).then((response) => {
// id, parentId, children, rootId // id, parentId, children, rootId
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;
}); });
@ -876,9 +937,9 @@ export default {
menuIds: [], menuIds: [],
tags: [], tags: [],
dataSources: [], dataSources: [],
dataType:null, dataType: null,
beginDate:null, beginDate: null,
endDate:null, endDate: null,
status: "0", status: "0",
}; };
this.resetForm("form"); this.resetForm("form");
@ -982,8 +1043,8 @@ export default {
if (adminLogo != null && adminLogo != "" && adminLogo != undefined) { if (adminLogo != null && adminLogo != "" && adminLogo != undefined) {
getFile(adminLogo, this.img, "adminLogoUrl"); // Logo getFile(adminLogo, this.img, "adminLogoUrl"); // Logo
} }
if(this.form.dataType){ if (this.form.dataType) {
this.dataType = this.form.dataType.split(","); this.dataType = this.form.dataType.split(",");
} }
this.open = true; this.open = true;
this.title = "修改单位"; this.title = "修改单位";
@ -1008,7 +1069,7 @@ export default {
submitForm: function () { submitForm: function () {
return this.$refs["queryForm"].validate((valid) => { return this.$refs["queryForm"].validate((valid) => {
if (valid) { if (valid) {
if(this.dataType){ if (this.dataType) {
this.form.dataType = this.dataType.join(","); this.form.dataType = this.dataType.join(",");
} }
if (this.form.id != undefined) { if (this.form.id != undefined) {

Loading…
Cancel
Save