保安服务单位许可和备案申请系统
Administrator
2022-04-11 3a82aab402e8cdee192ab47405f2a01973bd4dab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<template>
  <basic-container class="openOnceMain">
    <el-collapse v-model="activeNames" @change="handleChange">
      <el-collapse-item title="公司基本信息" name="1">
        <avue-form
          ref="form1"
          v-model="obj0"
          :option="option"
          class="cardButs"
        ></avue-form>
      </el-collapse-item>
      <el-collapse-item title="附件上传/查询" name="2">
        <attach
          v-if="openattach"
          :type="imgType"
          :ptype="type"
          :opens="opens"
          :enclosure="enclosure"
        ></attach>
      </el-collapse-item>
    </el-collapse>
  </basic-container>
</template>
<script>
import { ourDatas } from "@/views/home/ourDatas";
import attach from "@/components/attach/attach";
import { mapGetters } from "vuex";
export default {
  components: {
    attach,
  },
  props: ["useWhere", "paredData"],
  data() {
    return {
      opens: false,
      openattach: false,
      enclosure: "",
      type: "",
      activeNames: ["1", "2"],
      imgType: "",
      obj0: {},
      option: {
        emptyBtn: false,
        submitBtn: true,
        editDisabled: true,
        gutter: 50,
        column: [],
      },
    };
  },
  computed: {
    ...mapGetters(["userInfo"]),
  },
  mounted() {
    for (let i = 0; i < ourDatas.length; i++) {
      if (ourDatas[i].menuName == this.paredData.$ptype) {
        // console.log(ourDatas[i]);
        this.option.column = ourDatas[i].datas.column;
        this.imgType = ourDatas[i].imgType;
        this.openattach = true;
        this.type = ourDatas[i].type;
        this.enclosure = ourDatas[i].enclosure;
      }
    }
    let cloum = this.option.column;
    for (let i in cloum) {
      if (cloum[i].prop == "jurisdiction") {
        cloum[i] = {
          label: "所属辖区",
          prop: "jurisdiction",
          labelWidth: 160,
          span: 12,
        };
      }
      cloum[i]["disabled"] = true;
    }
    // console.log(cloum);
    this.paredData.jurisdiction = this.paredData.$jurisdiction;
    this.obj0 = this.paredData;
    // console.log(this.obj0);
  },
};
</script>
<style lang="scss" scoped>
.openOnceMain {
  width: 100%;
  height: 100%;
}
</style>