Commit a31678f0 by zhuzhequan

Merge branch 'dev' into 'master'

添加密码

See merge request !46
parents de47ed34 f1ce29c6
......@@ -109,6 +109,11 @@
placeholder="请输入内容"
v-model="editForm.content"></el-input>
</el-form-item>
<el-form-item label="密码">
<el-input
placeholder="请输入密码"
v-model="editForm.password"></el-input>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="omVisible = false">取消</el-button>
......@@ -330,7 +335,8 @@ export default {
confimPwd: '',
omVisible: false,
editForm: {
content: ''
content: '',
password: '',
}
}
},
......@@ -411,6 +417,9 @@ export default {
if (!this.editForm.content) {
return this.$message.warning('请输入内容')
}
if (!this.editForm.password) {
return this.$message.warning('请输入密码')
}
try {
const res = await post('sys/announcement/get/tool', {
...this.editForm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment