|
@@ -136,6 +136,7 @@ import Pagination from '@/components/Pagination' // secondary package based on e
|
|
|
import Qrcode from '@/components/qrcode'
|
|
|
import { formatDate } from '@/utils'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
+import { setStorage } from '@/utils/storage'
|
|
|
export default {
|
|
|
name: 'ComplexTable',
|
|
|
components: { Pagination, Qrcode },
|
|
@@ -180,19 +181,12 @@ export default {
|
|
|
created() {
|
|
|
this.listQuery.authId = this.$route.query.id
|
|
|
this.authParty = this.$route.query.authParty
|
|
|
+ // 保存机构id,用于设备管理
|
|
|
+ setStorage('device-setting-authId', this.listQuery.authId)
|
|
|
this.getList()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
-
|
|
|
- // 添加
|
|
|
- handleAddPro() {
|
|
|
- this.$router.push('add')
|
|
|
- },
|
|
|
- // 修改
|
|
|
- handleEditPro() {
|
|
|
- this.$router.push('edit')
|
|
|
- },
|
|
|
// 获取列表信息
|
|
|
getList() {
|
|
|
getProdList(this.listQuery).then(res => {
|