运输保障机构信息管理页面逻辑修改

liujun0708-动火作业流程图逻辑修改
WenShiJun 2024-07-06 09:43:20 +08:00
parent b4d810edaa
commit 8f246665b2
2 changed files with 33 additions and 42 deletions

View File

@ -8,7 +8,7 @@
<el-button type="primary" @click="goBack"></el-button> <el-button type="primary" @click="goBack"></el-button>
</div> </div>
</div> </div>
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row> <el-table ref="multipleTable" :data="[form]" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
<el-table-column type="index" label="序号" width="50" align="center" /> <el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="ORG_NAME" label="运输机构名称" /> <el-table-column prop="ORG_NAME" label="运输机构名称" />
<el-table-column prop="ORG_TYPE" label="运输机构类型" /> <el-table-column prop="ORG_TYPE" label="运输机构类型" />
@ -17,7 +17,7 @@
<el-table-column prop="POSTAL_CODE" label="邮编" /> <el-table-column prop="POSTAL_CODE" label="邮编" />
<el-table-column prop="SECURITY_LEVEL" label="机构密级" /> <el-table-column prop="SECURITY_LEVEL" label="机构密级" />
<el-table-column prop="DUTY_PHONE" label="值班电话" /> <el-table-column prop="DUTY_PHONE" label="值班电话" />
<el-table-column prop="ADMINISTRATIVE_REGION" label="所属区域" /> <el-table-column prop="ADMINISTRATIVE_REGION_NAME" label="所属区域" />
<el-table-column prop="LONGITUDE" label="经度" /> <el-table-column prop="LONGITUDE" label="经度" />
<el-table-column prop="LATITUDE" label="纬度" /> <el-table-column prop="LATITUDE" label="纬度" />
<el-table-column prop="EMERGENCY_TRANSPORT_MODE" label="应急运输方式" /> <el-table-column prop="EMERGENCY_TRANSPORT_MODE" label="应急运输方式" />
@ -70,6 +70,7 @@ export default {
SECURITY_LEVEL: '', SECURITY_LEVEL: '',
DUTY_PHONE: '', DUTY_PHONE: '',
ADMINISTRATIVE_REGION: '', ADMINISTRATIVE_REGION: '',
ADMINISTRATIVE_REGION_NAME: '',
LONGITUDE: '', LONGITUDE: '',
LATITUDE: '', LATITUDE: '',
EMERGENCY_TRANSPORT_MODE: '', EMERGENCY_TRANSPORT_MODE: '',
@ -110,7 +111,6 @@ export default {
this.Id = this.$parent.CASE_ID this.Id = this.$parent.CASE_ID
this.getDetail(this.Id) this.getDetail(this.Id)
} }
this.getList()
this.getTreeList() this.getTreeList()
this.getDepartmentList() this.getDepartmentList()
}, },
@ -118,7 +118,6 @@ export default {
goBack() { goBack() {
this.$parent.activeName = 'list' this.$parent.activeName = 'list'
}, },
//* *************************************************
getTreeList() { getTreeList() {
const params = { const params = {
PARENT_ID: '5a5d2809ed644aa6ba97a5240ff35484' PARENT_ID: '5a5d2809ed644aa6ba97a5240ff35484'
@ -139,11 +138,6 @@ export default {
console.error('获取主管单位数据失败', e) console.error('获取主管单位数据失败', e)
}) })
}, },
//* ***********************************************************
handleDetail(id) {
this.dialogFormShow = true
this.getDetail(id)
},
getDetail(Id) { getDetail(Id) {
const params = { Id: Id } const params = { Id: Id }
requestFN('/major/transportation/detail', params).then((response) => { requestFN('/major/transportation/detail', params).then((response) => {
@ -157,6 +151,7 @@ export default {
SECURITY_LEVEL: data.SECURITY_LEVEL, SECURITY_LEVEL: data.SECURITY_LEVEL,
DUTY_PHONE: data.DUTY_PHONE, DUTY_PHONE: data.DUTY_PHONE,
ADMINISTRATIVE_REGION: data.ADMINISTRATIVE_REGION, ADMINISTRATIVE_REGION: data.ADMINISTRATIVE_REGION,
ADMINISTRATIVE_REGION_NAME: data.ADMINISTRATIVE_REGION_NAME,
LONGITUDE: data.LONGITUDE, LONGITUDE: data.LONGITUDE,
LATITUDE: data.LATITUDE, LATITUDE: data.LATITUDE,
EMERGENCY_TRANSPORT_MODE: data.EMERGENCY_TRANSPORT_MODE, EMERGENCY_TRANSPORT_MODE: data.EMERGENCY_TRANSPORT_MODE,
@ -182,10 +177,6 @@ export default {
}).catch((e) => { }).catch((e) => {
console.error('获取详情数据失败', e) console.error('获取详情数据失败', e)
}) })
},
getQuery() {
this.$refs.multipleTable.clearSelection()
this.getList()
} }
} }
} }

