1d54f177 by lihua

fix: 质量规则支持新建质检表

1 parent d8cd14ea
...@@ -177,4 +177,10 @@ export const updateModelRule = (params) => request({ ...@@ -177,4 +177,10 @@ export const updateModelRule = (params) => request({
177 url:`${import.meta.env.VITE_APP_QUALITY_BASEURL}/quality-model/conf/update`, 177 url:`${import.meta.env.VITE_APP_QUALITY_BASEURL}/quality-model/conf/update`,
178 method: 'post', 178 method: 'post',
179 data: params 179 data: params
180 })
181
182 // 获取产品目录guid下面的资源表
183 export const getDamCatalogTableList = (damGuid) => request({
184 url:`${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/quality/get-table-list?damGuid=${damGuid}`,
185 method: 'get'
180 }) 186 })
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -258,8 +258,8 @@ const groupTableInfo = ref({ ...@@ -258,8 +258,8 @@ const groupTableInfo = ref({
258 width: 92, 258 width: 92,
259 btns: (scope) => { 259 btns: (scope) => {
260 return [ 260 return [
261 { label: "编辑", value: "edit", disabled: scope.row.dataSource != '5' }, 261 { label: "编辑", value: "edit", disabled: scope.row.dataSource == '4' },
262 { label: "删除", value: "delete", disabled: scope.row.dataSource != '5' }, 262 { label: "删除", value: "delete", disabled: scope.row.dataSource == '4' },
263 ] 263 ]
264 }, 264 },
265 } 265 }
...@@ -675,13 +675,17 @@ const clickCreateGroup = () => { ...@@ -675,13 +675,17 @@ const clickCreateGroup = () => {
675 675
676 /** 新建质检表 */ 676 /** 新建质检表 */
677 const clickCreateTable = () => { 677 const clickCreateTable = () => {
678 let query: any = {
679 groupGuid: page.value.modelGroupGuid,
680 name: lastSelectNode.value.data.name,
681 dataSource: lastSelectNode.value.data.dataSource,
682 };
683 if (lastSelectNode.value.data.damGuid && lastSelectNode.value.data.children?.[0]?.dataSource != 5) {
684 query.damGuid = lastSelectNode.value.data.damGuid
685 }
678 router.push({ 686 router.push({
679 name: 'ruleModel', 687 name: 'ruleModel',
680 query: { 688 query: query
681 groupGuid: page.value.modelGroupGuid,
682 name: lastSelectNode.value.data.name,
683 dataSource: lastSelectNode.value.data.dataSource
684 }
685 }); 689 });
686 } 690 }
687 691
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!