Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
monthReport_smzx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
monthReport_smzx
Commits
198631c3
提交
198631c3
authored
9月 20, 2024
作者:
邓文彬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(pad): 数据导出格式和PC端对齐,能够成功导出PC
上级
e0881957
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
58 行增加
和
39 行删除
+58
-39
App.vue
App.vue
+2
-1
index.vue
components/inspectionItem/index.vue
+1
-1
inspFirst.vue
pages/inspection/inspFirst.vue
+2
-2
inspectionContent.vue
pages/inspectionContent/inspectionContent.vue
+3
-3
login.vue
pages/login/login.vue
+1
-0
sampleTable.vue
pages/report/sampleTable.vue
+13
-6
shaftInspection.vue
pages/shaftInspection/shaftInspection.vue
+4
-4
synchronization.vue
pages/synchronization/synchronization.vue
+3
-3
dialog.vue
pages/synchronousManagement/dialog.vue
+28
-18
jd_bg.png
static/img/add-img/jd_bg.png
+0
-0
jd_table.png
static/img/add-img/jd_table.png
+0
-0
jf_table.png
static/img/add-img/jf_table.png
+0
-0
systemCofig.js
utils/systemCofig.js
+1
-1
没有找到文件。
App.vue
浏览文件 @
198631c3
...
@@ -58,7 +58,8 @@ export default {
...
@@ -58,7 +58,8 @@ export default {
},
},
onShow
:
function
()
{
onShow
:
function
()
{
const
now_user
=
uni
.
getStorageSync
(
"now_user"
)
||
{};
const
now_user
=
uni
.
getStorageSync
(
"now_user"
)
||
{};
if
(
now_use
.
user
)
{
console
.
log
(
"--now_user-"
,
now_user
)
if
(
now_user
.
user
)
{
this
.
$store
.
commit
(
"SET_USER"
,
now_user
);
this
.
$store
.
commit
(
"SET_USER"
,
now_user
);
}
}
this
.
init
();
this
.
init
();
...
...
components/inspectionItem/index.vue
浏览文件 @
198631c3
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
details
.
synchronization
==
0
?
"待同步"
:
"已同步"
details
.
synchronization
==
0
?
"待同步"
:
"已同步"
}}
</text>
}}
</text>
<view
v-if=
"details.isException ==
2
"
class=
"status alarm"
>
<view
v-if=
"details.isException ==
1
"
class=
"status alarm"
>
<text
class=
"iconfont icon-yichang1"
></text>
<text
class=
"iconfont icon-yichang1"
></text>
<text>
有异常
</text></view
<text>
有异常
</text></view
>
>
...
...
pages/inspection/inspFirst.vue
浏览文件 @
198631c3
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
init
()
{
init
()
{
this
.
formData
=
{
this
.
formData
=
{
inspectionType
:
"1"
,
inspectionType
:
"1"
,
inspectionCode
:
`JFXJ
${
moment
().
format
(
"yyyyMMDDhhmmss"
)}
`
,
inspectionCode
:
`JFXJ
${
moment
().
format
(
"yyyyMMDDhhmmss"
)}
${(
Math
.
floor
(
Math
.
random
()
*
900
)
+
100
)}
`
,
recordName
:
`
${
moment
().
format
(
"yyyyMMDD"
)}
-机房巡检记录`
,
recordName
:
`
${
moment
().
format
(
"yyyyMMDD"
)}
-机房巡检记录`
,
inspectionTime
:
moment
().
format
(
"yyyy-MM-DD HH:mm:ss"
),
inspectionTime
:
moment
().
format
(
"yyyy-MM-DD HH:mm:ss"
),
inspectionBy
:
this
.
$store
.
state
.
now_user
.
user
,
inspectionBy
:
this
.
$store
.
state
.
now_user
.
user
,
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
const
inspectionCode
=
`
${
const
inspectionCode
=
`
${
val
.
detail
.
value
==
1
?
"JFXJ"
:
"JDXJ"
val
.
detail
.
value
==
1
?
"JFXJ"
:
"JDXJ"
}${
moment
().
format
(
"yyyyMMDDhhmmss"
)}
`
;
}${
moment
().
format
(
"yyyyMMDDhhmmss"
)}
`
;
this
.
formData
.
inspectionCode
=
inspectionCode
;
this
.
formData
.
inspectionCode
=
inspectionCode
+
(
Math
.
floor
(
Math
.
random
()
*
900
)
+
100
)
;
},
},
back
()
{
back
()
{
...
...
pages/inspectionContent/inspectionContent.vue
浏览文件 @
198631c3
...
@@ -366,7 +366,7 @@ export default {
...
@@ -366,7 +366,7 @@ export default {
lookTable
()
{
lookTable
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/report/sampleTable"
,
url
:
"/pages/report/sampleTable
?isJF=1
"
,
});
});
},
},
...
@@ -427,8 +427,8 @@ export default {
...
@@ -427,8 +427,8 @@ export default {
});
});
const
isException
=
items
.
filter
((
item
)
=>
item
.
inspectionResult
>
0
)
const
isException
=
items
.
filter
((
item
)
=>
item
.
inspectionResult
>
0
)
.
length
.
length
?
2
?
1
:
1
;
:
0
;
return
{
return
{
...
temp
,
...
temp
,
...
...
pages/login/login.vue
浏览文件 @
198631c3
...
@@ -114,6 +114,7 @@ export default {
...
@@ -114,6 +114,7 @@ export default {
this
.
person
.
user
==
this
.
personList
[
key
].
user
&&
this
.
person
.
user
==
this
.
personList
[
key
].
user
&&
this
.
person
.
pd
==
this
.
personList
[
key
].
passWord
this
.
person
.
pd
==
this
.
personList
[
key
].
passWord
)
{
)
{
console
.
log
(
"-userInfo---"
,
userInfo
)
const
userInfo
=
this
.
personList
[
key
];
const
userInfo
=
this
.
personList
[
key
];
this
.
$store
.
commit
(
"SET_USER"
,
userInfo
);
this
.
$store
.
commit
(
"SET_USER"
,
userInfo
);
uni
.
setStorageSync
(
"now_user"
,
userInfo
);
uni
.
setStorageSync
(
"now_user"
,
userInfo
);
...
...
pages/report/sampleTable.vue
浏览文件 @
198631c3
...
@@ -18,21 +18,19 @@
...
@@ -18,21 +18,19 @@
<view
class=
"seize-seat"
>
</view>
<view
class=
"seize-seat"
>
</view>
<view
class=
"container box-shaow-box"
>
<view
class=
"container box-shaow-box"
>
<
!--
<view
class=
"image-item top-image"
>
<
view
v-if=
"isJF"
class=
"image-item top-image"
>
<image
<image
src=
"@/static/img/add-img/jf_table.png"
src=
"@/static/img/add-img/jf_table.png"
mode=
"widthFix"
mode=
"widthFix"
></image>
></image>
</view>
-->
</view>
<view
class=
"image-item top-image"
>
<view
v-else
class=
"image-item top-image"
>
<image
<image
src=
"@/static/img/add-img/jd_bg
.png"
src=
"@/static/img/add-img/jd_table
.png"
mode=
"widthFix"
mode=
"widthFix"
></image>
></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -40,10 +38,18 @@
...
@@ -40,10 +38,18 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
isJF
:
false
,
};
},
onNavigationBarButtonTap
(
val
)
{
onNavigationBarButtonTap
(
val
)
{
// console.log(val);
// console.log(val);
uni
.
navigateBack
();
uni
.
navigateBack
();
},
},
onLoad
(
options
)
{
this
.
isJF
=
options
.
isJF
==
1
;
},
methods
:
{
methods
:
{
checkImage
(
val
)
{
checkImage
(
val
)
{
let
res
=
""
;
let
res
=
""
;
...
@@ -90,6 +96,7 @@ export default {
...
@@ -90,6 +96,7 @@ export default {
justify-sampletable: space-between;
justify-sampletable: space-between;
.image-item {
.image-item {
text-align: center;
width: 60%;
width: 60%;
// height: 100%;
// height: 100%;
background-color: #ffffff;
background-color: #ffffff;
...
...
pages/shaftInspection/shaftInspection.vue
浏览文件 @
198631c3
...
@@ -286,7 +286,7 @@ export default {
...
@@ -286,7 +286,7 @@ export default {
},
},
lookTable
()
{
lookTable
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/report/sampleTable"
,
url
:
"/pages/report/sampleTable
?isJF=0
"
,
});
});
},
},
...
@@ -316,8 +316,8 @@ export default {
...
@@ -316,8 +316,8 @@ export default {
const
isException
=
((
tempForm
[
index
]
||
{}).
temp
||
[]).
filter
(
const
isException
=
((
tempForm
[
index
]
||
{}).
temp
||
[]).
filter
(
(
item
)
=>
item
.
inspectionResult
>
0
(
item
)
=>
item
.
inspectionResult
>
0
).
length
).
length
?
2
?
1
:
1
;
:
0
;
return
{
return
{
...
baseInfo
,
...
baseInfo
,
...
@@ -334,7 +334,7 @@ export default {
...
@@ -334,7 +334,7 @@ export default {
...
temp
[
0
],
...
temp
[
0
],
isSubmit
:
0
,
isSubmit
:
0
,
isException
:
temp
.
filter
((
item
)
=>
item
.
isException
>
1
).
length
?
2
:
1
,
// 总的数据
isException
:
temp
.
filter
((
item
)
=>
item
.
isException
>
1
).
length
?
1
:
0
,
// 总的数据
items
:
[],
items
:
[],
synchronization
:
0
,
// 是否导出过
synchronization
:
0
,
// 是否导出过
submitTime
:
moment
().
format
(
"yyyy-MM-DD"
),
// 记录提交时间
submitTime
:
moment
().
format
(
"yyyy-MM-DD"
),
// 记录提交时间
...
...
pages/synchronization/synchronization.vue
浏览文件 @
198631c3
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
}
}
let
timeStr
=
getDateTime
.
dateTimeStr
(
'y-m-d h:i'
)
let
timeStr
=
getDateTime
.
dateTimeStr
(
'y-m-d h:i'
)
let
operData
=
{
let
operData
=
{
name
:
this
.
$store
.
state
.
now_use
.
user
,
name
:
this
.
$store
.
state
.
now_use
r
.
user
,
level
:
'秘密'
,
level
:
'秘密'
,
user
:
this
.
$store
.
state
.
now_user
.
user
,
user
:
this
.
$store
.
state
.
now_user
.
user
,
module
:
moduleName
,
module
:
moduleName
,
...
@@ -336,7 +336,7 @@
...
@@ -336,7 +336,7 @@
}
}
let
timeStr
=
getDateTime
.
dateTimeStr
(
'y-m-d h:i'
)
let
timeStr
=
getDateTime
.
dateTimeStr
(
'y-m-d h:i'
)
let
operData
=
{
let
operData
=
{
name
:
this
.
$store
.
state
.
now_use
.
user
,
name
:
this
.
$store
.
state
.
now_use
r
.
user
,
level
:
'秘密'
,
level
:
'秘密'
,
user
:
this
.
$store
.
state
.
now_user
.
user
,
user
:
this
.
$store
.
state
.
now_user
.
user
,
module
:
moduleName
,
module
:
moduleName
,
...
@@ -371,7 +371,7 @@
...
@@ -371,7 +371,7 @@
// }
// }
// let timeStr = getDateTime.dateTimeStr('y-m-d h:i')
// let timeStr = getDateTime.dateTimeStr('y-m-d h:i')
// let operData = {
// let operData = {
// name: this.$store.state.now_use.user,
// name: this.$store.state.now_use
r
.user,
// level: '秘密',
// level: '秘密',
// user: this.$store.state.now_user.user,
// user: this.$store.state.now_user.user,
// module: moduleName,
// module: moduleName,
...
...
pages/synchronousManagement/dialog.vue
浏览文件 @
198631c3
...
@@ -114,6 +114,8 @@ export default {
...
@@ -114,6 +114,8 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
console
.
log
(
"---文件删除成功----"
);
console
.
log
(
"---文件删除成功----"
);
console
.
log
(
"coverData----"
,
this
.
$store
.
state
.
now_user
.
user
);
this
.
coverData
();
this
.
coverData
();
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
...
@@ -128,15 +130,13 @@ export default {
...
@@ -128,15 +130,13 @@ export default {
},
},
// 处理数据
// 处理数据
coverData
()
{
coverData
()
{
const
userName
=
this
.
$store
.
state
.
now_use
.
user
;
const
userName
=
this
.
$store
.
state
.
now_use
r
.
user
;
const
notSynchronizationList
=
this
.
notSynchronizationList
;
const
notSynchronizationList
=
this
.
notSynchronizationList
;
const
allList
=
this
.
allList
;
const
allList
=
this
.
allList
;
// console.log("-同步数据--", notSynchronizationList);
// console.log("-同步数据--", notSynchronizationList);
let
timeStr
=
moment
().
format
(
"yyyy-MM-DD_hh:mm:ss"
);
let
timeStr
=
moment
().
format
(
"yyyy_MM_DD_hh_mm_ss"
);
let
JFXJ_DATA_FILE_NAME
=
`
${
userName
}
_JFXJ_
${
timeStr
}
.txt`
;
let
JDXJ_DATA_FILE_NAME
=
`
${
userName
}
_JDXJ_
${
timeStr
}
.txt`
;
const
JFXJ_DATA
=
notSynchronizationList
const
JFXJ_DATA
=
notSynchronizationList
.
filter
((
item
)
=>
item
.
inspectionType
==
1
)
.
filter
((
item
)
=>
item
.
inspectionType
==
1
)
...
@@ -147,12 +147,11 @@ export default {
...
@@ -147,12 +147,11 @@ export default {
};
};
});
// 机房数据类型是 1
});
// 机房数据类型是 1
const
JDXJ_DATA
=
notSynchronizationList
.
filter
(
const
JDXJ_DATA
=
notSynchronizationList
(
item
)
=>
item
.
inspectionType
==
2
.
filter
((
item
)
=>
item
.
inspectionType
==
2
)
).
map
(
item
=>
{
.
map
((
item
)
=>
{
return
item
[
item
.
inspectionCode
]
return
item
[
item
.
inspectionCode
];
})
// 井道数据类型是 2
});
// 井道数据类型是 2
// console.log("---源数据", [...JDXJ_DATA,...JFXJ_DATA] )
// console.log("---源数据", [...JDXJ_DATA,...JFXJ_DATA] )
...
@@ -160,11 +159,21 @@ export default {
...
@@ -160,11 +159,21 @@ export default {
// return console.log("--- [...JDXJ_DATA,...JFXJ_DATA]", fileContent )
// return console.log("--- [...JDXJ_DATA,...JFXJ_DATA]", fileContent )
this
.
loading
=
true
;
this
.
loading
=
true
;
const
tmepList
=
[];
Promise
.
all
([
if
(
JFXJ_DATA
.
length
)
{
this
.
packedData
(
JFXJ_DATA
,
JFXJ_DATA_FILE_NAME
),
let
JFXJ_DATA_FILE_NAME
=
`
${
userName
}
_JFXJ_
${
timeStr
}
.txt`
;
this
.
packedData
(
JDXJ_DATA
,
JDXJ_DATA_FILE_NAME
),
// console.log("---机房数据===", JFXJ_DATA);
])
tmepList
.
push
(
this
.
packedData
(
JFXJ_DATA
,
JFXJ_DATA_FILE_NAME
));
}
JDXJ_DATA
.
forEach
((
item
,
index
)
=>
{
let
JDXJ_DATA_FILE_NAME
=
`
${
userName
}
_JDXJ_
${
timeStr
}
_
${
index
}
.txt`
;
// console.log("---井道数据===", item);
tmepList
.
push
(
this
.
packedData
(
item
,
JDXJ_DATA_FILE_NAME
));
});
Promise
.
all
(
tmepList
)
.
then
(()
=>
{
.
then
(()
=>
{
// 更新巡检数据状态
// 更新巡检数据状态
const
synchronizationUids
=
notSynchronizationList
.
map
((
item
)
=>
{
const
synchronizationUids
=
notSynchronizationList
.
map
((
item
)
=>
{
...
@@ -185,7 +194,6 @@ export default {
...
@@ -185,7 +194,6 @@ export default {
}
}
});
});
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
allList
);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
allList
);
console
.
log
(
"---userData---"
,
userData
);
const
keys
=
Object
.
keys
(
userData
);
const
keys
=
Object
.
keys
(
userData
);
const
promiseArr
=
keys
.
map
((
key
)
=>
{
const
promiseArr
=
keys
.
map
((
key
)
=>
{
...
@@ -246,6 +254,7 @@ export default {
...
@@ -246,6 +254,7 @@ export default {
// 打包文件
// 打包文件
packedData
(
content
,
fileName
)
{
packedData
(
content
,
fileName
)
{
console
.
log
(
"--------发送数据内容----"
,
fileName
,
content
);
const
fileContent
=
setSm2
(
content
);
const
fileContent
=
setSm2
(
content
);
return
createFileWithPlusIO
(
return
createFileWithPlusIO
(
...
@@ -258,16 +267,17 @@ export default {
...
@@ -258,16 +267,17 @@ export default {
// 更新最近一次同步时间
// 更新最近一次同步时间
updateSysTime
()
{
updateSysTime
()
{
getUserList
().
then
((
personList
)
=>
{
getUserList
().
then
((
personList
)
=>
{
const
now_user
=
this
.
$store
.
state
.
now_user
;
const
now_user
=
this
.
$store
.
state
.
now_user
;
const
key
=
personList
.
findIndex
(
item
=>
item
.
userId
==
now_user
.
userId
)
const
key
=
personList
.
findIndex
(
(
item
)
=>
item
.
userId
==
now_user
.
userId
);
// 更新用户同步时间
// 更新用户同步时间
const
userInfo
=
personList
[
key
];
const
userInfo
=
personList
[
key
];
const
LastSynchronizationTime
=
moment
().
format
(
"yyyy-MM-DD HH:mm"
);
const
LastSynchronizationTime
=
moment
().
format
(
"yyyy-MM-DD HH:mm"
);
personList
[
key
].
LastSynchronizationTime
=
LastSynchronizationTime
;
personList
[
key
].
LastSynchronizationTime
=
LastSynchronizationTime
;
userInfo
.
LastSynchronizationTime
=
LastSynchronizationTime
;
userInfo
.
LastSynchronizationTime
=
LastSynchronizationTime
;
console
.
log
(
"---更新最近一次同步时间--"
,
userInfo
)
console
.
log
(
"---更新最近一次同步时间--"
,
userInfo
)
;
this
.
$store
.
commit
(
"SET_USER"
,
userInfo
);
this
.
$store
.
commit
(
"SET_USER"
,
userInfo
);
uni
.
setStorageSync
(
"last_time"
,
userInfo
.
LastSynchronizationTime
||
""
);
uni
.
setStorageSync
(
"last_time"
,
userInfo
.
LastSynchronizationTime
||
""
);
...
...
static/img/add-img/jd_bg.png
deleted
100644 → 0
浏览文件 @
e0881957
58.8 KB
static/img/add-img/jd_table.png
查看替换文件 @
e0881957
浏览文件 @
198631c3
26.5 KB
|
W:
|
H:
797.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/img/add-img/jf_table.png
查看替换文件 @
e0881957
浏览文件 @
198631c3
差异被折叠。
点击展开。
utils/systemCofig.js
浏览文件 @
198631c3
...
@@ -68,7 +68,7 @@ export const USER_LiST = [
...
@@ -68,7 +68,7 @@ export const USER_LiST = [
LastSynchronizationTime
:
""
,
// 上次同步时间
LastSynchronizationTime
:
""
,
// 上次同步时间
},
},
{
{
userId
:
2
,
// 有用
userId
:
2
62
,
// 有用
user
:
"test1"
,
// 有用 谁创建,谁有权限编辑和删除
user
:
"test1"
,
// 有用 谁创建,谁有权限编辑和删除
passWord
:
"JF123456"
,
// 有用
passWord
:
"JF123456"
,
// 有用
roleName
:
"巡检员"
,
// 有用
roleName
:
"巡检员"
,
// 有用
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论