parent
be4180d1e7
commit
9072baff6c
@ -0,0 +1,152 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="基础信息" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<slot>
|
||||
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
||||
<Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="搜索姓名" />
|
||||
|
||||
<Select v-model="select.team_id" style="width: 200px;margin-left: 10px;" placeholder="搜索队伍" clearable>
|
||||
<Option v-for="item in listTeam" :key="item.id" :value="item.id">{{ item.mingcheng }}</Option>
|
||||
</Select>
|
||||
<Button type="primary" style="margin-left: 10px;" @click="getList">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px;" @click="$refs['addBook'].type='add',$refs['addBook'].setlistTeam(listTeam),
|
||||
$refs['addBook'].isShow=true">添加</Button>
|
||||
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
||||
@click="$refs['imports'].show()">导入</Button> -->
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table :list="list" :total="total" @page_sizeChange="e => select.page_size = e" @pageChange="pageChange"
|
||||
:table-item="table">
|
||||
<template v-slot:btns>
|
||||
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<Button type="primary" size="small" @click="$refs['addBook'].type='editor',
|
||||
$refs['addBook'].id=scope.row.id,
|
||||
$refs['addBook'].setlistTeam(listTeam),
|
||||
$refs['addBook'].isShow=true">编辑</Button>
|
||||
<Poptip transfer confirm title="确认要删除吗?" @on-ok="delRow(scope.row.id)">
|
||||
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
||||
</xy-table>
|
||||
<addBook ref="addBook" @refresh="getList"></addBook>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
index,
|
||||
destroy
|
||||
} from "@/api/system/baseForm.js"
|
||||
import addBook from './components/addBook.vue'
|
||||
export default {
|
||||
components: {
|
||||
addBook,
|
||||
},
|
||||
data() {
|
||||
|
||||
return {
|
||||
select: {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
keyword: '',
|
||||
table_name: 'books',
|
||||
team_id:'',
|
||||
},
|
||||
|
||||
total: 0,
|
||||
list: [],
|
||||
listTeam:[],
|
||||
|
||||
table: [{
|
||||
label: '序号',
|
||||
type: 'index',
|
||||
fixed: 'left',
|
||||
width: 80,
|
||||
}, {
|
||||
label: '所在队伍',
|
||||
prop: 'suozaiduiwu',
|
||||
align: 'left',
|
||||
}, {
|
||||
label: '姓名',
|
||||
prop: 'xingming',
|
||||
align: 'left',
|
||||
width: 120
|
||||
}, {
|
||||
label: '联系电话',
|
||||
prop: 'lianxidianhua',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '创建日期',
|
||||
prop: 'created_at',
|
||||
width: 120,
|
||||
formatter: (cell, data, value) => {
|
||||
return value ? value.substring(0, 10) : ''
|
||||
}
|
||||
}],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTeamList()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index({
|
||||
...this.select,
|
||||
filter: [{
|
||||
key:'team_id',
|
||||
op:'eq',
|
||||
value:this.select.team_id
|
||||
},{
|
||||
key:'xingming',
|
||||
op:'eq',
|
||||
value:this.select.keyword
|
||||
}],
|
||||
})
|
||||
this.list = res.data
|
||||
this.total = res.total
|
||||
},
|
||||
async getTeamList(){
|
||||
const res = await index({
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
table_name: 'teams'
|
||||
})
|
||||
this.listTeam = res.data
|
||||
},
|
||||
pageChange(e) {
|
||||
this.select.page = e
|
||||
this.getList()
|
||||
},
|
||||
delRow(id) {
|
||||
if (id) {
|
||||
destroy({
|
||||
id: id,
|
||||
table_name: this.select.table_name,
|
||||
}).then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style >
|
||||
|
||||
</style>
|
||||
@ -0,0 +1,187 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="检查整改" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<slot>
|
||||
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
||||
<!-- <Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="经办人搜索" /> -->
|
||||
<Button type="primary" @click="getList">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px;"
|
||||
@click="$refs['addFlood'].type='add',
|
||||
$refs['addFlood'].isShow=true">添加</Button>
|
||||
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
||||
@click="$refs['imports'].show()">导入</Button> -->
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table :list="list" :total="total" @page_sizeChange="e => select.page_size = e" @pageChange="pageChange"
|
||||
:table-item="table">
|
||||
<template v-slot:btns>
|
||||
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<Button type="primary" size="small"
|
||||
@click="$refs['addFlood'].type='editor',
|
||||
$refs['addFlood'].id=scope.row.id,
|
||||
$refs['addFlood'].isShow=true">编辑</Button>
|
||||
<template v-for="(item,key) of statusLabel">
|
||||
<span v-if="key===scope.row.zhuangtai">
|
||||
<Button type="primary" size="small" style="margin-left: 10px;"
|
||||
@click="$refs['showFlood'].type=item['type'],
|
||||
$refs['showFlood'].id=scope.row.id,
|
||||
$refs['showFlood'].isShow=true">{{item['name']}}</Button>
|
||||
</span>
|
||||
</template>
|
||||
<Poptip transfer confirm title="确认要删除吗?" @on-ok="delRow(scope.row.id)">
|
||||
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
||||
</xy-table>
|
||||
<addFlood ref="addFlood" @refresh="getList"></addFlood>
|
||||
<showFlood ref="showFlood" @refresh="getList"></showFlood>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
index,
|
||||
destroy
|
||||
} from "@/api/system/baseForm.js"
|
||||
import addFlood from './components/addFlood.vue'
|
||||
import showFlood from './components/showFlood.vue'
|
||||
export default {
|
||||
components:{
|
||||
addFlood,
|
||||
showFlood
|
||||
},
|
||||
data() {
|
||||
// 待确认check 无需整改end 待整改need 已整改complete 重新整改need 已完成end
|
||||
|
||||
return {
|
||||
select: {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
keyword: '',
|
||||
table_name:'flood_infos'
|
||||
},
|
||||
total: 0,
|
||||
list: [],
|
||||
statusLabel:{
|
||||
"待确认":{
|
||||
type:"check",
|
||||
name:'确认'
|
||||
},
|
||||
"无需整改":{
|
||||
type:"end",
|
||||
name:'查看'
|
||||
},
|
||||
"待整改":{
|
||||
type:"need",
|
||||
name:'提交'
|
||||
},
|
||||
"已整改":{
|
||||
type:"complete",
|
||||
name:'审核'
|
||||
},
|
||||
"重新整改":{
|
||||
type:'need',
|
||||
name:'提交'
|
||||
},
|
||||
"已完成":{
|
||||
type:"end",
|
||||
name:'查看'
|
||||
}
|
||||
},
|
||||
table: [{
|
||||
label: '序号',
|
||||
type: 'index',
|
||||
fixed: 'left',
|
||||
width: 80,
|
||||
},{
|
||||
label: '状态',
|
||||
prop: 'zhuangtai',
|
||||
width: 120,
|
||||
},{
|
||||
label: '问题类型',
|
||||
prop: 'wentileixing'
|
||||
},{
|
||||
label: '检查日期',
|
||||
prop: 'jianchariqi',
|
||||
width: 120,
|
||||
},{
|
||||
label: '上报人',
|
||||
prop: 'shangbaoren',
|
||||
width: 120,
|
||||
},{
|
||||
label: '建议整改科室',
|
||||
prop: 'jianyizhenggaikeshi',
|
||||
width: 120,
|
||||
},{
|
||||
label: '检查地点',
|
||||
prop: 'jianchadidian',
|
||||
width: 120,
|
||||
},{
|
||||
label: '问题照片',
|
||||
prop: 'wentizhaopian',
|
||||
width: 120,
|
||||
},{
|
||||
label: '整改建议',
|
||||
prop: 'wentimiaoshu',
|
||||
width: 120,
|
||||
},{
|
||||
label: '问题描述',
|
||||
prop: 'zhenggaijianyi',
|
||||
width: 120,
|
||||
},{
|
||||
label: '创建日期',
|
||||
prop: 'created_at',
|
||||
width: 120,
|
||||
formatter:(cell,data,value)=>{
|
||||
return value?value.substring(0,10):''
|
||||
}
|
||||
}],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index({
|
||||
...this.select,
|
||||
filter: [],
|
||||
})
|
||||
this.list = res.data
|
||||
this.total = res.total
|
||||
},
|
||||
pageChange(e) {
|
||||
this.select.page = e
|
||||
this.getList()
|
||||
},
|
||||
delRow(id){
|
||||
if(id){
|
||||
destroy({
|
||||
id: id,
|
||||
table_name: this.select.table_name,
|
||||
}).then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,139 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="防汛计划" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<slot>
|
||||
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
||||
<!-- <Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="经办人搜索" /> -->
|
||||
<Button type="primary" @click="getList">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px;" @click="$refs['addPlan'].type='add',$refs['addPlan'].isShow=true">添加</Button>
|
||||
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
||||
@click="$refs['imports'].show()">导入</Button> -->
|
||||
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table :list="list" :total="total" @page_sizeChange="e => select.page_size = e" @pageChange="pageChange"
|
||||
:table-item="table">
|
||||
<template v-slot:btns>
|
||||
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<Button type="primary" size="small"
|
||||
@click="$refs['addPlan'].type='editor',
|
||||
$refs['addPlan'].id=scope.row.id,
|
||||
$refs['addPlan'].isShow=true">编辑</Button>
|
||||
<Button type="primary" size="small"
|
||||
@click="$refs['addTeam'].type='editor',
|
||||
$refs['addTeam'].id=scope.row.id,
|
||||
$refs['addTeam'].isShow=true">小组</Button>
|
||||
<Poptip transfer confirm title="确认要删除吗?" @on-ok="delRow(scope.row.id)">
|
||||
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
||||
</xy-table>
|
||||
<addPlan ref="addPlan" @refresh="getList"></addPlan>
|
||||
<addTeam ref="addTeam"></addTeam>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
index,
|
||||
destroy
|
||||
} from "@/api/system/baseForm.js"
|
||||
import addPlan from './components/addPlan.vue'
|
||||
import addTeam from './components/addTeam.vue'
|
||||
export default {
|
||||
components:{
|
||||
addPlan,
|
||||
addTeam
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
select: {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
keyword: '',
|
||||
table_name:'flood_checks'
|
||||
},
|
||||
total: 0,
|
||||
list: [],
|
||||
table: [{
|
||||
label: '序号',
|
||||
type: 'index',
|
||||
fixed: 'left',
|
||||
width: 80,
|
||||
},{
|
||||
label: '年份',
|
||||
prop: 'nianfen',
|
||||
width: 120,
|
||||
},{
|
||||
label: '检查类型',
|
||||
prop: 'jianchaleixing'
|
||||
},{
|
||||
label: '开始日期',
|
||||
prop: 'kaishiriqi',
|
||||
width: 120,
|
||||
},{
|
||||
label: '结束日期',
|
||||
prop: 'jieshuriqi',
|
||||
width: 120,
|
||||
},{
|
||||
label: '创建人',
|
||||
prop: 'admin.name',
|
||||
width: 120,
|
||||
},{
|
||||
label: '创建日期',
|
||||
prop: 'created_at',
|
||||
width: 120,
|
||||
formatter:(cell,data,value)=>{
|
||||
return value?value.substring(0,10):''
|
||||
}
|
||||
}],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index({
|
||||
...this.select,
|
||||
filter: [],
|
||||
})
|
||||
this.list = res.data
|
||||
console.log("this.list",this.list)
|
||||
this.total = res.total
|
||||
},
|
||||
pageChange(e) {
|
||||
this.select.page = e
|
||||
this.getList()
|
||||
},
|
||||
delRow(id){
|
||||
if(id){
|
||||
destroy({
|
||||
id: id,
|
||||
table_name: this.select.table_name,
|
||||
}).then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,147 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="基础信息" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<slot>
|
||||
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
||||
<!-- <Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="经办人搜索" /> -->
|
||||
<Button type="primary" @click="getList">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px;" @click="$refs['addTeam'].type='add',
|
||||
$refs['addTeam'].isShow=true">添加</Button>
|
||||
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
||||
@click="$refs['imports'].show()">导入</Button> -->
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table :list="list" :total="total" @page_sizeChange="e => select.page_size = e" @pageChange="pageChange"
|
||||
:table-item="table">
|
||||
<template v-slot:btns>
|
||||
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<Button type="primary" size="small" @click="$refs['addTeam'].type='editor',
|
||||
$refs['addTeam'].id=scope.row.id,
|
||||
$refs['addTeam'].isShow=true">编辑</Button>
|
||||
<Poptip transfer confirm title="确认要删除吗?" @on-ok="delRow(scope.row.id)">
|
||||
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
||||
</xy-table>
|
||||
<addTeam ref="addTeam" @refresh="getList"></addTeam>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
index,
|
||||
destroy
|
||||
} from "@/api/system/baseForm.js"
|
||||
import addTeam from './components/addTeam.vue'
|
||||
export default {
|
||||
components: {
|
||||
addTeam,
|
||||
},
|
||||
data() {
|
||||
|
||||
return {
|
||||
select: {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
keyword: '',
|
||||
table_name: 'teams'
|
||||
},
|
||||
total: 0,
|
||||
list: [],
|
||||
table: [{
|
||||
label: '序号',
|
||||
type: 'index',
|
||||
fixed: 'left',
|
||||
width: 80,
|
||||
}, {
|
||||
label: '队伍名称',
|
||||
prop: 'mingcheng',
|
||||
width: 240,
|
||||
align: 'left',
|
||||
fixed: 'left'
|
||||
}, {
|
||||
label: '公司',
|
||||
prop: 'gongsi',
|
||||
align: 'left',
|
||||
width: 240
|
||||
}, {
|
||||
label: '负责人',
|
||||
prop: 'fuzeren',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '队长',
|
||||
prop: 'duizhang',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '联系电话',
|
||||
prop: 'lianxidianhua',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '人数',
|
||||
prop: 'renshu',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '区域',
|
||||
prop: 'quyu',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '地址',
|
||||
prop: 'dizhi',
|
||||
width: 120,
|
||||
}, {
|
||||
label: '创建日期',
|
||||
prop: 'created_at',
|
||||
width: 120,
|
||||
formatter: (cell, data, value) => {
|
||||
return value ? value.substring(0, 10) : ''
|
||||
}
|
||||
}],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index({
|
||||
...this.select,
|
||||
filter: [],
|
||||
})
|
||||
this.list = res.data
|
||||
this.total = res.total
|
||||
},
|
||||
pageChange(e) {
|
||||
this.select.page = e
|
||||
this.getList()
|
||||
},
|
||||
delRow(id) {
|
||||
if (id) {
|
||||
destroy({
|
||||
id: id,
|
||||
table_name: this.select.table_name,
|
||||
}).then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in new issue