|
@@ -38,10 +38,12 @@
|
|
<div class="hui-flex-box hui-flex hui-table">
|
|
<div class="hui-flex-box hui-flex hui-table">
|
|
<div class="hui-content-insert">
|
|
<div class="hui-content-insert">
|
|
<el-button v-permission="'/work/property/register/add'" type="primary" size="medium"
|
|
<el-button v-permission="'/work/property/register/add'" type="primary" size="medium"
|
|
- @click="insert">
|
|
|
|
|
|
+ @click="insert(1)">
|
|
新增登记
|
|
新增登记
|
|
</el-button>
|
|
</el-button>
|
|
<el-button type="info" size="medium" @click="downloadFile">标准模板下载</el-button>
|
|
<el-button type="info" size="medium" @click="downloadFile">标准模板下载</el-button>
|
|
|
|
+ <el-button v-permission="'/work/property/register/add'" type="info" size="medium"
|
|
|
|
+ @click="insert(2)">批量登记</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="hui-flex-box">
|
|
<div class="hui-flex-box">
|
|
<el-table :data="tableData" row-key="id" border height="100%">
|
|
<el-table :data="tableData" row-key="id" border height="100%">
|
|
@@ -122,9 +124,10 @@
|
|
</div>
|
|
</div>
|
|
<el-dialog :close-on-click-modal="false" :title="isUpdate?'编辑':'新增'" :visible.sync="visible" width="1200px"
|
|
<el-dialog :close-on-click-modal="false" :title="isUpdate?'编辑':'新增'" :visible.sync="visible" width="1200px"
|
|
:append-to-body="true">
|
|
:append-to-body="true">
|
|
- <flow-form v-if="visible" :isUpdate="isUpdate" @callback="callback" :detailId="detailId"
|
|
|
|
|
|
+ <flow-form v-if="visible && insertType === 1" :isUpdate="isUpdate" @callback="callback" :detailId="detailId"
|
|
:flowType="flowType">
|
|
:flowType="flowType">
|
|
</flow-form>
|
|
</flow-form>
|
|
|
|
+ <batch-form v-if="visible && insertType === 2" @callback="callback" :flowType="flowType"></batch-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-drawer title="流程详情" :visible.sync="drawer" :size="400" :append-to-body="true">
|
|
<el-drawer title="流程详情" :visible.sync="drawer" :size="400" :append-to-body="true">
|
|
<flow-detail v-if="drawer" @callback="callback" :detailId="detailId"></flow-detail>
|
|
<flow-detail v-if="drawer" @callback="callback" :detailId="detailId"></flow-detail>
|
|
@@ -139,8 +142,9 @@
|
|
getFlowList,
|
|
getFlowList,
|
|
deleteFlow
|
|
deleteFlow
|
|
} from '@/httpApi/property'
|
|
} from '@/httpApi/property'
|
|
|
|
+ import batchForm from '@/components/flow/batchForm'
|
|
import flowForm from '@/components/flow/flowForm'
|
|
import flowForm from '@/components/flow/flowForm'
|
|
- import flowDetail from '@/components/flow/flowDetail'
|
|
|
|
|
|
+ import flowDetail from '@/components/flow/flowDetail'
|
|
import config from '@/config'
|
|
import config from '@/config'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -160,7 +164,8 @@
|
|
detailId: '',
|
|
detailId: '',
|
|
drawer: false,
|
|
drawer: false,
|
|
nowData: {},
|
|
nowData: {},
|
|
- filterOption: {}
|
|
|
|
|
|
+ filterOption: {},
|
|
|
|
+ insertType: 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -252,7 +257,8 @@
|
|
this.currPage = currPage;
|
|
this.currPage = currPage;
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
- insert() {
|
|
|
|
|
|
+ insert(type) {
|
|
|
|
+ this.insertType = type;
|
|
this.visible = true;
|
|
this.visible = true;
|
|
this.isUpdate = false;
|
|
this.isUpdate = false;
|
|
},
|
|
},
|
|
@@ -282,7 +288,8 @@
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
flowForm,
|
|
flowForm,
|
|
- flowDetail
|
|
|
|
|
|
+ flowDetail,
|
|
|
|
+ batchForm
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|