diff --git a/src/style/order.scss b/src/style/order.scss new file mode 100644 index 0000000..4645d69 --- /dev/null +++ b/src/style/order.scss @@ -0,0 +1,14 @@ +.orderMain{ + .cardBox{ + margin-bottom: 10px; + .headerView{ + display: flex;justify-content: space-between; + } + .title{ + margin-bottom: 10px; + } + .cardBody{ + display: flex;flex-direction: column; + } + } +} diff --git a/src/style/style.scss b/src/style/style.scss index c2eb288..70945ee 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -6,3 +6,4 @@ @import 'home.scss'; @import 'user.scss'; @import 'docs.scss'; +@import "order.scss"; diff --git a/src/utils/request.js b/src/utils/request.js index 5cbf460..b4832ee 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -33,8 +33,6 @@ let MessageBox_401_show = false // HTTP response 拦截器 axios.interceptors.response.use( (response) => { - // const contentDisposition = response.headers['Content-Disposition']; - // console.log(response,677) const token = response.headers.authorization; if (token) { let reToken = token.replace(/Bearer /g, ""); @@ -81,41 +79,6 @@ axios.interceptors.response.use( }, (error) => { - // if (error.response) { - // if (error.response.status == 404) { - // ElNotification.error({ - // title: '请求错误', - // message: "Status:404,正在请求不存在的服务器记录!" - // }); - // } else if (error.response.status == 500) { - // ElNotification.error({ - // title: '请求错误', - // message: error.response.data.message || "Status:500,服务器发生错误!" - // }); - // } else if (error.response.status == 401) { - // if(!MessageBox_401_show){ - // MessageBox_401_show = true - // ElMessageBox.confirm('当前用户已被登出或无权限访问当前资源,请尝试重新登录后再操作。', '无权限访问', { - // type: 'error', - // closeOnClickModal: false, - // center: true, - // confirmButtonText: '重新登录', - // beforeClose: (action, instance, done) => { - // MessageBox_401_show = false - // done() - // } - // }).then(() => { - // router.replace({path: '/login'}); - // }).catch(() => {}) - // } - // } else { - // ElNotification.error({ - // title: '请求错误', - // message: error.message || `Status:${error.response.status},未知错误!` - // }); - // } - // } - ElNotification.error({ title: '请求错误', message: "请求服务器无响应!" diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 5ce8cfb..930b071 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/src/views/order/create-order.vue b/src/views/order/create-order.vue index 872714a..a3a3c0f 100644 --- a/src/views/order/create-order.vue +++ b/src/views/order/create-order.vue @@ -2,24 +2,24 @@ - +
工作时间
- - + + - + - + - + - + - + @@ -28,15 +28,15 @@
维保单号
- - + + - + - + - + @@ -45,37 +45,46 @@
维保工单信息
- - + + - + - + - + + + - + - + - - + + - + + + - + - + + + - + - + + + + @@ -84,49 +93,94 @@
维保工单信息
- - + + - + + + - + - + + + - - + + - + - + - + - - + + - + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 保 存 +
@@ -138,7 +192,29 @@ export default { name: "create-order", data(){ return{ - size:"small" + size:"small", + form:{ + maintenance_level: "234", // 维修等级 + fault_type: "234", // 故障类型 + fault_description: "234", // 故障描述 + requires_shutdown: "234", // 是否需要关机 + city: "234", // 机房城市 + park_name: "234", // 园区名称 + data_center_name: "234", // 机房/IDC名称 + rack_position: "234", // 机架位置 + device_sn: "234", // 整机SN + device_manufacturer: "234", // 整机厂商 + device_model: "234", // 整机型号 + component_serial_no: "234", // 部件序列号 + component_manufacturer: "234", // 部件厂商 + component_model: "234", // 部件型号 + component_pn: "234", // 部件零件PN号 + sla_expiration: "234", // SLA到期时间 + bd_backup_count: "234", // 剩余BD数 + pe_confirmation_time: "234", // PE确认时间 + warranty_end_date: "234", // 保修期结束 + maintenance_plan: "234" // 维保等级:1-铜牌;常量维护项 + } } }, mounted() { @@ -151,5 +227,26 @@ export default { diff --git a/src/views/order/order-info.vue b/src/views/order/order-info.vue index 665b05d..0e7f98c 100644 --- a/src/views/order/order-info.vue +++ b/src/views/order/order-info.vue @@ -1,5 +1,158 @@