Commit 6fdf561b authored by 陈明豪's avatar 陈明豪

bug修改

parent c69969bd
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
<el-input v-model.trim="form.title" class="form-input" maxlength="20" show-word-limit clearable disabled /> <el-input v-model.trim="form.title" class="form-input" maxlength="20" show-word-limit clearable disabled />
</el-form-item> </el-form-item>
<el-form-item label="轮播图" prop="img"> <el-form-item label="轮播图" prop="img">
<ImagePreview v-if="form.img !== undefined && form.img !== null && form.img !== ''" :src="baseUrl + form.img" :width="150" :height="150" /> <ImagePreview :src="baseUrl + form.img" :width="150" :height="150" />
<ImagePreview v-else :src="null" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="跳转地址" prop="url"> <el-form-item label="跳转地址" prop="url">
<el-input :placeholder="form.url || '-'" class="form-input" maxlength="30" show-word-limit clearable disabled /> <el-input :placeholder="form.url || '-'" class="form-input" maxlength="30" show-word-limit clearable disabled />
......
...@@ -89,7 +89,12 @@ export default { ...@@ -89,7 +89,12 @@ export default {
trigger: 'item', // 出发方式 trigger: 'item', // 出发方式
formatter: (item) => { formatter: (item) => {
const unit = _this.unit const unit = _this.unit
const percent = (item.data.value / _this.sum * 100).toFixed(1) let percent = 0
if (_this.sum) {
percent = (item.data.value / _this.sum * 100).toFixed(1)
} else {
percent = percent.toFixed(1)
}
return `<div> return `<div>
${item.data.name} ${item.data.name}
<br> <br>
......
...@@ -399,6 +399,7 @@ export default { ...@@ -399,6 +399,7 @@ export default {
this.getHospitalList() this.getHospitalList()
// this.justTest() // this.justTest()
// this.loading = true // this.loading = true
// this.loading = false
}, },
methods: { methods: {
moneyFormat, moneyFormat,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment