refactor(front): 优化组件功能和消息提示
- 修改部门树组件的值类型 - 优化文件上传组件的大小计算和消息提示 - 统一使用 CsMessage 组件进行消息提示 - 调整控制台日志输出级别
This commit is contained in:
@@ -40,7 +40,7 @@ export default {
|
||||
const that = this
|
||||
that.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
console.error('submitForm:form', that.form)
|
||||
console.log('submitForm:form', that.form)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
const that = this
|
||||
that.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
console.error('submitForm:form', that.form)
|
||||
console.log('submitForm:form', that.form)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onChange(value) {
|
||||
console.error('onChange', value)
|
||||
console.log('onChange', value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onChange(text, markdown) {
|
||||
console.error('onChange:text', text)
|
||||
console.error('onChange:markdown', markdown)
|
||||
console.log('onChange:text', text)
|
||||
console.log('onChange:markdown', markdown)
|
||||
},
|
||||
onSave(text, markdown) {
|
||||
console.error('onSave:text', text)
|
||||
console.error('onSave:markdown', markdown)
|
||||
console.log('onSave:text', text)
|
||||
console.log('onSave:markdown', markdown)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
</template>
|
||||
<script>
|
||||
import Clipboard from 'clipboard'
|
||||
import { Message } from 'element-ui'
|
||||
import CuteOneKeyCopy from '@/views/components/dev/CuteOneKeyCopy'
|
||||
import CsMessage from '@/utils/elementui/CsMessage'
|
||||
|
||||
export default {
|
||||
components: { CuteOneKeyCopy },
|
||||
@@ -32,13 +32,13 @@ export default {
|
||||
})
|
||||
// 复制成功
|
||||
clipboard.on('success', (e) => {
|
||||
Message.success('复制成功')
|
||||
CsMessage.Success('复制成功')
|
||||
console.log(e, '复制成功')
|
||||
clipboard.destroy()
|
||||
})
|
||||
// //复制失败
|
||||
clipboard.on('error', (e) => {
|
||||
Message.error('复制失败')
|
||||
CsMessage.Error('复制失败')
|
||||
console.log(e, '复制失败')
|
||||
clipboard.destroy()
|
||||
})
|
||||
|
||||
@@ -22,8 +22,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onChange(html, text) {
|
||||
console.error('onChange:html', html)
|
||||
console.error('onChange:text', text)
|
||||
console.log('onChange:html', html)
|
||||
console.log('onChange:text', text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,13 +171,13 @@ export default {
|
||||
this.$refs.dialogForm.show()
|
||||
},
|
||||
onDialogFormSubmit(values) {
|
||||
console.error('onDialogFormSubmit', values)
|
||||
console.log('onDialogFormSubmit', values)
|
||||
},
|
||||
onDrawerClick() {
|
||||
this.$refs.drawerFrom.show()
|
||||
},
|
||||
onDrawerFormSubmit(values) {
|
||||
console.error('onDrawerFormSubmit', values)
|
||||
console.log('onDrawerFormSubmit', values)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onChange(value) {
|
||||
console.error('onChange', value)
|
||||
console.log('onChange', value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user