Commit 5ee15d2b authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/master'

parents 1c71f961 372b9287
...@@ -194,10 +194,10 @@ export default { ...@@ -194,10 +194,10 @@ export default {
const user = _.cloneDeep(this.$store.state.user) const user = _.cloneDeep(this.$store.state.user)
user.head = res.filePath user.head = res.filePath
this.$store.commit('setUser', user) this.$store.commit('setUser', user)
this.$message.success('修改头像成功') this.$message.success('修改头像成功')
this.$emit('close') this.$emit('close')
} catch (error) { } catch (error) {
this.$message.error('修改头像失败') this.$message.error('修改头像失败')
} }
} }
} }
......
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
var img = file.name.substring(file.name.lastIndexOf('.') + 1) var img = file.name.substring(file.name.lastIndexOf('.') + 1)
const suffix = img === 'jpg' || img === 'png' || img === 'jpeg' const suffix = img === 'jpg' || img === 'png' || img === 'jpeg'
if (!suffix) { if (!suffix) {
this.$message.error('文件格式不正确, 请上传png/jpg/jpeg图片格式文件') this.$message.error('文件格式不正确, 请上传png/jpg/jpeg图片格式文件')
return false return false
} }
if (this.fileSize) { if (this.fileSize) {
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
this.$store.dispatch('app/toggleSideBar') this.$store.dispatch('app/toggleSideBar')
}, },
async logout() { async logout() {
this.$confirm('确定注销并退出系统吗', '提示', { this.$confirm('确定注销并退出系统吗', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
......
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
submitForm() { submitForm() {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
if (valid) { if (valid) {
console.log('校验通过') console.log('校验通过')
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -1152,7 +1152,7 @@ export default { ...@@ -1152,7 +1152,7 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -1633,7 +1633,7 @@ export default { ...@@ -1633,7 +1633,7 @@ export default {
'followStatus': this.detailInfo.followStatus 'followStatus': this.detailInfo.followStatus
} }
console.log('病例编辑页的提交字段大集合!!!', temp) console.log('病例编辑页的提交字段大集合!!!', temp)
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
}, },
// 返回按钮 // 返回按钮
goBack() { goBack() {
this.$confirm('是否确认立即返回,返回后系统不再保存已填写内容', '提示', { this.$confirm('是否确认立即返回,返回后系统不再保存已填写内容', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
......
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
}, },
// 点击立即预约 // 点击立即预约
handleBookNow(row) { handleBookNow(row) {
this.$confirm('立即预约此设备,是否确定?', '提示', { this.$confirm('立即预约此设备,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -758,7 +758,7 @@ export default { ...@@ -758,7 +758,7 @@ export default {
/** 对话框立即预约设备 */ /** 对话框立即预约设备 */
handleSubscribeDevice(row) { handleSubscribeDevice(row) {
console.log('点击里面的立即预约', row) console.log('点击里面的立即预约', row)
this.$confirm('立即预约此设备,是否确定?', '提示', { this.$confirm('立即预约此设备,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout', customClass: 'box-logout',
......
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
document.getElementById('copyNode').click() document.getElementById('copyNode').click()
}, },
empty() { empty() {
this.$confirm('确定要清空所有组件吗', '提示', { type: 'warning' }).then( this.$confirm('确定要清空所有组件吗', '提示', { type: 'warning' }).then(
() => { () => {
this.drawingList = [] this.drawingList = []
} }
......
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