|
@@ -146,7 +146,7 @@ export default {
|
|
|
show:false,
|
|
|
disabled:false,
|
|
|
lastName: '',
|
|
|
- func: this.fun,
|
|
|
+ // func: this.fun,
|
|
|
// funName: this.functionName,
|
|
|
// funInfo: this.functionInfo,
|
|
|
functionLis: [],
|
|
@@ -185,16 +185,23 @@ export default {
|
|
|
return this.$store.state.admin.userinfo
|
|
|
}
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ fun(val,oldval){
|
|
|
+ if(val!=oldval){
|
|
|
+ this.$refs.dataTable.clearSelection()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
|
|
|
changeData(selection,row){
|
|
|
- console.log(this.func)
|
|
|
+ console.log(this.fun)
|
|
|
if (selection.length > 1) {
|
|
|
const del_row = selection.shift()
|
|
|
this.$refs.dataTable.toggleRowSelection(del_row, false)
|
|
|
}
|
|
|
this.multipleSelection = selection[0]
|
|
|
- this.$emit('getPremissData', this.func.id, this.func.name,this.multipleSelection )
|
|
|
+ this.$emit('getPremissData', this.fun.id, this.fun.name,this.multipleSelection )
|
|
|
console.log(this.multipleSelection)
|
|
|
|
|
|
},
|
|
@@ -320,9 +327,6 @@ export default {
|
|
|
this.$api.getFunctionList().then(response => {
|
|
|
this.functionList = response.data
|
|
|
})
|
|
|
- console.log(this.funId)
|
|
|
- console.log(this.functionName)
|
|
|
- console.log(this.functionInfo)
|
|
|
},
|
|
|
submit() {
|
|
|
this.$refs.ruleForm.validate((valid) => {
|