Merge branch 'master' of http://47.115.223.229:8888/yangjun/nursing_unit_vue
This commit is contained in:
commit
ef01bcb535
|
@ -212,6 +212,7 @@
|
||||||
height: calc(100% - @header-height);
|
height: calc(100% - @header-height);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: @component-background;
|
background-color: @component-background;
|
||||||
|
background: url(../resource/img/modalback.png);
|
||||||
|
|
||||||
.scrollbar__wrap {
|
.scrollbar__wrap {
|
||||||
padding: 16px !important;
|
padding: 16px !important;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png');background-repeat: no-repeat;background-size: 100% auto;">
|
<Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png') !important;background-repeat: no-repeat;background-size: 100% auto;">
|
||||||
<!-- left start -->
|
<!-- left start -->
|
||||||
<div :class="`${prefixCls}-left`">
|
<div :class="`${prefixCls}-left`">
|
||||||
<!-- logo -->
|
<!-- logo -->
|
||||||
|
|
|
@ -343,17 +343,39 @@ const getCardStyle = (index,allSize) => {
|
||||||
{
|
{
|
||||||
label: '详情',
|
label: '详情',
|
||||||
onClick: handleDetail.bind(null, record),
|
onClick: handleDetail.bind(null, record),
|
||||||
}, {
|
},
|
||||||
label: '删除',
|
// {
|
||||||
popConfirm: {
|
// label: '删除',
|
||||||
title: '是否确认删除',
|
// popConfirm: {
|
||||||
confirm: handleDelete.bind(null, record),
|
// title: '是否确认删除',
|
||||||
placement: 'topLeft',
|
// confirm: handleDelete.bind(null, record),
|
||||||
},
|
// placement: 'topLeft',
|
||||||
auth: 'configMaterialInfo:config_material_info:delete'
|
// },
|
||||||
}
|
// auth: 'configMaterialInfo:config_material_info:delete'
|
||||||
|
// }
|
||||||
|
{
|
||||||
|
label: '启用',
|
||||||
|
onClick: handleWlQyty.bind(null, record),
|
||||||
|
ifShow: record.izEnabled == 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '停用',
|
||||||
|
onClick: handleWlQyty.bind(null, record),
|
||||||
|
ifShow: record.izEnabled == 0
|
||||||
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//物料的启用停用
|
||||||
|
function handleWlQyty(record){
|
||||||
|
console.log("🚀 ~ handleWlQyty ~ record:", record)
|
||||||
|
const izEnabled = record.izEnabled == '1' ? '0' : "1"
|
||||||
|
var params = {id:record.id,izEnabled}
|
||||||
|
defHttp.post({ url: '/invoicing/configMaterialInfo/edit', params }).then((res) => {
|
||||||
|
searchQuery()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//点击树节点查询右侧列表数据
|
//点击树节点查询右侧列表数据
|
||||||
function handleSearch(data){
|
function handleSearch(data){
|
||||||
|
|
|
@ -41,16 +41,22 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'openingBank'
|
dataIndex: 'openingBank'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '开户行账号',
|
title: '是否启用',
|
||||||
align:"center",
|
align: "center",
|
||||||
dataIndex: 'openingBankNo'
|
dataIndex: 'izEnabled_dictText',
|
||||||
},
|
width:'100px'
|
||||||
{
|
|
||||||
title: '微信账号',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'wechartId'
|
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
// title: '开户行账号',
|
||||||
|
// align:"center",
|
||||||
|
// dataIndex: 'openingBankNo'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '微信账号',
|
||||||
|
// align:"center",
|
||||||
|
// dataIndex: 'wechartId'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
// title: '资质照片',
|
// title: '资质照片',
|
||||||
// align:"center",
|
// align:"center",
|
||||||
// dataIndex: 'imgPath',
|
// dataIndex: 'imgPath',
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
import { useDrawer } from '/@/components/Drawer';
|
import { useDrawer } from '/@/components/Drawer';
|
||||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
const queryParam = reactive<any>({});
|
const queryParam = reactive<any>({});
|
||||||
const checkedKeys = ref<Array<string | number>>([]);
|
const checkedKeys = ref<Array<string | number>>([]);
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
@ -207,17 +208,37 @@ const labelCol = reactive({
|
||||||
{
|
{
|
||||||
label: '详情',
|
label: '详情',
|
||||||
onClick: handleDetail.bind(null, record),
|
onClick: handleDetail.bind(null, record),
|
||||||
}, {
|
},
|
||||||
label: '删除',
|
// {
|
||||||
popConfirm: {
|
// label: '删除',
|
||||||
title: '是否确认删除',
|
// popConfirm: {
|
||||||
confirm: handleDelete.bind(null, record),
|
// title: '是否确认删除',
|
||||||
placement: 'topLeft',
|
// confirm: handleDelete.bind(null, record),
|
||||||
},
|
// placement: 'topLeft',
|
||||||
auth: 'configSuppliersInfo:config_suppliers_info:delete'
|
// },
|
||||||
}
|
// auth: 'configSuppliersInfo:config_suppliers_info:delete'
|
||||||
|
// }
|
||||||
|
{
|
||||||
|
label: '启用',
|
||||||
|
onClick: handleWlQyty.bind(null, record),
|
||||||
|
ifShow: record.izEnabled == 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '停用',
|
||||||
|
onClick: handleWlQyty.bind(null, record),
|
||||||
|
ifShow: record.izEnabled == 0
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
//物料的启用停用
|
||||||
|
function handleWlQyty(record){
|
||||||
|
console.log("🚀 ~ handleWlQyty ~ record:", record)
|
||||||
|
const izEnabled = record.izEnabled == '1' ? '0' : "1"
|
||||||
|
var params = {id:record.id,izEnabled}
|
||||||
|
defHttp.post({ url: '/invoicing/configSuppliersInfo/edit', params }).then((res) => {
|
||||||
|
searchQuery()
|
||||||
|
});
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 下拉操作栏
|
* 下拉操作栏
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -325,12 +325,13 @@ defineExpose({
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-drawer .ant-drawer-body {
|
.ant-drawer .ant-drawer-body {
|
||||||
flex: 1;
|
flex: 111;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
background: #dfdfdf;
|
background: #dfdfdf;
|
||||||
|
background: url(../public/resource/img/modalback.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected {
|
.selected {
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button type="primary" @click="onBodyTagClose" style="float: right;">关闭</a-button>
|
<a-button type="primary" @click="onBodyTagClose" style="float: right;">关闭</a-button>
|
||||||
</template>
|
</template>
|
||||||
<BodyTagList v-if="bodyTagOpen"></BodyTagList>
|
<BodyTagList v-if="bodyTagOpen" class="backClass"></BodyTagList>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
<!-- 情绪标签 -->
|
<!-- 情绪标签 -->
|
||||||
|
@ -228,13 +228,13 @@
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button type="primary" @click="onEmotionTagClose" style="float: right;">关闭</a-button>
|
<a-button type="primary" @click="onEmotionTagClose" style="float: right;">关闭</a-button>
|
||||||
</template>
|
</template>
|
||||||
<EmotionTagList v-if="emotionTagOpen"></EmotionTagList>
|
<EmotionTagList v-if="emotionTagOpen" class="backClass"></EmotionTagList>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
<!-- 音频播放 -->
|
<!-- 音频播放 -->
|
||||||
<a-modal v-model:visible="showAudioModal" title="音频播放" :footer="null" @cancel="closeAudioModal"
|
<a-modal v-model:visible="showAudioModal" title="音频播放" :footer="null" @cancel="closeAudioModal"
|
||||||
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }" :keyboard="true">
|
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }" :keyboard="true">
|
||||||
<audio controls style="width: 100%; display: block; margin: 20px auto;">
|
<audio ref="audioPlayer" controls style="width: 100%; display: block; margin: 20px auto;">
|
||||||
<source :src="audioUrl">
|
<source :src="audioUrl">
|
||||||
您的浏览器不支持音频播放。
|
您的浏览器不支持音频播放。
|
||||||
</audio>
|
</audio>
|
||||||
|
@ -243,7 +243,7 @@
|
||||||
<!-- 视频播放 -->
|
<!-- 视频播放 -->
|
||||||
<a-modal v-model:visible="showVideoModal" title="视频播放" :footer="null" @cancel="closeVideoModal"
|
<a-modal v-model:visible="showVideoModal" title="视频播放" :footer="null" @cancel="closeVideoModal"
|
||||||
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }">
|
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }">
|
||||||
<video controls style="width: 100%; max-height: 70vh; display: block; margin: 0 auto;">
|
<video ref="videoPlayer" controls style="width: 100%; max-height: 70vh; display: block; margin: 0 auto;">
|
||||||
<source :src="videoUrl">
|
<source :src="videoUrl">
|
||||||
您的浏览器不支持视频播放。
|
您的浏览器不支持视频播放。
|
||||||
</video>
|
</video>
|
||||||
|
@ -589,6 +589,7 @@ function onEmotionTagClose() {
|
||||||
|
|
||||||
const showAudioModal = ref(false); // 控制音频模态框显示
|
const showAudioModal = ref(false); // 控制音频模态框显示
|
||||||
const audioUrl = ref(''); // 音频 URL
|
const audioUrl = ref(''); // 音频 URL
|
||||||
|
const audioPlayer = ref(null);
|
||||||
|
|
||||||
// 打开音频模态框
|
// 打开音频模态框
|
||||||
const openAudioModal = (url) => {
|
const openAudioModal = (url) => {
|
||||||
|
@ -598,12 +599,17 @@ const openAudioModal = (url) => {
|
||||||
|
|
||||||
// 关闭音频模态框
|
// 关闭音频模态框
|
||||||
const closeAudioModal = () => {
|
const closeAudioModal = () => {
|
||||||
|
if (audioPlayer.value) {
|
||||||
|
audioPlayer.value.pause(); // 暂停音频播放
|
||||||
|
audioPlayer.value.currentTime = 0; // 可选:重置播放进度
|
||||||
|
}
|
||||||
showAudioModal.value = false;
|
showAudioModal.value = false;
|
||||||
audioUrl.value = '';
|
audioUrl.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const showVideoModal = ref(false); // 控制模态框显示
|
const showVideoModal = ref(false); // 控制模态框显示
|
||||||
const videoUrl = ref(''); // 视频 URL
|
const videoUrl = ref(''); // 视频 URL
|
||||||
|
const videoPlayer = ref(null);
|
||||||
|
|
||||||
// 打开视频模态框
|
// 打开视频模态框
|
||||||
const openVideoModal = (url) => {
|
const openVideoModal = (url) => {
|
||||||
|
@ -613,12 +619,15 @@ const openVideoModal = (url) => {
|
||||||
|
|
||||||
// 关闭视频模态框
|
// 关闭视频模态框
|
||||||
const closeVideoModal = () => {
|
const closeVideoModal = () => {
|
||||||
|
if (videoPlayer.value) {
|
||||||
|
videoPlayer.value.pause(); // 暂停视频播放
|
||||||
|
videoPlayer.value.currentTime = 0; // 可选:将播放进度重置到开始
|
||||||
|
}
|
||||||
showVideoModal.value = false;
|
showVideoModal.value = false;
|
||||||
videoUrl.value = '';
|
videoUrl.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
// 添加以下响应式变量
|
// 添加以下响应式变量
|
||||||
const audioPlayer = ref<HTMLAudioElement | null>(null);
|
|
||||||
const currentPlayingAudio = ref<string | null>(null);
|
const currentPlayingAudio = ref<string | null>(null);
|
||||||
const isPlaying = ref(false);
|
const isPlaying = ref(false);
|
||||||
|
|
||||||
|
@ -1063,4 +1072,8 @@ audio::-webkit-media-controls-time-remaining-display {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.backClass{
|
||||||
|
|
||||||
|
background: url(../../resource/img/modalback.png);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue