Merge branch 'master' into deploy
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eladmin-web",
|
"name": "eladmin-web",
|
||||||
"version": "2.6.0",
|
"version": "2.7.0",
|
||||||
"description": "ELADMIN 前端源码",
|
"description": "ELADMIN 前端源码",
|
||||||
"author": "Zheng Jie",
|
"author": "Zheng Jie",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -45,6 +45,14 @@ export function updatePass(user) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function resetPwd(ids) {
|
||||||
|
return request({
|
||||||
|
url: 'api/users/resetPwd',
|
||||||
|
method: 'put',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function updateEmail(form) {
|
export function updateEmail(form) {
|
||||||
const data = {
|
const data = {
|
||||||
password: encrypt(form.pass),
|
password: encrypt(form.pass),
|
||||||
@@ -57,5 +65,5 @@ export function updateEmail(form) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del }
|
export default { add, edit, del, resetPwd }
|
||||||
|
|
||||||
|
|||||||
@@ -25,16 +25,16 @@ export default {
|
|||||||
name: 'WangEditor',
|
name: 'WangEditor',
|
||||||
components: { Toolbar, Editor },
|
components: { Toolbar, Editor },
|
||||||
props: {
|
props: {
|
||||||
value: [String],
|
value: {
|
||||||
editorHeight: {
|
type: String,
|
||||||
type: Number
|
required: false,
|
||||||
}
|
default: ''
|
||||||
},
|
},
|
||||||
computed: {
|
editorHeight: {
|
||||||
...mapGetters([
|
type: Number,
|
||||||
'imagesUploadApi',
|
required: false,
|
||||||
'baseApi'
|
default: 420
|
||||||
])
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const _this = this
|
const _this = this
|
||||||
@@ -55,6 +55,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
|
computed: {
|
||||||
|
...mapGetters([
|
||||||
|
'imagesUploadApi',
|
||||||
|
'baseApi'
|
||||||
|
])
|
||||||
|
},
|
||||||
editMode: 'simple',
|
editMode: 'simple',
|
||||||
editor: null,
|
editor: null,
|
||||||
editValue: null
|
editValue: null
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</crudOperation>
|
</crudOperation>
|
||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="800px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="800px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="100px">
|
||||||
<el-form-item label="应用名称" prop="name">
|
<el-form-item label="应用名称" prop="name">
|
||||||
<el-input v-model="form.name" style="width: 670px" placeholder="部署后的文件或者目录名称,用于备份" />
|
<el-input v-model="form.name" style="width: 670px" placeholder="部署后的文件或者目录名称,用于备份" />
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<eForm ref="execute" :database-info="currentRow" />
|
<eForm ref="execute" :database-info="currentRow" />
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="530px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="530px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="100px">
|
||||||
<el-form-item label="连接名称" prop="name">
|
<el-form-item label="连接名称" prop="name">
|
||||||
<el-input v-model="form.name" style="width: 370px" />
|
<el-input v-model="form.name" style="width: 370px" />
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
</crudOperation>
|
</crudOperation>
|
||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="500px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
||||||
<el-form-item label="应用" prop="app.id">
|
<el-form-item label="应用" prop="app.id">
|
||||||
<el-select v-model.number="form.app.id" placeholder="请选择" style="width: 370px">
|
<el-select v-model.number="form.app.id" placeholder="请选择" style="width: 370px">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="470px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="470px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="55px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="55px">
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
<el-input v-model="form.name" style="width: 370px" />
|
<el-input v-model="form.name" style="width: 370px" />
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="500px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
||||||
<el-form ref="form" inline :model="form" :rules="rules" size="small" label-width="80px">
|
<el-form ref="form" inline :model="form" :rules="rules" size="small" label-width="80px">
|
||||||
<el-form-item label="部门名称" prop="name">
|
<el-form-item label="部门名称" prop="name">
|
||||||
<el-input v-model="form.name" style="width: 370px;" />
|
<el-input v-model="form.name" style="width: 370px;" />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
</div>
|
</div>
|
||||||
<!--表单渲染-->
|
<!--表单渲染-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="580px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="580px">
|
||||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
|
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
|
||||||
<el-form-item label="菜单类型" prop="type">
|
<el-form-item label="菜单类型" prop="type">
|
||||||
<el-radio-group v-model="form.type" size="mini" style="width: 178px">
|
<el-radio-group v-model="form.type" size="mini" style="width: 178px">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
</div>
|
</div>
|
||||||
<!-- 表单渲染 -->
|
<!-- 表单渲染 -->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="520px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px">
|
||||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
|
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
|
||||||
<el-form-item label="角色名称" prop="name">
|
<el-form-item label="角色名称" prop="name">
|
||||||
<el-input v-model="form.name" style="width: 380px;" />
|
<el-input v-model="form.name" style="width: 380px;" />
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<Log ref="log" />
|
<Log ref="log" />
|
||||||
</div>
|
</div>
|
||||||
<!--Form表单-->
|
<!--Form表单-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" append-to-body width="730px">
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" append-to-body width="730px">
|
||||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="100px">
|
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="100px">
|
||||||
<el-form-item label="任务名称" prop="jobName">
|
<el-form-item label="任务名称" prop="jobName">
|
||||||
<el-input v-model="form.jobName" style="width: 220px;" />
|
<el-input v-model="form.jobName" style="width: 220px;" />
|
||||||
|
|||||||
@@ -57,10 +57,22 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<rrOperation />
|
<rrOperation />
|
||||||
</div>
|
</div>
|
||||||
<crudOperation show="" :permission="permission" />
|
<crudOperation show="" :permission="permission">
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
v-permission="['admin','user:add']"
|
||||||
|
:disabled="crud.selections.length === 0"
|
||||||
|
class="filter-item"
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-refresh-left"
|
||||||
|
@click="resetPwd(crud.selections)"
|
||||||
|
>重置密码
|
||||||
|
</el-button>
|
||||||
|
</crudOperation>
|
||||||
</div>
|
</div>
|
||||||
<!--表单渲染-->
|
<!--表单渲染-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.title" width="570px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="570px">
|
||||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="66px">
|
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="66px">
|
||||||
<el-form-item label="用户名" prop="username">
|
<el-form-item label="用户名" prop="username">
|
||||||
<el-input v-model="form.username" @keydown.native="keydown($event)" />
|
<el-input v-model="form.username" @keydown.native="keydown($event)" />
|
||||||
@@ -471,6 +483,23 @@ export default {
|
|||||||
},
|
},
|
||||||
checkboxT(row, rowIndex) {
|
checkboxT(row, rowIndex) {
|
||||||
return row.id !== this.user.id
|
return row.id !== this.user.id
|
||||||
|
},
|
||||||
|
resetPwd(datas) {
|
||||||
|
this.$confirm(`你选中了 ${datas.length} 位用户,确认重置用户的密码吗?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
const ids = []
|
||||||
|
datas.forEach(val => {
|
||||||
|
ids.push(val.id)
|
||||||
|
})
|
||||||
|
console.log(ids)
|
||||||
|
crudUser.resetPwd(ids).then(() => {
|
||||||
|
this.crud.notify('重置成功, 用户新密码:123456', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
}).catch(() => {})
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</crudOperation>
|
</crudOperation>
|
||||||
</div>
|
</div>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu" :title="crud.status.add ? '文件上传' : '编辑文件'" width="500px">
|
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.add ? '文件上传' : '编辑文件'" width="500px">
|
||||||
<el-form ref="form" :model="form" size="small" label-width="80px">
|
<el-form ref="form" :model="form" size="small" label-width="80px">
|
||||||
<el-form-item label="文件名">
|
<el-form-item label="文件名">
|
||||||
<el-input v-model="form.name" style="width: 370px;" />
|
<el-input v-model="form.name" style="width: 370px;" />
|
||||||
|
|||||||
Reference in New Issue
Block a user