Commit 50fc6c88 authored by qinj's avatar qinj

页面loading

parent c146265d
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div class="basic-info"> <div class="basic-info">
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading='loading'
:sections="sections"> :sections="sections">
<template v-slot:ExtLockRsp_SDK="{ formData }"> <template v-slot:ExtLockRsp_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
...@@ -370,9 +371,12 @@ export default { ...@@ -370,9 +371,12 @@ export default {
}) })
}, },
getList() { getList() {
this.loading=true
getCustomer({ objectID: this.id }).then((resp) => { getCustomer({ objectID: this.id }).then((resp) => {
this.loading=false
resp.results[0].ExtChannelType_SDK = null resp.results[0].ExtChannelType_SDK = null
this.formData = resp.results[0] this.formData = resp.results[0]
this.formData.ExtChannelType_SDK=null
if (this.formData.ExtProcessNode_SDK != 2) { if (this.formData.ExtProcessNode_SDK != 2) {
this.rules.ExtChannelType_SDK = [] this.rules.ExtChannelType_SDK = []
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div class="basic-info"> <div class="basic-info">
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading='loading'
:sections="sections"> :sections="sections">
<template v-slot:ExtLockCity_SDK="{ formData }"> <template v-slot:ExtLockCity_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
...@@ -339,7 +340,9 @@ export default { ...@@ -339,7 +340,9 @@ export default {
window.open(row.FileURL) window.open(row.FileURL)
}, },
getList() { getList() {
this.loading=true
getCustomer({ objectID: this.id }).then((resp) => { getCustomer({ objectID: this.id }).then((resp) => {
this.loading=false
this.formData = resp.results[0] this.formData = resp.results[0]
const app = { provinceCode: resp.results[0].ExtProvince_SDK } const app = { provinceCode: resp.results[0].ExtProvince_SDK }
this.$request(Country.searchCity, app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
......
...@@ -483,7 +483,7 @@ export default { ...@@ -483,7 +483,7 @@ export default {
}) })
} else { } else {
this.btnloading = false this.btnloading = false
this.$message.warning('请上传附件,输入必填信息!') this.$message.warning('请输入必填信息!')
} }
}); });
......
...@@ -644,7 +644,7 @@ export default { ...@@ -644,7 +644,7 @@ export default {
}) })
} else { } else {
this.btnloading = false this.btnloading = false
this.$message.warning('请上传附件,输入必填信息!') this.$message.warning('请输入必填信息!')
} }
}); });
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="app-container"> <div class="app-container">
<div class="table-container"> <div class="table-container">
<el-table :data="tableData" <el-table :data="tableData"
v-loading='btnloading'
border border
style="width: 100%"> style="width: 100%">
<el-table-column prop="FileName" <el-table-column prop="FileName"
...@@ -24,6 +25,7 @@ export default { ...@@ -24,6 +25,7 @@ export default {
data () { data () {
return { return {
tableData:[], tableData:[],
btnloading:false,
page:{ page:{
currentPage:1, currentPage:1,
pageSize:10 pageSize:10
...@@ -36,7 +38,9 @@ export default { ...@@ -36,7 +38,9 @@ export default {
methods:{ methods:{
getList(){ getList(){
this.page.typeCode='121' this.page.typeCode='121'
this.btnloading=true
getModels(this.page).then((resp)=>{ getModels(this.page).then((resp)=>{
this.btnloading=false
this.tableData=resp.results this.tableData=resp.results
}) })
}, },
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="app-container"> <div class="app-container">
<div class="table-container"> <div class="table-container">
<el-table :data="tableData" <el-table :data="tableData"
v-loading='btnloading'
border border
style="width: 100%"> style="width: 100%">
<el-table-column prop="FileName" <el-table-column prop="FileName"
...@@ -24,6 +25,7 @@ export default { ...@@ -24,6 +25,7 @@ export default {
data () { data () {
return { return {
tableData:[], tableData:[],
btnloading:false,
page:{ page:{
currentPage:1, currentPage:1,
pageSize:10 pageSize:10
...@@ -37,7 +39,9 @@ export default { ...@@ -37,7 +39,9 @@ export default {
getList(){ getList(){
this.page.typeCode='121' this.page.typeCode='121'
this.page.fileLabel='3' this.page.fileLabel='3'
this.btnloading=true
getModels(this.page).then((resp)=>{ getModels(this.page).then((resp)=>{
this.btnloading=false
this.tableData=resp.results this.tableData=resp.results
}) })
}, },
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="app-container"> <div class="app-container">
<div class="table-container"> <div class="table-container">
<el-table :data="tableData" <el-table :data="tableData"
v-loading='btnloading'
border border
style="width: 100%"> style="width: 100%">
<el-table-column prop="FileName" <el-table-column prop="FileName"
...@@ -24,6 +25,7 @@ export default { ...@@ -24,6 +25,7 @@ export default {
data () { data () {
return { return {
tableData:[], tableData:[],
btnloading:false,
page:{ page:{
currentPage:1, currentPage:1,
pageSize:10 pageSize:10
...@@ -37,7 +39,9 @@ export default { ...@@ -37,7 +39,9 @@ export default {
getList(){ getList(){
this.page.typeCode='121' this.page.typeCode='121'
this.page.fileLabel='2' this.page.fileLabel='2'
this.btnloading=true
getModels(this.page).then((resp)=>{ getModels(this.page).then((resp)=>{
this.btnloading=false
this.tableData=resp.results this.tableData=resp.results
}) })
}, },
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<div class="table-container"> <div class="table-container">
<el-table :data="tableData" <el-table :data="tableData"
border border
v-loading='btnloading'
style="width: 100%"> style="width: 100%">
<el-table-column prop="FileName" <el-table-column prop="FileName"
label="名称"> label="名称">
...@@ -24,6 +25,7 @@ export default { ...@@ -24,6 +25,7 @@ export default {
data () { data () {
return { return {
tableData:[], tableData:[],
btnloading:false,
page:{ page:{
currentPage:1, currentPage:1,
pageSize:10 pageSize:10
...@@ -37,7 +39,9 @@ export default { ...@@ -37,7 +39,9 @@ export default {
getList(){ getList(){
this.page.typeCode='121' this.page.typeCode='121'
this.page.fileLabel='1' this.page.fileLabel='1'
this.btnloading=true
getModels(this.page).then((resp)=>{ getModels(this.page).then((resp)=>{
this.btnloadin=false
this.tableData=resp.results this.tableData=resp.results
}) })
}, },
......
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