Browse Source

bug修复

master
aBin 3 years ago
parent
commit
bb28e16334
  1. 10
      .env.development
  2. 10
      .env.production
  3. 1
      src/App.vue
  4. 5
      src/components/PatientList/PatientList.vue
  5. 4
      src/pages.json
  6. 7
      src/pages/inner/inner.vue
  7. 6
      src/pages/patientLine/patientLine.vue

10
.env.development

@ -1,8 +1,8 @@
VUE_APP_NODE_ENV=development
VUE_APP_BASE_URL=https://www.tall.wiki
VUE_APP_API_URL=https://www.tall.wiki/gateway
VUE_APP_MSG_URL=ws://www.tall.wiki/websocket/message/v4.0/ws
VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall
VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics
VUE_APP_BASE_URL=https://test.tall.wiki
VUE_APP_API_URL=https://test.tall.wiki/gateway
VUE_APP_MSG_URL=ws://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_PROJECT_PATH=https://test.tall.wiki/carBasicTall
VUE_APP_QUESTION_PATH=https://test.tall.wiki/carbasics
VUE_APP_VERSION=v3.1.0
VUE_APP_PUBLIC_PATH=/carBasicCalendar/

10
.env.production

@ -1,8 +1,8 @@
VUE_APP_NODE_ENV=production
VUE_APP_BASE_URL=https://www.tall.wiki
VUE_APP_API_URL=https://www.tall.wiki/gateway
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws
VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall
VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics
VUE_APP_BASE_URL=https://test.tall.wiki
VUE_APP_API_URL=https://test.tall.wiki/gateway
VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_PROJECT_PATH=https://test.tall.wiki/carBasicTall
VUE_APP_QUESTION_PATH=https://test.tall.wiki/carbasics
VUE_APP_VERSION=v3.1.0
VUE_APP_PUBLIC_PATH=/carBasicCalendar/

1
src/App.vue

@ -5,7 +5,6 @@ export default {
async onLaunch(options) {
// const obj = { title: 'Typhoneye' };
// uni.showShareMenu(obj);
console.log('options: ', options);
this.checkNetwork(); //
this.getSystemInfo(); //
this.autoUpdate();

5
src/components/PatientList/PatientList.vue

@ -198,7 +198,6 @@ export default {
},
// 退
quitTips(id) {
console.log('id: ', id);
this.quitId = id;
this.show1 = true;
},
@ -207,7 +206,6 @@ export default {
try {
const param = { firstAidId: this.quitId, projectId: this.projectId };
const res = await uni.$u.api.quitAid(param);
console.log('res: ', res);
this.getData(true);
this.visible1 = false;
} catch (error) {
@ -226,7 +224,6 @@ export default {
if (!(recordUserId - 0)) {
this.changeShow(firstAidId, caseType, demonstrate);
} else {
console.log('firstAidId: ', firstAidId);
this.setFirstAidId(firstAidId);
this.setDetailValueType(demonstrate);
// this.$router.push(`/patient-line`);
@ -311,7 +308,6 @@ export default {
try {
const param = { firstAidId: this.delFirstAidId };
const res = await this.$u.api.delDemo(param);
console.log('res: ', res);
this.getData(true);
} catch (error) {
console.log('error: ', error);
@ -345,7 +341,6 @@ export default {
}
this.total = data.page.total;
this.role = data.role;
console.log('this.role: ', this.role);
} else {
this.$t.ui.showToast('没有更多数据');
}

4
src/pages.json

@ -58,7 +58,7 @@
{
"path": "pages/inner/inner",
"style": {
"navigationBarTitleText": "信息录入",
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
@ -77,7 +77,7 @@
{
"path": "pages/outside/outside",
"style": {
"navigationBarTitleText": "信息录入"
"navigationBarTitleText": ""
}
},
{

7
src/pages/inner/inner.vue

@ -303,7 +303,12 @@ export default {
},
// --
onLoad() {
onLoad(query) {
if (query.name) {
uni.setNavigationBarTitle({
title: query.name,
});
}
this.type = this.InputCode;
// if (this.type === 'RYPG') {
// this.afterStr = '';

6
src/pages/patientLine/patientLine.vue

@ -12,7 +12,7 @@
<!-- {{ $moment(time).format('MM月DD日') }} -->
{{ item.time }}
</div>
<div class="flex mt-2" style="height: 50px" @click="jump(item.code, item.path)">
<div class="flex mt-2" style="height: 50px" @click="jump(item.code, item.path, item.name)">
<div class="name-box flex items-center time-box" style="padding-left: 16px; position: relative">
{{ item.name }}
<u-icon name="arrow-right" size="28" color="#303133" style="position: absolute; right: 16px" />
@ -115,9 +115,9 @@ export default {
},
methods: {
...mapMutations('carbasics', ['setInputCode']),
jump(code, path) {
jump(code, path, name) {
this.setInputCode(code ? code : 'RYPG');
uni.navigateTo({ url: path });
uni.navigateTo({ url: `${path}?name=${name}` });
},
},
watch: {},

Loading…
Cancel
Save