修改左侧树添加滚动条,修改任务列表样式,修改添加任务时时间有默认值

This commit is contained in:
RenCheng 2025-04-29 22:10:17 +08:00
parent 5a2b48346d
commit 61cbc7da8e
6 changed files with 18 additions and 12 deletions

View File

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

View File

@ -35,7 +35,7 @@
<a-col :md="6">
<div class="linese"></div>
<!-- 分类区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;padding:10px;">
<div style="height:calc(100vh - 316px);overflow: auto;background: #e6e9f1;padding:10px;">
<a-tree :tree-data="treeDate" @select="onSelect" />
</div>
<div class="linese"></div>
@ -123,7 +123,7 @@ export default {
scopedSlots: { customRender: 'action' },
}
],
dataTypedataSources:[]
dataTypedataSources:[],
}
},
watch: {
@ -133,7 +133,6 @@ export default {
}
},
mounted() {
},
computed: {

View File

@ -41,7 +41,7 @@
<a-col :md="6">
<div class="linese"></div>
<!-- 分类区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;padding:10px;">
<div style="height:calc(100vh - 316px);overflow: auto;background: #e6e9f1;padding:10px;">
<a-tree :tree-data="treeDate" @select="onSelect" />
</div>
<div class="linese"></div>
@ -99,7 +99,8 @@ export default {
treeDate: [],
dataSource: [],
columns: [],
dataTypedataSources:[]
dataTypedataSources:[],
treeHeight:0
}
},
watch: {
@ -109,7 +110,7 @@ export default {
}
},
mounted() {
this.calculateScrollY();
},
computed: {
@ -118,6 +119,11 @@ export default {
this.getselect()
},
methods: {
calculateScrollY() {
//
const container = this.$refs.treeContainer;
this.treeHeight = container.clientHeight;
},
getselect(){
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
if (res.success) {

View File

@ -32,7 +32,7 @@
<a-col :md="6">
<div class="linese"></div>
<!-- 分类区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;padding:10px;">
<div style="height:calc(100vh - 316px);overflow: auto;background: #e6e9f1;padding:10px;">
<a-tree :tree-data="treeDate" @select="onSelect" />
</div>
<div class="linese"></div>
@ -113,7 +113,7 @@ export default {
dataIndex: 'dataDefault',
}
],
dataTypedataSources:[]
dataTypedataSources:[],
}
},
watch: {
@ -123,7 +123,6 @@ export default {
}
},
mounted() {
},
computed: {

View File

@ -50,7 +50,7 @@
</div>
<!-- table区域-begin -->
<div style="height:calc(100vh - 300px);overflow:hidden;">
<div style="height:calc(100vh - 300px);overflow:hidden; background: #e6e9f1 !important;">
<div class="linese"></div>
<a-table
ref="table"

View File

@ -170,7 +170,9 @@ import { taskCreate,
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model,'name','describe','shipModelId','shipNumId'));
});
this.rangeTime.push(moment(this.model.startTime),moment(this.model.endTime))
if(this.model.id){
this.rangeTime.push(moment(this.model.startTime),moment(this.model.endTime))
}
},
onChange(value, dateString) {
this.model.startTime = dateString[0];