|
@@ -82,6 +82,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import TableFooter from "../../components/TableFooter";
|
|
import TableFooter from "../../components/TableFooter";
|
|
|
|
+import {mapState} from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: "deviceAdmin",
|
|
name: "deviceAdmin",
|
|
data() {
|
|
data() {
|
|
@@ -134,7 +135,7 @@ export default {
|
|
label: '50条/页'
|
|
label: '50条/页'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- pageSize: 0, // 表格显示条数
|
|
|
|
|
|
+ pageSize: 20, // 表格显示条数
|
|
tableData: [], // 表格数据
|
|
tableData: [], // 表格数据
|
|
totalPages: 0, // 共 n 条数据
|
|
totalPages: 0, // 共 n 条数据
|
|
pageIndex: 1, // 表格当前页数
|
|
pageIndex: 1, // 表格当前页数
|
|
@@ -144,23 +145,26 @@ export default {
|
|
components: {
|
|
components: {
|
|
TableFooter
|
|
TableFooter
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['baseUrl'])
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 初始化
|
|
// 初始化
|
|
init () {
|
|
init () {
|
|
this.$http({
|
|
this.$http({
|
|
- url: this.$http.adornUrl('/managercollectorregiste/list'),
|
|
|
|
|
|
+ url: this.$http.adornUrl(`${this.baseUrl}/manager/collectorregister/list`),
|
|
method: 'get',
|
|
method: 'get',
|
|
params: this.$http.adornParams({
|
|
params: this.$http.adornParams({
|
|
'page': this.pageIndex,
|
|
'page': this.pageIndex,
|
|
'limit': this.pageSize,
|
|
'limit': this.pageSize,
|
|
- 'farmCode': this.form.farmCode || undefined,
|
|
|
|
- 'registerStartTime': this.form.registerStartTime || undefined,
|
|
|
|
- 'registerEndTime': this.form.registerEndTime || undefined,
|
|
|
|
- 'deviceCode': this.form.deviceCode || undefined,
|
|
|
|
- 'countyName': this.form.countyName || undefined,
|
|
|
|
- 'farmName': this.form.farmName || undefined,
|
|
|
|
- 'acqStatus': this.form.acqStatus || undefined,
|
|
|
|
- 'sortord': this.form.sortord || undefined,
|
|
|
|
|
|
+ // 'farmCode': this.form.farmCode || undefined,
|
|
|
|
+ // 'registerStartTime': this.form.registerStartTime || undefined,
|
|
|
|
+ // 'registerEndTime': this.form.registerEndTime || undefined,
|
|
|
|
+ // 'deviceCode': this.form.deviceCode || undefined,
|
|
|
|
+ // 'countyName': this.form.countyName || undefined,
|
|
|
|
+ // 'farmName': this.form.farmName || undefined,
|
|
|
|
+ // 'acqStatus': this.form.acqStatus || undefined,
|
|
|
|
+ // 'sortord': this.form.sortord || undefined,
|
|
}, false)
|
|
}, false)
|
|
}).then(async({data}) => {
|
|
}).then(async({data}) => {
|
|
console.log(data);
|
|
console.log(data);
|