diff --git a/src/views/serviceDirective/serviceDirective/ConfigServiceDirective.data.ts b/src/views/serviceDirective/serviceDirective/ConfigServiceDirective.data.ts
index e10c5d1..a717331 100644
--- a/src/views/serviceDirective/serviceDirective/ConfigServiceDirective.data.ts
+++ b/src/views/serviceDirective/serviceDirective/ConfigServiceDirective.data.ts
@@ -45,13 +45,13 @@ export const columns: BasicColumn[] = [
title: '指令标签',
align: 'center',
dataIndex: 'tagList',
- width:150,
+ width: 150,
ellipsis: false,
format(text, record, index) {
- if(!!text && text.length>0){
- return text.map(item => item.tagName).join('、');
- }else{
- return '-'
+ if (!!text && text.length > 0) {
+ return text.map((item) => item.tagName).join('、');
+ } else {
+ return '-';
}
},
},
@@ -113,12 +113,12 @@ export const columns: BasicColumn[] = [
},
{
title: '语音文件',
- align: "center",
+ align: 'center',
dataIndex: 'mp3File',
},
{
title: '视频文件',
- align: "center",
+ align: 'center',
dataIndex: 'mp4File',
},
// {
@@ -143,6 +143,18 @@ export const columns: BasicColumn[] = [
// sorter: true,
// dataIndex: 'updateTime'
// },
+ {
+ title: '预览图片',
+ align: 'center',
+ dataIndex: 'previewFile',
+ customRender: render.renderImage,
+ },
+ {
+ title: '即时指令图片',
+ align: 'center',
+ dataIndex: 'immediateFile',
+ customRender: render.renderImage,
+ },
];
// 高级查询数据
diff --git a/src/views/serviceDirective/serviceDirective/components/ConfigServiceDirectiveForm.vue b/src/views/serviceDirective/serviceDirective/components/ConfigServiceDirectiveForm.vue
index 6f31cc7..93661d0 100644
--- a/src/views/serviceDirective/serviceDirective/components/ConfigServiceDirectiveForm.vue
+++ b/src/views/serviceDirective/serviceDirective/components/ConfigServiceDirectiveForm.vue
@@ -136,6 +136,18 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
>({
updateTime: '',
mp3File: '',
mp4File: '',
+ previewFile: '',
+ immediateFile: '',
});
const { createMessage } = useMessage();
const labelCol = ref({ xs: { span: 24 }, sm: { span: 6 } });