浏览代码

feat: #热搜词重新对接2

loki 3 年之前
父节点
当前提交
3ce3d0c72f
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 0 7
      src/api/base/trend.js
  2. 3 3
      src/views/baseManagement/trending/index.vue

+ 0 - 7
src/api/base/trend.js

@@ -2,13 +2,6 @@ import api from '@/utils/request';
 
 export const getPage = params =>
 	api.post(`/yxl-back-end/admin/top-search-keywords/page`, params);
-// export const saveItem = params => {
-// 	if (params.id) {
-// 		return api.post(`/yxl-back-end/admin/top-search-keywords/update`, params);
-// 	} else {
-// 		return api.post(`/yxl-back-end/admin/top-search-keywords/save`, params);
-// 	}
-// };
 export const saveItem = ({ id, ...params }) => {
 	if (id) {
 		return api.put(`/yxl-back-end/admin/top-search-keywords/${id}`, params);

+ 3 - 3
src/views/baseManagement/trending/index.vue

@@ -44,17 +44,17 @@ export default {
         {
           key: 'name',
           name: '关键字',
-          minWidth: '240'
+          minWidth: this.$col.b
         },
         {
           key: 'sort',
           name: '排序',
-          width: '80'
+          width: this.$col.m
         },
         {
           key: 'isShow',
           name: '状态',
-          width: '80',
+          width: this.$col.m,
           type: 'tag',
           fetchTagType: val => (val ? 'success' : 'info'),
           tagName: row => (row.isShow ? '显示' : '隐藏')