提交 6e376668 作者: 毛细亚

Merge branch '1.1' into release

...@@ -62,6 +62,39 @@ Vue.prototype.$lodash = _; ...@@ -62,6 +62,39 @@ Vue.prototype.$lodash = _;
Vue.prototype.$moment = moment; Vue.prototype.$moment = moment;
Vue.prototype.$ww = ww; Vue.prototype.$ww = ww;
Vue.prototype.$clone = deepClone // vue原型挂载递归拷贝方法 Vue.prototype.$clone = deepClone // vue原型挂载递归拷贝方法
// 设置全局 Message 默认显示时间为 2 秒
Vue.prototype.$message = function(options) {
if (typeof options === 'string') {
return ElementUI.Message({
message: options,
duration: 1000
});
} else {
return ElementUI.Message({
duration: 1000,
...options
});
}
};
// 设置各种类型的 Message 默认显示时间
['success', 'warning', 'info', 'error'].forEach(type => {
Vue.prototype.$message[type] = function(options) {
if (typeof options === 'string') {
return ElementUI.Message[type]({
message: options,
duration: 1000
});
} else {
return ElementUI.Message[type]({
duration: 1000,
...options
});
}
};
});
new Vue({ new Vue({
router, router,
store, store,
......
...@@ -95,6 +95,10 @@ ...@@ -95,6 +95,10 @@
this.$emit('result', value, valueItem) this.$emit('result', value, valueItem)
}, },
requestAccountList() { requestAccountList() {
if (this.accountSelect == '') {
this.$message.warning('暂无关联的账号,请先去关联账号!')
return false
}
roleList({ role_name: this.resulte, member_id: this.accountSelect, ...this.pageInfo }).then((res) => { roleList({ role_name: this.resulte, member_id: this.accountSelect, ...this.pageInfo }).then((res) => {
this.loading = false this.loading = false
this.searchUserOption = this.searchUserOption.concat(res.data.data) this.searchUserOption = this.searchUserOption.concat(res.data.data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论