bug修改

This commit is contained in:
RenCheng 2025-03-04 15:18:31 +08:00
parent 6642af099f
commit e75485e795
6 changed files with 55 additions and 8 deletions

View File

@ -1,4 +1,4 @@
NODE_ENV=development NODE_ENV=development
VUE_APP_API_BASE_URL=http://rcproject.natapp1.cc/jeecg-boot VUE_APP_API_BASE_URL=http://192.168.148.248:8082/jeecg-boot
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

View File

@ -10,6 +10,7 @@ const datasynctestConn = (params)=>getAction("/datasync/testConn",params);
const datasyncsyncOriginalData = (params)=>getAction("/datasync/syncOriginalData",params); const datasyncsyncOriginalData = (params)=>getAction("/datasync/syncOriginalData",params);
const datasyncgetSyncLog = (params)=>getAction("/datasync/getSyncLog",params); const datasyncgetSyncLog = (params)=>getAction("/datasync/getSyncLog",params);
const datasyncupdateSyncRecord = (params)=>putAction("/datasync/updateSyncRecord",params); const datasyncupdateSyncRecord = (params)=>putAction("/datasync/updateSyncRecord",params);
const deleteById = (params)=>deleteAction("/datasync/deleteById",params);
export { export {
datasyncqueryPage, datasyncqueryPage,
@ -21,7 +22,8 @@ export {
datasynctestConn, datasynctestConn,
datasyncsyncOriginalData, datasyncsyncOriginalData,
datasyncgetSyncLog, datasyncgetSyncLog,
datasyncupdateSyncRecord datasyncupdateSyncRecord,
deleteById
} }

View File

@ -73,6 +73,10 @@
<a @click="handleEdit(record)" v-has="'cont:btn'">编辑</a> <a @click="handleEdit(record)" v-has="'cont:btn'">编辑</a>
<a-divider type="vertical" v-has ="'cont:btn'" /> <a-divider type="vertical" v-has ="'cont:btn'" />
<a @click="getSyncLog(record)" v-has="'cont:btn'">详情</a> <a @click="getSyncLog(record)" v-has="'cont:btn'">详情</a>
<a-divider type="vertical" v-has ="'cont:btn'" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</span> </span>
</a-table> </a-table>
</div> </div>
@ -88,7 +92,7 @@
import creatdblink from './modules/creatdblink' import creatdblink from './modules/creatdblink'
import syncLog from './modules/syncLog' import syncLog from './modules/syncLog'
import { datasyncqueryPage } from '@/api/dblink' import { datasyncqueryPage,deleteById } from '@/api/dblink'
import { import {
dataTypePageList, dataTypePageList,
dataTypeDeleteById } from '@/api/dataType' dataTypeDeleteById } from '@/api/dataType'
@ -238,6 +242,17 @@
} }
}); });
}, },
handleDelete(id){
var that = this;
deleteById({id: id}).then((res) => {
if (res.success) {
that.$message.success(res.message);
that.loadData();
} else {
that.$message.warning(res.message);
}
});
},
handleAdd() { handleAdd() {
this.$refs.modalForm.add(); this.$refs.modalForm.add();
this.$refs.modalForm.title = "添加同步"; this.$refs.modalForm.title = "添加同步";
@ -246,7 +261,7 @@
handleEdit(value) { handleEdit(value) {
this.$refs.modalForm.models =1; this.$refs.modalForm.models =1;
this.$refs.modalForm.edit(value); this.$refs.modalForm.edit(value);
this.$refs.modalForm.title = "编辑同步"; this.$refs.modalForm.title = "同步数据";
}, },
getSyncLog(value){ getSyncLog(value){
this.$refs.syncLog.edit(value); this.$refs.syncLog.edit(value);

View File

@ -210,6 +210,7 @@ import { datasyncqueryPage,
datasyncsyncOriginalData({recordId:this.recordId}).then((res) => { datasyncsyncOriginalData({recordId:this.recordId}).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
this.close();
} else { } else {
this.$message.warning(res.message); this.$message.warning(res.message);
} }

View File

@ -2,6 +2,11 @@
<div> <div>
<a-row type="flex"> <a-row type="flex">
<a-col flex="auto"> <a-col flex="auto">
<a-select show-search placeholder="选择任务" option-filter-prop="children" size="large" v-model="taskId" style="width: 200px;">
<a-select-option v-for="d in allTask" :key="d.id">
{{ d.name }}
</a-select-option>
</a-select>
<a-upload <a-upload
class="upload-wrapper" class="upload-wrapper"
:showUploadList="false" :showUploadList="false"
@ -57,7 +62,7 @@
import SparkMD5 from 'spark-md5' import SparkMD5 from 'spark-md5'
import { postAction,downloadFile2 } from '@/api/manage' import { postAction,downloadFile2 } from '@/api/manage'
import { verifyFileExist } from '@/api/fileapi' import { verifyFileExist } from '@/api/fileapi'
import { taskPageList, } from '@/api/task'
export default { export default {
name: 'SliceUpload', name: 'SliceUpload',
@ -95,10 +100,24 @@ export default {
isStop: false, isStop: false,
fileList: [], fileList: [],
tableDate: [], tableDate: [],
taskId:"",
allTask:{},
queryParam: {
pageNum :1,
pageSize:999999999
},
} }
}, },
created () {
this.getAllTask();
this.deleteFile();
},
methods: { methods: {
filterOption(input, option) {
return (
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
);
},
stop (record) { stop (record) {
this.isStop = true this.isStop = true
record.uploadStatus = 0 record.uploadStatus = 0
@ -124,10 +143,19 @@ export default {
setFileList (fileList) { setFileList (fileList) {
this.tableDate = fileList this.tableDate = fileList
}, },
getAllTask() {
taskPageList(this.queryParam).then((res) => {
if (res.success) {
this.allTask = res.result.rows||res.result;
} else {
this.$message.warning(res.message);
}
});
},
deleteFile () { deleteFile () {
this.fileList = [] this.fileList = []
this.tableDate = [] this.tableDate = []
this.taskId =""
}, },
getFileList () { getFileList () {
return this.tableDate return this.tableDate
@ -243,6 +271,7 @@ export default {
formData.append('shareIndex', shareIndex+1) formData.append('shareIndex', shareIndex+1)
formData.append('currShareM5', currShareM5) formData.append('currShareM5', currShareM5)
formData.append('file', file) formData.append('file', file)
formData.append('taskId', this.taskId)
return formData return formData
}, },
@ -396,7 +425,6 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.upload-wrapper{ .upload-wrapper{
display: inline-block; display: inline-block;
width: calc(100% - 10px);
/deep/.ant-upload{ /deep/.ant-upload{
width: 100%; width: 100%;
} }

View File

@ -53,6 +53,7 @@ import SliceUpload from './SliceUpload'
methods: { methods: {
add () { add () {
this.visible =true; this.visible =true;
this.$refs.technicalUpload.deleteFile();
}, },
onOk(value) { onOk(value) {
this.model.startDate = moment(value[0],dateFormat); this.model.startDate = moment(value[0],dateFormat);