no message

main
HUOJIN\92525 2025-12-11 14:18:07 +08:00
parent 2f50ccf7e0
commit d01030e922
5 changed files with 25 additions and 8 deletions

View File

@ -11,16 +11,16 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'itemName',
},
{
title: '单位',
align: 'center',
dataIndex: 'unit',
},
{
title: '是否启用',
align: 'center',
dataIndex: 'izActive',
},
{
title: '描述',
align: 'center',
dataIndex: 'description',
},
{
title: '创建日期',
align: 'center',

View File

@ -14,6 +14,11 @@
<a-input v-model:value="formData.itemName" placeholder="请输入物料名称" allow-clear></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="单位" v-bind="validateInfos.unit" id="ItemForm-unit" name="unit">
<JDictSelectTag v-model:value="formData.unit" placeholder="请选择" dictCode="package_unit" allowClear />
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="描述" v-bind="validateInfos.description" id="AreaForm-description" name="description">
<a-textarea v-model:value="formData.description" :rows="4" placeholder="请输入描述" />
@ -40,6 +45,7 @@
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JSwitch from '@/components/Form/src/jeecg/components/JSwitch.vue';
import { getTenantId } from '@/utils/auth';
import { JDictSelectTag } from '@/components/Form';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@ -55,6 +61,7 @@
id: '',
itemCode: '',
itemName: '',
unit: '',
delFlag: 0,
izActive: 1,
tenantId: tenantId,

View File

@ -144,6 +144,10 @@
width: 120,
fixed: 'right',
},
defSort: {
column: 'stockCode',
order: 'asc',
},
beforeFetch: async (params) => {
for (let key in fieldPickers) {
if (queryParam[key] && fieldPickers[key]) {

View File

@ -36,7 +36,7 @@
<div v-if="searchInfo.logType == 4">
<div style="margin-bottom: 5px">
<a-badge status="success" style="vertical-align: middle" />
<span class="error-box" style="vertical-align: middle">异常堆栈:{{ record.requestParam }}</span>
<span class="error-box" style="vertical-align: middle">异常堆栈:{{ record.logContent }}</span>
</div>
</div>
</template>

View File

@ -1,4 +1,5 @@
import { BasicColumn, FormSchema } from '/@/components/Table';
import { render } from '@/utils/common/renderUtils';
export const columns: BasicColumn[] = [
{
@ -10,6 +11,10 @@ export const columns: BasicColumn[] = [
title: '操作人',
dataIndex: 'username',
width: 30,
customRender: ({ text }) => {
const color = 'green';
return render.renderTag(text === '' ? 'admin' : text, color);
},
},
{
@ -41,7 +46,6 @@ export const columns: BasicColumn[] = [
*
*/
export const operationLogColumn: BasicColumn[] = [
...columns,
/* {
title: '操作类型',
@ -51,7 +55,6 @@ export const operationLogColumn: BasicColumn[] = [
];
export const exceptionColumns: BasicColumn[] = [
{
title: 'IP',
dataIndex: 'ip',
@ -61,6 +64,9 @@ export const exceptionColumns: BasicColumn[] = [
title: '操作人',
dataIndex: 'username',
width: 30,
customRender: ({ text }) => {
return text === null ? '管理员' : text;
},
},
{