580 显示的数据不正确 权限也不正确
parent
b69157889e
commit
9588af6751
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
<!-- 查看弹窗 -->
|
<!-- 查看弹窗 -->
|
||||||
<el-dialog :visible.sync="dialogFormShow" title="详情" width="1000px">
|
<el-dialog :visible.sync="dialogFormShow" title="详情" width="1000px">
|
||||||
<el-form :model="form" label-width="250px">
|
<el-form :model="form" label-width="100px" style="margin-right: 10px">
|
||||||
<el-form-item label="姓名" prop="USER_NAME">
|
<el-form-item label="姓名" prop="USER_NAME">
|
||||||
<el-input v-model="form.USER_NAME" placeholder="请输入姓名..." disabled />
|
<el-input v-model="form.USER_NAME" placeholder="请输入姓名..." disabled />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -90,33 +90,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<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="250px">
|
<el-form ref="form" :rules="rules" :model="form" label-width="100px">
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="所属部门" prop="department">
|
|
||||||
<el-cascader
|
|
||||||
v-model="form.department"
|
|
||||||
:options="departmentOptions"
|
|
||||||
:props="{ checkStrictly: true }"
|
|
||||||
placeholder="请选择所属部门"
|
|
||||||
style="width: 100%;"
|
|
||||||
@change="handleNodeClick"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="用户" prop="USER_ID">
|
|
||||||
<el-select v-model="form.USER_ID" placeholder="请选择用户" style="width: 100%;" @change="handleUserChange">
|
|
||||||
<el-option
|
|
||||||
v-for="user in userList"
|
|
||||||
:key="user.USER_ID"
|
|
||||||
:label="user.NAME"
|
|
||||||
:value="user.USER_ID"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="所属机构" prop="ORG_ID">
|
<el-form-item label="所属机构" prop="ORG_ID">
|
||||||
|
@ -130,9 +104,21 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="用户" prop="USER_ID">
|
||||||
|
<el-input v-model="form.USER_NAME" placeholder="请选择用户" @click.native="openSelectUser()"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="排序" prop="SORT_ORDER">
|
||||||
|
<el-input v-model="form.SORT_ORDER" placeholder="请输入排序..." />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="性别" prop="GENDER">
|
<el-form-item label="性别" prop="GENDER">
|
||||||
<el-select v-model="form.GENDER" placeholder="请选择性别">
|
<el-select v-model="form.GENDER" placeholder="请选择性别" style="width: 100%;">
|
||||||
<el-option label="男" value="0" />
|
<el-option label="男" value="0" />
|
||||||
<el-option label="女" value="1" />
|
<el-option label="女" value="1" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -163,28 +149,24 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="排序" prop="SORT_ORDER">
|
|
||||||
<el-input v-model="form.SORT_ORDER" placeholder="请输入排序..." />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</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>
|
||||||
<el-button type="primary" @click="confirm">确 定</el-button>
|
<el-button type="primary" @click="confirm">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<select-zhi-ban-user ref="selectZhiBanUser" @selectPeople="getUser"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
|
import SelectZhiBanUser
|
||||||
|
from '../../../../emergency_report/duty_management/duty_log/components/selectZhiBanUser.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Pagination },
|
components: { SelectZhiBanUser, Pagination },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
listLoading: false,
|
listLoading: false,
|
||||||
|
@ -194,6 +176,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
department: [],
|
department: [],
|
||||||
DEPARTMENT_ID: '',
|
DEPARTMENT_ID: '',
|
||||||
|
DEPARTMENT_NAME: '',
|
||||||
ORG_ID: '',
|
ORG_ID: '',
|
||||||
USER_ID: '',
|
USER_ID: '',
|
||||||
USER_NAME: '',
|
USER_NAME: '',
|
||||||
|
@ -214,18 +197,17 @@ export default {
|
||||||
listQuery: {
|
listQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10
|
limit: 10
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
USER_NAME: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
|
||||||
|
GENDER: [{ required: true, message: '请输入性别', trigger: 'blur' }],
|
||||||
|
ADMINISTRATIVE_POSITION: [{ required: true, message: '请输入行政职务', trigger: 'blur' }],
|
||||||
|
ADMINISTRATIVE_LEVEL: [{ required: true, message: '请输入行政级别', trigger: 'blur' }],
|
||||||
|
IDENTITY_NUMBER: [{ required: true, message: '请输入身份证号', trigger: 'blur' }],
|
||||||
|
CONTACT_PHONE: [{ required: true, message: '请输入联系电话', trigger: 'blur' }],
|
||||||
|
SORT_ORDER: [{ required: true, message: '请输入排序', trigger: 'blur' }],
|
||||||
|
ISDELETE: [{ required: true, message: '请输入是否删除', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
// ,
|
|
||||||
// rules: {
|
|
||||||
// USER_NAME: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
|
|
||||||
// GENDER: [{ required: true, message: '请输入性别', trigger: 'blur' }],
|
|
||||||
// ADMINISTRATIVE_POSITION: [{ required: true, message: '请输入行政职务', trigger: 'blur' }],
|
|
||||||
// ADMINISTRATIVE_LEVEL: [{ required: true, message: '请输入行政级别', trigger: 'blur' }],
|
|
||||||
// IDENTITY_NUMBER: [{ required: true, message: '请输入身份证号', trigger: 'blur' }],
|
|
||||||
// CONTACT_PHONE: [{ required: true, message: '请输入联系电话', trigger: 'blur' }],
|
|
||||||
// SORT_ORDER: [{ required: true, message: '请输入排序', trigger: 'blur' }],
|
|
||||||
// ISDELETE: [{ required: true, message: '请输入是否删除', trigger: 'blur' }]
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -302,18 +284,19 @@ export default {
|
||||||
requestFN('/major/personnel/detail', params).then((response) => {
|
requestFN('/major/personnel/detail', params).then((response) => {
|
||||||
const data = response.msg
|
const data = response.msg
|
||||||
this.form = {
|
this.form = {
|
||||||
Id: data.ID,
|
ID: data.ID,
|
||||||
ORG_ID: data.ORG_ID,
|
ORG_ID: data.ORG_ID,
|
||||||
|
USER_ID: data.USER_ID,
|
||||||
USER_NAME: data.USER_NAME,
|
USER_NAME: data.USER_NAME,
|
||||||
|
DEPARTMENT_ID: data.DEPARTMENT_ID,
|
||||||
|
DEPARTMENT_NAME: data.DEPARTMENT_NAME,
|
||||||
GENDER: data.GENDER,
|
GENDER: data.GENDER,
|
||||||
ADMINISTRATIVE_POSITION: data.ADMINISTRATIVE_POSITION,
|
ADMINISTRATIVE_POSITION: data.ADMINISTRATIVE_POSITION,
|
||||||
ADMINISTRATIVE_LEVEL: data.ADMINISTRATIVE_LEVEL,
|
ADMINISTRATIVE_LEVEL: data.ADMINISTRATIVE_LEVEL,
|
||||||
IDENTITY_NUMBER: data.IDENTITY_NUMBER,
|
IDENTITY_NUMBER: data.IDENTITY_NUMBER,
|
||||||
CONTACT_PHONE: data.CONTACT_PHONE,
|
CONTACT_PHONE: data.CONTACT_PHONE,
|
||||||
SORT_ORDER: data.SORT_ORDER,
|
SORT_ORDER: data.SORT_ORDER,
|
||||||
ISDELETE: data.ISDELETE,
|
ISDELETE: data.ISDELETE
|
||||||
USER_ID: data.USER_ID,
|
|
||||||
department: this.getDepartmentPath(data.DEPARTMENT_ID) // 设置部门路径
|
|
||||||
}
|
}
|
||||||
this.getUserList(data.DEPARTMENT_ID)
|
this.getUserList(data.DEPARTMENT_ID)
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
@ -425,6 +408,16 @@ export default {
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
openSelectUser() {
|
||||||
|
this.$refs.selectZhiBanUser.init()
|
||||||
|
},
|
||||||
|
getUser(e) {
|
||||||
|
console.log(e)
|
||||||
|
this.form.USER_ID = e.USER_ID
|
||||||
|
this.form.USER_NAME = e.NAME
|
||||||
|
this.form.DEPARTMENT_ID = e.DEPARTMENT_ID
|
||||||
|
this.form.DEPARTMENT_NAME = e.DEPARTMENT_NAME
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 添加事故报告弹窗 -->
|
<!-- 添加事故报告弹窗 -->
|
||||||
<el-dialog :visible.sync="dialogReportVisible" title="添加事故报告" width="1000px">
|
<el-dialog :visible.sync="dialogReportVisible" title="添加事故报告" width="1000px">
|
||||||
<el-form ref="reportForm" :model="reportForm" label-width="250px">
|
<el-form ref="reportForm" :model="reportForm" label-width="100px" style="margin-right: 10px">
|
||||||
<el-form-item label="事件标题" prop="EVENT_NAME">
|
<el-form-item label="事件标题" prop="EVENT_NAME">
|
||||||
<el-input v-model="reportForm.EVENT_NAME" placeholder="请输入事件标题..."/>
|
<el-input v-model="reportForm.EVENT_NAME" placeholder="请输入事件标题..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
Loading…
Reference in New Issue