|
@@ -8,31 +8,33 @@
|
|
v-model="isShow"
|
|
v-model="isShow"
|
|
@cancle="isShow=false"
|
|
@cancle="isShow=false"
|
|
:width="800">
|
|
:width="800">
|
|
- <!-- 表单 -->
|
|
|
|
- <div>
|
|
|
|
- <a-form-model
|
|
|
|
- id="customerTypeEdit-form"
|
|
|
|
- ref="ruleForm"
|
|
|
|
- :model="form"
|
|
|
|
- :rules="rules"
|
|
|
|
- :label-col="formItemLayout.labelCol"
|
|
|
|
- :wrapper-col="formItemLayout.wrapperCol"
|
|
|
|
- >
|
|
|
|
- <a-tree
|
|
|
|
- checkable
|
|
|
|
- @check="onCheck"
|
|
|
|
- @expand="onExpand"
|
|
|
|
- :expandedKeys="expandedKeys"
|
|
|
|
- :autoExpandParent="autoExpandParent"
|
|
|
|
- v-model="checkedKeys"
|
|
|
|
- :treeData="treeData"
|
|
|
|
- />
|
|
|
|
- </a-form-model>
|
|
|
|
- <div class="btn-cont">
|
|
|
|
- <a-button type="primary" id="customer-type-edit-modal-save" @click="handleSave">保存</a-button>
|
|
|
|
- <a-button id="customer-type-edit-modal-back" @click="isShow = false" style="margin-left: 15px;">返回列表</a-button>
|
|
|
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
+ <!-- 表单 -->
|
|
|
|
+ <div>
|
|
|
|
+ <a-form-model
|
|
|
|
+ id="customerTypeEdit-form"
|
|
|
|
+ ref="ruleForm"
|
|
|
|
+ :model="form"
|
|
|
|
+ :rules="rules"
|
|
|
|
+ :label-col="formItemLayout.labelCol"
|
|
|
|
+ :wrapper-col="formItemLayout.wrapperCol"
|
|
|
|
+ >
|
|
|
|
+ <a-tree
|
|
|
|
+ checkable
|
|
|
|
+ @check="onCheck"
|
|
|
|
+ @expand="onExpand"
|
|
|
|
+ :expandedKeys="expandedKeys"
|
|
|
|
+ :autoExpandParent="autoExpandParent"
|
|
|
|
+ v-model="checkedKeys"
|
|
|
|
+ :treeData="treeData"
|
|
|
|
+ />
|
|
|
|
+ </a-form-model>
|
|
|
|
+ <div class="btn-cont">
|
|
|
|
+ <a-button type="primary" id="customer-type-edit-modal-save" @click="handleSave">保存</a-button>
|
|
|
|
+ <a-button id="customer-type-edit-modal-back" @click="isShow = false" style="margin-left: 15px;">返回列表</a-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </a-spin>
|
|
</a-modal>
|
|
</a-modal>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -61,6 +63,7 @@ export default {
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ spinning: false,
|
|
isShow: this.openModal, // 是否打开弹框
|
|
isShow: this.openModal, // 是否打开弹框
|
|
detailData: null, // 数据
|
|
detailData: null, // 数据
|
|
formItemLayout: {
|
|
formItemLayout: {
|
|
@@ -108,6 +111,7 @@ export default {
|
|
},
|
|
},
|
|
// 详情
|
|
// 详情
|
|
getDetail () {
|
|
getDetail () {
|
|
|
|
+ this.spinning = true
|
|
findMouldMenuDetail({ id: this.itemId, appType: 2 }).then(res => {
|
|
findMouldMenuDetail({ id: this.itemId, appType: 2 }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.treeData = res.data.menuList
|
|
this.treeData = res.data.menuList
|
|
@@ -117,6 +121,9 @@ export default {
|
|
// 找出叶子节点
|
|
// 找出叶子节点
|
|
this.findLeaf(this.treeData, arr)
|
|
this.findLeaf(this.treeData, arr)
|
|
}
|
|
}
|
|
|
|
+ this.spinning = false
|
|
|
|
+ } else {
|
|
|
|
+ this.spinning = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|