Compare commits

...

2 Commits

4 changed files with 14 additions and 6 deletions

View File

@ -6,8 +6,8 @@ export default {
name: "列表", name: "列表",
req: async function(data){ req: async function(data){
return await http.post( return await http.post(
// `${config.HOST_URL}/hfnf_api/mplogx/`, `${config.HOST_URL}/hfnf_api/mplogx/`,
"http://10.0.11.52:5800/mplogx/", // "http://10.0.11.52:5800/mplogx/",
data data
); );
} }

View File

@ -10,9 +10,9 @@
<template> <template>
<div class="scTable" :style="{ height: _height }" ref="scTableMain" v-loading="loading"> <div class="scTable" :style="{ height: _height }" ref="scTableMain" v-loading="loading">
<div class="scTable-table" :style="{ height: _table_height }"> <div class="scTable-table" :style="{ height: _table_height }">
<el-table v-bind="$attrs" :data="tableData" :row-key="rowKey" :key="toggleIndex" ref="scTable" <el-table v-bind="$attrs" :data="tableData" :row-key="rowKey || undefined" :key="toggleIndex" ref="scTable"
:height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe" :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe"
:summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" :expand-row-keys="expandRowKeys" @sort-change="sortChange" :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" :expand-row-keys="rowKey ? expandRowKeys : undefined" @sort-change="sortChange"
@filter-change="filterChange" @selection-change="selectionChange"> @filter-change="filterChange" @selection-change="selectionChange">
<slot></slot> <slot></slot>
<template v-for="(item, index) in userColumn" :key="index"> <template v-for="(item, index) in userColumn" :key="index">

View File

@ -4,7 +4,7 @@
<div class="summary-banner"> <div class="summary-banner">
<div class="banner-left"> <div class="banner-left">
<div class="banner-icon"> <div class="banner-icon">
<el-icon :size="40"><DataAnalysis /></el-icon> <img src="/media/logo2.png" class="banner-logo" />
</div> </div>
<div class="banner-info"> <div class="banner-info">
<h2>水泥生产数据采集总览</h2> <h2>水泥生产数据采集总览</h2>
@ -389,6 +389,12 @@ onBeforeUnmount(() => {
justify-content: center; justify-content: center;
} }
.banner-logo {
width: 40px;
height: 40px;
object-fit: contain;
}
.banner-info h2 { .banner-info h2 {
margin: 0 0 4px 0; margin: 0 0 4px 0;
font-size: 22px; font-size: 22px;

View File

@ -29,7 +29,7 @@
</el-main> </el-main>
</el-container> </el-container>
<el-drawer title="劳动合同变更" v-model="drawerVisible" :size="'80%'" destroy-on-close> <el-drawer title="劳动合同变更" v-model="drawerVisible" :size="'80%'" destroy-on-close>
<empcontract_form :mode="mode" :t_id="t_id"></empcontract_form> <empcontract_form :mode="mode" :t_id="t_id" @success="handleSuccess"></empcontract_form>
</el-drawer> </el-drawer>
</template> </template>
<script setup> <script setup>
@ -41,7 +41,9 @@ import { actStateEnum } from "@/utils/enum.js"
const drawerVisible = ref(false) const drawerVisible = ref(false)
const mode = ref('add') const mode = ref('add')
const t_id = ref(null) const t_id = ref(null)
const table = ref(null)
const handleAdd = () => { mode.value = 'add'; t_id.value = null; drawerVisible.value = true; } const handleAdd = () => { mode.value = 'add'; t_id.value = null; drawerVisible.value = true; }
const handleSuccess = () => { drawerVisible.value = false; table.value.refresh(); }
const exportCols = [ const exportCols = [
{ header: "部门", key: "dept_need_name", wch: 15 }, { header: "部门", key: "dept_need_name", wch: 15 },
{ header: "员工姓名", key: "employee_name", wch: 10 }, { header: "员工姓名", key: "employee_name", wch: 10 },