|
|
@@ -79,7 +79,6 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
-
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
|
@@ -134,7 +133,11 @@
|
|
|
<span v-text="getPageIndex(scope.$index)"> </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="机构名称" min-width="150" ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="name"
|
|
|
+ label="机构名称"
|
|
|
+ min-width="150"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column align="center" prop="type" label="机构类型">
|
|
|
<template v-slot="scope">
|
|
|
<dict-tag
|
|
|
@@ -144,7 +147,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column prop="code" label="编码"></el-table-column> -->
|
|
|
-
|
|
|
+
|
|
|
<el-table-column prop="isLock" align="center" label="状态">
|
|
|
<template v-slot="scope">
|
|
|
<dict-tag
|
|
|
@@ -165,9 +168,22 @@
|
|
|
<span v-text="scope.row.managerPhone"> </span>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column align="center" prop="manager" label="负责人"></el-table-column>
|
|
|
- <el-table-column align="center" prop="managerPhone" label="负责人电话"></el-table-column>
|
|
|
- <el-table-column align="center" prop="sort" label="排序" min-width="40"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="manager"
|
|
|
+ label="负责人"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="managerPhone"
|
|
|
+ label="负责人电话"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="sort"
|
|
|
+ label="排序"
|
|
|
+ min-width="40"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
@@ -346,10 +362,7 @@
|
|
|
@click="changeSubmitForm"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- v-if="title == '新增'"
|
|
|
- type="primary"
|
|
|
- @click="addSubmitForm"
|
|
|
+ <el-button v-if="title == '新增'" type="primary" @click="addSubmitForm"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
@@ -558,19 +571,17 @@ export default {
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- console.log(this.queryParams.parentId,"this.queryParams.parentId")
|
|
|
- console.log(this.form.parentId,"this.form.parentId")
|
|
|
+ async handleAdd() {
|
|
|
+ console.log(this.queryParams.parentId, "this.queryParams.parentId");
|
|
|
+ console.log(this.form.parentId, "this.form.parentId");
|
|
|
this.reset();
|
|
|
if (this.queryParams.parentId != undefined) {
|
|
|
if (this.pId != -1) {
|
|
|
- deptTreeSelect().then((response) => {
|
|
|
- this.deptOptions2 = response.data;
|
|
|
- this.defaultKeys.push(response.data[0].id);
|
|
|
- // this.queryParams.parentId = response.data[0].id;
|
|
|
- // this.handleQuery();
|
|
|
- });
|
|
|
- }
|
|
|
+ await deptTreeSelect().then((response) => {
|
|
|
+ this.deptOptions2 = response.data;
|
|
|
+ this.defaultKeys.push(response.data[0].id);
|
|
|
+ });
|
|
|
+ }
|
|
|
this.form.parentId = this.queryParams.parentId;
|
|
|
}
|
|
|
this.open = true;
|
|
|
@@ -603,7 +614,7 @@ export default {
|
|
|
changeSubmitForm() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- console.log(this.form,"this.form")
|
|
|
+ console.log(this.form, "this.form");
|
|
|
updateDept(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("处理成功");
|
|
|
this.open = false;
|