547 提示语不正确

548 菜单内素有的编辑按钮 编辑也会提示添加成功
546 输入框内 文字不正确
545 搜索框 加标题 加重置
557 搜索框不好使
549 菜单内所有的删除按钮 删除没有二次提示
liujun0703-新项目开发
liujun 2024-08-23 11:21:47 +08:00
parent 8f25f537b2
commit db1d191cbb
6 changed files with 96 additions and 74 deletions

View File

@ -46,7 +46,7 @@
placeholder="备注"/> placeholder="备注"/>
</el-form-item> </el-form-item>
<el-form-item label="附件地址"> <el-form-item label="附件">
<el-upload <el-upload
ref="upload" ref="upload"
:on-change="handleEditChange" :on-change="handleEditChange"

View File

@ -11,7 +11,7 @@
<el-row :gutter="15"> <el-row :gutter="15">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="预案名称" prop="PLANNAME"> <el-form-item label="预案名称" prop="PLANNAME">
<el-input v-model="form.PLANNAME" placeholder="请输入资源名称..." /> <el-input v-model="form.PLANNAME" placeholder="请输入预案名称..." />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -147,9 +147,9 @@
</baidu-map> </baidu-map>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<span>经度</span> <span>经度</span>
<el-input v-model="LON" style="width: 200px" placeholder="请输入内容" disabled /> <el-input v-model="LON" style="width: 200px" placeholder="请选择" disabled />
<span>纬度</span> <span>纬度</span>
<el-input v-model="LAT" style="width: 200px" placeholder="请输入内容" disabled /> <el-input v-model="LAT" style="width: 200px" placeholder="请选择" disabled />
<el-button @click="dialogFormMap = false"> </el-button> <el-button @click="dialogFormMap = false"> </el-button>
<el-button type="primary" @click="setPosition"> </el-button> <el-button type="primary" @click="setPosition"> </el-button>
</div> </div>

View File

@ -43,7 +43,7 @@
placeholder="备注"/> placeholder="备注"/>
</el-form-item> </el-form-item>
<el-form-item label="附件地址"> <el-form-item label="附件">
<el-upload <el-upload
ref="upload" ref="upload"
:on-change="handleEditChange" :on-change="handleEditChange"

View File

