|
|
@ -17,7 +17,7 @@ |
|
|
|
<el-table |
|
|
|
ref="fieldTable" |
|
|
|
style="min-width: 100%" |
|
|
|
height="calc(100vh - 302px)" |
|
|
|
height="calc(100vh - 355px)" |
|
|
|
@selection-change="selectionChangeHandler" |
|
|
|
@row-click="clickRowHandler" |
|
|
|
> |
|
|
@ -120,29 +120,55 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 分页 --> |
|
|
|
<!-- <el-pagination |
|
|
|
<el-pagination |
|
|
|
:current-page="currentPage4" |
|
|
|
:page-sizes="[100, 200, 300, 400]" |
|
|
|
:page-sizes="[10, 20, 30, 50,100]" |
|
|
|
:page-size="100" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
:total="400" |
|
|
|
:total="0" |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
/> --> |
|
|
|
<!-- <pagination /> --> |
|
|
|
/> |
|
|
|
<!-- <Pagination /> --> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// import pagination from '@crud/Pagination' |
|
|
|
// import Pagination from '@crud/Pagination' |
|
|
|
// import crudOperation from '@crud/CRUD.operation' |
|
|
|
// import CRUD, { presenter } from '@crud/crud' |
|
|
|
// import CRUD, { presenter } from "@crud/crud"; |
|
|
|
// import CRUD, { presenter, header, form } from '@crud/crud' |
|
|
|
import headSlot from '../components/headSlot.vue' |
|
|
|
import DateRangePicker from '@/components/DateRangePicker' |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { headSlot, DateRangePicker }, |
|
|
|
|
|
|
|
// mixins: [ |
|
|
|
// presenter() |
|
|
|
// header(), |
|
|
|
// form({}) |
|
|
|
// ], |
|
|
|
// cruds() { |
|
|
|
// return [ |
|
|
|
// CRUD({ |
|
|
|
// title: "字典内容", |
|
|
|
// url: "api/dictrionary/findSubsetById", |
|
|
|
// query: { id: "" }, |
|
|
|
// crudMethod: { ...crudDictDetail }, |
|
|
|
// optShow: { |
|
|
|
// add: false, |
|
|
|
// edit: true, |
|
|
|
// del: false, |
|
|
|
// reset: false, |
|
|
|
// download: false, |
|
|
|
// group: false, |
|
|
|
// }, |
|
|
|
// queryOnPresenterCreated: false, |
|
|
|
// confirmDeleteMsg: "确认删除当前字典内容么?", |
|
|
|
// sort: ["dicSequence,asc"], |
|
|
|
// }), |
|
|
|
// ]; |
|
|
|
// }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tableData: [], |
|
|
@ -173,12 +199,14 @@ export default { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
message: '删除成功!' |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消删除' |
|
|
|