11111
parent
ab28e7148d
commit
f8cb7da6f7
|
@ -50,9 +50,6 @@
|
||||||
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-waves class="filter-item" type="danger" icon="el-icon-delete" @click="handleBatchDel">
|
|
||||||
删除
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -70,13 +67,8 @@
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
>
|
||||||
<el-table-column
|
|
||||||
:reserve-selection="true"
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center"/>
|
|
||||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
<el-table-column prop="OUTSOURCED_NAME" label="重点工程名称" show-overflow-tooltip>
|
<el-table-column prop="OUTSOURCED_NAME" label="重点工程名称" show-overflow-tooltip>
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
|
@ -109,9 +101,12 @@
|
||||||
{{ row.ISPUNISH === "1" ? "是" : row.ISPUNISH === "2" ?"否":"处罚人未处理" }}
|
{{ row.ISPUNISH === "1" ? "是" : row.ISPUNISH === "2" ?"否":"处罚人未处理" }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="100">
|
<el-table-column label="操作" align="center" width="170">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.HIDDEN_ID)">查看</el-button>
|
<div style="display: flex; justify-content: space-between;">
|
||||||
|
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.HIDDEN_ID)">查看</el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleBatchDel(row.HIDDEN_ID)">删除</el-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -145,8 +140,6 @@ export default {
|
||||||
ISCHECK: '',
|
ISCHECK: '',
|
||||||
ISPUNISH: '',
|
ISPUNISH: '',
|
||||||
varList: [],
|
varList: [],
|
||||||
/** 当前选中行 */
|
|
||||||
multipleSelection: [],
|
|
||||||
stateList: [
|
stateList: [
|
||||||
// { ID: '0', NAME: '未申请' },
|
// { ID: '0', NAME: '未申请' },
|
||||||
// { ID: '1', NAME: '申请中' },
|
// { ID: '1', NAME: '申请中' },
|
||||||
|
@ -234,28 +227,18 @@ export default {
|
||||||
this.$parent.activeName = 'Info'
|
this.$parent.activeName = 'Info'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 删除
|
||||||
*/
|
*/
|
||||||
handleBatchDel() {
|
handleBatchDel(HIDDEN_ID) {
|
||||||
// 获取选中的行数据
|
|
||||||
const selectedRows = this.multipleSelection
|
|
||||||
// 如果没有选中任何行,则提示用户
|
|
||||||
if (this.multipleSelection === '' || selectedRows.length === 0) {
|
|
||||||
this.$message.warning('请选择要删除的行')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
// 弹出确认框
|
// 弹出确认框
|
||||||
this.$confirm('确定要删除这些记录吗?', '提示', {
|
this.$confirm('确定要删除吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 获取所有选中行的 ID
|
|
||||||
let ids = ''
|
|
||||||
selectedRows.forEach(row => { ids += row.HIDDEN_ID + ',' })
|
|
||||||
// 发送批量删除请求
|
// 发送批量删除请求
|
||||||
const url = '/keyprojectcheck/delete/hidden/all'
|
const url = '/keyprojectcheck/delete/hidden/id/' + HIDDEN_ID
|
||||||
requestFN(url, { DATA_IDS: ids }).then((response) => {
|
requestFN(url).then((response) => {
|
||||||
// 删除成功后的处理
|
// 删除成功后的处理
|
||||||
this.$message.success('删除成功')
|
this.$message.success('删除成功')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
@ -269,12 +252,6 @@ export default {
|
||||||
message: '已取消删除'
|
message: '已取消删除'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 表格行选择器处理
|
|
||||||
*/
|
|
||||||
handleSelectionChange(val) {
|
|
||||||
this.multipleSelection = val
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,8 @@ export default {
|
||||||
this.KEYWORDS = ''
|
this.KEYWORDS = ''
|
||||||
this.STATE = ''
|
this.STATE = ''
|
||||||
this.OUTSOURCED_NAME = ''
|
this.OUTSOURCED_NAME = ''
|
||||||
|
this.UNITS_PIC_NAME = ''
|
||||||
|
this.UNITS_PHONE = ''
|
||||||
this.getQuery()
|
this.getQuery()
|
||||||
},
|
},
|
||||||
// 获取列表
|
// 获取列表
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<component :is="activeName"/>
|
<keep-alive>
|
||||||
|
<component :is="activeName"/>
|
||||||
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -13,13 +15,14 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
List: List,
|
List: List,
|
||||||
meteorologicalList: meteorologicalList,
|
meteorologicalList: meteorologicalList,
|
||||||
meteorologicalHistory: meteorologicalHistory,
|
meteorologicalHistory: meteorologicalHistory
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeName: 'List',
|
activeName: 'List',
|
||||||
CORPINFO_ID: '',
|
CORPINFO_ID: '',
|
||||||
CODE: ''
|
CODE: '',
|
||||||
|
KEYWORDS: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<component :is="activeName"/>
|
<keep-alive>
|
||||||
|
<component :is="activeName"/>
|
||||||
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<component :is="activeName" />
|
<keep-alive>
|
||||||
|
<component :is="activeName" />
|
||||||
|
</keep-alive>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
<el-form-item label="检查人意见" prop="INSPECTION_USER_OPINION">
|
<el-form-item label="检查人意见" prop="INSPECTION_USER_OPINION">
|
||||||
<el-input v-model="form.INSPECTION_USER_OPINION" :autosize="{ minRows: 1}" type="textarea" maxlength="2000" placeholder="这里输入检查人意见(有异议时必填)..." title="检查人意见(有异议时必填)"/>
|
<el-input v-model="form.INSPECTION_USER_OPINION" :autosize="{ minRows: 1}" type="textarea" maxlength="2000" placeholder="这里输入检查人意见(有异议时必填)..." title="检查人意见(有异议时必填)"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="检查人">
|
<!-- <el-form-item label="检查人">-->
|
||||||
<el-button data-target="Modal" type="primary" @click="showModal">手写签字</el-button>
|
<!-- <el-button data-target="Modal" type="primary" @click="showModal">手写签字</el-button>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<div v-show="form.INSPECTION_USER_SIGN_IMG != ''" class="demo-image__preview">
|
<div v-show="form.INSPECTION_USER_SIGN_IMG != ''" class="demo-image__preview">
|
||||||
<el-image
|
<el-image
|
||||||
:src="form.INSPECTION_USER_SIGN_IMG"
|
:src="form.INSPECTION_USER_SIGN_IMG"
|
||||||
|
@ -112,10 +112,10 @@ export default {
|
||||||
if (!this.form.INSPECTION_USER_OPINION) {
|
if (!this.form.INSPECTION_USER_OPINION) {
|
||||||
this.$message.error('您还未填写意见')
|
this.$message.error('您还未填写意见')
|
||||||
}
|
}
|
||||||
if (!this.form.INSPECTION_USER_SIGN_IMG) {
|
// if (!this.form.INSPECTION_USER_SIGN_IMG) {
|
||||||
this.$message.error('您还未签字')
|
// this.$message.error('您还未签字')
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
this.$emit('getProposal', this.form)
|
this.$emit('getProposal', this.form)
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="检查状态">
|
<el-form-item label="检查状态">
|
||||||
<el-select v-model="search.INSPECTION_STATUS" placeholder="隐患状态" clearable style="width: 100%">
|
<el-select v-model="search.INSPECTION_STATUS" placeholder="请选择" clearable style="width: 100%">
|
||||||
<el-option v-for="item in statusList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
<el-option v-for="item in statusList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -267,7 +267,7 @@ export default {
|
||||||
INSPECTION_CASE: '' // 检查情况
|
INSPECTION_CASE: '' // 检查情况
|
||||||
},
|
},
|
||||||
statusList: [
|
statusList: [
|
||||||
{ ID: '', NAME: '请选择' },
|
// { ID: '', NAME: '请选择' },
|
||||||
{ ID: '0', NAME: '待检查人核实' },
|
{ ID: '0', NAME: '待检查人核实' },
|
||||||
{ ID: '1', NAME: '检查人核实中' },
|
{ ID: '1', NAME: '检查人核实中' },
|
||||||
{ ID: '2', NAME: '待被检查人确认' },
|
{ ID: '2', NAME: '待被检查人确认' },
|
||||||
|
@ -576,6 +576,7 @@ export default {
|
||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
})
|
})
|
||||||
|
this.search.INSPECTION_TYPE = this.search.INSPECTION_TYPE == null ? '' : this.search.INSPECTION_TYPE
|
||||||
const object = {
|
const object = {
|
||||||
...this.search,
|
...this.search,
|
||||||
INSPECTION_TIME_START: this.search.INSPECTION_TIME[0],
|
INSPECTION_TIME_START: this.search.INSPECTION_TIME[0],
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<component :is="activeName" />
|
<keep-alive>
|
||||||
|
<component :is="activeName" />
|
||||||
|
</keep-alive>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue