This commit is contained in:
z9130 2024-09-25 20:19:59 +08:00
commit d2e2d448ad
3 changed files with 24 additions and 32 deletions

View File

@ -39,7 +39,6 @@
"ant-design-vue": "^4.2.3", "ant-design-vue": "^4.2.3",
"big.js": "^6.2.1", "big.js": "^6.2.1",
"common-utils": "workspace:*", "common-utils": "workspace:*",
"common-utils2": "workspace:*",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"exceljs": "^4.4.0", "exceljs": "^4.4.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",

View File

@ -107,6 +107,12 @@ const gridOptions = reactive(
backgroundColor: '#f6fbfb', backgroundColor: '#f6fbfb',
}; };
} }
// remark
if (row.remark) {
return {
backgroundColor: '#fffae6', //
};
}
console.log(rowIndex); console.log(rowIndex);
}, },
pagerConfig: { pagerConfig: {
@ -252,7 +258,8 @@ onMounted(() => {
<div class="mx-auto flex h-screen flex-col bg-gray-100 px-8"> <div class="mx-auto flex h-screen flex-col bg-gray-100 px-8">
<p class="my-6 text-center text-3xl font-bold text-gray-800">值班信息栏</p> <p class="my-6 text-center text-3xl font-bold text-gray-800">值班信息栏</p>
<div class="mb-6 flex items-center justify-center"> <div class="mb-6 flex items-center justify-center h-4">
<!-- 增加按钮区域的高度 -->
<button <button
class="bg-primary hover:bg-primary/90 rounded-l-xl px-4 py-2 text-white" class="bg-primary hover:bg-primary/90 rounded-l-xl px-4 py-2 text-white"
@click="prevMonth" @click="prevMonth"
@ -266,27 +273,14 @@ onMounted(() => {
> >
下一月 下一月
</button> </button>
<!-- <div class="w-[40vw]">
<p>
1.公司机关值班人员包括值班司机都必须严格遵守值班管理要求值班期间保持值班电话畅通
</p>
<p>
2.值班干部值班期间离岗外出开会现场指挥等特殊情况应落实人员接替同时落实值班职责
</p>
<p>
3.值班司机值班地点为公司小车班休息室值班车辆必须停放在公司机关院内确保遇到突发事件值班领导能迅速赶赴现场协调处置
</p>
<p>4.值班时间当日1000次日1000</p>
<p>5.市应急管理办公室信息科62243276236233</p>
</div> -->
</div> </div>
<div class="mb-8 flex-1 rounded-lg bg-white p-4 shadow-md"> <div class="flex-1 rounded-lg bg-white p-4 shadow-md overflow-auto" style="flex-grow: 2;">
<vxe-grid <vxe-grid
ref="xGridRef" ref="xGridRef"
v-bind="gridOptions" v-bind="gridOptions"
@cell-click="handleCellClick" @cell-click="handleCellClick"
style="min-height: 40vh; max-height: 60vh;"
> >
<template #toolbar_buttons> <template #toolbar_buttons>
<!-- 可添加工具栏按钮 --> <!-- 可添加工具栏按钮 -->
@ -303,6 +297,20 @@ onMounted(() => {
</template> </template>
</vxe-grid> </vxe-grid>
</div> </div>
<div class="mt-4" style="width: 100%; min-height: 120px;">
<p>
1.公司机关值班人员包括值班司机都必须严格遵守值班管理要求值班期间保持值班电话畅通
</p>
<p>
2.值班干部值班期间离岗外出开会现场指挥等特殊情况应落实人员接替同时落实值班职责
</p>
<p>
3.值班司机值班地点为公司小车班休息室值班车辆必须停放在公司机关院内确保遇到突发事件值班领导能迅速赶赴现场协调处置
</p>
<p>4.值班时间当日1000次日1000</p>
<p>5.市应急管理办公室信息科62243276236233</p>
</div>
</div> </div>
</template> </template>

View File

@ -264,9 +264,6 @@ importers:
common-utils: common-utils:
specifier: workspace:* specifier: workspace:*
version: link:../../packages/common-utils version: link:../../packages/common-utils
common-utils2:
specifier: workspace:*
version: link:../../packages/common-utils2
dayjs: dayjs:
specifier: ^1.11.13 specifier: ^1.11.13
version: 1.11.13 version: 1.11.13
@ -1276,18 +1273,6 @@ importers:
specifier: ^4.4.4 specifier: ^4.4.4
version: 4.4.4(vue@3.5.4(typescript@5.6.2)) version: 4.4.4(vue@3.5.4(typescript@5.6.2))
packages/common-utils2:
dependencies:
'@vben-core/shared':
specifier: workspace:*
version: link:../@core/base/shared
'@vben-core/typings':
specifier: workspace:*
version: link:../@core/base/typings
vue-router:
specifier: ^4.4.4
version: 4.4.4(vue@3.5.4(typescript@5.6.2))
packages/constants: packages/constants:
dependencies: dependencies:
'@vben-core/shared': '@vben-core/shared':