|
@@ -206,6 +206,7 @@
|
|
<script>
|
|
<script>
|
|
import { listDeptinfo, getDeptinfo, delDeptinfo, addDeptinfo, updateDeptinfo } from "@/api/rc/deptinfo";
|
|
import { listDeptinfo, getDeptinfo, delDeptinfo, addDeptinfo, updateDeptinfo } from "@/api/rc/deptinfo";
|
|
import { listDept } from "@/api/system/dept";
|
|
import { listDept } from "@/api/system/dept";
|
|
|
|
+import { getUserDeptId } from "@/api/system/user";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import { addCommonfile, allFileList, delCommonfile, updateCommonfile } from "@/api/rc/commonfile";
|
|
import { addCommonfile, allFileList, delCommonfile, updateCommonfile } from "@/api/rc/commonfile";
|
|
|
|
|
|
@@ -397,9 +398,12 @@ export default {
|
|
},
|
|
},
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
- this.reset();
|
|
|
|
- this.open = true;
|
|
|
|
- this.title = "添加装置信息";
|
|
|
|
|
|
+ getUserDeptId().then(response => {
|
|
|
|
+ this.reset();
|
|
|
|
+ this.form.deptId = response.data + "";
|
|
|
|
+ this.open = true;
|
|
|
|
+ this.title = "添加装置信息";
|
|
|
|
+ });
|
|
},
|
|
},
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|