2024年9月9日shanao
shanao 2024-10-19 17:35:10 +08:00
parent ab28e7148d
commit f8cb7da6f7
8 changed files with 38 additions and 49 deletions

View File

@ -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
} }
} }
} }

View File

@ -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()
}, },
// //

View File

@ -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: ''
} }
} }
} }

View File

@ -1,6 +1,8 @@
<template> <template>
<div> <div>
<component :is="activeName"/> <keep-alive>
<component :is="activeName"/>
</keep-alive>
</div> </div>
</template> </template>

View File

@ -1,5 +1,7 @@
<template> <template>
<component :is="activeName" /> <keep-alive>
<component :is="activeName" />
</keep-alive>
</template> </template>
<script> <script>

View File

@ -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
}, },

View File

@ -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],

View File

@ -1,5 +1,7 @@
<template> <template>
<component :is="activeName" /> <keep-alive>
<component :is="activeName" />
</keep-alive>
</template> </template>
<script> <script>