修改注意事项参数

main
阿怪 8 months ago
parent 5df11417b2
commit 71ad46e43c

@ -182,6 +182,15 @@ async function enterDialog() { // 提交
func_name = 'editHospital' func_name = 'editHospital'
} }
form.value.todos = todo_list.value form.value.todos = todo_list.value
//
for (const item of note_list.value) {
for (let i = 0; i < time_options.value.length; i++) {
// eslint-disable-next-line no-empty
if (item.notes_time === time_options.value[i]) {
item.notes_time_num = i + 1
}
}
}
form.value.notes = note_list.value form.value.notes = note_list.value
const res = await api[func_name](form.value) const res = await api[func_name](form.value)
if (res.code === 0) { if (res.code === 0) {
@ -232,7 +241,7 @@ function init_uploading() {
uploading_form.percentage = 0 uploading_form.percentage = 0
} }
function handleAvatarSuccess(res) { function handleAvatarSuccess(res) {
console.log("res is ====",res) console.log('res is ====', res)
note_list.value[note_list_item_index.value].content = res.data.file.url note_list.value[note_list_item_index.value].content = res.data.file.url
uploading_form.progressStatus = 'info' uploading_form.progressStatus = 'info'
@ -256,8 +265,8 @@ function beforeAvatarUpload(file) {
uploading_form.progressStatus = 'warning' uploading_form.progressStatus = 'warning'
ElMessage.error('上传头像图片大小不能超过 2M!') ElMessage.error('上传头像图片大小不能超过 2M!')
} }
let interval = Math.random(100)*100 const interval = Math.random(100) * 100
console.log("interval is ====",interval) console.log('interval is ====', interval)
setInterval(() => { setInterval(() => {
if (uploading_form.percentage < interval) { if (uploading_form.percentage < interval) {
uploading_form.percentage += 1 uploading_form.percentage += 1
@ -412,7 +421,7 @@ function beforeUploadImg(i) {
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
@click="beforeUploadImg(i)" @click="beforeUploadImg(i)"
> >
<div class="progress-box" v-if="uploading_form.uploading"> <div v-if="uploading_form.uploading" class="progress-box">
<el-progress class="progress-item" :percentage="uploading_form.percentage" :status="uploading_form.progressStatus" /> <el-progress class="progress-item" :percentage="uploading_form.percentage" :status="uploading_form.progressStatus" />
</div> </div>
<img v-if="item.content" :src="item.content" class="img-container"> <img v-if="item.content" :src="item.content" class="img-container">
@ -453,7 +462,7 @@ function beforeUploadImg(i) {
<div class="ic-right-row"> <div class="ic-right-row">
<div class="icr-left">须知事项</div> <div class="icr-left">须知事项</div>
<div class="icr-right"> <div class="icr-right">
<el-input autosize type="textarea" v-model="item.content" /> <el-input v-model="item.content" autosize type="textarea" />
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save