Commit b56bb97b38b9021dd9f71f2a85fb538e7dcf5dab
1 parent
20f33942
首次加载
Showing
7 changed files
with
21 additions
and
28 deletions
config/app.js
1 | // 开发者环境:开|关 | 1 | // 开发者环境:开|关 |
2 | -const SWITCH_DEVELOPMENT = true | 2 | +const SWITCH_DEVELOPMENT = false |
3 | 3 | ||
4 | /** S 是否H5端 **/ | 4 | /** S 是否H5端 **/ |
5 | // #ifdef H5 | 5 | // #ifdef H5 |
@@ -20,7 +20,7 @@ const baseURLMap = { | @@ -20,7 +20,7 @@ const baseURLMap = { | ||
20 | // 生产环境 | 20 | // 生产环境 |
21 | // production: IS_H5 ? location.origin : 'http://125.35.93.94:8986' | 21 | // production: IS_H5 ? location.origin : 'http://125.35.93.94:8986' |
22 | // 生产环境 | 22 | // 生产环境 |
23 | - production: IS_H5 ? location.origin : 'https://test.jichengshanshui.com.cn:28303' | 23 | + production: IS_H5 ? location.origin : 'https://yuanlin.jichengshanshui.com.cn:8987' |
24 | } | 24 | } |
25 | 25 | ||
26 | 26 | ||
@@ -33,6 +33,7 @@ export const version = '1.0.6' | @@ -33,6 +33,7 @@ export const version = '1.0.6' | ||
33 | // export const uploadURL = baseURL + '/ylapi/yuanl/common/upload' | 33 | // export const uploadURL = baseURL + '/ylapi/yuanl/common/upload' |
34 | export const uploadURL = baseURL + '/ylapi/yuanl/common/upload' | 34 | export const uploadURL = baseURL + '/ylapi/yuanl/common/upload' |
35 | // export const OSSURL = baseURL + '/yuanlin/' | 35 | // export const OSSURL = baseURL + '/yuanlin/' |
36 | -export const OSSURL = 'https://test.jichengshanshui.com.cn:28310/yuanlin/' | 36 | +export const OSSURL = 'https://yuanlin.jichengshanshui.com.cn:8987/yuanlin/' |
37 | 37 | ||
38 | +// https://img.jichengshanshui.com.cn:28207 | ||
38 | // https://yuanlin.jichengshanshui.com.cn:8987/yuanlin/ | 39 | // https://yuanlin.jichengshanshui.com.cn:8987/yuanlin/ |
39 | \ No newline at end of file | 40 | \ No newline at end of file |
pages.json
1 | { | 1 | { |
2 | "pages": [ | 2 | "pages": [ |
3 | { | 3 | { |
4 | - "path": "pages/work/index", | 4 | + "path": "pages/index", |
5 | "style": { | 5 | "style": { |
6 | - "navigationBarTitleText": "工作台", | 6 | + "navigationBarTitleText": "首页", |
7 | "navigationStyle": "custom" | 7 | "navigationStyle": "custom" |
8 | } | 8 | } |
9 | }, | 9 | }, |
10 | { | 10 | { |
11 | - "path": "pages/index", | 11 | + "path": "pages/work/index", |
12 | "style": { | 12 | "style": { |
13 | - "navigationBarTitleText": "首页", | 13 | + "navigationBarTitleText": "工作台", |
14 | "navigationStyle": "custom" | 14 | "navigationStyle": "custom" |
15 | } | 15 | } |
16 | }, | 16 | }, |
17 | 17 | ||
18 | + | ||
18 | { | 19 | { |
19 | "path": "pages/mine/index", | 20 | "path": "pages/mine/index", |
20 | "style": { | 21 | "style": { |
pages/index.vue
@@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
61 | </view> | 61 | </view> |
62 | </view> | 62 | </view> |
63 | <tui-white-space :height="30"></tui-white-space> | 63 | <tui-white-space :height="30"></tui-white-space> |
64 | - <tui-modal :show="showModal" @click="handleModal" @cancel="hideModal" content="发现新版本,是否升级到最新版本?"></tui-modal> | 64 | +<!-- <tui-modal :show="showModal" @click="handleModal" @cancel="hideModal" content="发现新版本,是否升级到最新版本?"></tui-modal>--> |
65 | </view> | 65 | </view> |
66 | </template> | 66 | </template> |
67 | 67 | ||
@@ -140,7 +140,7 @@ export default { | @@ -140,7 +140,7 @@ export default { | ||
140 | }, | 140 | }, |
141 | onLoad() { | 141 | onLoad() { |
142 | this.getUserInfo() | 142 | this.getUserInfo() |
143 | - this.upgradation() | 143 | + // this.upgradation() |
144 | this.getSummary(this.summaryDate) | 144 | this.getSummary(this.summaryDate) |
145 | this.getSummaryType(this.summaryType) | 145 | this.getSummaryType(this.summaryType) |
146 | this.getStaffSummary(this.staffSummary) | 146 | this.getStaffSummary(this.staffSummary) |
pages/work/daily/maintain/subList.vue
1 | <template> | 1 | <template> |
2 | <view class="container"> | 2 | <view class="container"> |
3 | - <tui-list-cell :hover="false" v-for="(item, index) in dataList"> | 3 | + <tui-list-cell :hover="false" v-for="(item, index) in dataList" :auto="false"> |
4 | <view class="fs-flex__between"> | 4 | <view class="fs-flex__between"> |
5 | <view>{{item.planNo}}({{item.currentPlanNum}})</view> | 5 | <view>{{item.planNo}}({{item.currentPlanNum}})</view> |
6 | <view>完成比例 <tui-text :text="item.totalFinishPercent" type="danger"></tui-text>%</view> | 6 | <view>完成比例 <tui-text :text="item.totalFinishPercent" type="danger"></tui-text>%</view> |
pages/work/daily/maintain/water.vue
@@ -213,6 +213,7 @@ | @@ -213,6 +213,7 @@ | ||
213 | }, | 213 | }, |
214 | // 提交记录 | 214 | // 提交记录 |
215 | onSubmit() { | 215 | onSubmit() { |
216 | + if (this.isLoading) return; | ||
216 | this.$refs.form.validate(this.formData, rules).then(res => { | 217 | this.$refs.form.validate(this.formData, rules).then(res => { |
217 | if (!res.isPass) { | 218 | if (!res.isPass) { |
218 | uni.$tui.toast(res.errorMsg) | 219 | uni.$tui.toast(res.errorMsg) |
@@ -239,17 +240,7 @@ | @@ -239,17 +240,7 @@ | ||
239 | } | 240 | } |
240 | }).then(res => { | 241 | }).then(res => { |
241 | uni.$tui.toast('提交成功') | 242 | uni.$tui.toast('提交成功') |
242 | - const pages = getCurrentPages() | ||
243 | - const beforePage = pages[pages.length - 2] | ||
244 | - const planNo = this.formData.maintainNo | ||
245 | - setTimeout(() => { | ||
246 | - uni.navigateBack({ | ||
247 | - success() { | ||
248 | - // 刷新页面数据 | ||
249 | - beforePage.$vm.getList(planNo) | ||
250 | - } | ||
251 | - }) | ||
252 | - }, 1500) | 243 | + uni.navigateBack() |
253 | }).finally(() => { | 244 | }).finally(() => { |
254 | this.isLoading = false | 245 | this.isLoading = false |
255 | }) | 246 | }) |
pages/work/daily/reporting.vue
@@ -357,9 +357,6 @@ export default { | @@ -357,9 +357,6 @@ export default { | ||
357 | return | 357 | return |
358 | } | 358 | } |
359 | this.isLoading = true | 359 | this.isLoading = true |
360 | - | ||
361 | - | ||
362 | - | ||
363 | apiCaseAdd({data:{...this.formData}}).then(res => { | 360 | apiCaseAdd({data:{...this.formData}}).then(res => { |
364 | uni.$tui.toast('提交成功') | 361 | uni.$tui.toast('提交成功') |
365 | uni.navigateBack() | 362 | uni.navigateBack() |
subPackages/treePage/addTree.vue
@@ -193,7 +193,7 @@ | @@ -193,7 +193,7 @@ | ||
193 | <view style="height: 60px;width: 100%"></view> | 193 | <view style="height: 60px;width: 100%"></view> |
194 | 194 | ||
195 | <view class="tui-btn__box"> | 195 | <view class="tui-btn__box"> |
196 | - <tui-button bold @click="submit">提交</tui-button> | 196 | + <tui-button bold @click="submit" :loading="loadingFlag">提交</tui-button> |
197 | </view> | 197 | </view> |
198 | <tui-picker :show="show" :pickerData="treeOwnershipData" textField="dictLabel" valueField="dictValue" | 198 | <tui-picker :show="show" :pickerData="treeOwnershipData" textField="dictLabel" valueField="dictValue" |
199 | @hide="pickerHide" @change="pickerChange"> | 199 | @hide="pickerHide" @change="pickerChange"> |
@@ -276,6 +276,7 @@ export default { | @@ -276,6 +276,7 @@ export default { | ||
276 | treeOwnershipData: [], | 276 | treeOwnershipData: [], |
277 | treeLevelData: [], // 级别 | 277 | treeLevelData: [], // 级别 |
278 | show: false, | 278 | show: false, |
279 | + loadingFlag:false, | ||
279 | levelshow: false, | 280 | levelshow: false, |
280 | //仅对部分数据进行收集演示 | 281 | //仅对部分数据进行收集演示 |
281 | formData: { | 282 | formData: { |
@@ -385,6 +386,7 @@ export default { | @@ -385,6 +386,7 @@ export default { | ||
385 | this.formData.treeleveltext = e.dictLabel | 386 | this.formData.treeleveltext = e.dictLabel |
386 | }, | 387 | }, |
387 | submit() { | 388 | submit() { |
389 | + if(this.loadingFlag) return; | ||
388 | 390 | ||
389 | // 3. 打印提交时的数据 | 391 | // 3. 打印提交时的数据 |
390 | console.log("提交时treeImgList:", this.formData.treeImgList); | 392 | console.log("提交时treeImgList:", this.formData.treeImgList); |
@@ -398,19 +400,20 @@ export default { | @@ -398,19 +400,20 @@ export default { | ||
398 | if (res.isPass) { | 400 | if (res.isPass) { |
399 | console.log(this.formData) | 401 | console.log(this.formData) |
400 | console.log('校验通过!') | 402 | console.log('校验通过!') |
401 | - | 403 | + this.loadingFlag = true |
402 | this.formData.maintainunit = this.userInfo.belongCompanyId | 404 | this.formData.maintainunit = this.userInfo.belongCompanyId |
403 | // addTree() | 405 | // addTree() |
404 | addTree({data: {...this.formData}}).then(res => { | 406 | addTree({data: {...this.formData}}).then(res => { |
405 | console.log(res) | 407 | console.log(res) |
406 | if (res.code == '200') { | 408 | if (res.code == '200') { |
407 | uni.showToast({title: "新增成功", icon: "none"}); | 409 | uni.showToast({title: "新增成功", icon: "none"}); |
408 | - // uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`) | ||
409 | - // uni.$tui.href(`/subPackages/treePage/treeFiles`) | 410 | + |
410 | uni.redirectTo({ | 411 | uni.redirectTo({ |
411 | url: '/subPackages/treePage/treeFiles' // 目标页面路径 | 412 | url: '/subPackages/treePage/treeFiles' // 目标页面路径 |
412 | }); | 413 | }); |
413 | } | 414 | } |
415 | + }).finally(() => { | ||
416 | + this.loadingFlag = false | ||
414 | }) | 417 | }) |
415 | } else { | 418 | } else { |
416 | console.log(res) | 419 | console.log(res) |