From f7ee9594219dbdc359902fda10f2ebbd29c3034d Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 22 Jul 2024 13:28:25 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=A1=A8=E6=A0=BC=E5=A4=8D=E9=80=89=E6=A1=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/repairTest/repair/index.vue | 5 + .../views/repairTest/repair/selectTree.vue | 393 +++++++++--------- .../views/repairTest/repairScrap/index.vue | 5 + .../repairTest/repairScrap/selectTree.vue | 393 +++++++++--------- .../newPurchase/component/fileView.vue | 5 +- sgzb-ui/vue.config.js | 2 +- 6 files changed, 407 insertions(+), 396 deletions(-) diff --git a/sgzb-ui/src/views/repairTest/repair/index.vue b/sgzb-ui/src/views/repairTest/repair/index.vue index 2ca0cfc3..17787ba7 100644 --- a/sgzb-ui/src/views/repairTest/repair/index.vue +++ b/sgzb-ui/src/views/repairTest/repair/index.vue @@ -366,6 +366,11 @@ width="55" align="center" v-if="repairTitle === '维修'" + :selectable=" + (row) => { + return row.status == 1 + } + " /> - - - - - {{ data[treeProps.label] }} - - - - + + + {{ data[treeProps.label] }} + + + + - diff --git a/sgzb-ui/src/views/repairTest/repairScrap/index.vue b/sgzb-ui/src/views/repairTest/repairScrap/index.vue index a495d911..66a6cad9 100644 --- a/sgzb-ui/src/views/repairTest/repairScrap/index.vue +++ b/sgzb-ui/src/views/repairTest/repairScrap/index.vue @@ -377,6 +377,11 @@ type="selection" width="55" align="center" + :selectable=" + (row) => { + return row.status == 1 + } + " v-if="repairTitle === '维修'" /> - - - - - {{ data[treeProps.label] }} - - - - + + + {{ data[treeProps.label] }} + + + + - diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue index 0e49bd32..cfe74740 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue @@ -5,7 +5,10 @@ diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index a2451437..50078abd 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -43,7 +43,7 @@ module.exports = { // target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://z.csgmall.com.cn`, - target: `http://192.168.2.167:28080`, //超 + target: `http://192.168.2.134:28080`, //超 // target: `http://10.40.92.81:28080`, //韩/ // target: `http://10.40.92.74:8080`,//旭/ // target: `http://192.168.2.248:28080`, //帅 From b7a7bf193023fffc56cfc544348ba251047aa5f3 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 22 Jul 2024 13:44:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=B0=83=E8=AF=95=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/scrapManage/scrap/disposition/index.vue | 13 +++++++++++++ .../newPurchase/component/fileView.vue | 15 +++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue index fabc08ce..560ebb18 100644 --- a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue +++ b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue @@ -124,6 +124,14 @@ 查看 + 查看 @@ -345,6 +353,11 @@ export default { ) console.log('数据导出', data) }, + fileTypeJudge(url) { + const file = url.split('.')[1] + const docList = ['doc', 'docx', 'xls', 'xlsx'] + return docList.some((e) => e === file) + }, }, } diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue index cfe74740..7e4e45af 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/component/fileView.vue @@ -9,8 +9,16 @@ :href="`${filePreviewUrl}${row.url}`" target="_blank" :download="row.name" + v-if="fileTypeJudge(row.name)" >查看 + + 查看 + @@ -53,6 +61,13 @@ export default { return tableList || [] }, }, + methods: { + fileTypeJudge(url) { + const file = url.split('.')[1] + const docList = ['doc', 'docx'] + return docList.some((e) => e === file) + }, + }, } From 25cdb4b077105f1eb76c981867ae8dd6003e346d Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 22 Jul 2024 14:51:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E8=B4=AD=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=97=B6=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE?= =?UTF-8?q?loading=20=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E6=8E=A5=E5=8F=A3=E5=AF=BC=E8=87=B4=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsAcceptance/component/codingTools.vue | 36 ++++++++++++------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue index 893569c0..f6c60e4b 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue @@ -297,7 +297,11 @@