|
@@ -123,6 +123,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
import SpotcheckModal from './modules/SpotcheckModal.vue'
|
|
|
+ import { deleteAction, getAction,downFile,getFileAccessHttpUrl } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
|
name: 'SpotcheckList',
|
|
@@ -130,9 +131,19 @@
|
|
|
components: {
|
|
|
SpotcheckModal
|
|
|
},
|
|
|
+ props: {
|
|
|
+ selectData: {
|
|
|
+ type: Object,
|
|
|
+ default: function(){
|
|
|
+ return {} // 使用工厂函数返回默认值
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
description: '设备点检管理页面',
|
|
|
+ // 查询参数
|
|
|
+ queryParam: {},
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -156,7 +167,7 @@
|
|
|
dataIndex: 'contentname'
|
|
|
},
|
|
|
{
|
|
|
- title:'设备ID',
|
|
|
+ title:'设备',
|
|
|
align:"center",
|
|
|
dataIndex: 'equipmentid_dictText'
|
|
|
},
|
|
@@ -210,6 +221,41 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ loadData(arg) {
|
|
|
+ if(!this.url.list){
|
|
|
+ this.$message.error("请设置url.list属性!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //加载数据 若传入参数1则加载第一页的内容
|
|
|
+ if (arg === 1) {
|
|
|
+ this.ipagination.current = 1;
|
|
|
+ }
|
|
|
+ var params = this.getQueryParams();//查询条件
|
|
|
+ this.loading = true;
|
|
|
+ getAction(this.url.list, params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
|
+ this.dataSource = res.result.records||res.result;
|
|
|
+ if(res.result.total)
|
|
|
+ {
|
|
|
+ this.ipagination.total = res.result.total;
|
|
|
+ }else{
|
|
|
+ this.ipagination.total = 0;
|
|
|
+ }
|
|
|
+ //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 处理父组件传过来的数据
|
|
|
+ getDataList(){
|
|
|
+ // console.log(111,this.selectData)
|
|
|
+ this.queryParam.equipmentid = this.selectData.id
|
|
|
+ this.loadData()
|
|
|
+ },
|
|
|
initDictConfig(){
|
|
|
},
|
|
|
getSuperFieldList(){
|