Commit a034bb62 authored by LiXuyang's avatar LiXuyang

编辑页面

parent 0a21974d
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
// 编辑 // 编辑
icon: 'ant-design:edit-outlined', icon: 'ant-design:edit-outlined',
tooltip: '编辑', tooltip: '编辑',
onClick: handleDetail.bind(null, record), onClick: handleUpdate.bind(null, record),
}, },
{ {
// 移动 // 移动
...@@ -99,8 +99,10 @@ ...@@ -99,8 +99,10 @@
tooltip: '复制到', tooltip: '复制到',
}, },
{ {
// 移动 // 详情
icon: 'ion:document-text-outline', icon: 'ion:document-text-outline',
tooltip: '详情',
onClick: handleDetail.bind(null, record),
}, },
]" ]"
/> />
...@@ -190,12 +192,20 @@ ...@@ -190,12 +192,20 @@
} }
// 跳转详情页 // 跳转详情页
function handleDetail(record) { function handleUpdate(record) {
push({ push({
path: '/dataStandards/labelDropInspection/labelDetail', path: '/dataStandards/labelDropInspection/labelDetail',
query: { ...record, ...{ path: path.value + '/' + record.name } }, query: { ...record, ...{ path: path.value + '/' + record.name } },
}); });
} }
// 跳转详情页
function handleDetail(record) {
push({
path: '/dataStandards/labelDropInspection/labelDetail',
query: { ...record, ...{ path: path.value + '/' + record.name, isDetail: true } },
});
}
// 列表删除 // 列表删除
function handleRemove(record) { function handleRemove(record) {
createMessage.success('删除成功!'); createMessage.success('删除成功!');
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
<div class="flex" style="gap: 10px"> <div class="flex" style="gap: 10px">
<span>是否运行质量检查</span> <span>是否运行质量检查</span>
<QuestionCircleOutlined /> <BasicHelp text="是否运行质量检查" />
<RadioGroup :disabled="disabled" v-model:value="checkType"> <RadioGroup :disabled="disabled" v-model:value="checkType">
<Radio :value="item" v-for="item in ['是', '否']" :key="item">{{ item }}</Radio> <Radio :value="item" v-for="item in ['是', '否']" :key="item">{{ item }}</Radio>
</RadioGroup> </RadioGroup>
...@@ -167,6 +167,7 @@ ...@@ -167,6 +167,7 @@
import AddMetadataModel from './addMetadataModel.vue'; import AddMetadataModel from './addMetadataModel.vue';
import AddStandardModel from './AddStandardModel.vue'; import AddStandardModel from './AddStandardModel.vue';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import BasicHelp from "@/components/Basic/src/BasicHelp.vue";
// 初始化 // 初始化
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
...@@ -174,7 +175,8 @@ ...@@ -174,7 +175,8 @@
const route = useRoute(); const route = useRoute();
const searchInfo = reactive<Recordable>({}); const searchInfo = reactive<Recordable>({});
const isOnline = ref(false); const isOnline = ref(false);
const disabled = computed(() => isOnline.value); // 上线或者编辑页面,都禁用修改
const disabled = computed(() => isOnline.value || route.query.isDetail);
const checkType = ref('否'); const checkType = ref('否');
const searchBasic = ref(); const searchBasic = ref();
const searchPath = ref(); const searchPath = ref();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment