| | |
| | | </el-row> |
| | | </el-form> |
| | | <el-button size="default" :icon="Delete" @click="clear">清除选择</el-button> |
| | | <el-table :data="tableData" style="width: 100%; margin-top: 20px" @cell-click="radio"> |
| | | <el-table :data="tableData" style="width: 100%; margin-top: 20px" > |
| | | <el-table-column align="center" width="70px"> |
| | | <template #default="scope"> |
| | | <el-radio-group v-model="radio1"> |
| | | <el-radio :label="scope.row.id" size="large">{{ null }}</el-radio> |
| | | <el-radio :label="scope.row.id" @click="radio(scope.row)" size="large">{{ null }}</el-radio> |
| | | </el-radio-group> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false" size="default">关闭</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false" size="default">确定</el-button> |
| | | <el-button type="primary" @click="submitForm" size="default">确定</el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | import { ElMessageBox, ElMessage, ElButton, ElInput, TabsPaneContext, FormInstance } from 'element-plus'; |
| | | import { goalManagementApi } from '/@/api/goalManagement'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | setup(props,{emit}) { |
| | | const dialogVisible = ref<boolean>(false); |
| | | const openDailog = () => { |
| | | dialogVisible.value = true; |
| | |
| | | ruleForm.pageIndex = val; |
| | | listApi(); |
| | | }; |
| | | // 提交 |
| | | const submitForm=()=>{ |
| | | dialogVisible.value = false |
| | | emit("typeDome",dynamicTags.value[0],list.value) |
| | | clear() |
| | | } |
| | | // 右方点击添加后显示标签 |
| | | const dynamicTags = ref(['']); |
| | | const handleClose = (tag: string) => { |
| | |
| | | radio1.value = ''; |
| | | }; |
| | | const radio1 = ref(''); |
| | | const list=ref([]) |
| | | const radio = (event: any) => { |
| | | dynamicTags.value[0] = event; |
| | | |
| | | goalManagementApi() |
| | | .getexamineTemplateDetail(event.id) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | list.value = res.data.data; |
| | | } else { |
| | | ElMessage.error(res.data.msg); |
| | | } |
| | | }); |
| | | dynamicTags.value[0] = event; |
| | | }; |
| | | const clear=()=>{ |
| | | dynamicTags.value=[''] |
| | |
| | | } |
| | | }; |
| | | return { |
| | | submitForm, |
| | | list, |
| | | reset, |
| | | dialogVisible, |
| | | listApi, |