fix:gx获取工段用name查询
This commit is contained in:
parent
37eacdadfe
commit
5c0f9acf2f
|
|
@ -138,7 +138,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.length < 1) {
|
if (res.length < 1) {
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ export default {
|
||||||
}else{//工段交接
|
}else{//工段交接
|
||||||
that.printer_name = localStorage.getItem("printer_name");
|
that.printer_name = localStorage.getItem("printer_name");
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.length < 1) {
|
if (res.length < 1) {
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ export default {
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.length < 1) {
|
if (res.length < 1) {
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$nextTick(() => {
|
that.$nextTick(() => {
|
||||||
that.$API.mtm.mgroup.list.req({ page: 0, search: that.mgroupName }).then((res) => {
|
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
|
||||||
if (res.length < 1) {
|
if (res.length < 1) {
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.length < 1) {
|
if (res.length < 1) {
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if(res.length != 1){
|
if(res.length != 1){
|
||||||
that.$message.error("获取工段错误");
|
that.$message.error("获取工段错误");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue