服务指令计划获取及存储

This commit is contained in:
曹磊 2025-10-14 15:34:41 +08:00
parent 1c21c5b85d
commit 04f091d6c4
2 changed files with 31 additions and 2 deletions

View File

@ -42,6 +42,21 @@ export const columns: BasicColumn[] = [
},
// customRender: render.renderImage,
},
{
title: '焦点图标',
align: 'center',
dataIndex: 'picFocus',
customRender: ({ text, record }) => {
// 如果 text 为空或 null/undefined使用默认图片
const imageUrl = text
? opeMediaAddress + text
: record.type == 'tx'
? opeMediaAddress + import.meta.env.VITE_DEFAULT_ELDER_TAG_BODY_PIC
: opeMediaAddress + import.meta.env.VITE_DEFAULT_ELDER_TAG_EMO_PIC;
return render.renderImage({ text: imageUrl });
},
// customRender: render.renderImage,
},
// {
// title: '排序',
// align: 'center',
@ -59,7 +74,7 @@ export const superQuerySchema = {
type: { title: '标签类型', order: 0, view: 'text', type: 'string' },
tagName: { title: '标签名称', order: 1, view: 'text', type: 'string' },
price: { title: '价格', order: 2, view: 'number', type: 'number' },
pic: { title: '图标', order: 3, view: 'text', type: 'string' },
/* pic: { title: '图标', order: 3, view: 'text', type: 'string' },*/
sort: { title: '排序', order: 4, view: 'number', type: 'number' },
izEnabled: { title: '是否启用', order: 5, view: 'text', type: 'string' },
};

View File

@ -37,6 +37,15 @@
</JImageUploadToOpe>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="焦点图标" v-bind="validateInfos.picFocus" id="ElderTagForm-picFocus" name="picFocus">
<!-- <JImageUploadToOpe v-if="opeType == 'dmlook'" :fileMax="1" v-model:value="dmlookVal">
</JImageUploadToOpe> -->
<JImageUploadToOpe :toOpe="true" :bizPath="'eldertag'" :fileMax="1" v-model:value="formData.picFocus"
:disabled="!!formData.id || !isMain">
</JImageUploadToOpe>
</a-form-item>
</a-col>
<!-- <a-col :span="24">
<a-form-item label="排序" v-bind="validateInfos.sort" id="ElderTagForm-sort" name="sort">
<a-input-number v-model:value="formData.sort" placeholder="请输入排序" style="width: 100%" />
@ -45,7 +54,7 @@
<a-col :span="24">
<a-form-item label="是否启用" v-bind="validateInfos.izEnabled" id="ElderTagForm-izEnabled" name="izEnabled">
<j-dict-select-tag type='radio' v-model:value="formData.izEnabled" dictCode="iz_enabled"
placeholder="请选择是否启用"  allowClear />
placeholder="请选择是否启用" allowClear />
</a-form-item>
</a-col>
</a-row>
@ -105,6 +114,7 @@ const formData = reactive<Record<string, any>>({
tagName: '',
price: 0,
pic: defaultBodyPic,
picFocus: defaultBodyPic,
sort: 99,
izEnabled: '0',
describ: '',
@ -169,8 +179,10 @@ function edit(record) {
if (!formData.pic) {
if (formData.type == 'qx') {
formData.pic = defaultEmoPic
formData.picFocus = defaultEmoPic
} else {
formData.pic = defaultBodyPic
formData.picFocus = defaultBodyPic
}
}
// }
@ -233,8 +245,10 @@ function handleTypeChanged(v_) {
if (!formData.pic || formData.pic == defaultEmoPic || formData.pic == defaultBodyPic) {
if (v_ == 'qx') {
formData.pic = defaultEmoPic
formData.picFocus = defaultEmoPic
} else {
formData.pic = defaultBodyPic
formData.picFocus = defaultBodyPic
}
}
}