2024-08-14 22:35:32 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div style="margin-bottom: 10px; height: 100%; padding-left: 1%; padding-right: 1%;">
|
|
|
|
|
|
<el-config-provider :locale="zhCn">
|
|
|
|
|
|
<div style="display: flex;justify-content: space-between;">
|
|
|
|
|
|
<el-row>
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-input v-model="workStationQuery" style="width: 256px; margin-right: 10px;" placeholder="工站"
|
2024-08-18 10:29:38 +08:00
|
|
|
|
:suffix-icon="Search" />
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-input v-model="smallBoxQuery" style="width: 256px; margin-right: 10px;" placeholder="小盒子"
|
2024-08-14 22:35:32 +08:00
|
|
|
|
:suffix-icon="Search" />
|
|
|
|
|
|
<el-button type="primary" @click="search()">搜索</el-button>
|
|
|
|
|
|
<el-button type="warning" @click="reset()">重置</el-button>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-button style="background-color: #00CED1; color: #000;"
|
2024-08-18 10:29:38 +08:00
|
|
|
|
@click="openUploadDialog()">导入</el-button>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<br />
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-table :data="stationConfigList" stripe border v-loading="loading" class="table-class" highlight-current-row
|
2024-08-14 22:35:32 +08:00
|
|
|
|
max-height="650px" @row-click="getCurrentRow" :header-cell-style="{ 'text-align': 'center' }"
|
|
|
|
|
|
:cell-style="{ 'text-align': 'center' }">
|
|
|
|
|
|
<el-table-column width="65px" fixed="left">
|
|
|
|
|
|
<template v-slot="scope">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-radio :label="scope.row.configId" v-model="configId"> </el-radio>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-table-column prop="configId" label="id" fixed="left" min-width="120px" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column prop="workStation" label="工站" fixed="left" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="smallBox" label="小盒子" fixed="left" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="model" label="机型" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="workCenter" label="工位" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="bigBox" label="工位大盒子" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="vehicle" label="车辆" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="vehicleLocation" label="线边架/车位置" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="startDateAdjust" label="开工时间调整" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="lastUpdateTime" label="最近更新时间" :formatter="timeFormat" show-overflow-tooltip min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="lastUpdateUser" label="最近更新用户" min-width="120px" />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<el-table-column fixed="right" label="操作" width="240px">
|
|
|
|
|
|
<template v-slot="scope">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-button plain type="primary" @click="editCurrentRowConfig(scope.row)">编辑</el-button>
|
|
|
|
|
|
<el-button plain type="danger" @click="deleteCurrentRowConfig(scope.row)">删除</el-button>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<br />
|
|
|
|
|
|
<el-pagination v-model:current-page="currentPage" v-model:page-size="pageSize" :page-sizes="[10, 25, 50]"
|
|
|
|
|
|
:small="false" :disabled="false" :background="false" :default-page-size="10"
|
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="search"
|
|
|
|
|
|
@current-change="search" />
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-dialog v-model="dialogVisible" title="工站配置信息" width="40%" draggable :show-close="false">
|
2024-08-18 10:29:38 +08:00
|
|
|
|
<div
|
|
|
|
|
|
style="max-width: 100%; max-height: 500px; overflow: auto; display: flex; justify-content: center;">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form ref="configFormRef" :model="configFormEntity" :label-position="labelPosition"
|
2024-08-14 22:35:32 +08:00
|
|
|
|
label-width="100px" style="width: 95%;" :rules="rules" status-icon>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="id" prop="configId">
|
|
|
|
|
|
<el-input v-model="configFormEntity.configId" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="工站" prop="workStation">
|
|
|
|
|
|
<el-input v-model="configFormEntity.workStation" clearable />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="小盒子" prop="smallBox">
|
|
|
|
|
|
<el-input v-model="configFormEntity.smallBox" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="机型" prop="model">
|
|
|
|
|
|
<el-input v-model="configFormEntity.model" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="工位" prop="workCenter">
|
|
|
|
|
|
<el-input v-model="configFormEntity.workCenter" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="工位大盒子" prop="bigBox">
|
|
|
|
|
|
<el-input v-model="configFormEntity.bigBox" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="车辆" prop="vehicle">
|
|
|
|
|
|
<el-input v-model="configFormEntity.vehicle" disabled />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-form-item label="线边架/车位置" prop="vehicleLocation">
|
|
|
|
|
|
<el-input v-model="configFormEntity.vehicleLocation" disabled />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="开工时间调整" prop="startDateAdjust">
|
|
|
|
|
|
<el-input-number v-model.number="configFormEntity.startDateAdjust"
|
|
|
|
|
|
controls-position="right" clearable />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<el-button type="primary" @click="submitConfigInfo(configFormEntity)">
|
2024-08-14 22:35:32 +08:00
|
|
|
|
确定
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2024-08-18 10:29:38 +08:00
|
|
|
|
<el-dialog v-model="uploadDialogVisible" title="工单" width="40%" draggable :show-close="true">
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<fieldset class="title-area">
|
2024-08-18 10:29:38 +08:00
|
|
|
|
<legend>上次更新</legend>
|
|
|
|
|
|
<div style="padding: 5px;">
|
|
|
|
|
|
<div style="display: flex; margin-bottom: 10px;">
|
|
|
|
|
|
<div style="display: flex; width: 100%;">
|
|
|
|
|
|
<div style="width: 30%; align-content: center;">时间:</div>
|
|
|
|
|
|
<el-input v-model="uploadRecord.uploadTime" readonly />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div style="display: flex; width: 100%; margin-left: 5px;">
|
|
|
|
|
|
<div style="width: 30%; align-content: center;">人员:</div>
|
|
|
|
|
|
<el-input v-model="uploadRecord.uploadUser" readonly />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div style="display: flex; width: 100%;">
|
|
|
|
|
|
<div style="width: 13%; align-content: center;">文件名:</div>
|
|
|
|
|
|
<el-input type="textarea" :rows="1" v-model="uploadRecord.fileName" :maxlength="-1"
|
|
|
|
|
|
:show-word-limit="false" :autosize="{ minRows: 1, maxRows: 4 }" readonly>
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</fieldset>
|
|
|
|
|
|
<fieldset class="title-area">
|
2024-08-18 10:29:38 +08:00
|
|
|
|
<legend>再次更新</legend>
|
2024-08-19 17:02:06 +08:00
|
|
|
|
<UploadExcelStationConfig></UploadExcelStationConfig>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</fieldset>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</el-config-provider>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import store from '@/store'
|
2024-08-19 17:02:06 +08:00
|
|
|
|
import { getStationConfigs, deleteStationConfigs, updateStationConfigs } from '@/api/kateWork.js'
|
2024-09-12 16:56:20 +08:00
|
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
|
|
|
import { errorBox, successBox, infoBox } from '@/utils/myMessageBox.js'
|
2024-08-14 22:35:32 +08:00
|
|
|
|
import { ref, reactive } from 'vue'
|
|
|
|
|
|
import { dateFormatter, timeFormatter } from '@/utils/formatter.js'
|
2024-08-19 17:02:06 +08:00
|
|
|
|
import UploadExcelStationConfig from '@/excel/UploadExcelStationConfig.vue'
|
2024-08-18 10:29:38 +08:00
|
|
|
|
import { queryUploadRecord } from '@/api/excel.js'
|
2024-08-14 22:35:32 +08:00
|
|
|
|
import { Search } from '@element-plus/icons-vue'
|
2024-08-19 17:02:06 +08:00
|
|
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
2024-08-18 10:29:38 +08:00
|
|
|
|
name: 'kateOrders',
|
2024-08-14 22:35:32 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
stationConfigList: [],
|
2024-08-14 22:35:32 +08:00
|
|
|
|
currentPage: 1,
|
2024-08-18 10:29:38 +08:00
|
|
|
|
uploadRecord: reactive({
|
|
|
|
|
|
fileName: '',
|
|
|
|
|
|
uploadTime: '',
|
|
|
|
|
|
uploadUser: ''
|
|
|
|
|
|
}),
|
2024-08-14 22:35:32 +08:00
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
total: 0,
|
2024-08-19 17:02:06 +08:00
|
|
|
|
workStationQuery: '',
|
2024-08-18 10:29:38 +08:00
|
|
|
|
smallBoxQuery: '',
|
2024-08-14 22:35:32 +08:00
|
|
|
|
loading: true,
|
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
|
uploadDialogVisible: false,
|
2024-08-19 17:02:06 +08:00
|
|
|
|
configId: '',
|
|
|
|
|
|
configFormEntity: reactive({}),
|
2024-08-14 22:35:32 +08:00
|
|
|
|
labelPosition: 'top',
|
2024-08-19 17:02:06 +08:00
|
|
|
|
configFormRef: ref(),
|
2024-08-14 22:35:32 +08:00
|
|
|
|
rules: reactive({})
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
this.search()
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
search() {
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
const request = {
|
|
|
|
|
|
pageNo: this.currentPage,
|
|
|
|
|
|
pageSize: this.pageSize,
|
2024-08-19 17:02:06 +08:00
|
|
|
|
workStation: this.workStationQuery.trim(),
|
|
|
|
|
|
smallBox: this.smallBoxQuery.trim(),
|
2024-08-14 22:35:32 +08:00
|
|
|
|
userName: store.getters.getUserName
|
|
|
|
|
|
}
|
2024-08-19 17:02:06 +08:00
|
|
|
|
getStationConfigs(request).then(res => {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
const tableResponse = res.data
|
|
|
|
|
|
if (tableResponse.code == 0) {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
this.stationConfigList = tableResponse.returnData.lists
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.total = tableResponse.returnData.total
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(tableResponse.message)
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
console.log(err)
|
|
|
|
|
|
errorBox('查询工站配置错误')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
},
|
|
|
|
|
|
dateFormat: (row, column, cellValue, index) => {
|
|
|
|
|
|
return dateFormatter(cellValue)
|
|
|
|
|
|
},
|
|
|
|
|
|
timeFormat: (row, column, cellValue, index) => {
|
|
|
|
|
|
return timeFormatter(cellValue)
|
|
|
|
|
|
},
|
|
|
|
|
|
reset() {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
this.workStationQuery = ''
|
2024-08-18 10:29:38 +08:00
|
|
|
|
this.smallBoxQuery = ''
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.search()
|
|
|
|
|
|
},
|
2024-08-19 17:02:06 +08:00
|
|
|
|
editCurrentRowConfig(row) {
|
|
|
|
|
|
this.configId = row.configId
|
|
|
|
|
|
this.configFormEntity = {
|
|
|
|
|
|
configId: row.configId,
|
|
|
|
|
|
workStation: row.workStation,
|
|
|
|
|
|
smallBox: row.smallBox,
|
|
|
|
|
|
model: row.model,
|
|
|
|
|
|
workCenter: row.workCenter,
|
|
|
|
|
|
bigBox: row.bigBox,
|
|
|
|
|
|
vehicle: row.vehicle,
|
|
|
|
|
|
vehicleLocation: row.vehicleLocation,
|
|
|
|
|
|
startDateAdjust: row.startDateAdjust,
|
|
|
|
|
|
lastUpdateTime: row.lastUpdateTime,
|
|
|
|
|
|
lastUpdateUser: row.lastUpdateUser
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
this.dialogVisible = true
|
|
|
|
|
|
},
|
2024-08-19 17:02:06 +08:00
|
|
|
|
deleteCurrentRowConfig(row) {
|
|
|
|
|
|
this.configId = row.configId
|
2024-08-14 22:35:32 +08:00
|
|
|
|
ElMessageBox.confirm(
|
2024-08-19 17:02:06 +08:00
|
|
|
|
'该操作会删除选择的工站配置数据。\n是否继续',
|
2024-08-14 22:35:32 +08:00
|
|
|
|
'警告',
|
|
|
|
|
|
{
|
|
|
|
|
|
confirmButtonText: '确认',
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
type: 'warning',
|
|
|
|
|
|
}
|
|
|
|
|
|
).then(() => {
|
|
|
|
|
|
const params = {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
configId: this.configId,
|
2024-08-14 22:35:32 +08:00
|
|
|
|
userName: store.getters.getUserName
|
|
|
|
|
|
}
|
2024-08-19 17:02:06 +08:00
|
|
|
|
deleteStationConfigs(params).then(res => {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
if (res.data.code == 0) {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
successBox('工站配置信息删除成功')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.search()
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(res.data.message)
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
console.log(err)
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox('删除工站配置信息失败')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
}).catch(() => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
infoBox('操作取消')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2024-08-19 17:02:06 +08:00
|
|
|
|
submitConfigInfo(formData) {
|
2024-08-18 10:29:38 +08:00
|
|
|
|
const params = {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
configId: formData.configId,
|
|
|
|
|
|
workStation: formData.workStation,
|
|
|
|
|
|
smallBox: formData.smallBox,
|
|
|
|
|
|
model: formData.model,
|
|
|
|
|
|
workCenter: formData.workCenter,
|
|
|
|
|
|
bigBox: formData.bigBox,
|
|
|
|
|
|
vehicle: formData.vehicle,
|
|
|
|
|
|
vehicleLocation: formData.vehicleLocation,
|
|
|
|
|
|
startDateAdjust: formData.startDateAdjust,
|
|
|
|
|
|
lastUpdateTime: formData.lastUpdateTime,
|
|
|
|
|
|
lastUpdateUser: formData.lastUpdateUser,
|
2024-08-18 10:29:38 +08:00
|
|
|
|
userName: store.getters.getUserName
|
|
|
|
|
|
}
|
2024-08-19 17:02:06 +08:00
|
|
|
|
updateStationConfigs(params).then(res => {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
if (res.data.code == 0) {
|
|
|
|
|
|
this.dialogVisible = false
|
2024-09-12 16:56:20 +08:00
|
|
|
|
successBox('工站配置信息更新成功')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.search()
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(res.data.message)
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
console.log(err)
|
|
|
|
|
|
errorBox('更新工站配置失败。')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
getCurrentRow(row) {
|
2024-08-19 17:02:06 +08:00
|
|
|
|
this.configId = row.configId
|
2024-08-14 22:35:32 +08:00
|
|
|
|
},
|
2024-08-18 10:29:38 +08:00
|
|
|
|
openUploadDialog() {
|
|
|
|
|
|
// 请求上传记录
|
|
|
|
|
|
const param = {
|
|
|
|
|
|
userName: store.getters.getUserName,
|
2024-08-19 17:02:06 +08:00
|
|
|
|
fileDescription: 'STATION-CONFIG_',
|
2024-08-18 10:29:38 +08:00
|
|
|
|
isAsc: false,
|
|
|
|
|
|
sortBy: 'upload_time'
|
|
|
|
|
|
}
|
|
|
|
|
|
queryUploadRecord(param).then(res => {
|
|
|
|
|
|
if (res.data.code == 0) {
|
|
|
|
|
|
if (res.data.returnData.total > 0) {
|
|
|
|
|
|
this.uploadRecord = res.data.returnData.lists[0]
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.uploadRecord = reactive({
|
|
|
|
|
|
fileName: '',
|
|
|
|
|
|
uploadTime: '',
|
|
|
|
|
|
uploadUser: ''
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.uploadRecord = reactive({
|
|
|
|
|
|
fileName: '',
|
|
|
|
|
|
uploadTime: '',
|
|
|
|
|
|
uploadUser: ''
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-08-18 10:29:38 +08:00
|
|
|
|
console.log(err)
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox('发生异常')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
2024-08-18 10:29:38 +08:00
|
|
|
|
this.uploadDialogVisible = true
|
2024-08-14 22:35:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.el-pagination {
|
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-button {
|
|
|
|
|
|
width: 72px;
|
|
|
|
|
|
margin-left: 0px;
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.table-class {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item {
|
|
|
|
|
|
width: 10% inherit;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-select-v2 {
|
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-input-number {
|
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-button {
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title-area {
|
|
|
|
|
|
display: flex;
|
2024-09-02 13:46:13 +08:00
|
|
|
|
/* min-height: 10%; */
|
2024-08-14 22:35:32 +08:00
|
|
|
|
max-height: max-content;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
min-width: inherit;
|
|
|
|
|
|
border: solid 1px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
box-shadow: 0px 15px 10px -15px #000;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|