部门修改,代码检查

main
mo 1 year ago
parent 4c029f4c69
commit 8da3a8224a

@ -70,18 +70,6 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建日期" prop="createTime">
<el-date-picker
v-model="queryParams.createTime"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
@ -272,7 +260,14 @@
</el-col>
<el-col :span="8">
<el-form-item label="部门名称" prop="deptName">
<el-input v-model="form.deptName" placeholder="请输入部门名称" />
<treeselect
v-model="form.deptId"
:options="deptOptions"
:show-count="true"
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
/>
</el-form-item>
</el-col>
<el-col :span="8">
@ -439,11 +434,16 @@ import Editor from "@/components/Editor";
import { getOrganizationPage } from "@/api/setting/organization";
import { getSiteTree } from "@/api/setting/organization";
import { listData } from "@/api/system/dict/data";
import { listSimpleDepts } from "@/api/system/dept";
import { listSimplePosts } from "@/api/system/post";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "ElectronicAssets",
components: {
Editor,
Treeselect,
},
data() {
return {
@ -452,6 +452,8 @@ export default {
value: "pId",
multiple: false,
},
//
deptOptions: undefined,
//
loading: true,
optType: undefined,
@ -511,6 +513,7 @@ export default {
this.getSiteList();
this.getOrganizationList();
this.handleInitList();
this.getTreeselect();
},
methods: {
/** 查询列表 */
@ -534,6 +537,27 @@ export default {
this.typeOptions = res.data.list || [];
});
},
/** 查询部门下拉树结构 + 岗位下拉 */
getTreeselect() {
listSimpleDepts().then((response) => {
// deptOptions
this.deptOptions = [];
this.deptOptions.push(...this.handleTree(response.data, "id"));
});
listSimplePosts().then((response) => {
// postOptions
this.postOptions = [];
this.postOptions.push(...response.data);
});
},
//
normalizer(node) {
return {
id: node.id,
label: node.name,
children: node.children,
};
},
//
getSiteList() {
getSiteTree().then((response) => {

@ -9,14 +9,6 @@
v-show="showSearch"
label-width="98px"
>
<el-form-item label="制单人 " prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入制单人 "
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="咨询编号 " prop="consultationId">
<el-input
v-model="queryParams.consultationId"

@ -9,14 +9,6 @@
v-show="showSearch"
label-width="98px"
>
<el-form-item label="制单人" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入制单人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="合同编号" prop="contractCode">
<el-input
v-model="queryParams.contractCode"

@ -9,14 +9,6 @@
v-show="showSearch"
label-width="98px"
>
<el-form-item label=" 制单人" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入 制单人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="客诉编号" prop="complaintCode">
<el-input
v-model="queryParams.complaintCode"

@ -9,21 +9,6 @@
v-show="showSearch"
label-width="98px"
>
<el-form-item label="制单人" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入制单人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="创建日期" prop="createTime">-->
<!-- <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"-->
<!-- range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="业务实体" prop="company">-->
<!-- <el-input v-model="queryParams.company" placeholder="请输入业务实体" clearable @keyup.enter.native="handleQuery"/>-->
<!-- </el-form-item>-->
<el-form-item label="所属部门" prop="deptName">
<el-input
v-model="queryParams.deptName"
@ -63,14 +48,6 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="联系方式" prop="contactNumber">
<el-input
v-model="queryParams.contactNumber"
placeholder="请输入联系方式"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="身份证号" prop="idCardNumber">
<el-input
v-model="queryParams.idCardNumber"

Loading…
Cancel
Save