|
|
@@ -8,10 +8,9 @@
|
|
|
<el-form-item label="负责人">
|
|
|
<el-input v-model="searchInfo.user" placeholder="负责人" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="日期" prop="create_date">
|
|
|
- <el-date-picker v-model="searchInfo.create_date" popper-class="picker-popovers" class="timefilter"
|
|
|
- type="datetime" placeholder="选择日期时间" value-format="YYYY-MM-DD">
|
|
|
- </el-date-picker>
|
|
|
+ <el-form-item label="日期" prop="date">
|
|
|
+ <el-date-picker v-model="searchInfo.date" size="default" type="daterange" unlink-panels range-separator="至"
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期" :disabled-date="disabledDate" :shortcuts="shortcuts" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button size="small" type="primary" icon="search" @click="onSubmit">查询</el-button>
|
|
|
@@ -84,29 +83,31 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'TxTargetTask',
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<script setup>
|
|
|
import {
|
|
|
getGameTaskTargetById,
|
|
|
updateGameTaskTarget,
|
|
|
getGameTxTaskList,
|
|
|
} from '@/api/task'
|
|
|
-import { toSQLLine } from '@/utils/stringFun'
|
|
|
-import warningBar from '@/components/warningBar/warningBar.vue'
|
|
|
-import { ref } from 'vue'
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
+ import { toSQLLine } from '@/utils/stringFun'
|
|
|
+ import warningBar from '@/components/warningBar/warningBar.vue'
|
|
|
+ import { ref } from 'vue'
|
|
|
+ import dayjs from "dayjs";
|
|
|
+ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-const apis = ref([])
|
|
|
-const rules = ref({
|
|
|
+ const apis = ref([])
|
|
|
+ const rules = ref({
|
|
|
task_id: [{ required: true, message: '输入任务ID', trigger: 'blur' }],
|
|
|
task_name: [
|
|
|
{ required: true, message: '请输入任务名称', trigger: 'blur' }
|
|
|
@@ -516,70 +517,22 @@ const deleteApiFunc = async (row) => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+</script>
|
|
|
|
|
|
-const switchEnable = async (row) => {
|
|
|
- const res = await statusOperation({ task_id: row.task_id, status: row.status })
|
|
|
- if (res.code === 0) {
|
|
|
- ElMessage({ type: 'success', message: `${row.status === -1 ? '停止' : '开启'}成功` })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-const links = ref([])
|
|
|
|
|
|
-const querySearch = (queryString, cb) => {
|
|
|
- const results = queryString
|
|
|
- ? links.value.filter(createFilter(queryString))
|
|
|
- : links.value
|
|
|
- // call callback function to return suggestion objects
|
|
|
- cb(results)
|
|
|
-}
|
|
|
-const createFilter = (queryString) => {
|
|
|
- return (restaurant) => {
|
|
|
- return (
|
|
|
- restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
|
- )
|
|
|
+ <style scoped lang="scss">
|
|
|
+ .button-box {
|
|
|
+ padding: 10px 20px;
|
|
|
+ .el-button {
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
}
|
|
|
+ :deep(.el-tabs__nav-scroll){
|
|
|
+ width:35%;
|
|
|
+ margin:0 auto
|
|
|
}
|
|
|
-const loadAll = () => {
|
|
|
- return [
|
|
|
- { game_id: 1, game_name: '龙腾传世' },
|
|
|
- { game_id: 2, game_name: '龙皇传说' },
|
|
|
- { game_id: 3, game_name: '龙之国物语' },
|
|
|
- { game_id: 4, game_name: '黑月' },
|
|
|
- { game_id: 5, game_name: '麻将来了' },
|
|
|
- { game_id: 6, game_name: '鸿途归来' },
|
|
|
- { game_id: 7, game_name: '魔力宝贝归来' },
|
|
|
- ]
|
|
|
-}
|
|
|
-const handleSelect = (item) => {
|
|
|
- form.value.game_id = item.game_id
|
|
|
- console.log(item)
|
|
|
-}
|
|
|
-
|
|
|
-const handleIconClick = (ev) => {
|
|
|
- console.log(ev)
|
|
|
-}
|
|
|
-
|
|
|
-links.value = loadAll()
|
|
|
-
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped lang="scss">
|
|
|
-.button-box {
|
|
|
- padding: 10px 20px;
|
|
|
-
|
|
|
- .el-button {
|
|
|
- float: right;
|
|
|
+:deep(.el-tabs__nav-scroll)
|
|
|
+ .warning {
|
|
|
+ color: #dc143c;
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-:deep(.el-tabs__nav-scroll) {
|
|
|
- width: 35%;
|
|
|
- margin: 0 auto
|
|
|
-}
|
|
|
-
|
|
|
-:deep(.el-tabs__nav-scroll) .warning {
|
|
|
- color: #dc143c;
|
|
|
-}
|
|
|
-</style>
|
|
|
-
|
|
|
+ </style>
|