diff --git a/package.json b/package.json index 3112105b..22b25645 100644 --- a/package.json +++ b/package.json @@ -22,15 +22,16 @@ "core-js": "^3.6.5", "date-fns": "^2.14.0", "enquire.js": "^2.1.6", + "highlight.js": "^10.2.1", "js-cookie": "^2.2.1", "mockjs": "^1.1.0", + "nprogress": "^0.2.0", "viser-vue": "^2.4.8", "vue": "^2.6.11", "vue-i18n": "^8.18.2", "vue-router": "^3.3.4", "vuedraggable": "^2.23.2", - "vuex": "^3.4.0", - "nprogress": "^0.2.0" + "vuex": "^3.4.0" }, "devDependencies": { "@ant-design/colors": "^4.0.1", @@ -39,7 +40,9 @@ "@vue/cli-service": "^4.4.0", "@vuepress/plugin-back-to-top": "^1.5.2", "babel-eslint": "^10.1.0", + "babel-plugin-transform-remove-console": "^6.9.4", "babel-polyfill": "^6.26.0", + "compression-webpack-plugin": "^2.0.0", "deepmerge": "^4.2.2", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", @@ -51,9 +54,7 @@ "vue-template-compiler": "^2.6.11", "vuepress": "^1.5.2", "webpack-theme-color-replacer": "^1.3.12", - "whatwg-fetch": "^3.0.0", - "compression-webpack-plugin": "^2.0.0", - "babel-plugin-transform-remove-console": "^6.9.4" + "whatwg-fetch": "^3.0.0" }, "eslintConfig": { "root": true, diff --git a/src/components/table/advance/ActionColumns.vue b/src/components/table/advance/ActionColumns.vue index 667c3d8e..8e357c4b 100644 --- a/src/components/table/advance/ActionColumns.vue +++ b/src/components/table/advance/ActionColumns.vue @@ -1,6 +1,5 @@ @@ -28,7 +27,6 @@ - @@ -87,12 +85,14 @@ }, setSearch(col) { this.$set(col, 'searchAble', !col.searchAble) + console.log(col) if (!col.searchAble && col.search) { this.resetSearch(col) } }, resetSearch(col) { - col.search.value = col.dataType === 'boolean' ? false : undefined + // col.search.value = col.dataType === 'boolean' ? false : undefined + col.search.value = undefined col.search.backup = undefined }, resetColumns() { @@ -114,7 +114,8 @@ } else { this.$set(column, 'fixed', undefined) } - column.searchAble = back.searchAble + this.$set(column, 'searchAble', back.searchAble) + // column.searchAble = back.searchAble this.resetSearch(column) }) this.checkedCounts = counts diff --git a/src/components/table/advance/AdvanceTable.vue b/src/components/table/advance/AdvanceTable.vue index 1dd73a21..3f180d69 100644 --- a/src/components/table/advance/AdvanceTable.vue +++ b/src/components/table/advance/AdvanceTable.vue @@ -8,7 +8,7 @@