fix lint issues in mp and mes views

Co-authored-by: Codex <codex@openai.com>
pull/880/head^2
DevDengChao 2026-05-18 14:18:27 +08:00
parent d0cd93de5a
commit 7fa9311753
29 changed files with 65 additions and 59 deletions

View File

@ -111,14 +111,14 @@ const hasFestivalDay = computed(() => {
<style scoped> <style scoped>
/* 紧凑的班次标签:替代 el-button减少纵向占用 */ /* 紧凑的班次标签:替代 el-button减少纵向占用 */
.shift-tag { .shift-tag {
width: 100%;
padding: 1px 4px; padding: 1px 4px;
overflow: hidden;
font-size: 11px; font-size: 11px;
line-height: 1.5; line-height: 1.5;
border-radius: 3px;
color: #fff; color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 100%; white-space: nowrap;
border-radius: 3px;
} }
</style> </style>

View File

@ -23,7 +23,7 @@
</span> </span>
<span class="flex items-center gap-4px"> <span class="flex items-center gap-4px">
<el-tag size="small" effect="dark" type="success" class="!text-11px !h-18px !px-4px" <el-tag size="small" effect="dark" type="success" class="!text-11px !h-18px !px-4px"
></el-tag ></el-tag
> >
= 节假日不显示排班 = 节假日不显示排班
</span> </span>

View File

@ -203,9 +203,9 @@ watch(
.member-card-header { .member-card-header {
display: flex; display: flex;
align-items: center;
font-weight: 600;
font-size: 14px; font-size: 14px;
font-weight: 600;
align-items: center;
} }
.member-empty-tip { .member-empty-tip {

View File

@ -33,10 +33,10 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleQuery" <el-button @click="handleQuery"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
> >
<el-button @click="resetQuery" <el-button @click="resetQuery"
><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -108,7 +108,7 @@
</el-tabs> </el-tabs>
<template #footer> <template #footer>
<el-button v-if="!isDetail" @click="submitForm" type="primary" :disabled="formLoading" <el-button v-if="!isDetail" @click="submitForm" type="primary" :disabled="formLoading"
> </el-button > </el-button
> >
<el-button @click="dialogVisible = false">{{ isDetail ? '关 闭' : '取 消' }}</el-button> <el-button @click="dialogVisible = false">{{ isDetail ? '关 闭' : '取 消' }}</el-button>
</template> </template>

View File

@ -69,10 +69,10 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleQuery" <el-button @click="handleQuery"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
> >
<el-button @click="resetQuery" <el-button @click="resetQuery"
><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
> >
<el-button <el-button
type="primary" type="primary"

View File

@ -128,7 +128,7 @@
class="text-28px font-700 leading-[1.2] color-[#7c3aed]" class="text-28px font-700 leading-[1.2] color-[#7c3aed]"
/> />
<span class="text-13px color-[var(--el-text-color-secondary)]" <span class="text-13px color-[var(--el-text-color-secondary)]"
>/ {{ summary.machineryTotal }} </span >/ {{ summary.machineryTotal }} </span
> >
</div> </div>
<div class="text-12px color-[var(--el-text-color-placeholder)] mt-4px"> <div class="text-12px color-[var(--el-text-color-placeholder)] mt-4px">
@ -177,12 +177,12 @@ const handleNavigate = (name: string) => {
<style lang="scss" scoped> <style lang="scss" scoped>
.kpi-card { .kpi-card {
cursor: pointer; cursor: pointer;
transition: all 0.3s ease;
border: 1px solid var(--el-border-color); border: 1px solid var(--el-border-color);
transition: all 0.3s ease;
&:hover { &:hover {
transform: translateY(-4px); transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
} }
:deep(.el-card__body) { :deep(.el-card__body) {

View File

@ -54,10 +54,10 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleQuery" <el-button @click="handleQuery"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
> >
<el-button @click="resetQuery" <el-button @click="resetQuery"
><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
> >
<el-button <el-button
type="primary" type="primary"

View File

@ -241,8 +241,8 @@
<el-tabs <el-tabs
v-if=" v-if="
formData.id && formData.id &&
formData.status !== MesProFeedbackStatusEnum.PREPARE && formData.status !== MesProFeedbackStatusEnum.PREPARE &&
formData.status !== MesProFeedbackStatusEnum.APPROVING formData.status !== MesProFeedbackStatusEnum.APPROVING
" "
type="border-card" type="border-card"
class="mt-10px" class="mt-10px"

View File

@ -181,7 +181,7 @@
v-hasPermi="['mes:pro-feedback:approve']" v-hasPermi="['mes:pro-feedback:approve']"
v-if=" v-if="
scope.row.status === MesProFeedbackStatusEnum.APPROVING && scope.row.status === MesProFeedbackStatusEnum.APPROVING &&
scope.row.approveUserId === currentUserId scope.row.approveUserId === currentUserId
" "
> >
审批 审批

View File

@ -85,7 +85,7 @@
:span="8" :span="8"
v-if=" v-if="
formData.type === MesProWorkOrderTypeEnum.OUTSOURCE || formData.type === MesProWorkOrderTypeEnum.OUTSOURCE ||
formData.type === MesProWorkOrderTypeEnum.PURCHASE formData.type === MesProWorkOrderTypeEnum.PURCHASE
" "
> >
<el-form-item label="供应商" prop="vendorId"> <el-form-item label="供应商" prop="vendorId">

View File

@ -22,7 +22,7 @@ defineOptions({ name: 'GanttChart' })
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
tasks: any[] // tasks?: any[] //
readonly?: boolean // readonly?: boolean //
height?: number // height?: number //
}>(), }>(),
@ -223,30 +223,36 @@ defineExpose({ loadData })
<style> <style>
/* 今天标记线 */ /* 今天标记线 */
.gantt_marker.today { .gantt_marker.today {
background-color: #ff4444; background-color: #f44;
opacity: 0.4; opacity: 0.4;
} }
.gantt_marker.today .gantt_marker_content { .gantt_marker.today .gantt_marker_content {
color: #ff4444;
font-size: 12px; font-size: 12px;
color: #f44;
} }
/* 工单project行样式 */ /* 工单project行样式 */
.gantt-project-bar .gantt_task_progress { .gantt-project-bar .gantt_task_progress {
background: #7b68ee; background: #7b68ee;
} }
/* 甘特条圆角 */ /* 甘特条圆角 */
.gantt_task_line { .gantt_task_line {
border-radius: 8px; border-radius: 8px;
} }
/* 周末背景色 */ /* 周末背景色 */
.weekend { .weekend {
background: #f0f0f0 !important; background: #f0f0f0 !important;
} }
/* 行悬浮高亮 */ /* 行悬浮高亮 */
.gantt_grid_data .gantt_row:hover, .gantt_grid_data .gantt_row:hover,
.gantt_grid_data .gantt_row.odd:hover { .gantt_grid_data .gantt_row.odd:hover {
background-color: #f3f1fe !important; background-color: #f3f1fe !important;
} }
/* 选中行高亮 */ /* 选中行高亮 */
.gantt_grid_data .gantt_row.gantt_selected, .gantt_grid_data .gantt_row.gantt_selected,
.gantt_grid_data .gantt_row.odd.gantt_selected, .gantt_grid_data .gantt_row.odd.gantt_selected,

View File

@ -37,8 +37,8 @@
<el-button <el-button
v-if=" v-if="
isConfirmed && isConfirmed &&
workOrder.type === MesProWorkOrderTypeEnum.SELF && workOrder.type === MesProWorkOrderTypeEnum.SELF &&
scope.row.itemOrProduct === 'PRODUCT' scope.row.itemOrProduct === 'PRODUCT'
" "
link link
type="success" type="success"

View File

@ -106,7 +106,7 @@
:span="8" :span="8"
v-if=" v-if="
formData.type === MesProWorkOrderTypeEnum.OUTSOURCE || formData.type === MesProWorkOrderTypeEnum.OUTSOURCE ||
formData.type === MesProWorkOrderTypeEnum.PURCHASE formData.type === MesProWorkOrderTypeEnum.PURCHASE
" "
> >
<el-form-item label="供应商" prop="vendorId"> <el-form-item label="供应商" prop="vendorId">

View File

@ -185,7 +185,7 @@
v-hasPermi="['mes:pro-work-order:create']" v-hasPermi="['mes:pro-work-order:create']"
v-if=" v-if="
scope.row.status === MesProWorkOrderStatusEnum.CONFIRMED && scope.row.status === MesProWorkOrderStatusEnum.CONFIRMED &&
scope.row.type === MesProWorkOrderTypeEnum.SELF scope.row.type === MesProWorkOrderTypeEnum.SELF
" "
> >
新增 新增

View File

@ -72,10 +72,10 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleQuery" <el-button @click="handleQuery"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
> >
<el-button @click="resetQuery" <el-button @click="resetQuery"
><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
> >
<el-button <el-button
type="primary" type="primary"

View File

@ -99,7 +99,7 @@
<span <span
v-if=" v-if="
scope.row.maintenPeriod != null && scope.row.maintenPeriod != null &&
scope.row.maintenType === MesMaintenTypeEnum.REGULAR scope.row.maintenType === MesMaintenTypeEnum.REGULAR
" "
> >
{{ scope.row.maintenPeriod }} {{ scope.row.maintenPeriod }}

View File

@ -74,10 +74,10 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleQuery" <el-button @click="handleQuery"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
> >
<el-button @click="resetQuery" <el-button @click="resetQuery"
><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -41,7 +41,7 @@
<div <div
v-else-if=" v-else-if="
scope.row.responseMessageType === 'video' || scope.row.responseMessageType === 'video' ||
scope.row.responseMessageType === 'shortvideo' scope.row.responseMessageType === 'shortvideo'
" "
> >
<WxVideoPlayer <WxVideoPlayer

View File

@ -8,12 +8,12 @@
target="_blank" target="_blank"
:href=" :href="
'https://map.qq.com/?type=marker&isopeninfowin=1&markertype=1&pointx=' + 'https://map.qq.com/?type=marker&isopeninfowin=1&markertype=1&pointx=' +
locationY + locationY +
'&pointy=' + '&pointy=' +
locationX + locationX +
'&name=' + '&name=' +
label + label +
'&ref=yudao' '&ref=yudao'
" "
> >
<el-col> <el-col>
@ -21,12 +21,12 @@
<img <img
:src=" :src="
'https://apis.map.qq.com/ws/staticmap/v2/?zoom=10&markers=color:blue|label:A|' + 'https://apis.map.qq.com/ws/staticmap/v2/?zoom=10&markers=color:blue|label:A|' +
locationX + locationX +
',' + ',' +
locationY + locationY +
'&key=' + '&key=' +
qqMapKey + qqMapKey +
'&size=250*180' '&size=250*180'
" "
/> />
</el-row> </el-row>

View File

@ -49,7 +49,7 @@
<el-table-column label="操作" align="center" fixed="right"> <el-table-column label="操作" align="center" fixed="right">
<template #default="scope"> <template #default="scope">
<el-button type="primary" link @click="selectMaterialFun(scope.row)" <el-button type="primary" link @click="selectMaterialFun(scope.row)"
>选择 >选择
<Icon icon="ep:plus" /> <Icon icon="ep:plus" />
</el-button> </el-button>
</template> </template>
@ -91,7 +91,7 @@
> >
<template #default="scope"> <template #default="scope">
<el-button type="primary" link @click="selectMaterialFun(scope.row)" <el-button type="primary" link @click="selectMaterialFun(scope.row)"
>选择 >选择
<Icon icon="akar-icons:circle-plus" /> <Icon icon="akar-icons:circle-plus" />
</el-button> </el-button>
</template> </template>

View File

@ -12,10 +12,10 @@
<div v-loading="loading"></div> <div v-loading="loading"></div>
<div v-if="!loading"> <div v-if="!loading">
<div class="el-table__empty-block" v-if="hasMore" @click="loadMore" <div class="el-table__empty-block" v-if="hasMore" @click="loadMore"
><span class="el-table__empty-text">点击加载更多</span></div ><span class="el-table__empty-text">点击加载更多</span></div
> >
<div class="el-table__empty-block" v-if="!hasMore" <div class="el-table__empty-block" v-if="!hasMore"
><span class="el-table__empty-text">没有更多了</span></div ><span class="el-table__empty-text">没有更多了</span></div
> >
</div> </div>

View File

@ -43,7 +43,7 @@ defineOptions({ name: 'WxNews' })
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
articles: any[] | null articles?: any[] | null
}>(), }>(),
{ {
articles: null articles: null

View File

@ -24,7 +24,7 @@
<el-button type="primary" link>本地上传</el-button> <el-button type="primary" link>本地上传</el-button>
</template> </template>
<el-button type="primary" link @click="showDialog = true" style="margin-left: 5px" <el-button type="primary" link @click="showDialog = true" style="margin-left: 5px"
>素材库选择 >素材库选择
</el-button> </el-button>
</el-upload> </el-upload>
</div> </div>

View File

@ -19,7 +19,7 @@
</template> </template>
<template #tip> <template #tip>
<span class="el-upload__tip" style="margin-left: 10px" <span class="el-upload__tip" style="margin-left: 10px"
>格式支持 MP4文件大小不超过 10MB</span >格式支持 MP4文件大小不超过 10MB</span
> >
</template> </template>
</el-upload> </el-upload>

View File

@ -67,7 +67,7 @@
type="primary" type="primary"
plain plain
@click="showCreateVideo = true" @click="showCreateVideo = true"
>新建视频</el-button >新建视频</el-button
> >
<!-- 新建视频的弹窗 --> <!-- 新建视频的弹窗 -->
<UploadVideo v-model="showCreateVideo" /> <UploadVideo v-model="showCreateVideo" />

View File

@ -28,10 +28,10 @@
</div> </div>
<div class="save_div"> <div class="save_div">
<el-button class="save_btn" type="success" @click="onSave" v-hasPermi="['mp:menu:save']" <el-button class="save_btn" type="success" @click="onSave" v-hasPermi="['mp:menu:save']"
>保存并发布菜单</el-button >保存并发布菜单</el-button
> >
<el-button class="save_btn" type="danger" @click="onClear" v-hasPermi="['mp:menu:delete']" <el-button class="save_btn" type="danger" @click="onClear" v-hasPermi="['mp:menu:delete']"
>清空菜单</el-button >清空菜单</el-button
> >
</div> </div>
</div> </div>

View File

@ -31,7 +31,7 @@
v-model="formData.data" v-model="formData.data"
type="textarea" type="textarea"
:rows="4" :rows="4"
placeholder='请输入模板数据JSON 格式),例如:{"keyword1": {"value": "测试内容"}}' placeholder="请输入模板数据JSON 格式),例如:{&quot;keyword1&quot;: {&quot;value&quot;: &quot;测试内容&quot;}}"
/> />
</el-form-item> </el-form-item>
<el-form-item label="跳转链接" prop="url"> <el-form-item label="跳转链接" prop="url">

View File

@ -50,12 +50,12 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" v-if="isDialog"/> <el-table-column type="selection" width="55" v-if="isDialog" />
<el-table-column label="编号" align="center" prop="id" /> <el-table-column label="编号" align="center" prop="id" />
<el-table-column label="用户标识" align="center" prop="openid" width="260" /> <el-table-column label="用户标识" align="center" prop="openid" width="260" />
<el-table-column label="用户头像" min-width="80px" prop="headImageUrl"> <el-table-column label="用户头像" min-width="80px" prop="headImageUrl">
<template #default="scope"> <template #default="scope">
<el-avatar :src="scope.row.headImageUrl"/> <el-avatar :src="scope.row.headImageUrl" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="昵称" align="center" prop="nickname" /> <el-table-column label="昵称" align="center" prop="nickname" />