diff --git a/sgzb-ui/src/views/repairTest/brokenExamine/index.vue b/sgzb-ui/src/views/repairTest/brokenExamine/index.vue index 9ba8a652..2a1cb6e4 100644 --- a/sgzb-ui/src/views/repairTest/brokenExamine/index.vue +++ b/sgzb-ui/src/views/repairTest/brokenExamine/index.vue @@ -17,7 +17,6 @@ @keyup.enter.native="handleQuery" /> - - { this.deptList = response.data - // this.deptList = this.handleTree(response.data, "id"); }); getMaTypeSelectApi().then(response => { this.deptTypeList = response.data }); }, + /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -663,6 +662,7 @@ export default { resetQuery() { this.dateRange = []; this.resetForm("queryForm"); + this.$refs.mychild.clearSelect(); this.handleQuery(); }, /** 新增按钮操作 */ diff --git a/sgzb-ui/src/views/repairTest/repair/dialogOneForm.vue b/sgzb-ui/src/views/repairTest/repair/dialogOneForm.vue index c82310e2..b3ae9248 100644 --- a/sgzb-ui/src/views/repairTest/repair/dialogOneForm.vue +++ b/sgzb-ui/src/views/repairTest/repair/dialogOneForm.vue @@ -27,7 +27,6 @@ :prop="'premiumList.' + index + '.partId'" label="选择配件:" > - { @@ -534,6 +534,7 @@ export default { this.fullscreenLoading = false this.dialogShowFlag = false this.index = null + this.$message.success('操作成功!') this.$emit('domainChange', res.code) } }).catch(() => { diff --git a/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue b/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue index 4f534c78..9e7a9f75 100644 --- a/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue +++ b/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue @@ -200,7 +200,7 @@ export default { }, data() { return { - actionUrl: process.env.VUE_APP_BASE_API + '/system/sys/file/upload', + actionUrl: process.env.VUE_APP_BASE_API + '/sgzb-system/sys/file/upload', // uploadTip: '只能上传jpg/png文件,且不超过500kb', fileIds: [], fileList: [], @@ -285,12 +285,14 @@ export default { fileIds: this.fileIds.length > 0 ? this.fileIds : "", scrapNum: 1, } + this.fullscreenLoading = true submitRepairApplyApi(params).then(res => { if (res.code == 200) { this.fileList = [] this.fileIds = [] this.getList() + this.$message.success('操作成功!') this.fullscreenLoading = false this.dialogShowFlag = false this.$emit('domainChange', res.code) @@ -326,6 +328,7 @@ export default { this.fileList = [] this.fileIds = [] this.getList() + this.$message.success('操作成功!') this.fullscreenLoading = false this.dialogShowFlag = false this.$emit('domainChange', res.code) @@ -364,8 +367,6 @@ export default { cancel() { this.dialogShowFlag = false; this.fileList = [] - // this.$refs["form"].resetFields(); - // this.dynamicValidateForm.premiumList = []; }, addDomainOne() { this.dynamicValidateForm.premiumList.push({ diff --git a/sgzb-ui/src/views/repairTest/repair/dialogTwoForm.vue b/sgzb-ui/src/views/repairTest/repair/dialogTwoForm.vue index c1aebba2..f8e2ea89 100644 --- a/sgzb-ui/src/views/repairTest/repair/dialogTwoForm.vue +++ b/sgzb-ui/src/views/repairTest/repair/dialogTwoForm.vue @@ -116,18 +116,6 @@ > - - - -
{ @@ -545,6 +534,7 @@ export default { this.getList() this.fullscreenLoading = false this.dialogShowFlag = false + this.$message.success('操作成功!') this.$emit('domainChange', res.code) } }).catch(() => { diff --git a/sgzb-ui/src/views/repairTest/repair/index.vue b/sgzb-ui/src/views/repairTest/repair/index.vue index 93b59680..f39681ae 100644 --- a/sgzb-ui/src/views/repairTest/repair/index.vue +++ b/sgzb-ui/src/views/repairTest/repair/index.vue @@ -49,7 +49,7 @@ - @@ -325,8 +324,8 @@ nodeKey="id" :defaultSelect="true" :defaultData="defaultData" - :clearable="false" - :placeholder="'请选择'" + :clearable="true" + :placeholder="'请选择规格型号'" @handleNodeClick="selectDropDialogTwo" > @@ -622,7 +621,7 @@ export default { form: {}, // 表单校验 rules: {}, - defaultData: null, + defaultData: {}, }; }, created() { @@ -638,9 +637,12 @@ export default { }, mounted() { this.getTree(); - // this.$refs.mychild.clearSelect(); this.getList(); }, + updated() { + this.$refs.mychildSon.clearSelect(); + this.defaultData = null + }, methods: { onClose() { this.open = false @@ -650,6 +652,7 @@ export default { }, selectDrop(value) { this.queryParams.type = value + this.defaultData = null }, selectDropDialog(value) { this.dialogQueryParams.typeName = value @@ -720,37 +723,32 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; + this.queryParams.pageSize = 10; this.getList(); }, /** 重置按钮操作 */ resetQuery() { - this.queryParams.dictName = '' + this.queryParams.type = '' this.dateRange = []; this.resetForm("queryForm"); this.handleQuery(); - // this.$refs.mychild.clearFun(); - this.$refs.mychild.clearSelect(); + this.$refs.mychildSon.clearSelect(); }, /** 重置按钮操作 */ resetQueryDialog() { - this.dialogQueryParams = {}; + // this.dialogQueryParams = {}; + this.dialogQueryParams.keyword = '' + this.dialogQueryParams.type = '' + this.dialogQueryParams.typeName = '' this.resetForm("dialogQueryParams"); this.getDialogList(); this.$refs.mychildDialog.clearSelect(); this.$refs.mychildDialogTwo.clearSelect(); }, - /** 新增按钮操作 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "计划借调"; - }, // 多选框选中数据 handleSelectionChange(selection) { - console.log('selection', selection); this.selectionList = selection this.checkResultOne = selection.every(item => item.repairStatusCode == '43'); - console.log('this.checkResultOne ', this.checkResultOne); this.ids = selection.map((item) => item.dictId); this.single = selection.length != 1; this.multiple = !selection.length; @@ -778,9 +776,6 @@ export default { this.dialogQueryParams = {} this.resetForm("dialogQueryParams"); }, - showClose() { - console.log('11111111111111'); - }, getDialogList() { let params = { taskId: this.taskId, @@ -799,7 +794,6 @@ export default { } }) }, - handleReturn() { this.title = '确认操作' this.openOne = true; diff --git a/sgzb-ui/src/views/repairTest/repair/selectTree.vue b/sgzb-ui/src/views/repairTest/repair/selectTree.vue index d3a19f04..f0013705 100644 --- a/sgzb-ui/src/views/repairTest/repair/selectTree.vue +++ b/sgzb-ui/src/views/repairTest/repair/selectTree.vue @@ -46,7 +46,6 @@ - + + diff --git a/sgzb-ui/src/views/repairTest/repair/upload.vue b/sgzb-ui/src/views/repairTest/repair/upload.vue index e264f809..dd1c00fc 100644 --- a/sgzb-ui/src/views/repairTest/repair/upload.vue +++ b/sgzb-ui/src/views/repairTest/repair/upload.vue @@ -74,6 +74,7 @@ export default { } } }; +