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 @@
-