|
@@ -41,7 +41,7 @@
|
|
type: '', // edit 编辑页 add 新增页
|
|
type: '', // edit 编辑页 add 新增页
|
|
ruleValidate: {
|
|
ruleValidate: {
|
|
name: [
|
|
name: [
|
|
- { required: true, message: '请输入角色名称', trigger: 'change' },
|
|
|
|
|
|
+ { required: true, message: '请输入岗位名称', trigger: 'change' },
|
|
{
|
|
{
|
|
validator: (rule, value, callback) => {
|
|
validator: (rule, value, callback) => {
|
|
let reg = /^[^<|>]{1,30}$/
|
|
let reg = /^[^<|>]{1,30}$/
|
|
@@ -60,9 +60,9 @@
|
|
console.log(options)
|
|
console.log(options)
|
|
this.type = options.type
|
|
this.type = options.type
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
- title: this.type=="add" ? '添加角色' : '编辑角色'
|
|
|
|
|
|
+ title: this.type=="add" ? '添加岗位' : '编辑岗位'
|
|
})
|
|
})
|
|
- // 初始化角色
|
|
|
|
|
|
+ // 初始化岗位
|
|
this.$refs.roleSet.getMenuList(options.id)
|
|
this.$refs.roleSet.getMenuList(options.id)
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
@@ -106,7 +106,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 删除角色
|
|
|
|
|
|
+ // 删除岗位
|
|
delRole(){
|
|
delRole(){
|
|
let _this = this
|
|
let _this = this
|
|
const item = this.formData
|
|
const item = this.formData
|