|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-input v-model="moduleQuery.name" placeholder="功能名称"></el-input>
|
|
|
|
|
<el-input v-model="moduleQuery.name" placeholder="功能名称" clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button-group>
|
|
|
|
@ -157,6 +157,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="detailQuery.page"
|
|
|
|
|
:page-size="detailQuery.limit"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="detailTotal"
|
|
|
|
|
></el-pagination>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="接口参数设置"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -177,13 +186,6 @@
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="moduleQuery.page"
|
|
|
|
|
:page-size="moduleQuery.limit"
|
|
|
|
|
@current-change="handlePageChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="total"
|
|
|
|
|
></el-pagination>
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
<!--表单-->
|
|
|
|
@ -358,7 +360,7 @@
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="selectTemplateQuery.page"
|
|
|
|
|
:page-size="selectTemplateQuery.limit"
|
|
|
|
|
@current-change="moduleHandleCurrentChange"
|
|
|
|
|
@current-change="selectTemplateHandleCurrentChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="selectTemplateTotal"
|
|
|
|
|
>
|
|
|
|
@ -423,13 +425,6 @@ const moduleFormJson = {
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
query: {
|
|
|
|
|
templateType: null,
|
|
|
|
|
moduleId: null,
|
|
|
|
|
name: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
},
|
|
|
|
|
headers: {},
|
|
|
|
|
list: [],
|
|
|
|
|
total: 0,
|
|
|
|
@ -438,10 +433,18 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
},
|
|
|
|
|
moduleTotal: 0,
|
|
|
|
|
detailQuery: {
|
|
|
|
|
templateType: null,
|
|
|
|
|
moduleId: null,
|
|
|
|
|
name: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
},
|
|
|
|
|
detailTotal: 0,
|
|
|
|
|
currentRow: null,
|
|
|
|
|
moduleList: [],
|
|
|
|
|
moduleNameList: [],
|
|
|
|
|
moduleTotal: 0,
|
|
|
|
|
selectTemplateQuery: {
|
|
|
|
|
busRlId: null,
|
|
|
|
|
name: "",
|
|
|
|
@ -496,10 +499,7 @@ export default {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: ""
|
|
|
|
|
});
|
|
|
|
|
this.query = {
|
|
|
|
|
templateType: null,
|
|
|
|
|
moduleId: null,
|
|
|
|
|
customerId: this.$store.getters.customerId,
|
|
|
|
|
this.moduleQuery = {
|
|
|
|
|
name: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
@ -507,22 +507,27 @@ export default {
|
|
|
|
|
this.getModuleList();
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {
|
|
|
|
|
this.query.page = 1;
|
|
|
|
|
this.moduleQuery.page = 1;
|
|
|
|
|
this.getModuleList();
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
this.query.page = val;
|
|
|
|
|
this.detailQuery.page = val;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
moduleHandleCurrentChange(val) {
|
|
|
|
|
this.moduleQuery.page = val;
|
|
|
|
|
this.getModuleList();
|
|
|
|
|
},
|
|
|
|
|
selectTemplateHandleCurrentChange(val) {
|
|
|
|
|
this.selectTemplateQuery.page = val;
|
|
|
|
|
this.selectTemplateGetList();
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
moduleDetail(this.query)
|
|
|
|
|
moduleDetail(this.detailQuery)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.list = response.data || [];
|
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
|
this.detailTotal = response.data.total || 0;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -531,7 +536,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
moduleClick(row) {
|
|
|
|
|
this.query = {
|
|
|
|
|
this.detailQuery = {
|
|
|
|
|
templateType: row.templateType,
|
|
|
|
|
moduleId: row.id,
|
|
|
|
|
customerId: this.$store.getters.customerId,
|
|
|
|
@ -641,12 +646,11 @@ export default {
|
|
|
|
|
type: 1,
|
|
|
|
|
name: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
limit: 10
|
|
|
|
|
};
|
|
|
|
|
this.selectTemplateGetList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectTemplateGetList() {
|
|
|
|
|
this.selectTemplateLoading = true;
|
|
|
|
|
systemPDFTemplateList(this.selectTemplateQuery)
|
|
|
|
|