61 changed files with 2081 additions and 457 deletions
After Width: | Height: | Size: 11 KiB |
@ -1,44 +1,46 @@
@@ -1,44 +1,46 @@
|
||||
<view class="page"> |
||||
<view class="header"> |
||||
<view class="range"> |
||||
<picker class="picker" mode="date"> |
||||
<picker class="picker" mode="date" end="{{endDate}}" model:value="{{beginDate}}" bind:change="handleChange"> |
||||
<view class="picker-content"> |
||||
<view class="content" data-place="开始时间"></view> |
||||
<view class="content" data-place="开始时间">{{beginDate}}</view> |
||||
<view class="tril"></view> |
||||
</view> |
||||
</picker> |
||||
至 |
||||
<picker class="picker" mode="date"> |
||||
<picker class="picker" mode="date" start="{{beginDate}}" model:value="{{endDate}}" bind:change="handleChange"> |
||||
<view class="picker-content"> |
||||
<view class="content" data-place="结束时间"></view> |
||||
<view class="content" data-place="结束时间">{{endDate}}</view> |
||||
<view class="tril"></view> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="list"> |
||||
<view class="list-item" bind:tap="handleEdit"> |
||||
<view class="list-item" wx:for="{{list}}" wx:key="recordId" bind:tap="handleEdit" data-id="{{item.recordId}}"> |
||||
<view class="aside"> |
||||
<view class="order"></view> |
||||
<view class="line"></view> |
||||
</view> |
||||
<view class="container"> |
||||
<view class="date">2025.6.15</view> |
||||
<view class="date">{{item.bleedingDate}}</view> |
||||
<view class="wrap"> |
||||
<view class="row"> |
||||
<view class="label">出血关节</view> |
||||
<view class="content">左膝 右肘</view> |
||||
<view class="content"> |
||||
<view wx:for="{{item.bleedingPartList}}" wx:for-item="subItem" wx:key="bleedingId"> |
||||
{{subItem.bleedingPartName}} |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="row-resver"> |
||||
<view class="label">其他情况备注</view> |
||||
<view class="content"> |
||||
症状1、关节积血:血友病比较多见于膝关节,在就是踝、髋、肘、腕、肩以及手足小关节。 |
||||
性期关节肿痛,局部发发发... |
||||
</view> |
||||
<view class="content">{{item.remark}}</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<pagination pagination="{{pagination}}"></pagination> |
||||
</view> |
||||
<image class="add" src="{{imageUrl}}icon53.png?t={{Timestamp}}" bind:tap="handleAdd"></image> |
||||
</view> |
||||
|
@ -1,8 +1,195 @@
@@ -1,8 +1,195 @@
|
||||
const _app = getApp<IAppOption>(); |
||||
const app = getApp<IAppOption>() |
||||
|
||||
Page({ |
||||
data: {}, |
||||
onLoad() {}, |
||||
}); |
||||
data: { |
||||
recordId: '', |
||||
remark: '', |
||||
bleedingDate: '', |
||||
bleedingParts: [] as { id: string; name: string }[], |
||||
|
||||
dict: { |
||||
parts: {} as any, |
||||
}, |
||||
parts: [ |
||||
{ |
||||
top: '94', |
||||
left: '-14', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '78', |
||||
left: '28', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '88', |
||||
left: '72', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '78', |
||||
left: '126', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '78', |
||||
left: '184', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '88', |
||||
left: '238', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '78', |
||||
left: '284', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '94', |
||||
left: '324', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '194', |
||||
left: '122', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '194', |
||||
left: '190', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '296', |
||||
left: '122', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '296', |
||||
left: '190', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '364', |
||||
left: '122', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '364', |
||||
left: '190', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '396', |
||||
left: '104', |
||||
active: false, |
||||
}, |
||||
{ |
||||
top: '396', |
||||
left: '206', |
||||
active: false, |
||||
}, |
||||
], |
||||
}, |
||||
onLoad(options) { |
||||
this.setData({ |
||||
recordId: options.id, |
||||
}) |
||||
app.waitLogin({ type: 1 }).then(() => { |
||||
this.getDict() |
||||
this.getDetail() |
||||
}) |
||||
}, |
||||
getDetail() { |
||||
if (!this.data.recordId) return |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/bleeding/get-detail', |
||||
data: { |
||||
recordId: this.data.recordId, |
||||
}, |
||||
}).then((res) => { |
||||
const parts = this.data.parts |
||||
const bleedingParts = res.bleedingPartList.map((item) => { |
||||
parts[item.bleedingPart - 1].active = true |
||||
return { |
||||
id: item.bleedingParts, |
||||
name: item.bleedingPartName, |
||||
} |
||||
}) |
||||
this.setData({ |
||||
...res, |
||||
bleedingParts, |
||||
parts, |
||||
}) |
||||
}) |
||||
}, |
||||
getDict() { |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/treatment/get-dict', |
||||
data: {}, |
||||
}).then((res) => { |
||||
this.setData({ |
||||
dict: res, |
||||
}) |
||||
}) |
||||
}, |
||||
handlePartSelect(e) { |
||||
const { index } = e.currentTarget.dataset |
||||
const { |
||||
dict: { parts: partsDict }, |
||||
parts, |
||||
} = this.data |
||||
parts[index].active = !parts[index].active |
||||
const bleedingParts = parts.reduce((pre, cur, index) => { |
||||
if (cur.active) { |
||||
pre.push({ |
||||
name: partsDict[index + 1], |
||||
id: index + 1, |
||||
}) |
||||
} |
||||
return pre |
||||
}, [] as any) |
||||
this.setData({ |
||||
parts, |
||||
bleedingParts, |
||||
}) |
||||
}, |
||||
handleSubmit() { |
||||
const { recordId, remark, bleedingDate, bleedingParts } = this.data |
||||
if (!bleedingDate) { |
||||
wx.showToast({ |
||||
title: '请选择出血日期', |
||||
icon: 'none', |
||||
}) |
||||
return |
||||
} |
||||
if (!bleedingParts.length) { |
||||
wx.showToast({ |
||||
title: '请选择出血部位', |
||||
icon: 'none', |
||||
}) |
||||
return |
||||
} |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/bleeding/save-record', |
||||
data: { |
||||
recordId, |
||||
remark, |
||||
bleedingDate, |
||||
bleedingParts: bleedingParts.map((item) => item.id), |
||||
}, |
||||
}).then(() => { |
||||
wx.navigateBack() |
||||
}) |
||||
}, |
||||
handleBack() { |
||||
wx.navigateBack() |
||||
}, |
||||
}) |
||||
|
||||
export {} |
||||
|
@ -1,8 +1,50 @@
@@ -1,8 +1,50 @@
|
||||
const _app = getApp<IAppOption>(); |
||||
import dayjs from 'dayjs' |
||||
|
||||
const app = getApp<IAppOption>() |
||||
|
||||
Page({ |
||||
data: {}, |
||||
onLoad() {}, |
||||
}); |
||||
data: { |
||||
injectionDate: '', |
||||
stage: '', |
||||
}, |
||||
onLoad() { |
||||
app.waitLogin({ type: 1 }).then(() => { |
||||
this.getDetail() |
||||
this.addVisitRecord() |
||||
}) |
||||
}, |
||||
addVisitRecord() { |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/popup/add-visit-record', |
||||
data: { |
||||
type: 3, |
||||
}, |
||||
}) |
||||
}, |
||||
getDetail() { |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/treatment/get-follow-up-plan', |
||||
data: {}, |
||||
}).then((res) => { |
||||
console.log('res: ', res) |
||||
this.setData({ |
||||
injectionDate: dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd'), |
||||
stage: res.stage, |
||||
}) |
||||
}) |
||||
}, |
||||
handleClander() { |
||||
wx.navigateTo({ |
||||
url: '/patient/pages/file/index?nav=2', |
||||
}) |
||||
}, |
||||
handleLastDiagnosisReport() { |
||||
wx.navigateTo({ |
||||
url: '/patient/pages/lastDiagnosisReport/index', |
||||
}) |
||||
}, |
||||
}) |
||||
|
||||
export {} |
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{ |
||||
"navigationBarTitleText": "免疫抑制剂管理", |
||||
"usingComponents": { |
||||
"popup": "/components/popup/index" |
||||
} |
||||
} |
@ -0,0 +1,131 @@
@@ -0,0 +1,131 @@
|
||||
page { |
||||
background-color: rgba(247, 247, 250, 1); |
||||
} |
||||
.page { |
||||
padding: 32rpx 40rpx; |
||||
.card { |
||||
margin-bottom: 24rpx; |
||||
padding: 0 32rpx; |
||||
background: #ffffff; |
||||
border-radius: 24rpx 24rpx 24rpx 24rpx; |
||||
.row { |
||||
display: flex; |
||||
border-bottom: 1px solid rgba(247, 247, 250, 1); |
||||
flex-wrap: wrap; |
||||
&:last-of-type { |
||||
border: none; |
||||
} |
||||
.label { |
||||
width: 9em; |
||||
flex-shrink: 0; |
||||
padding: 32rpx 0; |
||||
font-size: 32rpx; |
||||
color: rgba(1, 1, 5, 1); |
||||
} |
||||
.container { |
||||
flex: 1; |
||||
font-size: 32rpx; |
||||
color: rgba(1, 1, 5, 1); |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: flex-end; |
||||
.tip { |
||||
padding-bottom: 32rpx; |
||||
font-size: 24rpx; |
||||
color: rgba(161, 164, 172, 0.5); |
||||
} |
||||
} |
||||
} |
||||
.row1 { |
||||
border-bottom: 1px solid rgba(247, 247, 250, 1); |
||||
flex-wrap: wrap; |
||||
&:last-of-type { |
||||
border: none; |
||||
} |
||||
.label { |
||||
width: 9em; |
||||
flex-shrink: 0; |
||||
padding: 32rpx 0; |
||||
font-size: 32rpx; |
||||
color: rgba(1, 1, 5, 1); |
||||
} |
||||
.container { |
||||
flex: 1; |
||||
.select { |
||||
padding: 0 0 32rpx; |
||||
display: grid; |
||||
gap: 14rpx; |
||||
&.select4 { |
||||
grid-template-columns: repeat(4, 1fr); |
||||
} |
||||
.s-item { |
||||
padding: 12rpx; |
||||
font-size: 32rpx; |
||||
color: rgba(137, 141, 151, 1); |
||||
line-height: 40rpx; |
||||
background-color: rgba(247, 247, 250, 1); |
||||
text-align: center; |
||||
border-radius: 12rpx; |
||||
&.active { |
||||
color: #fff; |
||||
background-color: rgba(246, 74, 58, 1); |
||||
} |
||||
} |
||||
} |
||||
.tip { |
||||
padding-bottom: 32rpx; |
||||
font-size: 24rpx; |
||||
color: rgba(161, 164, 172, 0.5); |
||||
} |
||||
} |
||||
} |
||||
.auto-input { |
||||
padding-bottom: 32rpx; |
||||
.input { |
||||
padding: 22rpx 32rpx; |
||||
background: #f7f7fa; |
||||
border-radius: 12rpx; |
||||
font-size: 32rpx; |
||||
color: rgba(1, 1, 5, 1); |
||||
} |
||||
.place-input { |
||||
color: rgba(161, 164, 172, 0.5); |
||||
} |
||||
} |
||||
} |
||||
|
||||
.footer { |
||||
position: fixed; |
||||
bottom: 0; |
||||
left: 0; |
||||
width: 100%; |
||||
padding: 16rpx 40rpx calc(16rpx + env(safe-area-inset-bottom)); |
||||
background-color: rgba(255, 255, 255, 1); |
||||
display: flex; |
||||
gap: 26rpx; |
||||
box-sizing: border-box; |
||||
.cancel { |
||||
flex: 1; |
||||
padding: 22rpx; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
font-size: 32rpx; |
||||
color: rgba(246, 74, 58, 1); |
||||
border-radius: 84rpx; |
||||
border: 1px solid #f64a3a; |
||||
} |
||||
.submit { |
||||
flex: 1; |
||||
padding: 22rpx; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
font-size: 32rpx; |
||||
color: #fff; |
||||
background: linear-gradient(356deg, #f23a2f 0%, #fc684f 100%); |
||||
border-radius: 84rpx; |
||||
border: 1px solid #f64a3a; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,87 @@
@@ -0,0 +1,87 @@
|
||||
const app = getApp<IAppOption>() |
||||
|
||||
Page({ |
||||
data: { |
||||
popupShow: false, |
||||
popupType: 'inhibitors', |
||||
popupParams: {}, |
||||
|
||||
recordId: '', |
||||
period: '', |
||||
recordDate: '', |
||||
drugId: '', |
||||
drugName: '', |
||||
type: '', |
||||
dosage: '', |
||||
dosageUnit: '', |
||||
dosageUnitName: '', |
||||
dosageUnitIndex: 0, |
||||
}, |
||||
onLoad(options) { |
||||
console.log('DEBUGPRINT[71]: index.ts:29: options=', options) |
||||
this.setData({ |
||||
period: options.period, |
||||
}) |
||||
app.waitLogin({ type: 1 }).then(() => { |
||||
if (options.id) { |
||||
this.getDetail(options.id) |
||||
} |
||||
}) |
||||
}, |
||||
getDetail(id: string) { |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/immune/get-detail', |
||||
data: { recordId: id }, |
||||
}).then((res) => { |
||||
this.setData({ |
||||
...res, |
||||
}) |
||||
}) |
||||
}, |
||||
handlePopupOk(e) { |
||||
const { popupType } = this.data |
||||
if (popupType === 'inhibitors') { |
||||
const { id, name, content } = e.detail |
||||
this.setData({ |
||||
drugId: id, |
||||
drugName: name === '其他' ? content : name, |
||||
}) |
||||
} |
||||
this.setData({ |
||||
popupShow: false, |
||||
}) |
||||
}, |
||||
handlePopupCancel() { |
||||
this.setData({ |
||||
popupShow: false, |
||||
}) |
||||
}, |
||||
handleSubmit() { |
||||
const { period, recordId } = this.data |
||||
wx.navigateTo({ url: `/patient/pages/inhibitorsManage/index?id=${recordId}&peroid=${period}` }) |
||||
}, |
||||
handleDel() { |
||||
const { recordId } = this.data |
||||
wx.showModal({ |
||||
title: '确定删除吗?', |
||||
confirmColor: 'rgba(246, 74, 58, 1)', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/immune/del', |
||||
data: { recordId }, |
||||
}).then(() => { |
||||
this.handleBack() |
||||
}) |
||||
} |
||||
}, |
||||
}) |
||||
}, |
||||
handleBack() { |
||||
wx.navigateBack() |
||||
}, |
||||
}) |
||||
|
||||
export {} |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
<page-meta page-style="{{ popupShow ? 'overflow: hidden;' : '' }}" /> |
||||
|
||||
<view class="page"> |
||||
<view class="card"> |
||||
<view class="row" bind:tap="handleDrug"> |
||||
<view class="label">药物名称</view> |
||||
<view class="container">{{drugName}}</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="label">用药方式</view> |
||||
<view class="container">{{typeName}}</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="label">使用剂量</view> |
||||
<view class="container"> |
||||
<view class="input-wrap">{{dosage}}{{dosageUnitName}}</view> |
||||
</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="label">用药时间</view> |
||||
<view class="container">{{recordDate}}</view> |
||||
</view> |
||||
</view> |
||||
<view class="footer"> |
||||
<view class="cancel" bind:tap="handleDel">删除</view> |
||||
<view class="submit" bind:tap="handleSubmit">编辑</view> |
||||
</view> |
||||
</view> |
||||
|
||||
<popup |
||||
show="{{popupShow}}" |
||||
type="{{popupType}}" |
||||
params="{{popupParams}}" |
||||
bind:ok="handlePopupOk" |
||||
bind:cancel="handlePopupCancel" |
||||
></popup> |
@ -1,12 +1,236 @@
@@ -1,12 +1,236 @@
|
||||
const _app = getApp<IAppOption>() |
||||
const app = getApp<IAppOption>() |
||||
|
||||
Page({ |
||||
data: { |
||||
popupShow: false, |
||||
popupType: 'preDiagnosisReportDate', // 确认绑定曾经扫码医生
|
||||
popupParams: {}, |
||||
|
||||
edit: false, |
||||
|
||||
fold1: true, |
||||
fold2: true, |
||||
fold3: true, |
||||
|
||||
hospitalName: '', |
||||
|
||||
examId: '', |
||||
period: '1', |
||||
|
||||
beginDate: '', |
||||
endDate: '', |
||||
hospitalId: '', |
||||
isBiochemical: 2, |
||||
alt: '', |
||||
ast: '', |
||||
bilirubin: '', |
||||
isCFIxActivity: 2, |
||||
clottingFactor: '', |
||||
isOther: 2, |
||||
otherInfo: '', |
||||
|
||||
attachmentList2: [], |
||||
attachmentList3: [], |
||||
attachmentList10: [], |
||||
|
||||
formKeys: [ |
||||
'beginDate', |
||||
'endDate', |
||||
'hospitalId', |
||||
'isBiochemical', |
||||
'alt', |
||||
'ast', |
||||
'bilirubin', |
||||
'isCFIxActivity', |
||||
'clottingFactor', |
||||
'isOther', |
||||
'otherInfo', |
||||
], |
||||
|
||||
dict: { |
||||
result: {}, |
||||
number: {}, |
||||
}, |
||||
}, |
||||
onLoad(options) { |
||||
this.setData({ |
||||
examId: options.examid || '', |
||||
period: options.period || '1', |
||||
edit: options.edit === '1', |
||||
}) |
||||
}, |
||||
onShow() { |
||||
app.waitLogin().then(() => { |
||||
this.getDict() |
||||
this.getDetail() |
||||
}) |
||||
}, |
||||
getDict() { |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/treatment/get-dict', |
||||
data: {}, |
||||
}).then((res) => { |
||||
this.setData({ |
||||
dict: res, |
||||
}) |
||||
}) |
||||
}, |
||||
getDetail() { |
||||
const { examId, formKeys } = this.data |
||||
if (!examId) return |
||||
wx.ajax({ |
||||
method: 'GET', |
||||
url: '?r=wtx/treatment/get-examination-info', |
||||
data: { |
||||
examId: examId, |
||||
}, |
||||
}).then((res) => { |
||||
const reset = formKeys.reduce((pre, cur) => { |
||||
pre[cur] = res[cur] || '' |
||||
return pre |
||||
}, {}) |
||||
this.setData({ |
||||
...reset, |
||||
attachmentList2: res.attachmentList[2] || [], |
||||
attachmentList3: res.attachmentList[3] || [], |
||||
attachmentList10: res.attachmentList[10] || [], |
||||
}) |
||||
}) |
||||
}, |
||||
handleSelectHospital() { |
||||
wx.navigateTo({ |
||||
url: '/patient/pages/selectHostipal/index?select=1', |
||||
events: { |
||||
acceptDataFromOpenedPage: (data) => { |
||||
this.setData({ |
||||
hospitalId: data.hospitalId, |
||||
hospitalName: data.hospitalName, |
||||
}) |
||||
this.updateSave() |
||||
}, |
||||
}, |
||||
}) |
||||
}, |
||||
handleToggleFold(e: any) { |
||||
const { fold } = e.currentTarget.dataset |
||||
this.setData({ |
||||
[fold]: !this.data[fold], |
||||
}) |
||||
}, |
||||
handleToggleCheck(e: any) { |
||||
const { check, fold } = e.currentTarget.dataset |
||||
let foldValue = this.data[fold] |
||||
if (this.data[check] == 2) { |
||||
foldValue = false |
||||
} |
||||
this.setData({ |
||||
[check]: this.data[check] == 1 ? 2 : 1, |
||||
[fold]: foldValue, |
||||
}) |
||||
this.updateSave() |
||||
}, |
||||
updateSave(e = null) { |
||||
let isBack = false |
||||
if (e) { |
||||
const { back } = (e as any).currentTarget.dataset |
||||
isBack = back == 1 |
||||
} |
||||
const { formKeys, period, examId, ...reset } = this.data |
||||
const form = formKeys.reduce((pre, cur) => { |
||||
pre[cur] = reset[cur] |
||||
return pre |
||||
}, {}) |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/exam/save-record', |
||||
data: { |
||||
examId, |
||||
period, |
||||
...form, |
||||
}, |
||||
}).then((res) => { |
||||
this.setData({ |
||||
examId: res, |
||||
}) |
||||
if (isBack) { |
||||
wx.navigateBack() |
||||
} |
||||
}) |
||||
}, |
||||
setFile(e: any) { |
||||
const { type, key } = e.currentTarget.dataset |
||||
const { examId, period } = this.data |
||||
const detail = e.detail || [] |
||||
let apiArr: any[] = [] |
||||
const fileList = this.data[key] || [] |
||||
detail.forEach((item: any) => { |
||||
const params: any = { |
||||
examId, |
||||
period, |
||||
type, |
||||
fileType: item.fileType, |
||||
name: item.name, |
||||
url: item.url, |
||||
videoUrl: item.videoUrl, |
||||
duration: item.duration, |
||||
} |
||||
fileList.push(params) |
||||
apiArr.push(this.saveAttachment(params)) |
||||
}) |
||||
this.setData({ |
||||
[key]: fileList, |
||||
}) |
||||
Promise.all(apiArr).then((res) => { |
||||
console.log(res) |
||||
}) |
||||
}, |
||||
saveAttachment(params: any) { |
||||
return wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/treatment/save-attachment', |
||||
data: params, |
||||
}) |
||||
}, |
||||
delFile(e: any) { |
||||
const { key } = e.currentTarget.dataset |
||||
const { index, item } = e.detail |
||||
if (item.attachmentId) { |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/treatment/del-attachment', |
||||
data: { |
||||
attachmentId: item.attachmentId, |
||||
}, |
||||
}) |
||||
} |
||||
const fileList = this.data[key] |
||||
const newFileList = fileList.filter((_, i) => i !== index) |
||||
this.setData({ |
||||
[key]: newFileList, |
||||
}) |
||||
}, |
||||
handleDel() { |
||||
const { examId } = this.data |
||||
wx.showModal({ |
||||
title: '确认删除?', |
||||
confirmColor: 'rgba(246, 74, 58, 1)', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
wx.ajax({ |
||||
method: 'POST', |
||||
url: '?r=wtx/exam/del', |
||||
data: { examId }, |
||||
}).then(() => { |
||||
wx.navigateBack() |
||||
}) |
||||
} |
||||
}, |
||||
}) |
||||
}, |
||||
handleBack() { |
||||
wx.navigateBack() |
||||
}, |
||||
onLoad() {}, |
||||
}) |
||||
|
||||
export {} |
||||
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
{ |
||||
"navigationBarTitleText": "免疫抑制剂管理", |
||||
"navigationBarTitleText": "我的复诊记录", |
||||
"usingComponents": {} |
||||
} |
||||
|
Loading…
Reference in new issue