优化
This commit is contained in:
@@ -184,6 +184,10 @@ public class WorkOrderServiceImpl implements WorkOrdereService {
|
|||||||
if(jo==null){
|
if(jo==null){
|
||||||
throw new BadRequestException("该记录不存在!");
|
throw new BadRequestException("该记录不存在!");
|
||||||
}
|
}
|
||||||
|
String status = jo.getString("status");
|
||||||
|
if(!"10".equals(status)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("workorder_id", String.valueOf(workorder_id));
|
param.put("workorder_id", String.valueOf(workorder_id));
|
||||||
param.put("is_delete", "1");
|
param.put("is_delete", "1");
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="mySelectionChange">
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="mySelectionChange">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-permission="['admin','producetask:del']"
|
v-permission="['admin','workorder:del','workorder:edit']"
|
||||||
min-width="60"
|
min-width="60"
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@@ -224,7 +224,7 @@ export default {
|
|||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
del: false,
|
del: true,
|
||||||
download: false,
|
download: false,
|
||||||
reset: false
|
reset: false
|
||||||
}})
|
}})
|
||||||
@@ -241,7 +241,9 @@ export default {
|
|||||||
fullscreenLoading: false,
|
fullscreenLoading: false,
|
||||||
checkrows: [],
|
checkrows: [],
|
||||||
permission: {
|
permission: {
|
||||||
del: ['admin', 'producetask:del']
|
add: ['admin', 'workorder:add'],
|
||||||
|
edit: ['admin', 'workorder:edit'],
|
||||||
|
del: ['admin', 'workorder:del']
|
||||||
},
|
},
|
||||||
form: { name: '' },
|
form: { name: '' },
|
||||||
rules: {
|
rules: {
|
||||||
@@ -275,6 +277,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mySelectionChange(rows) {
|
mySelectionChange(rows) {
|
||||||
this.buttonChange(rows)
|
this.buttonChange(rows)
|
||||||
|
this.crud.selectionChangeHandler(rows)
|
||||||
},
|
},
|
||||||
buttonChange(rows) {
|
buttonChange(rows) {
|
||||||
if (rows.length !== 0) {
|
if (rows.length !== 0) {
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ export default {
|
|||||||
optShow: {
|
optShow: {
|
||||||
add: true,
|
add: true,
|
||||||
edit: false,
|
edit: false,
|
||||||
del: false,
|
del: true,
|
||||||
reset: true,
|
reset: true,
|
||||||
download: false
|
download: false
|
||||||
}})
|
}})
|
||||||
@@ -372,6 +372,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mySelectionChange(rows) {
|
mySelectionChange(rows) {
|
||||||
this.buttonChange(rows)
|
this.buttonChange(rows)
|
||||||
|
this.crud.selectionChangeHandler(rows)
|
||||||
},
|
},
|
||||||
workorder_typeFormat2(row) {
|
workorder_typeFormat2(row) {
|
||||||
return this.dict.label.workorder_type2[row.workorder_type]
|
return this.dict.label.workorder_type2[row.workorder_type]
|
||||||
|
|||||||
Reference in New Issue
Block a user