Commit c84a8f52 authored by YIyiyi's avatar YIyiyi

pref:优化编辑业务

parent 553ea6e7
...@@ -159,6 +159,9 @@ export default { ...@@ -159,6 +159,9 @@ export default {
onEdit(data) { onEdit(data) {
this.getBusinessData(); this.getBusinessData();
this.form = { ...data }; this.form = { ...data };
if (this.form.parentId == 0) {
this.form.parentId = undefined;
}
}, },
// 切换业务级别 // 切换业务级别
// changeIsBusiness(e) { // changeIsBusiness(e) {
......
...@@ -86,20 +86,6 @@ ...@@ -86,20 +86,6 @@
</template> </template>
</a-table> </a-table>
</div> </div>
<!-- 分页 -->
<!-- <div class="pagination" v-if="total">
<a-pagination
v-model="current"
:show-total="(total) => `共 ${total} 条`"
:total="total"
show-less-items
@change="handleChange"
show-size-changer
show-quick-jumper
:pageSizeOptions="pageSizeOptions"
@showSizeChange="showSizeChange"
/>
</div> -->
</a-card> </a-card>
<!-- 新增模块 --> <!-- 新增模块 -->
<a-modal <a-modal
...@@ -523,4 +509,4 @@ export default { ...@@ -523,4 +509,4 @@ export default {
margin-top: 8px; margin-top: 8px;
color: #666; color: #666;
} }
</style> </style>
\ No newline at end of file
...@@ -319,6 +319,7 @@ export default { ...@@ -319,6 +319,7 @@ export default {
this.loading = false; this.loading = false;
this.skinTemplate = []; this.skinTemplate = [];
this.curSkinTemplate = undefined; this.curSkinTemplate = undefined;
this.facilityInfo = {};
}, },
// 获取设备信息 // 获取设备信息
getFacilityInfo(info) { getFacilityInfo(info) {
...@@ -573,4 +574,4 @@ export default { ...@@ -573,4 +574,4 @@ export default {
transform: scale(0.7); transform: scale(0.7);
} }
} }
</style> </style>
\ No newline at end of file
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