|
@@ -217,16 +217,17 @@
|
|
|
//同意
|
|
|
if (_this.subForm.status == 1) {
|
|
|
_this.set_register_examine_form(_this.subForm);
|
|
|
- if (_this.hasSceneId4) {
|
|
|
+ if (_this.hasSceneId1) {
|
|
|
_this.$router.push({
|
|
|
- name: 'MasterCompanyRegisterSelectDevice',
|
|
|
- query: {
|
|
|
- hasSceneId4: _this.hasSceneId4 ? '1' : '0'
|
|
|
- }
|
|
|
+ name: 'MasterCompanyRegisterSelectDepartment',
|
|
|
})
|
|
|
} else {
|
|
|
_this.$router.push({
|
|
|
- name: 'MasterCompanyRegisterSelectDepartment',
|
|
|
+ name: 'MasterCompanyRegisterSelectDevice',
|
|
|
+ query: {
|
|
|
+ hasSceneId1: _this.hasSceneId1 ? '1' : '0',
|
|
|
+ hasSceneId4: _this.hasSceneId4 ? '1' : '0',
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
@@ -265,6 +266,21 @@
|
|
|
window.removeEventListener('scroll', _this.handleScrool);
|
|
|
},
|
|
|
computed: {
|
|
|
+ hasSceneId1: {
|
|
|
+ // getter
|
|
|
+ get: function() {
|
|
|
+ for (var i = 0; i < this.recordList.length; i++) {
|
|
|
+ if (this.selectIdList.indexOf(this.recordList[i]['id']) > -1 && this.recordList[i]['sceneId'] == '1') {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ // setter
|
|
|
+ set: function(newValue) {
|
|
|
+ console.log(newValue)
|
|
|
+ }
|
|
|
+ },
|
|
|
hasSceneId4: {
|
|
|
// getter
|
|
|
get: function() {
|