|
@@ -1,36 +1,64 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <das-board>
|
|
|
- <template v-slot:plan>
|
|
|
- <span>{{plan?plan:"yyyy-mm-dd"}}</span>
|
|
|
- </template>
|
|
|
- <template v-slot:finish>
|
|
|
- <span>{{finish?finish:"yyyy-mm-dd"}}</span>
|
|
|
- </template>
|
|
|
- <template v-slot:onLine>
|
|
|
- <span>{{onLine?onLine:"yyyy-mm-dd"}}</span>
|
|
|
- </template>
|
|
|
- <template v-slot:explain>
|
|
|
- <span>{{explain?explain:"yyyy-mm-dd"}}</span>
|
|
|
- </template>
|
|
|
- </das-board>
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <task-statistics></task-statistics>
|
|
|
+ <div class="hanson-bar">
|
|
|
+ <el-cascader v-model="taskType" :options="taskTypeList" filterable></el-cascader>
|
|
|
+ <el-divider direction="vertical"></el-divider>
|
|
|
+ <div class="condition-list">
|
|
|
+ <floor-cascader @change="changeFloor"></floor-cascader>
|
|
|
+ <my-cascader ref="cascader" @change="changeDevice"></my-cascader>
|
|
|
+ </div>
|
|
|
+ <el-button style="float:right;">添加任务</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import dasBoard from "@/views/dasboard/index";
|
|
|
+import { mapGetters } from "vuex"
|
|
|
+import taskStatistics from '@/components/data_admin/buildTask/taskStatistics'
|
|
|
+import floorCascader from "@/components/ledger/lib/floorCascader"
|
|
|
+import myCascader from "@/components/ledger/lib/cascader"
|
|
|
export default {
|
|
|
- components: {
|
|
|
- dasBoard
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- plan: "2019-08-21",
|
|
|
- finish: "2019-09-06",
|
|
|
- onLine: "2019-09-30",
|
|
|
- explain: "现场任务的创建和修改;v1.2:任务完成情况的查看"
|
|
|
- }
|
|
|
- },
|
|
|
- mounted() {}
|
|
|
+ components: {
|
|
|
+ taskStatistics,
|
|
|
+ floorCascader,
|
|
|
+ myCascader
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters("layout", [ "projectId", "secret", "userId" ])
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ taskTypeList: [
|
|
|
+ { value: "verification", label: '现场验证任务', children:[
|
|
|
+ {value: "model", label: '现场验证模型'},
|
|
|
+ {value: "device", label: '现场验证设备台账'},
|
|
|
+ {value: "assets", label: '现场验证资产台账'}
|
|
|
+ ]},
|
|
|
+ { value: "tear", label: '现场撕码任务' },
|
|
|
+ { value: "replace", label: '现场换码任务' }
|
|
|
+ ],
|
|
|
+ taskType: 'model'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() { },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
-</script>
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .hanson-bar {
|
|
|
+ height: 40px;
|
|
|
+ padding: 5px 0;
|
|
|
+ font-size: 14px;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-top: 0;
|
|
|
+ line-height: 40px;
|
|
|
+ .condition-list{
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: middle;
|
|
|
+ line-height: 32px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|