View File

@ -1,10 +1,18 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="filter-container"> <div class="filter-container">
<el-input v-model="KEYWORDS" placeholder="搜索" class="filter-item" style="width: 200px;" /> <el-form inline>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"> <el-form-item label="运输机构名称:" prop="KEYWORDS_ORG_NAME">
搜索 <el-input v-model="KEYWORDS_ORG_NAME" placeholder="运输机构名称" class="filter-item" style="width: 200px;" />
</el-button> </el-form-item>
<el-form-item label="运输机构类型:" prop="KEYWORDS_ORG_TYPE">
<el-input v-model="KEYWORDS_ORG_TYPE" placeholder="运输机构类型" class="filter-item" style="width: 200px;" />
</el-form-item>
<el-form-item>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"></el-button>
<el-button class="filter-item" type="default" icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
</div> </div>
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row> <el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
@ -19,7 +27,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.ID, '1')">查看</el-button> <el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.ID, '1')">查看</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"></el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.NAME)"></el-button> <el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.ORG_NAME)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -154,6 +162,8 @@ export default {
total: 0, total: 0,
varList: [], varList: [],
KEYWORDS: '', KEYWORDS: '',
KEYWORDS_ORG_NAME: '',
KEYWORDS_ORG_TYPE: '',
dialogFormEdit: false, dialogFormEdit: false,
dialogFormShow: false, dialogFormShow: false,
dialogType: 'add', dialogType: 'add',
@ -315,6 +325,11 @@ export default {
this.getDepartmentList() this.getDepartmentList()
}, },
methods: { methods: {
resetQuery() {
this.KEYWORDS_ORG_NAME = ''
this.KEYWORDS_ORG_TYPE = ''
this.getQuery()
},
goList(page, CASE_ID, ticketType) { goList(page, CASE_ID, ticketType) {
this.$parent.activeName = page this.$parent.activeName = page
this.$parent.CASE_ID = CASE_ID this.$parent.CASE_ID = CASE_ID
@ -347,7 +362,8 @@ export default {
requestFN( requestFN(
'/major/transportation/list?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, '/major/transportation/list?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{ {
name: this.KEYWORDS ORG_NAME: this.KEYWORDS_ORG_NAME,
ORG_TYPE: this.KEYWORDS_ORG_TYPE
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false
@ -400,7 +416,7 @@ export default {
CARGO_TRANSPORT_CAPACITY: data.CARGO_TRANSPORT_CAPACITY, CARGO_TRANSPORT_CAPACITY: data.CARGO_TRANSPORT_CAPACITY,
EMERGENCY_CAPACITY_DESCRIPTION: data.EMERGENCY_CAPACITY_DESCRIPTION, EMERGENCY_CAPACITY_DESCRIPTION: data.EMERGENCY_CAPACITY_DESCRIPTION,
REMARK: data.REMARK, REMARK: data.REMARK,
ID: data.ID Id: data.ID
} }
}).catch((e) => { }).catch((e) => {
console.error('获取详情数据失败', e) console.error('获取详情数据失败', e)
@ -413,27 +429,11 @@ export default {
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
}, },
confirm() { confirm() {
this.$refs.form.validate(valid => { this.dataSave()
if (valid) {
if (this.FFILE.length > 0) {
this.upload((v) => {
this.form.FILE_URL = v
this.$refs.upload.clearFiles()
this.dataSave()
})
} else {
this.dataSave()
}
} else {
return false
}
})
}, },
dataSave() { dataSave() {
this.listLoading = true this.listLoading = true
requestFN( requestFN('/major/transportation/save', this.form).then((data) => {
'/major/transportation/save', this.form
).then((data) => {
this.listLoading = false this.listLoading = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
@ -444,15 +444,15 @@ export default {
}) })
}, },
//* ************************************************************* //* *************************************************************
handleDelete(id, name) { handleDelete(id, ORG_NAME) {
this.$confirm('确定要删除[' + name + ']吗?', { this.$confirm('确定要删除[' + ORG_NAME + ']吗?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'/caseLibrary/delete', '/major/transportation/delete',
{ {
id: id id: id
} }
@ -489,7 +489,7 @@ export default {
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'/caseLibrary/deleteAll', '/major/transportation/deleteAll',
{ {
ids: ids ids: ids
} }