From 769275515cf9ed5a31a742b455b0a0690b3f5f99 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期二, 14 十二月 2021 11:41:44 +0800 Subject: [PATCH] 删除ai_c 应用中新修改 --- src/pages/library/components/baseList.vue | 111 ++++++++++--------------------------------------------- 1 files changed, 20 insertions(+), 91 deletions(-) diff --git a/src/pages/library/components/baseList.vue b/src/pages/library/components/baseList.vue index 66c485b..d834691 100644 --- a/src/pages/library/components/baseList.vue +++ b/src/pages/library/components/baseList.vue @@ -205,85 +205,14 @@ this.localTableList = this.BaseManageData.localTables; this.defaultShow(); }, - handleChange(val) {}, - async setEnable(item) { - let res = await updateDbTableStatus({ - id: item.id, - enable: item.enable, - }); - if (res.success === true) { - this.$notify({ - type: "success", - message: "搴曞簱鎴愬姛鍙樻洿鐢熸晥鐘舵�侊紒", - }); - } else { - this.$notify({ - type: "error", - message: "搴曞簱鍙樻洿鐢熸晥鐘舵�佸け璐ワ紒", - }); - } - }, add(type) { this.$emit("changeShow", null, type); - }, - isDisabled(item) { - var flag = true; - if (this.isShow("library:set")) { - if (item.endTime == "") { - flag = false; - } else { - flag = !this.$moment(new Date()).isBetween( - item.startTime, - item.endTime - ); - } - } - return flag; }, clickCategory(index, type, item) { this.categoryIndex = type + index; // 璋冪敤鍒囨崲鍙充晶闈㈡澘鐨勫嚱鏁板苟涓斿垏鎹㈢埗缁勪欢涓璱sSelected鐨勫�艰鍙︿竴涓粍浠舵竻闄よ閫変腑鐘舵�� this.clickBase = item; this.$emit("getList", item, type); - }, - edit(item, type) { - this.$emit("changeShow", item, type); - }, - deleteBase(id) { - let token = - sessionStorage.getItem("loginedInfo") && - JSON.parse(sessionStorage.getItem("loginedInfo")).access_token; - this.$confirm("鎻愮ず锛氱‘瀹氬垹闄ゅ簳搴擄紵", { - center: true, - cancelButtonClass: "comfirm-class-cancle", - confirmButtonClass: "comfirm-class-sure", - }).then(() => { - fetch(`/data/api-v/dbtable/deleteDBtablesById?id=${id}`, { - method: "GET", - headers: { - "Content-Type": "application/json", - Authorization: token, - }, - }) - .then((res) => { - return res.json(); - }) - .then((res) => { - if (res.success) { - this.$notify({ - type: "success", - message: "搴曞簱鍒犻櫎鎴愬姛锛�", - }); - } - this.init(); - }) - .catch((err) => { - this.$notify({ - type: "error", - message: err, - }); - }); - }); }, // 榛樿鏄剧ず绗竴涓簱鐨勬暟鎹� defaultShow() { @@ -317,25 +246,25 @@ return false; } }, - dateCompare(dateString, compareDateString) { - // dateString:褰撳墠鏃堕棿 - // compareDateString:闇�瑕佹瘮杈冪殑鏃堕棿 - if (this.isEmpty(dateString)) { - return; - } - if (this.isEmpty(compareDateString)) { - return 1; - } - var dateTime = this.dateParse(dateString).getTime(); - var compareDateTime = this.dateParse(compareDateString).getTime(); - if (compareDateTime > dateTime) { - return 1; - } else if (compareDateTime === dateTime) { - return 0; - } else { - return -1; - } - }, + // dateCompare(dateString, compareDateString) { + // // dateString:褰撳墠鏃堕棿 + // // compareDateString:闇�瑕佹瘮杈冪殑鏃堕棿 + // if (this.isEmpty(dateString)) { + // return; + // } + // if (this.isEmpty(compareDateString)) { + // return 1; + // } + // var dateTime = this.dateParse(dateString).getTime(); + // var compareDateTime = this.dateParse(compareDateString).getTime(); + // if (compareDateTime > dateTime) { + // return 1; + // } else if (compareDateTime === dateTime) { + // return 0; + // } else { + // return -1; + // } + // }, }, props: { listWidth: { @@ -401,7 +330,7 @@ font-size: 14px; } .out-div { - max-height: 100%; + max-height: 100%; height: 100%; .el-collapse-item__wrap { will-change: height; background-color: #fff; -- Gitblit v1.8.0