|
@@ -410,6 +410,7 @@
|
|
|
<el-button type="success" @click="onSubmit">{{ this.$t('partInfo.saveSettings') }}</el-button>
|
|
|
<el-button v-if="isShow" type="success" plain :disabled="isDisabled" @click="initialize485Device">{{ this.$t('partInfo.initialize485Device') }}</el-button>
|
|
|
<el-button v-if="isShow" type="ss" @click="saveList">{{ this.$t('partInfo.addTestMemberList') }}</el-button>
|
|
|
+ <el-button v-if="isShow" type="ss" @click="devicesBind">{{ this.$t('partInfo.bindDevice') }}</el-button>
|
|
|
<el-button v-if="isShow" type="ss" @click="devicesRef">{{ this.$t('partInfo.devicesRef') }}</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -422,7 +423,7 @@
|
|
|
import * as API_Part from '@/api/ncs_partInfo'
|
|
|
import { saveListByCustomer } from '@/api/ncs_customer'
|
|
|
import Storage from '@/utils/storage'
|
|
|
-import { init485Device, initData, initDeviceList } from '@/api/initialize'
|
|
|
+import {bindDeviceTransAudio, init485Device, initData, initDeviceList} from '@/api/initialize'
|
|
|
import * as API_Clerk from '@/api/ncs_clerk'
|
|
|
import * as API_SystemConfig from '@/api/ncs_systemconfig'
|
|
|
export default {
|
|
@@ -649,6 +650,20 @@ export default {
|
|
|
console.log(this.$t('action.cancel'))
|
|
|
})
|
|
|
},
|
|
|
+ devicesBind() {
|
|
|
+ const _this = this
|
|
|
+ this.$confirm(this.$t('partInfo.sureBindDevice') + '', this.$t('action.tips') + '', {
|
|
|
+ confirmButtonText: this.$t('action.yes'),
|
|
|
+ cancelButtonText: this.$t('action.cancel'),
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ bindDeviceTransAudio().then(res => {
|
|
|
+ _this.$message.info(res.message)
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ console.log(this.$t('action.cancel'))
|
|
|
+ })
|
|
|
+ },
|
|
|
createAdmin() {
|
|
|
this.formshow = true
|
|
|
this.formmodelAdmin = {
|