Prechádzať zdrojové kódy

修改关键字重新匹配

“yueshang” 1 rok pred
rodič
commit
fc2908805c

+ 8 - 0
src/api/biz/keyInfo.js

@@ -42,3 +42,11 @@ export function delKeyInfo(keyId) {
     method: 'delete'
   })
 }
+// 重新匹配
+export function replay(query) {
+  return request({
+    url: 'biz/keyInfo/replay',
+    method: 'get',
+    params: query
+  })
+}

+ 16 - 1
src/views/biz/keyInfo/index.vue

@@ -58,6 +58,15 @@
           v-hasPermi="['biz:keyInfo:export']"
         >导出</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-refresh"
+          size="mini"
+          @click="handleRefreshCache"
+        >重新匹配</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -113,7 +122,7 @@
 </template>
 
 <script>
-import { listKeyInfo, getKeyInfo, delKeyInfo, addKeyInfo, updateKeyInfo } from "@/api/biz/keyInfo";
+import { listKeyInfo, getKeyInfo, delKeyInfo, addKeyInfo, updateKeyInfo,replay } from "@/api/biz/keyInfo";
 
 export default {
   name: "KeyInfo",
@@ -251,6 +260,12 @@ export default {
       this.download('biz/keyInfo/export', {
         ...this.queryParams
       }, `keyInfo_${new Date().getTime()}.xlsx`)
+    },
+     /** 刷新缓存按钮操作 */
+     handleRefreshCache() {
+      replay().then(() => {
+        this.$modal.msgSuccess("刷新成功");
+      });
     }
   }
 };

+ 1 - 1
src/views/dashboard/twinChart.vue

@@ -2,7 +2,7 @@
 <template>
   <div>
      <!-- ${wheight} -->
-    <div ref="chart" :style="`width: 100%; height:600px; margin: 20px`"></div>
+    <div ref="chart" :style="`width: 100%; height:680px; margin: 20px`"></div>
   </div>
 </template>
 

+ 2 - 2
vue.config.js

@@ -35,8 +35,8 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target:`http://8.142.173.95:19527`,
-        // target:`http://192.168.1.21:8080`,
+        // target:`http://8.142.173.95:19527`,
+        target:`http://192.168.2.215:8080`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''