修改bug
This commit is contained in:
parent
240e52f077
commit
09398d5571
|
@ -42,12 +42,13 @@
|
||||||
<!-- :locale="myLocale"-->
|
<!-- :locale="myLocale"-->
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
<!-- 字符串超长截取省略号显示-->
|
||||||
<span slot="name" slot-scope="text">
|
<template slot="parseStatus" slot-scope="text">
|
||||||
<j-ellipsis :value="text" :length="20" />
|
<span style="color:black;" v-if="text === 0" >未解析</span>
|
||||||
</span>
|
<span style="color:darkorange;" v-if="text === 1">解析中</span>
|
||||||
<span slot="describe" slot-scope="text">
|
<span style="color:#87d068;" v-if="text === 2">解析完成</span>
|
||||||
<j-ellipsis :value="text" :length="20" />
|
<span style="color:red;" v-if="text === 3">解析失败</span>
|
||||||
</span>
|
<span style="color:royalblue;" v-if="text === 4">等待中</span>
|
||||||
|
</template>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
||||||
<a-divider type="vertical" v-has="'cont:btn'" />
|
<a-divider type="vertical" v-has="'cont:btn'" />
|
||||||
|
@ -123,6 +124,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
align:"parseStatus",
|
||||||
|
dataIndex: 'parseStatus',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
align:"center",
|
align:"center",
|
||||||
|
|
|
@ -45,6 +45,13 @@
|
||||||
<template slot="percent" slot-scope="text">
|
<template slot="percent" slot-scope="text">
|
||||||
<span>{{ percent(text) }}</span>
|
<span>{{ percent(text) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
<template slot="parseStatus" slot-scope="text">
|
||||||
|
<span style="color:black;" v-if="text === 0" >未解析</span>
|
||||||
|
<span style="color:darkorange;" v-if="text === 1">解析中</span>
|
||||||
|
<span style="color:#87d068;" v-if="text === 2">解析完成</span>
|
||||||
|
<span style="color:red;" v-if="text === 3">解析失败</span>
|
||||||
|
<span style="color:royalblue;" v-if="text === 4">等待中</span>
|
||||||
|
</template>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
||||||
<a-divider type="vertical" v-has="'cont:btn'" />
|
<a-divider type="vertical" v-has="'cont:btn'" />
|
||||||
|
@ -120,6 +127,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
align:"parseStatus",
|
||||||
|
dataIndex: 'parseStatus',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
align:"center",
|
align:"center",
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
<!-- 字符串超长截取省略号显示-->
|
||||||
<template slot="syncState" slot-scope="text">
|
<template slot="syncState" slot-scope="text">
|
||||||
<span style="color: #fff;" v-if="text === 0" >未同步</span>
|
<span style="color:black;" v-if="text === 0" >未同步</span>
|
||||||
<span style="color:darkorange;" v-if="text === 1">进行中</span>
|
<span style="color:darkorange;" v-if="text === 1">进行中</span>
|
||||||
<span style="color:#87d068;" v-if="text === 2">已完成</span>
|
<span style="color:#87d068;" v-if="text === 2">已完成</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -286,10 +286,10 @@ import { datasyncqueryPage,
|
||||||
datasynccreateSchema({shipModelId:this.datamodel.shipModel,shipNumId:this.datamodel.shipNum,dataTypeId:this.datamodel.dataType}).then((res) => {
|
datasynccreateSchema({shipModelId:this.datamodel.shipModel,shipNumId:this.datamodel.shipNum,dataTypeId:this.datamodel.dataType}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.createSchemaboll =false;
|
this.createSchemaboll =false;
|
||||||
this.confirmLoading = false;
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
|
this.confirmLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -309,11 +309,11 @@ import { datasyncqueryPage,
|
||||||
that.confirmLoading = true;
|
that.confirmLoading = true;
|
||||||
datasynctestConn({ip:values.ip,port:values.port,username:values.username,password:values.password}).then((res) => {
|
datasynctestConn({ip:values.ip,port:values.port,username:values.username,password:values.password}).then((res) => {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
this.confirmLoading = false;
|
|
||||||
this.getdatabaseList();
|
this.getdatabaseList();
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
|
this.confirmLoading = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,13 @@
|
||||||
<!-- :locale="myLocale"-->
|
<!-- :locale="myLocale"-->
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
<!-- 字符串超长截取省略号显示-->
|
||||||
|
<template slot="parseStatus" slot-scope="text,record">
|
||||||
|
<span style="color:black;" v-if="text === 0" >未解析</span>
|
||||||
|
<span style="color:darkorange;" v-if="text === 1">解析中</span>
|
||||||
|
<span style="color:#87d068;" v-if="text === 2">解析完成</span>
|
||||||
|
<span style="color:red;" v-if="text === 3">解析失败</span>
|
||||||
|
<span style="color:royalblue;" v-if="text === 4">等待中</span>
|
||||||
|
</template>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="processFile(record)" v-has="'cont:btn'" >解析</a>
|
<a @click="processFile(record)" v-has="'cont:btn'" >解析</a>
|
||||||
<a-divider type="vertical" v-has="'cont:btn'" />
|
<a-divider type="vertical" v-has="'cont:btn'" />
|
||||||
|
@ -117,6 +124,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'parseStatus',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
align:"center",
|
align:"center",
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
:placeholder="['任务开始时间', '任务结束时间']"
|
:placeholder="['任务开始时间', '任务结束时间']"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
@ok="onOk"
|
@ok="onOk"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
@ -80,7 +81,7 @@ import { taskCreate,
|
||||||
title:"操作",
|
title:"操作",
|
||||||
buttonStyle: 'solid',
|
buttonStyle: 'solid',
|
||||||
visible: false,
|
visible: false,
|
||||||
dateFormat:'YYYY-MM-DD HH:mm',
|
dateFormat:'YYYY-MM-DD HH:mm:ss',
|
||||||
status:'',
|
status:'',
|
||||||
model: {},
|
model: {},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
|
@ -154,12 +155,14 @@ import { taskCreate,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onChange(value, dateString) {
|
onChange(value, dateString) {
|
||||||
this.model.startDate = dateString[0];
|
this.model.startTime = dateString[0];
|
||||||
this.model.endDate = dateString[1];
|
this.model.endTime = dateString[1];
|
||||||
|
console.log(this.model);
|
||||||
},
|
},
|
||||||
onOk(value) {
|
onOk(value) {
|
||||||
this.model.startDate = moment(value[0],dateFormat);
|
this.model.startTime = value[0].format('YYYY-MM-DD HH:mm:ss');
|
||||||
this.model.endDate = moment(value[1],dateFormat);
|
this.model.endTime = value[1].format('YYYY-MM-DD HH:mm:ss');
|
||||||
|
console.log(this.model);
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
|
@ -177,6 +180,9 @@ import { taskCreate,
|
||||||
this.model.shipModelId = values.shipModelId;
|
this.model.shipModelId = values.shipModelId;
|
||||||
this.model.shipNumId = values.shipNumId;
|
this.model.shipNumId = values.shipNumId;
|
||||||
this.model.describe = values.describe;
|
this.model.describe = values.describe;
|
||||||
|
this.model.startTime = this.rangeTime[0].format('YYYY-MM-DD HH:mm:ss');
|
||||||
|
this.model.endTime = this.rangeTime[1].format('YYYY-MM-DD HH:mm:ss');
|
||||||
|
console.log(this.model);
|
||||||
taskCreate(this.model).then((res)=>{
|
taskCreate(this.model).then((res)=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
that.$message.success(res.message);
|
that.$message.success(res.message);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user