提交 4933d0e2 authored 作者: CRS's avatar CRS

nwe

上级 5a8e5b93
...@@ -208,15 +208,14 @@ export default { ...@@ -208,15 +208,14 @@ export default {
}, },
// 时间换算 // 时间换算
time(value) { time(value) {
value = value.replace(/-/g, '/').replace('T', ' ').replace('.000+0000', '')
if (value !== undefined && value !== null) {
let date = new Date(value); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000 let date = new Date(value); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
let day = moment(value).format('YYYY-MM-DD HH:mm:ss'); let Y = date.getFullYear() + '-';
let day2 = moment(day).utc().format() let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
return day let D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate());
} else { let h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
return '' let m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
} let s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
return Y + M + D + ' ' + h + m + s;
} }
}, },
components: { components: {
......
...@@ -779,7 +779,6 @@ ...@@ -779,7 +779,6 @@
<script> <script>
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) // 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
// 例如:import 《组件名称》 from '《组件路径》'; // 例如:import 《组件名称》 from '《组件路径》';
export default { export default {
name: 'reportAssess', name: 'reportAssess',
// import引入的组件需要注入到对象中才能使用 // import引入的组件需要注入到对象中才能使用
...@@ -969,7 +968,6 @@ export default { ...@@ -969,7 +968,6 @@ export default {
console.log(name) console.log(name)
this.$server.getTechnology(name).then(res=>{ this.$server.getTechnology(name).then(res=>{
console.log('数据请求结果',res.data) console.log('数据请求结果',res.data)
if (res.data === 500) { if (res.data === 500) {
this.picture = true this.picture = true
......
...@@ -43,7 +43,7 @@ axios.interceptors.response.use(function (response) { ...@@ -43,7 +43,7 @@ axios.interceptors.response.use(function (response) {
export default function(url, { export default function(url, {
// 不传时,默认参数 // 不传时,默认参数
method = 'get', method = 'get',
timeout = 60000, timeout = 180000,
data = {}, data = {},
headers = {'Content-Type': 'application/json'}, // application/x-www-form-urlencoded;charset=UTF-8; headers = {'Content-Type': 'application/json'}, // application/x-www-form-urlencoded;charset=UTF-8;
dataType = 'json' dataType = 'json'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论