|
@@ -138,7 +138,6 @@
|
|
|
v-model="scope.row.SwitchRule"
|
|
|
:disabled="scope.row.type != 1"
|
|
|
@change="dataAndGlobal(scope.$index,scope.row,1)"
|
|
|
- :class="!scope.row.SwitchRule && scope.row.DatacenterSign === 1 ?'danger-color':''"
|
|
|
></el-input>
|
|
|
|
|
|
</template>
|
|
@@ -152,8 +151,6 @@
|
|
|
v-model="scope.row.SwitchRuleDataplatform"
|
|
|
:disabled="scope.row.type != 1"
|
|
|
@change="dataAndGlobal(scope.$index,scope.row,2)"
|
|
|
- :class="!scope.row.SwitchRuleDataplatform && scope.row.DatacenterSign === 1 ?'danger-color':''"
|
|
|
-
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -165,7 +162,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {dectInfo, dictUpdate} from '../../../api/relation/api'
|
|
|
- import {mapGetters} from 'vuex'
|
|
|
+ import {mapActions, mapGetters, mapState} from 'vuex'
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
@@ -200,7 +197,6 @@
|
|
|
dectInfo(param).then(res=> {
|
|
|
this.loading = false
|
|
|
if(res.data.Result === 'success') {
|
|
|
- console.log(res.data.Count,'count')
|
|
|
res.data.Content.length && res.data.Content.forEach(i => {
|
|
|
this.tableList.push({
|
|
|
majorName: i.CustomCategoryName,
|
|
@@ -263,9 +259,11 @@
|
|
|
})
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters('layout', ['projectId','secret']),
|
|
|
+ ...mapGetters('layout', ['projectId']),
|
|
|
+ ...mapState('layout', ['rowEdit'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapActions('layout', ['setRowEdit']),
|
|
|
back() {
|
|
|
this.$router.go(-1)
|
|
|
},
|
|
@@ -273,7 +271,6 @@
|
|
|
console.log(val)
|
|
|
},
|
|
|
dataAndGlobal(index, val, type) {
|
|
|
- console.log(index, val)
|
|
|
let param = []
|
|
|
if (type === 1) {
|
|
|
param.push({
|
|
@@ -292,9 +289,9 @@
|
|
|
})
|
|
|
}
|
|
|
dictUpdate(param, res => {
|
|
|
+ this.setRowEdit(true)
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
|
|
|
}
|