| | |
| | | NODE_ENV=development |
| | | VUE_APP_API_BASE_URL=http://127.0.0.1:8080 |
| | | VUE_APP_API_BASE_URL=http://192.168.0.95:9999 |
| | | VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas |
| | | VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview |
| | |
| | | "dependencies": { |
| | | "@antv/data-set": "^0.11.4", |
| | | "@jeecg/antd-online-mini": "3.0.0-RC", |
| | | "@jiaminghi/data-view": "^2.10.0", |
| | | "@tinymce/tinymce-vue": "2.1.0", |
| | | "@toast-ui/editor": "^2.1.2", |
| | | "ant-design-vue": "^1.7.2", |
| | |
| | | "vue-print-nb-jeecg": "^1.0.9", |
| | | "vue-router": "^3.0.1", |
| | | "vue-splitpane": "^1.0.4", |
| | | "vuedraggable": "^2.20.0", |
| | | "vuedraggable": "2.20.0", |
| | | "vuex": "^3.1.0", |
| | | "vxe-table": "2.9.13", |
| | | "vxe-table-plugin-antd": "1.8.10", |
| | |
| | | }, |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/test', |
| | | component: BlankLayout, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path:'/testWorkshop', |
| | | component:()=>import('@/views/TestWorkshop.vue') |
| | | }, |
| | | { |
| | | path: '/404', |
| | | component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') |
| | | }, |
| | |
| | | right:'100px' |
| | | }) |
| | | |
| | | // 将自动注册所有组件为全局组件 |
| | | import dataV from '@jiaminghi/data-view' |
| | | Vue.use(dataV) |
| | | |
| | | // import 'echarts-liquidfill' |
| | | Vue.prototype.$echarts = echarts |
| | |
| | | <!--<!–<a-radio :value="3">任务表格</a-radio>–>--> |
| | | <!--<!–</a-radio-group>–>--> |
| | | <!--</div>--> |
| | | <a-button type="primary" @click="navigateToTestWorkshop">跳转至测试车间</a-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | navigateToTestWorkshop(){ |
| | | const url=this.$router.resolve('/testWorkshop').href |
| | | window.open(url,'_blank') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item label="开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-date :show-time="{defaultValue:moment('08:00:00','HH:mm:ss'),minuteStep:5,hideDisabledOptions:true}" |
| | | <j-date :show-time="{defaultValue:moment('08:00:00','HH:mm:ss'),hideDisabledOptions:true}" |
| | | date-format="YYYY-MM-DD HH:mm:ss" |
| | | placeholder="请选择开始时间" |
| | | :disabledDate="disabledDate" class="query-group-cust" |
| | | v-decorator="['startTime', validatorRules.startTime]" :disabledTime="disabledDateTime"></j-date> |
| | | v-decorator="['startTime', validatorRules.startTime]" :disabledTime="disabledDateTime" |
| | | :showToday="false"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item label="结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-date :show-time="{defaultValue:moment('08:00:00','HH:mm:ss'),minuteStep:5,hideDisabledOptions:true}" |
| | | <j-date :show-time="{defaultValue:moment('08:00:00','HH:mm:ss'),hideDisabledOptions:true}" |
| | | date-format="YYYY-MM-DD HH:mm:ss" |
| | | placeholder="请选择结束时间" |
| | | :disabledDate="disabledDate" class="query-group-cust" |
| | | v-decorator="['endTime', validatorRules.endTime]" :disabledTime="disabledDateTime"></j-date> |
| | | v-decorator="['endTime', validatorRules.endTime]" :disabledTime="disabledDateTime" |
| | | :showToday="false"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | disabledDate(current) { |
| | | //Can not slect days before today and today |
| | | // return current && current < moment().endOf("day"); |
| | | return current < moment().subtract(+2, 'day')//前一天之前的年月日不可选,不包括前一天 |
| | | return current < moment().subtract(+2, 'day').endOf('day')//前一天之前的年月日不可选,不包括前一天 |
| | | }, |
| | | moment, |
| | | // onChange(dates) { |
| | |
| | | this.checked = e.target.checked |
| | | }, |
| | | range(start, end) { |
| | | const result = []; |
| | | const result = [] |
| | | for (let i = start; i < end; i++) { |
| | | result.push(i); |
| | | result.push(i) |
| | | } |
| | | return result; |
| | | return result |
| | | }, |
| | | /** |
| | | * 禁用日期选择器中的时间选择 |
| | |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | |
| | | |
| | | </style> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item label="开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-date :show-time="{minuteStep:5,hideDisabledOptions:true}" date-format="YYYY-MM-DD HH:mm:ss" |
| | | <j-date :show-time="{hideDisabledOptions:true}" date-format="YYYY-MM-DD HH:mm:ss" |
| | | placeholder="请选择开始时间" :disabledDate="disabledDate" |
| | | class="query-group-cust" v-decorator="['startTime', validatorRules.startTime]" |
| | | :disabledTime="disabledDateTime"></j-date> |
| | | :disabledTime="disabledDateTime" :showToday="false"></j-date> |
| | | </a-form-item> |
| | | |
| | | </a-col> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item label="结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-date :show-time="{minuteStep:5,hideDisabledOptions:true}" date-format="YYYY-MM-DD HH:mm:ss" |
| | | <j-date :show-time="{hideDisabledOptions:true}" date-format="YYYY-MM-DD HH:mm:ss" |
| | | placeholder="请选择结束时间" |
| | | :disabledDate="disabledDate" |
| | | class="query-group-cust" v-decorator="['endTime', validatorRules.endTime]" |
| | | :disabledTime="disabledDateTime"></j-date> |
| | | :disabledTime="disabledDateTime" :showToday="false"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | |
| | | disabledDate(current) { |
| | | //Can not slect days before today and today |
| | | // return current && current < moment().endOf("day"); |
| | | return current < moment().subtract(+2, 'day')//前一天之前的年月日不可选,不包括前一天 |
| | | return current < moment().subtract(+2, 'day').endOf('day')//前一天之前的年月日不可选,不包括前一天 |
| | | }, |
| | | moment, |
| | | // onChange(dates) { |