瀏覽代碼

修改单位信息的弹框

“yueshang” 1 年之前
父節點
當前提交
3df544c6f4

+ 5 - 2
src/views/backend/orgDrill/index.vue

@@ -299,7 +299,7 @@ export default {
     }
   },
   created() {
-    this.getList()
+    // this.getList()
 
   },
   computed: {
@@ -309,9 +309,10 @@ export default {
     /** 查询列表 */
     getList() {
       this.loading = true
-      this.queryParams.orgId=this.orgId
+      this.queryParams.orgId=parseInt(this.orgId)
       // 执行查询
       getOrgDrillPage(this.queryParams).then(response => {
+        console.log('firstthis.queryParams', this.queryParams,response)
         this.list = response.data.list
         this.total = response.data.total
         this.loading = false
@@ -338,6 +339,8 @@ export default {
         status: 0,
       }
       this.resetForm("form")
+      this.form.orgId = this.orgId
+      this.queryParams.orgId=this.orgId?this.orgId:''
     },
     /** 搜索按钮操作 */
     handleQuery() {

+ 16 - 2
src/views/backend/orgReport/index.vue

@@ -41,7 +41,13 @@
           <span>{{ parseTime(scope.row.reportDate) }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="报告下载地址" align="center" prop="fileUrl" />
+      <el-table-column label="报告下载地址" align="center" prop="fileUrl">
+        <template v-slot="scope">
+          <el-link v-if="scope.row.fileUrl" type="primary" :href="scope.row.fileUrl"
+            >下载</el-link
+          >
+        </template>
+      </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template v-slot="scope">
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
@@ -120,7 +126,15 @@ export default {
   created() {
     this.getList();
   },
-
+  watch: {
+    orgId: {
+      //深度监听,可监听到对象、数组的变化
+      handler(newV, oldV) {
+        this.getList();
+      },
+      deep: true,
+    },
+  },
   methods: {
     /** 查询列表 */
     getList() {

+ 1 - 0
src/views/unitorg/buildingInfo/index.vue

@@ -622,6 +622,7 @@ export default {
       this.resetForm("form")
       this.alreadySelectedOrgList = [];
       this.form.orgId = this.orgId
+      this.queryParams.orgId=this.orgId?this.orgId:''
     },
     /** 搜索按钮操作 */
     handleQuery() {

+ 1 - 0
src/views/unitorg/emp/index.vue

@@ -851,6 +851,7 @@ export default {
       };
       this.resetForm("form");
       this.form.sjjg = this.sjjg;
+      this.queryParams.sjjg=this.sjjg?this.sjjg:''
     },
     /** 搜索按钮操作 */
     handleQuery() {

+ 5 - 3
src/views/unitorg/fpd/index.vue

@@ -285,8 +285,8 @@ export default {
     }
   },
   created() {
-    this.getList()
-    this.getTreeselect()
+    // this.getList()
+    // this.getTreeselect()
 
   },
   props: ["orgId"],
@@ -349,8 +349,9 @@ export default {
       // })
       // 根据单位id获得消防设施带分页
       // if (this.orgId !== null && this.orgId !== undefined) {   //屏蔽后数据不转圈了
-      // this.queryParams.orgId = this.orgId   //屏蔽是暂时的,没有orgId
+      this.queryParams.orgId = this.orgId   //屏蔽是暂时的,没有orgId
       getFpdByOrgId(this.queryParams).then(response => {
+        console.log('firstresponse', response)
         this.loading = false
         this.list = response.data.records
         this.total = response.data.total
@@ -446,6 +447,7 @@ export default {
       }
       this.resetForm("form")
       this.form.orgId = this.orgId
+      this.queryParams.orgId=this.orgId?this.orgId:''
     },
     /** 搜索按钮操作 */
     handleQuery() {

+ 2 - 0
src/views/unitorg/microStation/index.vue

@@ -413,6 +413,8 @@ export default {
         status: 0,
       }
       this.resetForm("form")
+      this.form.orgId = this.orgId
+      this.queryParams.orgId=this.orgId?this.orgId:''
     },
     /** 搜索按钮操作 */
     handleQuery() {