diff --git a/api/app/lib/controllers/file/index.js b/api/app/lib/controllers/file/index.js
index 8870da3e..d0b5b3a3 100644
--- a/api/app/lib/controllers/file/index.js
+++ b/api/app/lib/controllers/file/index.js
@@ -167,6 +167,10 @@ async function getFileList(ctx, next) {
queryOptions.roadId = roadId
}
+ rslt.road = await models.FileRoad.findOne({
+ where: { rId: roadId }
+ })
+
rslt.type = await models.FileType.findOne({
where: { fId }
})
@@ -179,6 +183,9 @@ async function getFileList(ctx, next) {
['id', 'DESC']
]
})
+
+
+
rslt.counter = await models.Files.count({
where: queryOptions
})
diff --git a/weapp/src/config.js b/weapp/src/config.js
index 9648c0ca..d2cb8303 100644
--- a/weapp/src/config.js
+++ b/weapp/src/config.js
@@ -8,8 +8,8 @@ const baseConfig = {
};
const development = {
- baseUrl: 'http://221.230.55.29:31919',
- // baseUrl: 'https://c5a6-117-90-37-10.ap.ngrok.io',
+ // baseUrl: 'http://221.230.55.29:31919',
+ baseUrl: 'https://c5a6-117-90-37-10.ap.ngrok.io',
// webUrl: 'https://smartwater.anxinyun.cn',
// pcode: 'fce4afe2-5b6a-408a-ab18-a2afa7fa027c',
imgUrl: 'http://test.resources.anxinyun.cn/',
diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx
index d756cb2f..b4cbdbf5 100644
--- a/weapp/src/packages/patrol/index.jsx
+++ b/weapp/src/packages/patrol/index.jsx
@@ -34,6 +34,12 @@ const Index = () => {
const [sourceRoadStartSel, setSourceRoadStartSel] = useState([])
const [sourceRoadEndSel, setSourceRoadEndSel] = useState([])
+ const prjType = [
+ { text: '道路', value: 'road'},
+ { text: '桥梁', value: 'bridge'},
+ { text: '涵洞', value: 'culvert'},
+ { text: '其他', value: 'other'},
+ ]
const prjTypeSelector = ['道路', '桥梁', '涵洞', '其他']
const [roadStartSel, setRoadStartSel] = useState([])
const [roadEndSel, setRoadEndSel] = useState([])
@@ -60,8 +66,15 @@ const Index = () => {
Taro.hideLoading()
if (res.statusCode == 200 || res.statusCode == 204) {
const { data } = res
+ let showPrjType = ''
+ for (const item of prjType) {
+ if (item.value === data.projectType) {
+ showPrjType = item.text
+ break
+ }
+ }
setReportType(data.reportType)
- setProjectType(data.projectType)
+ setProjectType(showPrjType || data.projectType)
setRoad(data.road)
setRoadSectionStart(data.roadSectionStart)
setRoadSectionEnd(data.roadSectionEnd)
@@ -118,6 +131,7 @@ const Index = () => {
})
}
}, [])
+
useEffect(() => {
setRoadStartSel(sourceRoadStartSel)
setRoadEndSel(sourceRoadEndSel)
@@ -148,9 +162,11 @@ const Index = () => {
Taro.showToast({ title: '工程类型错误', icon: 'none' })
return
}
+ const reportProjectType = prjType[prjTypeSelector.indexOf(projectType)].value
+
let data = {
reportType,
- projectType,
+ projectType: reportProjectType,
road,
roadSectionStart,
roadSectionEnd,
diff --git a/weapp/src/packages/patrolView/index.jsx b/weapp/src/packages/patrolView/index.jsx
index a8beeffb..fe60a993 100644
--- a/weapp/src/packages/patrolView/index.jsx
+++ b/weapp/src/packages/patrolView/index.jsx
@@ -84,6 +84,8 @@ function Index() {
})
useDidShow(() => {
+ setPage(0)
+ setNum(Math.random())
let refresh = Taro.getStorageSync('refresh'); // 返回列表需要刷新
if (refresh) {
Taro.removeStorageSync('refresh'); // 返回列表需要刷新
diff --git a/web/client/src/sections/fillion/actions/infor.js b/web/client/src/sections/fillion/actions/infor.js
index dd4d0e29..83837a88 100644
--- a/web/client/src/sections/fillion/actions/infor.js
+++ b/web/client/src/sections/fillion/actions/infor.js
@@ -41,7 +41,7 @@ export function putOperaTional (query) {
data: query,
actionType: 'PUT_OPERA_TIONAL',
url: ApiTable.putOperaTional,
- msg: { error: '获取车辆信息失败' },
+ msg: { option: '编辑车辆信息' },
});
}
diff --git a/web/client/src/sections/fillion/components/bridgeTable.js b/web/client/src/sections/fillion/components/bridgeTable.js
index 2fcaf7d8..8a2cd2cb 100644
--- a/web/client/src/sections/fillion/components/bridgeTable.js
+++ b/web/client/src/sections/fillion/components/bridgeTable.js
@@ -1501,7 +1501,7 @@ const BrideTable = (props) => {
dataIndex: 'creatTime',
valueType: 'dateTimeRange',
hideInSearch: true,
- width: 120,
+ width: 160,
fixed: 'right',
render: (dom, record) => {
return