@ -101,20 +101,31 @@ export default {
this.dialogzhuangjiaShow = false this.dialogzhuangjiaShow = false
}, },
deletezhuangjiaPeople(row) { deletezhuangjiaPeople(row) {
this.listISLOADing = true this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
requestFN( confirmButtonText: '确定',
'/plan/fractional/delete', { id: row.HIERARCHICALRESPONSE_ID } cancelButtonText: '取消',
).then((data) => { type: 'warning'
this.$message({ }).then(() => {
message: '移除成功', this.listISLOADing = true
type: 'success' requestFN(
}) '/plan/fractional/delete', { id: row.HIERARCHICALRESPONSE_ID }
).then((data) => {
this.$message({
message: '移除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getPlanexpertList() this.getPlanexpertList()
this.$emit('fenjihuidiao') this.$emit('fenjihuidiao')
}).catch((e) => { }).catch((e) => {
this.listISLOADing = false this.listISLOADing = false
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
}) })
}, },
confirm() { confirm() {
@ -126,7 +137,7 @@ export default {
'/plan/fractional/save', this.zhuangjiafrom '/plan/fractional/save', this.zhuangjiafrom
).then((data) => { ).then((data) => {
this.$message({ this.$message({
message: '添加成功', message: '操作成功',
type: 'success' type: 'success'
}) })
this.dialogzhuangjiaShow = false this.dialogzhuangjiaShow = false

View File

@ -54,7 +54,7 @@
placeholder="备注"/> placeholder="备注"/>
</el-form-item> </el-form-item>
<el-form-item label="附件地址"> <el-form-item label="附件">
<el-upload <el-upload
ref="upload" ref="upload"
:on-change="handleEditChange" :on-change="handleEditChange"

View File

@ -2,18 +2,9 @@
<template> <template>
<div> <div>
<div class="filter-container"> <div class="filter-container">
<el-button class="filter-item" type="primary" icon="el-icon-plus" @click="jigouAdd"> <el-button class="filter-item" type="primary" icon="el-icon-plus" @click="jigouAdd"></el-button>
新增机构 <el-button class="filter-item" type="danger" icon="el-icon-delete" @click="jigoudelete"></el-button>
</el-button> <el-button class="filter-item" type="primary" icon="el-icon-plus" @click="renyuanadd"></el-button>
<el-button class="filter-item" type="danger" icon="el-icon-delete" @click="jigoudelete">
删除机构
</el-button>
<el-button class="filter-item" type="primary" icon="el-icon-plus" @click="renyuanadd">
新增人员
</el-button>
<!-- <el-button class="filter-item" type="danger" icon="el-icon-delete" @click="renyuandelete">
批量删除
</el-button>-->
</div> </div>
<el-container> <el-container>
<el-aside width="300px" style="background-color:#fff"> <el-aside width="300px" style="background-color:#fff">
@ -28,7 +19,6 @@
@node-click="handleNodeClick"/> @node-click="handleNodeClick"/>
</el-aside> </el-aside>
<el-main> <el-main>
<el-table <el-table
v-loading="listLoading" v-loading="listLoading"
ref="multipleTable" ref="multipleTable"
@ -42,7 +32,6 @@
fit fit
highlight-current-row highlight-current-row
> >
<el-table-column label="姓名" prop="NAME" /> <el-table-column label="姓名" prop="NAME" />
<el-table-column prop="DUTIES" label="职务"/> <el-table-column prop="DUTIES" label="职务"/>
<el-table-column prop="POSITION" label="组内岗位"/> <el-table-column prop="POSITION" label="组内岗位"/>
@ -51,8 +40,8 @@
<el-table-column prop="PLANNINGDEPARTMENT_NAME" label="组织机构"/> <el-table-column prop="PLANNINGDEPARTMENT_NAME" label="组织机构"/>
<el-table-column label="操作" align="center" width="150px"> <el-table-column label="操作" align="center" width="150px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="text" icon="el-icon-delete" size="mini" @click="deleterenyuanPeople(row.PLANNINGPERSONNEL_ID)"></el-button> <el-button type="text" icon="el-icon-setting" size="mini" @click="updaterenyuanPeople(row)"></el-button>
<el-button type="text" style="color: red" icon="el-icon-setting" size="mini" @click="updaterenyuanPeople(row)"></el-button> <el-button type="text" style="color: red" icon="el-icon-delete" size="mini" @click="deleterenyuanPeople(row.PLANNINGPERSONNEL_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -67,7 +56,6 @@
<el-tag class="mark_up" size="medium">上级菜单{{ jigoumainid === '0' ?'(无) 此项为顶级分组':jigouname }}</el-tag> <el-tag class="mark_up" size="medium">上级菜单{{ jigoumainid === '0' ?'(无) 此项为顶级分组':jigouname }}</el-tag>
<div style="height: 10px"/> <div style="height: 10px"/>
<el-form ref="form" :rules="rules" :model="jigoufrom" label-width="110px" style="width: 500px;"> <el-form ref="form" :rules="rules" :model="jigoufrom" label-width="110px" style="width: 500px;">
<el-form-item label="名称" prop="NAME"> <el-form-item label="名称" prop="NAME">
<el-input v-model="jigoufrom.NAME" placeholder="这里名称..." /> <el-input v-model="jigoufrom.NAME" placeholder="这里名称..." />
</el-form-item> </el-form-item>
@ -77,7 +65,6 @@
<el-form-item label="编码" prop="BIANMA"> <el-form-item label="编码" prop="BIANMA">
<el-input v-model="jigoufrom.BIANMA" placeholder="这里编码..." /> <el-input v-model="jigoufrom.BIANMA" placeholder="这里编码..." />
</el-form-item> </el-form-item>
<el-form-item label="负责人" prop="HEADMAN"> <el-form-item label="负责人" prop="HEADMAN">
<el-input v-model="jigoufrom.HEADMAN" placeholder="这里负责人..." /> <el-input v-model="jigoufrom.HEADMAN" placeholder="这里负责人..." />
</el-form-item> </el-form-item>
@ -87,28 +74,25 @@
<el-form-item label="部门职能" prop="FUNCTIONS"> <el-form-item label="部门职能" prop="FUNCTIONS">
<el-input v-model="jigoufrom.FUNCTIONS" placeholder="这里部门职能..." /> <el-input v-model="jigoufrom.FUNCTIONS" placeholder="这里部门职能..." />
</el-form-item> </el-form-item>
<el-form-item label="地址" prop="ADDRESS"> <el-form-item label="地址" prop="ADDRESS">
<el-input v-model="jigoufrom.ADDRESS" placeholder="这里地址..." /> <el-input v-model="jigoufrom.ADDRESS" placeholder="这里地址..." />
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="BZ"> <el-form-item label="备注" prop="BZ">
<el-input v-model="jigoufrom.BZ" placeholder="这里备注..." /> <el-input v-model="jigoufrom.BZ" placeholder="这里备注..." />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogjigouShow = false"> </el-button> <el-button @click="dialogjigouShow = false"> </el-button>
<el-button type="primary" @click="jigouconfirm"> </el-button> <el-button type="primary" @click="jigouconfirm"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="dialogrenyuanShow" title="人员" width="600px" > <el-dialog :visible.sync="dialogrenyuanShow" title="人员" width="600px" >
<el-tag class="mark_up" size="medium">所属机构{{ jigoumainid == '0' ?'(无) 此项为顶级分组':jigouname }}</el-tag>
<div style="height: 10px"/>
<el-form ref="form2" :rules="rules2" :model="renyuanfrom" label-width="110px" style="width: 500px;"> <el-form ref="form2" :rules="rules2" :model="renyuanfrom" label-width="110px" style="width: 500px;">
<el-form-item prop="title" label="">
<el-tag class="mark_up" size="medium">所属机构{{ jigoumainid === '0' ?'(无) 此项为顶级分组':jigouname }}</el-tag>
</el-form-item>
<el-form-item label="姓名" prop="NAME"> <el-form-item label="姓名" prop="NAME">
<el-input v-model="renyuanfrom.NAME" placeholder="这里姓名..." /> <el-input v-model="renyuanfrom.NAME" placeholder="这里姓名..." @click.native="openSelectUser()" />
</el-form-item> </el-form-item>
<el-form-item label="职务" prop="DUTIES"> <el-form-item label="职务" prop="DUTIES">
<el-input v-model="renyuanfrom.DUTIES" placeholder="这里职务..." /> <el-input v-model="renyuanfrom.DUTIES" placeholder="这里职务..." />
@ -116,31 +100,30 @@
<el-form-item label="组内岗位" prop="POSITION"> <el-form-item label="组内岗位" prop="POSITION">
<el-input v-model="renyuanfrom.POSITION" placeholder="这里组内岗位..." /> <el-input v-model="renyuanfrom.POSITION" placeholder="这里组内岗位..." />
</el-form-item> </el-form-item>
<el-form-item label="联系电话" prop="LINKPHONE"> <el-form-item label="联系电话" prop="LINKPHONE">
<el-input v-model="renyuanfrom.LINKPHONE" placeholder="这里联系电话..." /> <el-input v-model="renyuanfrom.LINKPHONE" placeholder="这里联系电话..." />
</el-form-item> </el-form-item>
<el-form-item label="紧急联系电话" prop="URGENTLINKPHONE"> <el-form-item label="紧急联系电话" prop="URGENTLINKPHONE">
<el-input v-model="renyuanfrom.URGENTLINKPHONE" placeholder="这里紧急联系电话..." /> <el-input v-model="renyuanfrom.URGENTLINKPHONE" placeholder="这里紧急联系电话..." />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogrenyuanShow = false"> </el-button> <el-button @click="dialogrenyuanShow = false"> </el-button>
<el-button type="primary" @click="renyuanconfirm"> </el-button> <el-button type="primary" @click="renyuanconfirm"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<select-zhi-ban-user ref="selectZhiBanUser" @selectPeople="selectPeople"/>
</div> </div>
</template> </template>
<script> <script>
import { requestFN } from '@/utils/request' import { requestFN } from '@/utils/request'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { Treeselect } from '@riophae/vue-treeselect' import { Treeselect } from '@riophae/vue-treeselect'
import SelectZhiBanUser
from '../../../emergency_report/duty_management/duty_log/components/selectZhiBanUser.vue'
export default { export default {
name: 'Yingjizhuangjia', name: 'Yingjizhuangjia',
components: { Pagination, Treeselect }, components: { SelectZhiBanUser, Pagination, Treeselect },
props: { props: {
planid: { planid: {
type: String, type: String,
@ -196,9 +179,20 @@ export default {
jigoumainid: '0', jigoumainid: '0',
jigouname: '', jigouname: '',
dialogjigouShow: false, dialogjigouShow: false,
jigoufrom: { NAME: '' }, jigoufrom: {
NAME: '',
USER_ID: ''
},
//* *************** //* ***************
renyuanfrom: { NAME: '' }, renyuanfrom: {
PLANNINGPERSONNEL_ID: '',
NAME: '',
USER_ID: '',
DUTIES: '',
POSITION: '',
LINKPHONE: '',
URGENTLINKPHONE: ''
},
dialogrenyuanShow: false dialogrenyuanShow: false
} }
}, },
@ -215,9 +209,16 @@ export default {
}) })
return return
} }
this.dialogrenyuanShow = true this.dialogrenyuanShow = true
this.renyuanfrom = {} this.renyuanfrom = {
PLANNINGPERSONNEL_ID: '',
NAME: '',
USER_ID: '',
DUTIES: '',
POSITION: '',
LINKPHONE: '',
URGENTLINKPHONE: ''
}
}, },
updaterenyuanPeople(row) { updaterenyuanPeople(row) {
this.dialogrenyuanShow = true this.dialogrenyuanShow = true
@ -225,7 +226,7 @@ export default {
this.renyuanfrom = { this.renyuanfrom = {
PLANNINGPERSONNEL_ID: row.PLANNINGPERSONNEL_ID, PLANNINGPERSONNEL_ID: row.PLANNINGPERSONNEL_ID,
NAME: row.NAME, NAME: row.NAME,
USER_ID: row.USER_ID,
DUTIES: row.DUTIES, DUTIES: row.DUTIES,
POSITION: row.POSITION, POSITION: row.POSITION,
LINKPHONE: row.LINKPHONE, LINKPHONE: row.LINKPHONE,
@ -234,19 +235,29 @@ export default {
} }
}, },
deleterenyuanPeople(id) { deleterenyuanPeople(id) {
this.listISLOADing = true this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
requestFN( confirmButtonText: '确定',
'/plan/planningDepartment/deletePersonnel', { id: id } cancelButtonText: '取消',
).then((data) => { type: 'warning'
this.$message({ }).then(() => {
message: '移除成功', this.listISLOADing = true
type: 'success' requestFN(
'/plan/planningDepartment/deletePersonnel', { id: id }
).then((data) => {
this.$message({
message: '移除成功',
type: 'success'
})
this.listISLOADing = false
this.getDEPARTMENTList()
}).catch((e) => {
this.listISLOADing = false
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
}) })
this.listISLOADing = false
this.getDEPARTMENTList()
}).catch((e) => {
this.listISLOADing = false
}) })
}, },
renyuanconfirm() { renyuanconfirm() {
@ -307,13 +318,6 @@ export default {
}) })
}, },
jigouconfirm() { jigouconfirm() {
/* if (this.jigoufrom.NAME === undefined) {
this.$message({
message: '名称不能为空',
type: 'warning'
})
return
}*/
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
this.listISLOADing = true this.listISLOADing = true
@ -380,6 +384,13 @@ export default {
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false
}) })
},
selectPeople(row) {
this.renyuanfrom.USER_ID = row.USER_ID
this.renyuanfrom.NAME = row.NAME
},
openSelectUser() {
this.$refs.selectZhiBanUser.init()
} }
} }
} }