专家组样式调整

liujun0703-新项目开发
liujun 2024-08-19 11:30:16 +08:00
parent 5a94d3b101
commit 43f19b5b4d
6 changed files with 120 additions and 108 deletions

View File

@ -18,24 +18,18 @@
<template v-slot="{row}"> <template v-slot="{row}">
<span>{{ row.GENDER==='0'?'男':'女' }}</span> <span>{{ row.GENDER==='0'?'男':'女' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="EXPERT_TYPE" label="专家类型" /> <el-table-column prop="EXPERT_TYPE" label="专家类型" />
<el-table-column prop="OFFICE_TELEPHONE" label="办公电话" /> <el-table-column prop="OFFICE_TELEPHONE" label="办公电话" />
<el-table-column prop="MOBILE_TELEPHONE" label="移动电话" /> <el-table-column prop="MOBILE_TELEPHONE" label="移动电话" />
<el-table-column label="操作" align="center" width="100">
<el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_ID,row.EXPERT_NAME)"></el-button> <el-button type="text" style="color: red" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_ID,row.EXPERT_NAME)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="page-btn-group"> <div class="page-btn-group">
<div> <div/>
<template>
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>-->
</template>
</div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div> </div>
@ -123,7 +117,7 @@ export default {
EXPERT_ID: id EXPERT_ID: id
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result === 'success') {
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }

View File

@ -1,22 +1,38 @@
<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 label-position="right" label-width="100px">
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"> <el-row>
搜索 <el-col :span="6">
</el-button> <el-form-item label="组名称:">
<el-input v-model="KEYWORDS" placeholder="搜索" class="filter-item" style="width: 250px" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="组类型:">
<el-select v-model="EXPERT_GROUP_TYPE" placeholder="请选择组类型..." style="width: 250px">
<el-option v-for="item in expertGroupType" :key="item.DICTIONARIES_ID" :label="item.name" :value="item.DICTIONARIES_ID" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"></el-button>
<el-button class="filter-item" type="info" icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-col>
</el-row>
</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" />
<el-table-column type="index" label="序号" width="50" align="center" /> <el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="EXPERT_GROUP_NAME" label="组名称" /> <el-table-column prop="EXPERT_GROUP_NAME" label="组名称" />
<el-table-column prop="EXPERT_GROUP_TYPE_NAME" label="组类型" />
<el-table-column label="操作" align="center" width="600"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.EXPERT_GROUP_ID, '1')">查看</el-button> <el-button type="text" icon="el-icon-document" size="mini" @click="goList('detail', row.EXPERT_GROUP_ID, '1')">查看</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.EXPERT_GROUP_ID)"></el-button> <el-button type="text" icon="el-icon-edit" size="mini" @click="handleEdit(row.EXPERT_GROUP_ID)"></el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_GROUP_ID,row.EXPERT_GROUP_NAME)"></el-button> <el-button type="text" style="color: red" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_GROUP_ID,row.EXPERT_GROUP_NAME)"></el-button>
<el-button type="primary" icon="el-icon-more-outline" size="mini" @click="handleGroupPeople(row.EXPERT_GROUP_ID)"></el-button> <el-button type="text" icon="el-icon-more-outline" size="mini" @click="handleGroupPeople(row.EXPERT_GROUP_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -30,8 +46,7 @@
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div> </div>
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px"> <el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px">
<el-form ref="form" :rules="rules" :model="form" label-width="150px"> <el-form ref="form" :rules="rules" :model="form" label-width="150px" style="margin-right: 10px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家组名称" prop="EXPERT_GROUP_NAME"> <el-form-item label="专家组名称" prop="EXPERT_GROUP_NAME">
@ -40,12 +55,12 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家组类型" prop="EXPERT_GROUP_TYPE"> <el-form-item label="专家组类型" prop="EXPERT_GROUP_TYPE">
<el-input v-model="form.EXPERT_GROUP_TYPE" placeholder="专家组类型..." /> <el-select v-model="form.EXPERT_GROUP_TYPE" placeholder="请选择专家组类型..." style="width: 100%">
<el-option v-for="item in expertGroupType" :key="item.DICTIONARIES_ID" :label="item.name" :value="item.DICTIONARIES_ID" />
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家组级别" prop="EXPERT_GROUP_LEVEL"> <el-form-item label="专家组级别" prop="EXPERT_GROUP_LEVEL">
@ -58,7 +73,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="传真" prop="FAX"> <el-form-item label="传真" prop="FAX">
@ -71,7 +85,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="组建单位" prop="ESTABLISHED_UNIT"> <el-form-item label="组建单位" prop="ESTABLISHED_UNIT">
@ -84,7 +97,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="组建单位地址" prop="ESTABLISHED_UNIT_ADDRESS"> <el-form-item label="组建单位地址" prop="ESTABLISHED_UNIT_ADDRESS">
@ -97,7 +109,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="负责人办公电话" prop="RESPONSIBLE_OFFICE_TELEPHONE"> <el-form-item label="负责人办公电话" prop="RESPONSIBLE_OFFICE_TELEPHONE">
@ -105,22 +116,18 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="负责人移动电话" prop="RESPONSIBLE_MOBILE_TELEPHONE"> <el-form-item label="负责人移动电话" prop="RESPONSIBLE_MOBILE_TELEPHONE">
<el-input v-model="form.RESPONSIBLE_MOBILE_TELEPHONE" placeholder="负责人移动电话..." /> <el-input v-model="form.RESPONSIBLE_MOBILE_TELEPHONE" placeholder="负责人移动电话..." />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="负责人住宅电话" prop="RESPONSIBLE_HOME_TELEPHONE"> <el-form-item label="负责人住宅电话" prop="RESPONSIBLE_HOME_TELEPHONE">
<el-input v-model="form.RESPONSIBLE_HOME_TELEPHONE" placeholder="负责人住宅电话..." /> <el-input v-model="form.RESPONSIBLE_HOME_TELEPHONE" placeholder="负责人住宅电话..." />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="联系人" prop="CONTACT_PERSON"> <el-form-item label="联系人" prop="CONTACT_PERSON">
@ -133,7 +140,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="联系人移动电话" prop="CONTACT_MOBILE_TELEPHONE"> <el-form-item label="联系人移动电话" prop="CONTACT_MOBILE_TELEPHONE">
@ -146,7 +152,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="联系人电子邮箱" prop="CONTACT_EMAIL"> <el-form-item label="联系人电子邮箱" prop="CONTACT_EMAIL">
@ -159,7 +164,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家组介绍" prop="EXPERT_GROUP_INTRODUCE"> <el-form-item label="专家组介绍" prop="EXPERT_GROUP_INTRODUCE">
@ -172,7 +176,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormEdit = false"> </el-button> <el-button @click="dialogFormEdit = false"> </el-button>
@ -201,6 +204,7 @@ export default {
total: 0, total: 0,
varList: [], varList: [],
KEYWORDS: '', KEYWORDS: '',
EXPERT_GROUP_TYPE: '',
dialogFormEdit: false, dialogFormEdit: false,
dialogFormShow: false, dialogFormShow: false,
dialogType: 'add', dialogType: 'add',
@ -217,7 +221,7 @@ export default {
EXPERT_GROUP_NAME: '', EXPERT_GROUP_NAME: '',
// //
EXPERT_GROUP_TYPE: '', EXPERT_GROUP_TYPE: '',
EXPERT_GROUP_TYPE_NAME: '',
// //
EXPERT_GROUP_LEVEL: '', EXPERT_GROUP_LEVEL: '',
// //
@ -230,28 +234,24 @@ export default {
ESTABLISHED_UNIT: '', ESTABLISHED_UNIT: '',
// //
ESTABLISHED_UNIT_POSTCODE: '', ESTABLISHED_UNIT_POSTCODE: '',
// //
ESTABLISHED_UNIT_ADDRESS: '', ESTABLISHED_UNIT_ADDRESS: '',
// //
RESPONSIBLE_PERSON: '', RESPONSIBLE_PERSON: '',
// //
RESPONSIBLE_OFFICE_TELEPHONE: '', RESPONSIBLE_OFFICE_TELEPHONE: '',
// //
RESPONSIBLE_MOBILE_TELEPHONE: '', RESPONSIBLE_MOBILE_TELEPHONE: '',
// //
RESPONSIBLE_HOME_TELEPHONE: '', RESPONSIBLE_HOME_TELEPHONE: '',
// //
CONTACT_PERSON: '', CONTACT_PERSON: '',
// //
CONTACT_OFFICE_TELEPHONE: '', CONTACT_OFFICE_TELEPHONE: '',
// //
CONTACT_MOBILE_TELEPHONE: '', CONTACT_MOBILE_TELEPHONE: '',
// //
CONTACT_HOME_TELEPHONE: '', CONTACT_HOME_TELEPHONE: '',
// //
CONTACT_EMAIL: '', CONTACT_EMAIL: '',
// //
@ -260,9 +260,7 @@ export default {
EXPERT_GROUP_INTRODUCE: '', EXPERT_GROUP_INTRODUCE: '',
// //
REMARKS: '' REMARKS: ''
}, },
yjyjExpertGroupData: [], yjyjExpertGroupData: [],
treeData: [], treeData: [],
DepartmentData: [], DepartmentData: [],
@ -273,17 +271,15 @@ export default {
children: node.nodes children: node.nodes
} }
}, },
FFILE: [] FFILE: [],
expertGroupType: []
} }
}, },
created() { created() {
this.getList() this.getList()
// this.getyjyjExpertGroupDataList() this.getDic()
// this.getDepartmentList()
// this.getTreeList()
}, },
methods: { methods: {
// ******************************************* // *******************************************
handleEditChange(file) { handleEditChange(file) {
file.MATERIALS_ID = Math.random() file.MATERIALS_ID = Math.random()
@ -340,22 +336,20 @@ export default {
console.error('获取树形数据失败', e) console.error('获取树形数据失败', e)
}) })
}, },
//* *********************************** //* ***********************************
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
this.$parent.ticketType = ticketType this.$parent.ticketType = ticketType
}, },
//* ************************************************* //* *************************************************
getList() { getList() {
this.listISLOADing = true this.listISLOADing = true
requestFN( requestFN(
'/yjExpertGroup/list?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, '/yjExpertGroup/list?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{ {
name: this.KEYWORDS name: this.KEYWORDS,
EXPERT_GROUP_TYPE: this.EXPERT_GROUP_TYPE
} }
).then((data) => { ).then((data) => {
this.listISLOADing = false this.listISLOADing = false
@ -389,7 +383,6 @@ export default {
EXPERT_GROUP_NAME: data.EXPERT_GROUP_NAME, EXPERT_GROUP_NAME: data.EXPERT_GROUP_NAME,
// //
EXPERT_GROUP_TYPE: data.EXPERT_GROUP_TYPE, EXPERT_GROUP_TYPE: data.EXPERT_GROUP_TYPE,
// //
EXPERT_GROUP_LEVEL: data.EXPERT_GROUP_LEVEL, EXPERT_GROUP_LEVEL: data.EXPERT_GROUP_LEVEL,
// //
@ -402,28 +395,24 @@ export default {
ESTABLISHED_UNIT: data.ESTABLISHED_UNIT, ESTABLISHED_UNIT: data.ESTABLISHED_UNIT,
// //
ESTABLISHED_UNIT_POSTCODE: data.ESTABLISHED_UNIT_POSTCODE, ESTABLISHED_UNIT_POSTCODE: data.ESTABLISHED_UNIT_POSTCODE,
// //
ESTABLISHED_UNIT_ADDRESS: data.ESTABLISHED_UNIT_ADDRESS, ESTABLISHED_UNIT_ADDRESS: data.ESTABLISHED_UNIT_ADDRESS,
// //
RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON, RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON,
// //
RESPONSIBLE_OFFICE_TELEPHONE: data.RESPONSIBLE_OFFICE_TELEPHONE, RESPONSIBLE_OFFICE_TELEPHONE: data.RESPONSIBLE_OFFICE_TELEPHONE,
// //
RESPONSIBLE_MOBILE_TELEPHONE: data.RESPONSIBLE_MOBILE_TELEPHONE, RESPONSIBLE_MOBILE_TELEPHONE: data.RESPONSIBLE_MOBILE_TELEPHONE,
// //
RESPONSIBLE_HOME_TELEPHONE: data.RESPONSIBLE_HOME_TELEPHONE, RESPONSIBLE_HOME_TELEPHONE: data.RESPONSIBLE_HOME_TELEPHONE,
// //
CONTACT_PERSON: data.CONTACT_PERSON, CONTACT_PERSON: data.CONTACT_PERSON,
// //
CONTACT_OFFICE_TELEPHONE: data.CONTACT_OFFICE_TELEPHONE, CONTACT_OFFICE_TELEPHONE: data.CONTACT_OFFICE_TELEPHONE,
// //
CONTACT_MOBILE_TELEPHONE: data.CONTACT_MOBILE_TELEPHONE, CONTACT_MOBILE_TELEPHONE: data.CONTACT_MOBILE_TELEPHONE,
// //
CONTACT_HOME_TELEPHONE: data.CONTACT_HOME_TELEPHONE, CONTACT_HOME_TELEPHONE: data.CONTACT_HOME_TELEPHONE,
// //
CONTACT_EMAIL: data.CONTACT_EMAIL, CONTACT_EMAIL: data.CONTACT_EMAIL,
// //
@ -433,7 +422,6 @@ export default {
// //
REMARKS: data.REMARKS, REMARKS: data.REMARKS,
EXPERT_GROUP_ID: data.EXPERT_GROUP_ID EXPERT_GROUP_ID: data.EXPERT_GROUP_ID
} }
}).catch((e) => { }).catch((e) => {
console.error('获取详情数据失败', e) console.error('获取详情数据失败', e)
@ -464,9 +452,9 @@ export default {
} }
}) })
}, },
dataSave() { dataSave() {
this.listISLOADing = true this.listISLOADing = true
this.form.EXPERT_GROUP_TYPE_NAME = this.expertGroupType.find(item => item.DICTIONARIES_ID === this.form.EXPERT_GROUP_TYPE).name
requestFN( requestFN(
'/yjExpertGroup/save', this.form '/yjExpertGroup/save', this.form
).then((data) => { ).then((data) => {
@ -474,6 +462,50 @@ export default {
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.form = {
//
EXPERT_GROUP_NAME: '',
//
EXPERT_GROUP_TYPE: '',
//
EXPERT_GROUP_LEVEL: '',
//
CONTACT_TELEPHONE: '',
//
FAX: '',
//
NUMBER_OF_PEOPLE: '',
//
ESTABLISHED_UNIT: '',
//
ESTABLISHED_UNIT_POSTCODE: '',
//
ESTABLISHED_UNIT_ADDRESS: '',
//
RESPONSIBLE_PERSON: '',
//
RESPONSIBLE_OFFICE_TELEPHONE: '',
//
RESPONSIBLE_MOBILE_TELEPHONE: '',
//
RESPONSIBLE_HOME_TELEPHONE: '',
//
CONTACT_PERSON: '',
//
CONTACT_OFFICE_TELEPHONE: '',
//
CONTACT_MOBILE_TELEPHONE: '',
//
CONTACT_HOME_TELEPHONE: '',
//
CONTACT_EMAIL: '',
//
SORTING_NUMBER: '',
//
EXPERT_GROUP_INTRODUCE: '',
//
REMARKS: ''
}
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.listISLOADing = false this.listISLOADing = false
@ -493,7 +525,7 @@ export default {
id: id id: id
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result === 'success') {
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
@ -507,7 +539,7 @@ export default {
const _selectData = this.$refs.multipleTable.selection const _selectData = this.$refs.multipleTable.selection
console.info('_selectData') console.info('_selectData')
console.info(_selectData) console.info(_selectData)
if (_selectData == null || _selectData.length == 0) { if (_selectData == null || _selectData.length === 0) {
this.$message({ this.$message({
message: '请选中要删除的项...', message: '请选中要删除的项...',
type: 'error' type: 'error'
@ -538,14 +570,28 @@ export default {
}).catch((e) => { }).catch((e) => {
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch((e) => {
console.log(e)
}) })
}, },
getQuery() { getQuery() {
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
},
resetQuery() {
this.KEYWORDS = ''
this.EXPERT_GROUP_TYPE = ''
},
getDic() {
const params = {
PARENT_ID: '7dfc8f921db94ed7ad311d322bda0b5d'
}
requestFN('/dictionaries/listTree', params).then((data) => {
this.expertGroupType = JSON.parse(data.zTreeNodes)
}).catch((e) => {
console.error('获取树形数据失败', e)
})
} }
} }
} }
</script> </script>

View File

@ -21,11 +21,11 @@
<el-table-column prop="OFFICE_TELEPHONE" label="办公电话" /> <el-table-column prop="OFFICE_TELEPHONE" label="办公电话" />
<el-table-column prop="MOBILE_TELEPHONE" label="移动电话" /> <el-table-column prop="MOBILE_TELEPHONE" label="移动电话" />
<el-table-column label="操作" align="center" width="300"> <el-table-column label="操作" align="center" width="250">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.EXPERT_ID, '1')">查看</el-button> <el-button type="text" icon="el-icon-document" size="mini" @click="goList('detail', row.EXPERT_ID, '1')">查看</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.EXPERT_ID)"></el-button> <el-button type="text" icon="el-icon-edit" size="mini" @click="handleEdit(row.EXPERT_ID)"></el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_ID,row.EXPERT_NAME)"></el-button> <el-button type="text" style="color: red" icon="el-icon-delete" size="mini" @click="handleDelete(row.EXPERT_ID,row.EXPERT_NAME)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -40,7 +40,6 @@
</div> </div>
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px"> <el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px">
<el-form ref="form" :rules="rules" :model="form" label-width="150px"> <el-form ref="form" :rules="rules" :model="form" label-width="150px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家名称" prop="EXPERT_NAME"> <el-form-item label="专家名称" prop="EXPERT_NAME">
@ -52,10 +51,8 @@
<el-radio v-model="form.GENDER" label="0"></el-radio> <el-radio v-model="form.GENDER" label="0"></el-radio>
<el-radio v-model="form.GENDER" label="1"></el-radio> <el-radio v-model="form.GENDER" label="1"></el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="出生日期" prop="BIRTH_DATE"> <el-form-item label="出生日期" prop="BIRTH_DATE">
@ -68,7 +65,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专家类型" prop="EXPERT_TYPE"> <el-form-item label="专家类型" prop="EXPERT_TYPE">
@ -81,7 +77,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="职称" prop="PROFESSIONAL_TITLE"> <el-form-item label="职称" prop="PROFESSIONAL_TITLE">
@ -94,7 +89,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="民族" prop="ETHNICITY"> <el-form-item label="民族" prop="ETHNICITY">
@ -107,7 +101,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="最高学历" prop="HIGHEST_EDUCATION"> <el-form-item label="最高学历" prop="HIGHEST_EDUCATION">
@ -115,13 +108,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="参加工作时间" prop="WORK_START_DATE"> <el-form-item label="参加工作时间" prop="WORK_START_DATE">
<el-date-picker v-model="form.WORK_START_DATE" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" /> <el-date-picker v-model="form.WORK_START_DATE" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="办公电话" prop="OFFICE_TELEPHONE"> <el-form-item label="办公电话" prop="OFFICE_TELEPHONE">
@ -134,7 +125,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="移动电话" prop="MOBILE_TELEPHONE"> <el-form-item label="移动电话" prop="MOBILE_TELEPHONE">
@ -147,7 +137,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="电子邮箱" prop="EMAIL"> <el-form-item label="电子邮箱" prop="EMAIL">
@ -160,7 +149,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="行政职务" prop="ADMINISTRATIVE_POSITION"> <el-form-item label="行政职务" prop="ADMINISTRATIVE_POSITION">
@ -173,7 +161,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="家庭住址" prop="HOME_ADDRESS"> <el-form-item label="家庭住址" prop="HOME_ADDRESS">
@ -186,7 +173,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="户籍所在地" prop="HOUSEHOLD_REGISTER_LOCATION"> <el-form-item label="户籍所在地" prop="HOUSEHOLD_REGISTER_LOCATION">
@ -199,7 +185,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="毕业院校" prop="GRADUATED_COLLEGE"> <el-form-item label="毕业院校" prop="GRADUATED_COLLEGE">
@ -212,7 +197,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="单位主管部门" prop="UNIT_SUPERVISOR"> <el-form-item label="单位主管部门" prop="UNIT_SUPERVISOR">
@ -225,7 +209,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="排序号" prop="SORTING_NUMBER"> <el-form-item label="排序号" prop="SORTING_NUMBER">
@ -238,7 +221,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="工作简历概述" prop="WORK_RESUME_SUMMARY"> <el-form-item label="工作简历概述" prop="WORK_RESUME_SUMMARY">
@ -251,7 +233,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="应急工作经历" prop="EMERGENCY_WORK_EXPERIENCE"> <el-form-item label="应急工作经历" prop="EMERGENCY_WORK_EXPERIENCE">
@ -260,13 +241,11 @@
</el-col> </el-col>
<el-col :span="12"/> <el-col :span="12"/>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-form-item label="备注" prop="REMARKS"> <el-form-item label="备注" prop="REMARKS">
<el-input v-model="form.REMARKS" type="textarea" placeholder="备注..." /> <el-input v-model="form.REMARKS" type="textarea" placeholder="备注..." />
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormEdit = false"> </el-button> <el-button @click="dialogFormEdit = false"> </el-button>

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<list v-show="activeName=='list'" ref="list" /> <list v-show="activeName==='list'" ref="list" />
<detail v-if="activeName=='detail'"/> <detail v-if="activeName==='detail'"/>
</div> </div>
</template> </template>
<script> <script>

View File

@ -28,7 +28,7 @@
<el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_OFFICE_PHONE" label="负责人办公电话"/> <el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_OFFICE_PHONE" label="负责人办公电话"/>
<el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_MOBILE_PHONE" label="负责人移动电话"/> <el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_MOBILE_PHONE" label="负责人移动电话"/>
<el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_HOME_PHONE" label="负责人固定电话"/> <el-table-column :show-overflow-tooltip="true" prop="RESPONSIBLE_HOME_PHONE" label="负责人固定电话"/>
<el-table-column :show-overflow-tooltip="true" prop="OPERATETIME" label="修改时间"/> <el-table-column v-if="false" :show-overflow-tooltip="true" prop="OPERATETIME" label="修改时间"/>
<el-table-column label="操作" align="center" width="300"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row> <el-row>
@ -41,12 +41,8 @@
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-button type="text" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"> <el-button type="text" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"></el-button>
编辑 <el-button type="text" icon="el-icon-delete" size="mini" style="color: red" @click="handleDelete(row.ID,row.RESCUE_TEAM_NAME)"></el-button>
</el-button>
<el-button type="text" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.RESCUE_TEAM_NAME)">
删除
</el-button>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>

View File

@ -35,8 +35,8 @@
<el-table-column :show-overflow-tooltip="true" prop="COMPANY_POSITION" label="所在单位岗位名称"/> <el-table-column :show-overflow-tooltip="true" prop="COMPANY_POSITION" label="所在单位岗位名称"/>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="text" size="mini" @click="handleEdit(row)"></el-button> <el-button icon="el-icon-edit" type="text" size="mini" @click="handleEdit(row)"></el-button>
<el-button type="text" style="color: red" size="mini" @click="handleDelete(row)"></el-button> <el-button icon="el-icon-delete" type="text" style="color: red" size="mini" @click="handleDelete(row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -44,7 +44,7 @@
<div> <div>
<template> <template>
<el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button> <el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>
<el-button type="danger" icon="el-icon-delete" plain @click="handleDelete()"></el-button> <el-button v-if="false" type="danger" icon="el-icon-delete" plain @click="handleDelete(row)"></el-button>
</template> </template>
</div> </div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
@ -267,20 +267,17 @@ export default {
}) })
}, },
//* ************************************************************* //* *************************************************************
handleDelete(id, RESCUE_TEAM_NAME) { handleDelete(row) {
this.$confirm('确定要删除[' + RESCUE_TEAM_NAME + ']吗?', { this.$confirm('确定要删除[' + row.NAME + ']吗?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'/major/emergency/delete', '/major/emergency/deleteTeamUser', { id: row.YJ_EMERGENCY_TEAM_USER_ID }
{
id: id
}
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result === 'success') {
this.listLoading = false this.listLoading = false
this.getList() this.getList()
} }