Commit b56bb97b38b9021dd9f71f2a85fb538e7dcf5dab

Authored by 刘淇
1 parent 20f33942

首次加载

config/app.js
1 1 // 开发者环境:开|关
2   -const SWITCH_DEVELOPMENT = true
  2 +const SWITCH_DEVELOPMENT = false
3 3  
4 4 /** S 是否H5端 **/
5 5 // #ifdef H5
... ... @@ -20,7 +20,7 @@ const baseURLMap = {
20 20 // 生产环境
21 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 33 // export const uploadURL = baseURL + '/ylapi/yuanl/common/upload'
34 34 export const uploadURL = baseURL + '/ylapi/yuanl/common/upload'
35 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 39 // https://yuanlin.jichengshanshui.com.cn:8987/yuanlin/
39 40 \ No newline at end of file
... ...
pages.json
1 1 {
2 2 "pages": [
3 3 {
4   - "path": "pages/work/index",
  4 + "path": "pages/index",
5 5 "style": {
6   - "navigationBarTitleText": "工作台",
  6 + "navigationBarTitleText": "首页",
7 7 "navigationStyle": "custom"
8 8 }
9 9 },
10 10 {
11   - "path": "pages/index",
  11 + "path": "pages/work/index",
12 12 "style": {
13   - "navigationBarTitleText": "首页",
  13 + "navigationBarTitleText": "工作台",
14 14 "navigationStyle": "custom"
15 15 }
16 16 },
17 17  
  18 +
18 19 {
19 20 "path": "pages/mine/index",
20 21 "style": {
... ...
pages/index.vue
... ... @@ -61,7 +61,7 @@
61 61 </view>
62 62 </view>
63 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 65 </view>
66 66 </template>
67 67  
... ... @@ -140,7 +140,7 @@ export default {
140 140 },
141 141 onLoad() {
142 142 this.getUserInfo()
143   - this.upgradation()
  143 + // this.upgradation()
144 144 this.getSummary(this.summaryDate)
145 145 this.getSummaryType(this.summaryType)
146 146 this.getStaffSummary(this.staffSummary)
... ...
pages/work/daily/maintain/subList.vue
1 1 <template>
2 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 4 <view class="fs-flex__between">
5 5 <view>{{item.planNo}}({{item.currentPlanNum}})</view>
6 6 <view>完成比例 <tui-text :text="item.totalFinishPercent" type="danger"></tui-text>%</view>
... ...
pages/work/daily/maintain/water.vue
... ... @@ -213,6 +213,7 @@
213 213 },
214 214 // 提交记录
215 215 onSubmit() {
  216 + if (this.isLoading) return;
216 217 this.$refs.form.validate(this.formData, rules).then(res => {
217 218 if (!res.isPass) {
218 219 uni.$tui.toast(res.errorMsg)
... ... @@ -239,17 +240,7 @@
239 240 }
240 241 }).then(res => {
241 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 244 }).finally(() => {
254 245 this.isLoading = false
255 246 })
... ...
pages/work/daily/reporting.vue
... ... @@ -357,9 +357,6 @@ export default {
357 357 return
358 358 }
359 359 this.isLoading = true
360   -
361   -
362   -
363 360 apiCaseAdd({data:{...this.formData}}).then(res => {
364 361 uni.$tui.toast('提交成功')
365 362 uni.navigateBack()
... ...
subPackages/treePage/addTree.vue
... ... @@ -193,7 +193,7 @@
193 193 <view style="height: 60px;width: 100%"></view>
194 194  
195 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 197 </view>
198 198 <tui-picker :show="show" :pickerData="treeOwnershipData" textField="dictLabel" valueField="dictValue"
199 199 @hide="pickerHide" @change="pickerChange">
... ... @@ -276,6 +276,7 @@ export default {
276 276 treeOwnershipData: [],
277 277 treeLevelData: [], // 级别
278 278 show: false,
  279 + loadingFlag:false,
279 280 levelshow: false,
280 281 //仅对部分数据进行收集演示
281 282 formData: {
... ... @@ -385,6 +386,7 @@ export default {
385 386 this.formData.treeleveltext = e.dictLabel
386 387 },
387 388 submit() {
  389 + if(this.loadingFlag) return;
388 390  
389 391 // 3. 打印提交时的数据
390 392 console.log("提交时treeImgList:", this.formData.treeImgList);
... ... @@ -398,19 +400,20 @@ export default {
398 400 if (res.isPass) {
399 401 console.log(this.formData)
400 402 console.log('校验通过!')
401   -
  403 + this.loadingFlag = true
402 404 this.formData.maintainunit = this.userInfo.belongCompanyId
403 405 // addTree()
404 406 addTree({data: {...this.formData}}).then(res => {
405 407 console.log(res)
406 408 if (res.code == '200') {
407 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 411 uni.redirectTo({
411 412 url: '/subPackages/treePage/treeFiles' // 目标页面路径
412 413 });
413 414 }
  415 + }).finally(() => {
  416 + this.loadingFlag = false
414 417 })
415 418 } else {
416 419 console.log(res)
... ...