上饶市警务平台后台管理前端
zhongrj
2022-12-29 2069d917f8b33e8de80dcf972c72cf54ae4019ba
src/views/security/security.vue
@@ -14,12 +14,12 @@
      </template>
    </avue-crud>
    <el-drawer title="活动人员区域" :visible.sync="personBox" :append-to-body="true" size="50%">
      <securityManage />
    <el-drawer title="活动人员区域" :visible.sync="personBox" :append-to-body="true" size="50%" :destroy-on-close="true">
      <securityManage ref="securityManage" :securityId="securityId"/>
    </el-drawer>
    <el-drawer title="活动车辆区域" :visible.sync="carBox" :append-to-body="true" size="50%">
      <securityManageCar />
    <el-drawer title="活动车辆区域" :visible.sync="carBox" :append-to-body="true" size="50%" :destroy-on-close="true">
      <securityManageCar ref="car" :securityId="securityId"/>
    </el-drawer>
  </basic-container>
</template>
@@ -38,6 +38,7 @@
  },
  data() {
    return {
      securityId:"",
      carBox: false,
      personBox: false,
      form: {},
@@ -337,12 +338,14 @@
      });
    },
    //活动人员区域点击按钮事件
    handlePersonList() {
    handlePersonList(row) {
      this.personBox = true;
      this.securityId = row.id
    },
    //活动车辆区域点击按钮事件
    handleCarList() {
    handleCarList(row) {
      this.carBox = true;
      this.securityId = row.id
    }
  }
};