|
|
@@ -91,6 +91,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, mapMutations } from "vuex";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
import { Add, edit, getaqbwbndjh } from "@/api/safetyBook/aqbwbndjh";
|
|
|
import { deptTreeSelect } from "@/api/system/public";
|
|
|
import UserSelector from "@/components/userSelector/index.vue";
|
|
|
@@ -120,6 +121,7 @@ export default {
|
|
|
watch: {},
|
|
|
computed: {
|
|
|
...mapState([]),
|
|
|
+ ...mapGetters(["orgId", "orgName"]),
|
|
|
joinedStringArray: {
|
|
|
get() {
|
|
|
if (this.formData.names == null || this.formData.names == undefined) {
|
|
|
@@ -182,6 +184,12 @@ export default {
|
|
|
this.formData = this.reset();
|
|
|
this.id = id;
|
|
|
await this.refresh(id);
|
|
|
+ if(id){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ // console.log(this.orgId,"this.orgId")
|
|
|
+ this.formData.orgId=this.orgId;
|
|
|
+ }
|
|
|
this.isShow = true;
|
|
|
},
|
|
|
|