|
@@ -2,7 +2,7 @@
|
|
|
<div >
|
|
|
<div class="left_container " v-show="isshow">
|
|
|
|
|
|
- <h2 ref="title">{{props.title1}}</h2>
|
|
|
+ <!-- <h2 ref="title">{{props.title1}}</h2> -->
|
|
|
<!-- <div
|
|
|
class="img"
|
|
|
v-for="(item, index) in listArray"
|
|
@@ -48,7 +48,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="success"
|
|
|
- @click="handlexiugai(scope.$index, scope.row)"
|
|
|
+ @click.stop="handlexiugai(scope.$index, scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -98,7 +98,7 @@
|
|
|
>
|
|
|
<div>
|
|
|
<el-form>
|
|
|
- <el-form-item label="timeline" :label-width="formLabelWidth5">
|
|
|
+ <el-form-item label="时间线" :label-width="formLabelWidth5">
|
|
|
<el-input v-model="Disastersource.timeline" class="w-50 m-2" placeholder="请输入" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="值1" :label-width="formLabelWidth5">
|
|
@@ -136,7 +136,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="success"
|
|
|
- @click="handlexiugai(scope.$index, scope.row)"
|
|
|
+ @click="handlexiugai2(scope.$index, scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -197,12 +197,23 @@
|
|
|
v-model:page-size="pageSize4"
|
|
|
small
|
|
|
background
|
|
|
- layout="prev, pager, next, jumpe,"
|
|
|
+ layout="prev, total,pager, next, jumpe,"
|
|
|
:total="parseInt(total)"
|
|
|
class="mt-4"
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
/>
|
|
|
+ <!-- <el-pagination
|
|
|
+ v-model:current-page="currentPage4"
|
|
|
+ v-model:page-size="pageSize4"
|
|
|
+ :small="small"
|
|
|
+ :disabled="disabled"
|
|
|
+ :background="background"
|
|
|
+ layout="prev,total, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ /> -->
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
@@ -243,7 +254,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="success"
|
|
|
- @click="handlewater(scope.$index, scope.row)"
|
|
|
+ @click.stop="handlewater(scope.$index, scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -366,8 +377,8 @@
|
|
|
import {RouterView,RouterLink,useRouter } from "vue-router"
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
const {currentRouter}=useRouter();
|
|
|
- let tableHeight=ref(300)
|
|
|
- const props= defineProps(['title1']);
|
|
|
+ let tableHeight=ref(200)
|
|
|
+ // const props= defineProps(['title1']);
|
|
|
// const emit=defineEmits (["getdata"]);父组件调子组件
|
|
|
// const title1=ref("1")
|
|
|
let userId=ref("5f06c8bc77234f969d13e160b54c27e3");
|
|
@@ -444,16 +455,16 @@ let paginationConfig=reactive({
|
|
|
// 分页查询
|
|
|
|
|
|
function handleSizeChange(val) {
|
|
|
- console.log("11111"+val)
|
|
|
+ //console.log("11111"+val)
|
|
|
}
|
|
|
function handleCurrentChange(val){
|
|
|
- console.log("22222"+val)
|
|
|
- currentPage4.value=val
|
|
|
+ // console.log("22222"+val)
|
|
|
+ // currentPage4.value=val
|
|
|
pipelinedata(searchtaggd.value)
|
|
|
}
|
|
|
function handleClick(tab, event){
|
|
|
activeName.value=tab.props.name;
|
|
|
- console.log(activeName.value);
|
|
|
+ //console.log(activeName.value);
|
|
|
getdata();
|
|
|
}
|
|
|
//火灾接口查询
|
|
@@ -468,7 +479,7 @@ function handleCurrentChange(val){
|
|
|
}
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
- console.log(res)
|
|
|
+ // console.log(res)
|
|
|
loading.value=false;
|
|
|
if(activeName.value=='Fire'){
|
|
|
tableData.value=res.rows
|
|
@@ -498,7 +509,7 @@ function pipelinedata(searchtag){
|
|
|
}
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
- console.log(res)
|
|
|
+ // console.log(res)
|
|
|
tableData2.value=res.rows
|
|
|
total.value=res.total
|
|
|
|
|
@@ -508,7 +519,7 @@ function pipelinedata(searchtag){
|
|
|
})
|
|
|
}
|
|
|
function handleClicktable() {
|
|
|
- console.log('click')
|
|
|
+ // console.log('click')
|
|
|
}
|
|
|
function handleSelectionChange(val){
|
|
|
|
|
@@ -553,7 +564,7 @@ function pipelinedata(searchtag){
|
|
|
})
|
|
|
getdata();
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
+ .catch((err) => {``
|
|
|
ElMessage({
|
|
|
message: err.returnMsg,
|
|
|
type: 'error',
|
|
@@ -562,15 +573,21 @@ function pipelinedata(searchtag){
|
|
|
}
|
|
|
function handlexiugai(index,row){
|
|
|
newaddshow.value=true;
|
|
|
+ selectstr.value=row.pname;
|
|
|
+ source.site=row.site;
|
|
|
+ firesid.value=row.sid;
|
|
|
firepid.value=row.pid;
|
|
|
}
|
|
|
function handlewater(index,row){
|
|
|
waaddshow.value=true;
|
|
|
+ selectstr.value=row.pname;
|
|
|
+ source.site=row.site;
|
|
|
+ firesid.value=row.sid;
|
|
|
firepid.value=row.pid;
|
|
|
}
|
|
|
|
|
|
function handleDelete(index,row) {
|
|
|
- console.log(index, row)
|
|
|
+ // console.log(index, row)
|
|
|
}
|
|
|
function queding(){
|
|
|
selectfun();
|
|
@@ -587,7 +604,7 @@ function pipelinedata(searchtag){
|
|
|
function selectfun(){
|
|
|
selectstr.value='';
|
|
|
currentPage4.value=1;
|
|
|
- console.log(multipleSelection.value)
|
|
|
+ // console.log(multipleSelection.value)
|
|
|
if(multipleSelection.value.length!=0){
|
|
|
firepid.value=multipleSelection.value[0].id;
|
|
|
selectstr.value=multipleSelection.value[0].name;
|
|
@@ -628,6 +645,7 @@ function pipelinedata(searchtag){
|
|
|
}
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
+
|
|
|
if(activeName.value=='Fire'){
|
|
|
tableDatafir.value=res.rows;
|
|
|
}else{
|
|
@@ -658,7 +676,7 @@ function pipelinedata(searchtag){
|
|
|
}
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
ElMessage({
|
|
|
message: res.returnMsg,
|
|
|
type: 'success',
|
|
@@ -674,7 +692,7 @@ function pipelinedata(searchtag){
|
|
|
//getdata();
|
|
|
})
|
|
|
|
|
|
- defineExpose({isshow,getdata,})
|
|
|
+ defineExpose({isshow,getdata})
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
.demo-pagination-block + .demo-pagination-block {
|