|
@@ -5,7 +5,7 @@
|
|
|
ref="crudRef2"
|
|
|
v-model:search="search"
|
|
|
v-model="form"
|
|
|
- :data="data"
|
|
|
+ :data="datas"
|
|
|
:option="option"
|
|
|
@row-update="updateRow"
|
|
|
v-model:page="page"
|
|
@@ -57,10 +57,18 @@ const { selectionChange, multipleDelete } = Methords; //选中和批量删除事
|
|
|
const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等工具
|
|
|
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
-
|
|
|
+const datas = ref([]);
|
|
|
const refreshTra = (row) => {
|
|
|
commonConfig.value.params = { seqNo: row.seqNo,workOrderCode: row.workOrderCode};
|
|
|
- dataList();
|
|
|
+ search.value.processId = props.processId;
|
|
|
+ dataList().then(
|
|
|
+ ()=>{
|
|
|
+ if(data.value&&data.value.length>0){
|
|
|
+ datas.value=data.value[0].children;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ );
|
|
|
};
|
|
|
|
|
|
defineExpose({ refreshTra });
|
|
@@ -76,7 +84,14 @@ onMounted(() => {
|
|
|
if (userStore.user.userId === 10000) {
|
|
|
option.value.menu = true;
|
|
|
}
|
|
|
- dataList();
|
|
|
+ dataList().then(
|
|
|
+ ()=>{
|
|
|
+ if(data.value&&data.value.length>0){
|
|
|
+ datas.value=data.value[0].children;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ );
|
|
|
});
|
|
|
const doEdit = (row, index) => {
|
|
|
crudRef2.value && crudRef2.value.rowEdit(row, index);
|
|
@@ -107,6 +122,7 @@ option.value = Object.assign(option.value, {
|
|
|
label: "工序名称",
|
|
|
prop: "opName",
|
|
|
display: false,
|
|
|
+ hide: true,
|
|
|
},
|
|
|
{
|
|
|
label: "记录项名称",
|