From d4bda383914d44f7c3c2e5ecfe2e96357de1cbed Mon Sep 17 00:00:00 2001 From: yedejiamingshi <540057894@qq.com> Date: Thu, 13 Feb 2025 17:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5=2002.13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/businessInfo.js | 9 - src/views/basic/businessInfo/index.vue | 225 +---------- src/views/identity/generateRecord/index.vue | 101 +---- src/views/identity/scanRecord/index.vue | 20 +- src/views/iot/deviceInfo/index.vue | 51 --- src/views/iot/envData/index.vue | 44 +-- src/views/production/harvestBatch/index.vue | 36 -- .../production/setting/miniProConfig.vue | 367 +----------------- 8 files changed, 42 insertions(+), 811 deletions(-) diff --git a/src/api/basic/businessInfo.js b/src/api/basic/businessInfo.js index 9798e0b..635e5eb 100644 --- a/src/api/basic/businessInfo.js +++ b/src/api/basic/businessInfo.js @@ -51,12 +51,3 @@ export function getBusinessNameList(query) { params: query, }) } - -// 设置默认码规则 -export function setDefaultRuleCode(params) { - return request({ - url: '/basic/business-info/setDefaultRuleCode', - method: 'put', - params - }) -} \ No newline at end of file diff --git a/src/views/basic/businessInfo/index.vue b/src/views/basic/businessInfo/index.vue index eaaf159..c65ffcf 100644 --- a/src/views/basic/businessInfo/index.vue +++ b/src/views/basic/businessInfo/index.vue @@ -29,12 +29,6 @@ - - - 配置 - - - - @@ -121,80 +99,6 @@ - - - - - - {{item.codeRuleName}} - - - - 编辑 - 取消 - 删除 - 设为默认 - - - - - 码规则名称: - {{item.codeRuleName}} - - - 码规则: - {{item.codeRuleFormat}} - - - 码示例: - {{filterText(item.codeType)}} - - - - * - 码类型 - - 普通码:无需验证,即扫即查明暗码:带验证码的二维码,扫码后需输入正确的验证码才能查询 - - : - - {{filterType(item.codeType)}} - - - - - - 保存 - - - - - - - - - - - - - - - - 保存 - - - - - - 添加自定义码规则 - - - diff --git a/src/views/identity/scanRecord/index.vue b/src/views/identity/scanRecord/index.vue index fd0fbde..4ed7fdf 100644 --- a/src/views/identity/scanRecord/index.vue +++ b/src/views/identity/scanRecord/index.vue @@ -207,7 +207,7 @@ export default { } }; }, - created() { + mounted() { this.getList(); }, methods: { @@ -255,21 +255,9 @@ export default { }); }, // 下载图片码包 - async downloadImage(row){ - // const loading = this.$loading({ - // lock: true, - // text: 'Loading', - // spinner: 'el-icon-loading', - // background: 'rgba(0, 0, 0, 0.7)' - // }); + async downloadImage(row) { let url = row.fileUrl; window.open(url,'_self'); - // let res = await createGenerateRecordZip(row); - // if( res.data && res.data.fileUrl ){ - // let url = res.data.fileUrl; - // window.open(url,'_self'); - // loading.close(); - // } }, async downloadNoTextImage(row) { if (row.imageFileUrl) { @@ -281,6 +269,10 @@ export default { /** 查询列表 */ getList() { + const { query: { businessName } } = this.$route; + if (businessName) { + this.queryParams.belongBusinessName = businessName; + } this.loading = true; // 执行查询 getGenerateRecordPage(this.queryParams).then(response => { diff --git a/src/views/iot/deviceInfo/index.vue b/src/views/iot/deviceInfo/index.vue index 0520b5f..72b3bdc 100644 --- a/src/views/iot/deviceInfo/index.vue +++ b/src/views/iot/deviceInfo/index.vue @@ -10,7 +10,6 @@ :showSearch.sync="showSearch" @handleQuery="handleQuery" @resetQuery="resetQuery" - @selectChage="selectChage" > @@ -29,7 +28,6 @@ - {{gatewayTypeOptions[row.gatewayType-1].label}} @@ -103,17 +101,6 @@ - - - - - - - @@ -268,7 +255,6 @@