|
|
@ -7,9 +7,9 @@ |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<!-- <a-form-item label="车间ID">--> |
|
|
|
<!-- <a-form-item label="车间ID">--> |
|
|
|
<!-- <a-input placeholder="请输入车间ID" v-model="queryParam.departId"></a-input>--> |
|
|
|
<!-- <a-input placeholder="请输入车间ID" v-model="queryParam.departId"></a-input>--> |
|
|
|
<!-- </a-form-item>--> |
|
|
|
<!-- </a-form-item>--> |
|
|
|
<a-form-model-item label="车间编号"> |
|
|
|
<a-form-model-item label="车间编号"> |
|
|
|
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> |
|
|
|
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> |
|
|
|
<j-select-depart placeholder="请选择车间" v-model="queryParam.departId"/> |
|
|
|
<j-select-depart placeholder="请选择车间" v-model="queryParam.departId"/> |
|
|
@ -26,10 +26,10 @@ |
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">--> |
|
|
|
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">--> |
|
|
|
<!-- {{ toggleSearchStatus ? '收起' : '展开' }}--> |
|
|
|
<!-- {{ toggleSearchStatus ? '收起' : '展开' }}--> |
|
|
|
<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>--> |
|
|
|
<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>--> |
|
|
|
<!-- </a>--> |
|
|
|
<!-- </a>--> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
@ -85,10 +85,10 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
<!-- <a @click="handleDetail(record)">详情</a>--> |
|
|
|
<!-- <a @click="handleDetail(record)">详情</a>--> |
|
|
|
<a-divider type="vertical"/> |
|
|
|
<a-divider type="vertical"/> |
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete2(record.id)"> |
|
|
|
<a>删除</a> |
|
|
|
<a>删除</a> |
|
|
|
</a-popconfirm> |
|
|
|
</a-popconfirm> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -106,6 +106,7 @@ import '@/assets/less/TableExpand.less' |
|
|
|
import {mixinDevice} from '@/utils/mixin' |
|
|
|
import {mixinDevice} from '@/utils/mixin' |
|
|
|
import StationModal from './modules/StationModal' |
|
|
|
import StationModal from './modules/StationModal' |
|
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
|
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
|
|
|
|
|
|
|
import {deleteAction, getAction} from "@api/manage"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "StationList", |
|
|
|
name: "StationList", |
|
|
@ -171,6 +172,7 @@ export default { |
|
|
|
], |
|
|
|
], |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
list: "/team/station/list", |
|
|
|
list: "/team/station/list", |
|
|
|
|
|
|
|
queryIsCanDelete: "/team/station/queryIsCanDelete", |
|
|
|
delete: "/team/station/delete", |
|
|
|
delete: "/team/station/delete", |
|
|
|
deleteBatch: "/team/station/deleteBatch", |
|
|
|
deleteBatch: "/team/station/deleteBatch", |
|
|
|
exportXlsUrl: "/team/station/exportXls", |
|
|
|
exportXlsUrl: "/team/station/exportXls", |
|
|
@ -203,6 +205,37 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleDelete2: function (id) { |
|
|
|
|
|
|
|
if (!this.url.queryIsCanDelete) { |
|
|
|
|
|
|
|
this.$message.error("请设置url.delete属性!") |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// let dataTotal = 0; |
|
|
|
|
|
|
|
let param = { |
|
|
|
|
|
|
|
id: id |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getAction(this.url.queryIsCanDelete, param).then((res) => { |
|
|
|
|
|
|
|
console.log("queryIsCanDelete res:" + JSON.stringify(res)); |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
if (res.result > 0) { |
|
|
|
|
|
|
|
this.$message.warning("暂不可删除,子模块正在使用!"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
var that = this; |
|
|
|
|
|
|
|
deleteAction(that.url.delete, param).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
//重新计算分页问题 |
|
|
|
|
|
|
|
that.reCalculatePage(1) |
|
|
|
|
|
|
|
that.$message.success(res.message); |
|
|
|
|
|
|
|
that.loadData(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
that.$message.warning(res.message); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|