update 数据字典缓存&add momentjs

This commit is contained in:
2022-08-10 09:43:17 +08:00
parent cfec6ff3f5
commit 559cffc5f0
7 changed files with 54 additions and 13 deletions

View File

@@ -64,9 +64,14 @@ import BaseTable from '@/components/base-table'
import TableOperateComponent from '@/components/base-table/components/operationComponent'
import TableTextComponent from '@/components/base-table/components/detailComponent'
import BaseDialog from '@/components/base-dialog/addOrUpdate'
import moment from 'moment'
const UnitDictTypeId = '1557173812109242370'
const ProductTypeDictTypeId = ' '
const tableConfigs = [
{ type: 'index', name: '序号' },
{ prop: 'updateTime', name: '添加时间' },
{ prop: 'updateTime', name: '添加时间', filter: val => val ? moment(val).format('YYYY-MM-DD hh:mm:ss') : '-' },
{ prop: 'name', name: '产品名称' },
{ prop: 'code', name: '产品编码' },
{ prop: 'specifications', name: '规格' },
@@ -146,8 +151,8 @@ const addOrUpdateConfigs = {
],
operations: [
{ name: 'reset', url: true },
{ name: 'save', url: 'api/product/add' },
{ name: 'update', url: 'api/product/update' }
{ name: 'save', url: '/monitoring/product', permission: "" },
{ name: 'update', url: '/monitoring/product', permission: "" }
]
// extraComponents: [
// {