|
|
@@ -52,14 +52,12 @@
|
|
|
<el-table-column label="序号" type="index" width="100"/>
|
|
|
<el-table-column
|
|
|
label="组织名称"
|
|
|
-
|
|
|
- prop="deptName"
|
|
|
+ prop="name"
|
|
|
v-if="clickType == 2"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="组织名称"
|
|
|
-
|
|
|
prop="qumc"
|
|
|
v-if="clickType == 3"
|
|
|
>
|
|
|
@@ -121,7 +119,7 @@
|
|
|
<script>
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
|
|
|
-import { getDepts } from "@/api/backend/remindBroad";
|
|
|
+import { getFireTeams } from "@/api/backend/remindBroad";
|
|
|
import { getStreetPage } from "@/api/backend/street";
|
|
|
export default {
|
|
|
components: {},
|
|
|
@@ -230,14 +228,17 @@ export default {
|
|
|
methods: {
|
|
|
/** 获取消防大队和街道的数据 */
|
|
|
getDeptData() {
|
|
|
+ // 获取大队数据
|
|
|
if (this.clickType == 2) {
|
|
|
- getDepts().then((res) => {
|
|
|
+ getFireTeams(this.userId).then((res) => {
|
|
|
this.orgloading = false;
|
|
|
this.leftDataList = res.data;
|
|
|
});
|
|
|
} else if (this.clickType == 3) {
|
|
|
console.log("this.clickType", this.clickType);
|
|
|
this.queryParamsStreet.userId = this.$store.state.user.id;
|
|
|
+ this.queryParamsStreet.sjxfjg = this.$store.state.user.deptid;
|
|
|
+ console.log("-------------",this.queryParamsStreet.sjxfjg)
|
|
|
// this.form.deptId
|
|
|
getStreetPage(this.queryParamsStreet).then((response) => {
|
|
|
this.orgloading = false;
|