|
@@ -64,10 +64,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import { dealerProductBrandList, dealerProductBrandUpdate } from '@/api/dealerProductBrand'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import dealerAccountEditModal from './editModal.vue'
|
|
|
import dealerAccountDetailModal from './detailModal.vue'
|
|
|
+import { getPowerUserList } from '@/api/power-mduser'
|
|
|
export default {
|
|
|
components: { STable, VSelect, dealerAccountEditModal, dealerAccountDetailModal },
|
|
|
data () {
|
|
@@ -94,30 +94,14 @@ export default {
|
|
|
if (this.tableHeight == 0) {
|
|
|
this.tableHeight = window.innerHeight - 380
|
|
|
}
|
|
|
- // return dealerProductBrandList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
- // const data = res.data
|
|
|
- // const no = (data.pageNo - 1) * data.pageSize
|
|
|
- // for (var i = 0; i < data.list.length; i++) {
|
|
|
- // data.list[i].no = no + i + 1
|
|
|
- // }
|
|
|
- // this.disabled = false
|
|
|
- // return data
|
|
|
- // })
|
|
|
- const _this = this
|
|
|
- return new Promise(function (resolve, reject) {
|
|
|
- const data = {
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 10,
|
|
|
- list: [
|
|
|
- { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
|
|
|
- ]
|
|
|
- }
|
|
|
+ return getPowerUserList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ const data = res.data
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
|
data.list[i].no = no + i + 1
|
|
|
}
|
|
|
- _this.disabled = false
|
|
|
- resolve(data)
|
|
|
+ this.disabled = false
|
|
|
+ return data
|
|
|
})
|
|
|
},
|
|
|
openModal: false, // 新增编辑 弹框
|