|
|
@@ -197,22 +197,22 @@ export default {
|
|
|
// if (val) this.filterCancel(true);
|
|
|
// },
|
|
|
},
|
|
|
- created() {
|
|
|
- console.log(
|
|
|
- `[%c子%c] created ${this.prop} ${Date.now()}`,
|
|
|
- "color:green",
|
|
|
- ""
|
|
|
- );
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- console.log(
|
|
|
- `[%c子%c] mounted ${this.prop} ${Date.now()}`,
|
|
|
- "color:green",
|
|
|
- ""
|
|
|
- );
|
|
|
- },
|
|
|
+ // created() {
|
|
|
+ // console.log(
|
|
|
+ // `[%c子%c] created ${this.prop} ${Date.now()}`,
|
|
|
+ // "color:green",
|
|
|
+ // ""
|
|
|
+ // );
|
|
|
+ // },
|
|
|
+ // mounted() {
|
|
|
+ // console.log(
|
|
|
+ // `[%c子%c] mounted ${this.prop} ${Date.now()}`,
|
|
|
+ // "color:green",
|
|
|
+ // ""
|
|
|
+ // );
|
|
|
+ // },
|
|
|
beforeDestroy() {
|
|
|
- console.log("[子] beforeDestroy", this.prop);
|
|
|
+ // console.log("[子] beforeDestroy", this.prop);
|
|
|
/* 1. 清跨页集合 */
|
|
|
this.allSelectedColumns.clear();
|
|
|
/* 2. 清当前页选中 */
|
|
|
@@ -220,15 +220,15 @@ export default {
|
|
|
/* 3. 清搜索框 */
|
|
|
this.searchKey = "";
|
|
|
/* 4. 把“空结果”通知父组件,防止残留高亮 */
|
|
|
- this.$emit("select-data", [], this.prop, this.htmlType);
|
|
|
- },
|
|
|
- destroyed() {
|
|
|
- console.log(
|
|
|
- `[%c子%c] destroyed ${this.prop} ${Date.now()}`,
|
|
|
- "color:red",
|
|
|
- ""
|
|
|
- );
|
|
|
+ // this.$emit("select-data", [], this.prop, this.htmlType);
|
|
|
},
|
|
|
+ // destroyed() {
|
|
|
+ // console.log(
|
|
|
+ // `[%c子%c] destroyed ${this.prop} ${Date.now()}`,
|
|
|
+ // "color:red",
|
|
|
+ // ""
|
|
|
+ // );
|
|
|
+ // },
|
|
|
methods: {
|
|
|
/* ---- 工具方法 ---- */
|
|
|
hasFilter() {
|