forked from github/dataease
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
8aaf2aa0b6
@ -39,6 +39,9 @@
|
|||||||
<el-checkbox v-for="i in 7" :key="i" :label="i+''" @change="type = '4'" />
|
<el-checkbox v-for="i in 7" :key="i" :label="i+''" @change="type = '4'" />
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px;">{{ $t('cron.week_tips') }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1099,6 +1099,7 @@ export default {
|
|||||||
every_week: 'Every week',
|
every_week: 'Every week',
|
||||||
week_start: 'From week',
|
week_start: 'From week',
|
||||||
week_end: 'to week',
|
week_end: 'to week',
|
||||||
every_year: 'Every year'
|
every_year: 'Every year',
|
||||||
|
week_tips: 'Tips:1-7 mapping SUN-SAT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1099,6 +1099,7 @@ export default {
|
|||||||
every_week: '每周',
|
every_week: '每周',
|
||||||
week_start: '從星期',
|
week_start: '從星期',
|
||||||
week_end: '至星期',
|
week_end: '至星期',
|
||||||
every_year: '每年'
|
every_year: '每年',
|
||||||
|
week_tips: '說明:1-7 分別對應 周日-周六'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1100,6 +1100,7 @@ export default {
|
|||||||
every_week: '每周',
|
every_week: '每周',
|
||||||
week_start: '从星期',
|
week_start: '从星期',
|
||||||
week_end: '至星期',
|
week_end: '至星期',
|
||||||
every_year: '每年'
|
every_year: '每年',
|
||||||
|
week_tips: '说明:1-7 分别对应 周日-周六'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -547,7 +547,7 @@ export default {
|
|||||||
this.taskForm.endTime = ''
|
this.taskForm.endTime = ''
|
||||||
this.taskForm.cron = ''
|
this.taskForm.cron = ''
|
||||||
} else {
|
} else {
|
||||||
this.taskForm.cron = '0 0 * ? * * *'
|
this.taskForm.cron = '00 00 * ? * * *'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
listTaskLog(loading = true) {
|
listTaskLog(loading = true) {
|
||||||
|
@ -2,19 +2,31 @@
|
|||||||
<el-col style="padding: 0 5px 0 5px;">
|
<el-col style="padding: 0 5px 0 5px;">
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span class="header-title">
|
<span v-show="!showSearchInput" class="header-title">
|
||||||
{{ $t('commons.datasource') }}
|
<div class="de-input" style="margin-top: 7px !important;">
|
||||||
<el-button style="float: right;padding-right: 7px;margin-top: -8px" icon="el-icon-plus" type="text" @click="addFolder" />
|
{{ $t('commons.datasource') }}
|
||||||
|
<el-button style="float: right;padding-right: 7px;margin-top: -8px" icon="el-icon-plus" type="text" @click="addFolder" />
|
||||||
|
<el-button style="float: right;padding-right: 15px;margin-top: -8px" icon="el-icon-search" type="text" @click="showSearchWidget" />
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-show="showSearchInput" class="header-title">
|
||||||
|
<div class="de-input" style="margin-top: 0px !important;margin-bottom: 12px !important">
|
||||||
|
<el-input v-model="key">
|
||||||
|
<el-button slot="append" icon="el-icon-close" @click="closeSearchWidget" />
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-col class="custom-tree-container">
|
<el-col class="custom-tree-container">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-tree
|
<el-tree
|
||||||
ref="panel_list_tree"
|
ref="myDsTree"
|
||||||
:default-expanded-keys="expandedArray"
|
:default-expanded-keys="expandedArray"
|
||||||
:data="tData"
|
:data="tData"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
|
default-expand-all
|
||||||
:expand-on-click-node="true"
|
:expand-on-click-node="true"
|
||||||
|
:filter-node-method="filterNode"
|
||||||
@node-click="nodeClick"
|
@node-click="nodeClick"
|
||||||
>
|
>
|
||||||
<span slot-scope="{ node, data }" class="custom-tree-node-list father">
|
<span slot-scope="{ node, data }" class="custom-tree-node-list father">
|
||||||
@ -74,13 +86,31 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
expandedArray: [],
|
expandedArray: [],
|
||||||
tData: []
|
tData: [],
|
||||||
|
showSearchInput: false,
|
||||||
|
key: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
key(val) {
|
||||||
|
this.$refs.myDsTree.filter(val)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryTreeDatas()
|
this.queryTreeDatas()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
filterNode(value, data) {
|
||||||
|
if (!value) return true
|
||||||
|
return data.name.indexOf(value) !== -1
|
||||||
|
},
|
||||||
|
showSearchWidget() {
|
||||||
|
this.showSearchInput = true
|
||||||
|
},
|
||||||
|
closeSearchWidget() {
|
||||||
|
this.key = ''
|
||||||
|
this.showSearchInput = false
|
||||||
|
},
|
||||||
queryTreeDatas() {
|
queryTreeDatas() {
|
||||||
listDatasource().then(res => {
|
listDatasource().then(res => {
|
||||||
this.tData = this.buildTree(res.data)
|
this.tData = this.buildTree(res.data)
|
||||||
|
Loading…
Reference in New Issue
Block a user