修改bug

This commit is contained in:
‘937886381’
2023-11-16 18:52:55 +08:00
parent 3832aee028
commit b349432eaa
13 changed files with 104 additions and 81 deletions

View File

@@ -246,7 +246,7 @@ export default {
// 获取工段列表
async getWorksectionList(plId) {
const response = await this.$axios(
'/base/workshop-section/listByParentId',
'/base/core-workshop-section/listByParentId',
{
params: {
id: plId,

View File

@@ -13,9 +13,8 @@
<!-- <pre><code v-html="jsondemo"></code></pre> -->
<el-skeleton v-if="initing" :rows="6" animated />
<div v-else :class="{ 'no-data-bg': !list || list.length == 0 }">
<div v-else >
<base-table
v-if="list && list.length > 0"
:table-props="tableProps"
:page="queryParams.pageNo"
:limit="queryParams.pageSize"

View File

@@ -71,7 +71,10 @@ export default {
placeholder: '请选择工单号',
param: 'workOrderIdList',
selectOptions: [],
multiple:true,
multiple: true,
labelField: 'name',
valueField: 'id',
defaultSelect: []
},
{
type: 'select',
@@ -91,8 +94,8 @@ export default {
label: '时间段',
dateType: 'daterange', // datetimerange
// format: 'yyyy-MM-dd HH:mm:ss',
format: 'yyyy-MM-dd',
valueFormat: 'timestamp',
format: 'yyyy-MM-dd HH:mm:ss',
valueFormat: 'yyyy-MM-dd HH:mm:ss',
rangeSeparator: '-',
startPlaceholder: '开始日期',
endPlaceholder: '结束日期',
@@ -246,7 +249,11 @@ export default {
},
mounted() {
if (this.$route.query.woIdString) {
this.queryParams.workOrderIdList = this.$route.query.woIdString
console.log(this.$route.query.woIdString);
this.queryParams.workOrderIdList = [this.$route.query.woIdString]
// let arr =[]
this.searchBarFormConfig[0].defaultSelect = [this.$route.query.woIdString]
console.log(this.searchBarFormConfig[0].defaultSelect);
}
// if (this.$route.params.startTime && this.$route.params.endTime) {
// this.searchBarFormConfig[0].defaultSelect = [
@@ -301,7 +308,8 @@ export default {
this.getDict()
},
/** 查询列表 */
async getDataList() {
async getDataList() {
console.log(this.queryParams);
this.loading = true;
// 执行查询
const {