|
@@ -18,6 +18,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="searchForm.keyword"
|
|
v-model="searchForm.keyword"
|
|
|
placeholder="请输入模板名称"
|
|
placeholder="请输入模板名称"
|
|
|
|
|
+ clearable
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
@@ -80,6 +81,7 @@
|
|
|
:default-sort="{ prop: 'createTime', order: 'descending' }"
|
|
:default-sort="{ prop: 'createTime', order: 'descending' }"
|
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
>
|
|
|
|
|
+ <!-- :default-sort="{ prop: 'createTime', order: 'descending' }" -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
type="selection"
|
|
type="selection"
|
|
|
width="55"
|
|
width="55"
|
|
@@ -151,10 +153,11 @@
|
|
|
prop="createTime"
|
|
prop="createTime"
|
|
|
label="创建时间"
|
|
label="创建时间"
|
|
|
width="160"
|
|
width="160"
|
|
|
- sortable
|
|
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
align="center"
|
|
align="center"
|
|
|
|
|
+ sortable
|
|
|
>
|
|
>
|
|
|
|
|
+ <!-- sortable -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<div>{{ scope.row.createTime.split(' ')[0] }}</div>
|
|
<div>{{ scope.row.createTime.split(' ')[0] }}</div>
|
|
|
<div>{{ scope.row.createTime.split(' ')[1] }}</div>
|
|
<div>{{ scope.row.createTime.split(' ')[1] }}</div>
|
|
@@ -162,7 +165,6 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- v-if="$permission.isAdminOrProvince()"
|
|
|
|
|
label="操作"
|
|
label="操作"
|
|
|
width="240"
|
|
width="240"
|
|
|
fixed="right"
|
|
fixed="right"
|
|
@@ -225,7 +227,7 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
class="mt20"
|
|
class="mt20"
|
|
|
- :current-page.sync="searchForm.pageNum"
|
|
|
|
|
|
|
+ :current-page.sync="searchForm.page"
|
|
|
:page-size="searchForm.pageSize"
|
|
:page-size="searchForm.pageSize"
|
|
|
:page-sizes="[50, 100]"
|
|
:page-sizes="[50, 100]"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
@@ -239,7 +241,7 @@
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
:title="dialogTitle"
|
|
:title="dialogTitle"
|
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
|
- width="70%"
|
|
|
|
|
|
|
+ width="75%"
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
>
|
|
|
<el-form
|
|
<el-form
|
|
@@ -1082,7 +1084,7 @@
|
|
|
selectedRows: [],
|
|
selectedRows: [],
|
|
|
pagination: {
|
|
pagination: {
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
|
|
|
|
+ pageSize: 50,
|
|
|
total: 0,
|
|
total: 0,
|
|
|
},
|
|
},
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
@@ -1158,6 +1160,16 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
|
|
+ // 监听目录数据变化,数据加载完成后处理回显
|
|
|
|
|
+ catalogListOptions: {
|
|
|
|
|
+ handler(newVal) {
|
|
|
|
|
+ if (newVal && newVal.length > 0) {
|
|
|
|
|
+ // 数据加载完成后,重新处理value
|
|
|
|
|
+ this.batchGetCatalogNames()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ },
|
|
|
indicatorTableData: {
|
|
indicatorTableData: {
|
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
|
if (this.radioType === 'other' && this.selectedTemplateId) {
|
|
if (this.radioType === 'other' && this.selectedTemplateId) {
|
|
@@ -1379,7 +1391,6 @@
|
|
|
if (res.rows.length > 0) {
|
|
if (res.rows.length > 0) {
|
|
|
this.tableData = res.rows || []
|
|
this.tableData = res.rows || []
|
|
|
this.pagination.total = res.total || 0
|
|
this.pagination.total = res.total || 0
|
|
|
- this.batchGetCatalogNames()
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1390,7 +1401,7 @@
|
|
|
catalogId: '',
|
|
catalogId: '',
|
|
|
keyword: '',
|
|
keyword: '',
|
|
|
page: 1,
|
|
page: 1,
|
|
|
- pageSize: 10,
|
|
|
|
|
|
|
+ pageSize: 50,
|
|
|
}
|
|
}
|
|
|
this.handleSearch()
|
|
this.handleSearch()
|
|
|
},
|
|
},
|
|
@@ -1519,7 +1530,7 @@
|
|
|
this.generateFromSurveyTemplate()
|
|
this.generateFromSurveyTemplate()
|
|
|
} else if (this.contentEditForm.createmode == '2') {
|
|
} else if (this.contentEditForm.createmode == '2') {
|
|
|
if (!this.contentEditForm.createtemplateid1) {
|
|
if (!this.contentEditForm.createtemplateid1) {
|
|
|
- this.$message.error('请选择成本调查表模板')
|
|
|
|
|
|
|
+ this.$message.error('请选择历史核定模板')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.generateFromHistoryTemplate()
|
|
this.generateFromHistoryTemplate()
|