diff --git a/src/views/manage/project/index.vue b/src/views/manage/project/index.vue
index 92b99bf..563096a 100644
--- a/src/views/manage/project/index.vue
+++ b/src/views/manage/project/index.vue
@@ -324,7 +324,11 @@
/>
-
+
-
+
-
@@ -154,14 +152,12 @@
: ""
}}
- {{ agencyList.provinceName }}-{{ agencyList.cityName }}-{{
+ {{ agencyList.provinceName }}-{{ agencyList.cityName }}-{{
agencyList.regionName
}}-{{ agencyList.streetName }}-{{ agencyList.communityName }}
-
-
+
-
@@ -358,7 +361,7 @@ export default {
categoryName: null,
categoryCode: null,
categoryLevel: null,
- categorySort: null,
+ categorySort: undefined,
categoryRemark: null,
createBy: null,
createTime: null,
@@ -452,6 +455,6 @@ export default {
diff --git a/src/views/system/compare/index.vue b/src/views/system/compare/index.vue
index 9d3866f..7902bfb 100644
--- a/src/views/system/compare/index.vue
+++ b/src/views/system/compare/index.vue
@@ -179,10 +179,16 @@
-
+
-
+
+
@@ -398,7 +404,7 @@ export default {
departmentName: null,
normCompareName: null,
normCompareCode: null,
- normCompareSort: null,
+ normCompareSort: undefined,
normCompareRemark: null,
createBy: null,
createTime: null,
diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue
index 439483b..cb0983d 100644
--- a/src/views/system/department/index.vue
+++ b/src/views/system/department/index.vue
@@ -19,7 +19,6 @@
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
- default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
@@ -418,7 +417,7 @@
v-model="form.agencyId"
:show-all-levels="false"
:placeholder="
- form.agencyName ? form.agencyName : '请选择上级机构'
+ form.agencyName ? form.agencyName : '请选择所属机构'
"
ref="cascader"
:key="isResouceShow"
@@ -477,10 +476,11 @@
@@ -533,6 +534,7 @@
@@ -721,6 +723,9 @@ export default {
id: "",
// 表单校验
rules: {
+ agencyName: [
+ { required: true, message: "所属机构不能为空", trigger: "blur" },
+ ],
departmentName: [
{ required: true, message: "科室名称不能为空", trigger: "blur" },
],
@@ -744,6 +749,19 @@ export default {
},
};
},
+ // 默认选中第一行
+ watch: {
+ deptOptions: {
+ handler(val) {
+ if (val) {
+ this.$nextTick(() => {
+ document.querySelector(".el-tree-node__content").click();
+ });
+ }
+ },
+ immediate: true,
+ },
+ },
created() {
this.getList();
this.gettreelist();
@@ -755,6 +773,14 @@ export default {
this.infocompare();
},
methods: {
+ optionsubdivision(e) {
+ console.log(e);
+ // this.form.subdivisionCategoryId = this.optionsubdivisionCategory.find(
+ // (e) => e.id == this.form.subdivisionCategoryId
+ // ).subdivisionCategoryName;
+// console.log(this.form.subdivisionCategoryName)
+
+ },
// 上级科室
changeparentDepartment(e) {
this.form.parentDepartmentId = e;
@@ -968,23 +994,30 @@ export default {
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
- if (valid) {
- if (this.form.id != null) {
- updateDepartment(this.form).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.getList();
- });
- } else {
- addDepartment(this.form).then((response) => {
- this.$modal.msgSuccess("新增成功");
- this.open = false;
- this.getList();
- });
- }
+ let reg = new RegExp("-", "g");
+ if (this.form.establishDate && this.form.revokeDate && new Date(this.form.establishDate.replace(reg, "/")) >
+ new Date(this.form.revokeDate.replace(reg, "/"))) {
+ this.$message.error("撤销日期要大于成立日期");
}
- });
+ else {
+ this.$refs["form"].validate((valid) => {
+ if (valid) {
+ if (this.form.id != null) {
+ updateDepartment(this.form).then((response) => {
+ this.$modal.msgSuccess("修改成功");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addDepartment(this.form).then((response) => {
+ this.$modal.msgSuccess("新增成功");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ }
},
/** 删除按钮操作 */
handleDelete(row) {
diff --git a/src/views/system/subdivision/index.vue b/src/views/system/subdivision/index.vue
index 3f6b3eb..0612d67 100644
--- a/src/views/system/subdivision/index.vue
+++ b/src/views/system/subdivision/index.vue
@@ -171,6 +171,7 @@
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 1253719..1db1fe2 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -398,6 +398,23 @@
+
+
+
+
+
+
+
@@ -464,23 +481,7 @@
-
-
-
-
-
-
-
+