Commit fee862d5 by 李伟康

refactor(dailyNewspaper): 移除调试用的 console.log 语句

- 删除了 StoreDailyReport 编辑页面中的多个调试日志输出
- 清理了代码中遗留的 console.log 语句以提高性能
- 移除了不必要的调试信息输出逻辑
1 parent 4ed7bf53
...@@ -146,7 +146,6 @@ export default { ...@@ -146,7 +146,6 @@ export default {
let { keys, result } = i.rules, let { keys, result } = i.rules,
{ list } = this { list } = this
if (keys && result) { if (keys && result) {
console.log(keys, result)
let params = keys.map((c, index) => `val${index + 1}`), let params = keys.map((c, index) => `val${index + 1}`),
// 将 new Function 改为 eval 方式 // 将 new Function 改为 eval 方式
func = eval(`(function(${params.join(',')}) { return ${result}; })`), func = eval(`(function(${params.join(',')}) { return ${result}; })`),
...@@ -172,8 +171,6 @@ export default { ...@@ -172,8 +171,6 @@ export default {
this.$refs.editForm.open(row, rowIndex, index, parent) this.$refs.editForm.open(row, rowIndex, index, parent)
}, },
delItem (c_index, index) { delItem (c_index, index) {
console.log(this.list[index].children)
console.log(c_index, index)
this.list[index].children.splice(c_index, 1) this.list[index].children.splice(c_index, 1)
}, },
addItem (index) { addItem (index) {
...@@ -217,10 +214,8 @@ export default { ...@@ -217,10 +214,8 @@ export default {
this.$refs.dailyPopup.open(item, type, index) this.$refs.dailyPopup.open(item, type, index)
}, },
onPopupConfirm (data) { onPopupConfirm (data) {
console.log(data)
const { popupType, chooseContent, itemIndex } = data const { popupType, chooseContent, itemIndex } = data
if (popupType == 2) { if (popupType == 2) {
console.log(this.list)
let { key, completeFun } = this.list[itemIndex] let { key, completeFun } = this.list[itemIndex]
this.$set(this.list[itemIndex], 'value', chooseContent.map(e => e.staffName).join('/')) this.$set(this.list[itemIndex], 'value', chooseContent.map(e => e.staffName).join('/'))
this.$set(this.list[itemIndex], key, chooseContent.map(e => e.uuid)) this.$set(this.list[itemIndex], key, chooseContent.map(e => e.uuid))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!