|
@@ -207,7 +207,6 @@
|
|
<script>
|
|
<script>
|
|
import api from "@/api/api";
|
|
import api from "@/api/api";
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
-// import testNfc from "@/common/util/hexiii-nfc.js"
|
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
import configService from '@/common/service/config.service.js'
|
|
import configService from '@/common/service/config.service.js'
|
|
export default {
|
|
export default {
|
|
@@ -272,17 +271,6 @@ export default {
|
|
username: function () {
|
|
username: function () {
|
|
return uni.getStorageSync('login_user_info')['realname']
|
|
return uni.getStorageSync('login_user_info')['realname']
|
|
},
|
|
},
|
|
- cardIds: function () {
|
|
|
|
- return this.$store.getters.nfcreadtxt
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- watch: {
|
|
|
|
- cardIds: {
|
|
|
|
- handler(newV, oldV) {
|
|
|
|
- this.getCardLists(newV)
|
|
|
|
- },
|
|
|
|
- immediate: true
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
console.log(uni.getStorageSync('login_user_info'), 'ceshi00-----------')
|
|
console.log(uni.getStorageSync('login_user_info'), 'ceshi00-----------')
|
|
@@ -1587,33 +1575,11 @@ export default {
|
|
this.isRule14 = false
|
|
this.isRule14 = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //根据NFC读取数据获取监测地点信息
|
|
|
|
- getCardLists(ids) {
|
|
|
|
- let that = this
|
|
|
|
- new Promise((resolve, reject) => {
|
|
|
|
- api
|
|
|
|
- .getCardList({ id: ids })
|
|
|
|
- .then((response) => {
|
|
|
|
- if (response.data.code == 200) {
|
|
|
|
- let data = response.data.result
|
|
|
|
- that.formState.jcdd = data.id
|
|
|
|
- that.deviceId = data.id
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
//瓦斯新增
|
|
//瓦斯新增
|
|
getAdd() {
|
|
getAdd() {
|
|
let that = this
|
|
let that = this
|
|
that.isStatus = 'add'
|
|
that.isStatus = 'add'
|
|
that.isShowAdd = true
|
|
that.isShowAdd = true
|
|
- // that.formState.jcy = this.username
|
|
|
|
- // if (that.nfcShow) {
|
|
|
|
- // testNfc.listenNFCStatus()
|
|
|
|
- // testNfc.readData();
|
|
|
|
- // // //根据NFC读取数据获取监测地点信息
|
|
|
|
- // // that.getCardLists(ids)
|
|
|
|
- // }
|
|
|
|
that.formState = {
|
|
that.formState = {
|
|
id: '',
|
|
id: '',
|
|
bc: that.indexParam['班次'],
|
|
bc: that.indexParam['班次'],
|