提交已修改修试相关代码

This commit is contained in:
zhouxain01 2023-12-19 17:05:40 +08:00
parent ed81f60582
commit 89e89ba3e0
3 changed files with 62 additions and 58 deletions

View File

@ -48,21 +48,22 @@
</el-select>
</el-form-item>
<el-form-item label="工机具类型" prop="type">
<selectTree
ref="mychild"
style="width: 240px"
:treeList="deptList"
:treeProps="{
children: 'children',
label: 'label',
}"
nodeKey="id"
:defaultSelect="true"
:defaultData="defaultData"
:clearable="false"
:placeholder="'请选择'"
@handleNodeClick="selectDrop"
></selectTree>
<!-- <selectTree-->
<!-- ref="mychild"-->
<!-- style="width: 240px"-->
<!-- :treeList="deptList"-->
<!-- :treeProps="{-->
<!-- children: 'children',-->
<!-- label: 'label',-->
<!-- }"-->
<!-- nodeKey="id"-->
<!-- :defaultSelect="true"-->
<!-- :defaultData="defaultData"-->
<!-- :clearable="false"-->
<!-- :placeholder="'请选择'"-->
<!-- @handleNodeClick="selectDrop"-->
<!-- ></selectTree>-->
<Tree ref="mychildSon" :width="240" :dataList="deptList" @changeId="selectDrop"></Tree>
</el-form-item>
<el-form-item label="报废单号" prop="backCode">
<el-input
@ -493,9 +494,10 @@ import {
getUnitInfoSelectApi, getProjectSelectApi, getDicSelectApi, listPartTypeApi, getMaTypeSelectApi
} from "@/api/repairTest/repair";
import selectTree from '../repair/selectTree.vue'
import Tree from '@/views/repairTest/repair/tree.vue'
export default {
name: "Dict",
components: { selectTree },
components: { selectTree,Tree },
dicts: ['sys_normal_disable'],
data() {
return {
@ -662,7 +664,9 @@ export default {
resetQuery() {
this.dateRange = [];
this.resetForm("queryForm");
this.$refs.mychild.clearSelect();
// this.$refs.mychild.clearSelect();
this.queryParams.type = ''
this.$refs.mychildSon.inputValue='';
this.handleQuery();
},
/** 新增按钮操作 */

View File

@ -48,21 +48,22 @@
</el-select>
</el-form-item>
<el-form-item label="工机具类型" prop="type">
<selectTree
ref="mychildSon"
style="width: 240px"
:treeList="deptList"
:treeProps="{
children: 'children',
label: 'label',
}"
nodeKey="id"
:defaultSelect="true"
:defaultData="defaultData"
:clearable="true"
:placeholder="'请选择'"
@handleNodeClick="selectDrop"
></selectTree>
<!-- <selectTree-->
<!-- ref="mychildSon"-->
<!-- style="width: 240px"-->
<!-- :treeList="deptList"-->
<!-- :treeProps="{-->
<!-- children: 'children',-->
<!-- label: 'label',-->
<!-- }"-->
<!-- nodeKey="id"-->
<!-- :defaultSelect="true"-->
<!-- :defaultData="defaultData"-->
<!-- :clearable="true"-->
<!-- :placeholder="'请选择'"-->
<!-- @handleNodeClick="selectDrop"-->
<!-- ></selectTree>-->
<Tree ref="mychildSon" :width="240" :dataList="deptList" @changeId="selectDrop"></Tree>
</el-form-item>
<el-form-item label="退料单号" prop="backCode">
<el-input
@ -554,11 +555,11 @@ import dialogThreeForm from "./dialogThreeForm.vue";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import selectTree from './selectTree.vue'
import Tree from './tree.vue'
export default {
name: "Dict",
dicts: ["sys_normal_disable"],
components: { dialogOneForm, dialogTwoForm, dialogThreeForm, Treeselect, selectTree },
components: { dialogOneForm, dialogTwoForm, dialogThreeForm, Treeselect, selectTree,Tree },
data() {
return {
deptList: [],
@ -639,10 +640,6 @@ export default {
this.getTree();
this.getList();
},
updated() {
this.$refs.mychildSon.clearSelect();
this.defaultData = null
},
methods: {
onClose() {
this.open = false
@ -651,8 +648,8 @@ export default {
this.getList()
},
selectDrop(value) {
console.log('33333333333',value)
this.queryParams.type = value
this.defaultData = null
},
selectDropDialog(value) {
this.dialogQueryParams.typeName = value
@ -731,8 +728,8 @@ export default {
this.queryParams.type = ''
this.dateRange = [];
this.resetForm("queryForm");
this.$refs.mychildSon.inputValue='';
this.handleQuery();
this.$refs.mychildSon.clearSelect();
},
/** 重置按钮操作 */
resetQueryDialog() {

View File

@ -1,3 +1,4 @@
<script src="../../../../vue.config.js"></script>
<template>
<div class="app-container">
<el-form
@ -48,21 +49,22 @@
</el-select>
</el-form-item>
<el-form-item label="工机具类型" prop="type">
<selectTree
ref="mychild"
style="width: 240px"
:treeList="deptList"
:treeProps="{
children: 'children',
label: 'label',
}"
nodeKey="id"
:defaultSelect="true"
:defaultData="defaultData"
:clearable="true"
:placeholder="'请选择'"
@handleNodeClick="selectDrop"
></selectTree>
<!-- <selectTree-->
<!-- ref="mychild"-->
<!-- style="width: 240px"-->
<!-- :treeList="deptList"-->
<!-- :treeProps="{-->
<!-- children: 'children',-->
<!-- label: 'label',-->
<!-- }"-->
<!-- nodeKey="id"-->
<!-- :defaultSelect="true"-->
<!-- :defaultData="defaultData"-->
<!-- :clearable="true"-->
<!-- :placeholder="'请选择'"-->
<!-- @handleNodeClick="selectDrop"-->
<!-- ></selectTree>-->
<Tree ref="mychildSon" :width="240" :dataList="deptList" @changeId="selectDrop"></Tree>
</el-form-item>
<el-form-item label="维修单号" prop="backCode">
<el-input
@ -487,9 +489,10 @@ import {
getUnitInfoSelectApi, getProjectSelectApi, getDicSelectApi, listPartTypeApi, getMaTypeSelectApi
} from "@/api/repairTest/repair";
import selectTree from '../repair/selectTree.vue'
import Tree from '@/views/repairTest/repair/tree.vue'
export default {
name: "Dict",
components: { selectTree },
components: { Tree, selectTree, },
dicts: ['sys_normal_disable'],
data() {
return {
@ -510,7 +513,6 @@ export default {
openTextOne: '',
openTextTwo: '',
openTextThree: '',
openTextThree: '',
type: '',
//
loading: false,
@ -658,8 +660,9 @@ export default {
resetQuery() {
this.dateRange = [];
this.resetForm("queryForm");
this.$refs.mychildSon.inputValue='';
this.queryParams.type = ''
this.handleQuery();
this.$refs.mychild.clearSelect();
},
/** 新增按钮操作 */
handleAdd() {