This commit is contained in:
kbing1981 2024-08-23 21:46:34 +08:00
parent f9e79f4f23
commit f71a00ddbe
4 changed files with 24 additions and 24 deletions

View File

@ -28,14 +28,14 @@
</div> </div>
<a-row> <a-row>
<a-col <a-col
:span="24" :span="23"
v-for="(item, index) in zyJxdgMainTable.dataSource" v-for="(item, index) in zyJxdgMainTable.dataSource"
:key="index" :key="index"
style="border: 1px solid #f5f5f5; margin: 5px 0; background: #fbfbfb; border-radius: 5px" style="margin:8px auto;border:1px solid #f5f5f5;background:#fbfbfb;border-radius:5px;"
> >
<a-row c> <a-row c>
<a-col :span="24" style="margin-bottom: 15px; height: 40px; background-color: #f5f7fa; border-left: 3px solid #19a789"> <a-col :span="24">
<span class="title">{{ item.title }}</span> <div class="title">{{ item.title }}</div>
</a-col> </a-col>
<!-- 单行文本 1 --> <!-- 单行文本 1 -->
<a-col v-if="item.type === '1'" :span="24"> <a-col v-if="item.type === '1'" :span="24">
@ -51,6 +51,7 @@
</a-col> </a-col>
<!-- 固定表单基础信息 4 --> <!-- 固定表单基础信息 4 -->
<a-col v-else-if="item.type === '4'" v-model:value="item.content" :span="24"> <a-col v-else-if="item.type === '4'" v-model:value="item.content" :span="24">
<a-col style="margin-bottom:15px;" ></a-col>
<a-form v-bind="formItemLayout"> <a-form v-bind="formItemLayout">
<a-row> <a-row>
<a-col v-for="(item2, index2) in item.zyJxdgPzxxList" :key="index2" :span="12"> <a-col v-for="(item2, index2) in item.zyJxdgPzxxList" :key="index2" :span="12">
@ -76,6 +77,7 @@
<a-col> <a-col>
<a-button type="primary" @click="handleDhwb(item)" class="increase" >添加</a-button> <a-button type="primary" @click="handleDhwb(item)" class="increase" >添加</a-button>
</a-col> </a-col>
<a-col style="margin-bottom:15px;" ></a-col>
<a-col v-for="(item2, index2) in item.list" :key="index2" > <a-col v-for="(item2, index2) in item.list" :key="index2" >
<a-input <a-input
placeholder="请输入内容" placeholder="请输入内容"
@ -84,7 +86,7 @@
style="width: 80%; margin: 0 10px 10px 15px" style="width: 80%; margin: 0 10px 10px 15px"
@blur="handleGlxm(item)" @blur="handleGlxm(item)"
></a-input> ></a-input>
<a-button type="danger" @click="handleDhwbDel(item, index2)" style="margin: 10px 0; text-align: right">删除</a-button> <button type="danger" @click="handleDhwbDel(item, index2)" class="ant-btn">删除</button>
</a-col> </a-col>
</a-row> </a-row>
</a-col> </a-col>
@ -96,7 +98,7 @@
</a-col> </a-col>
<a-col v-for="(item2, index2) in item.list" :key="index2" style="text-align: right"> <a-col v-for="(item2, index2) in item.list" :key="index2" style="text-align: right">
<j-editor placeholder="请输入内容" v-model:value="item2.title" :disabled="disabled" style="width: 500px; height: 200px" /> <j-editor placeholder="请输入内容" v-model:value="item2.title" :disabled="disabled" style="width: 500px; height: 200px" />
<a-button type="danger" @click="handleDhfwbDel(item, index2)" class="place-dele">删除</a-button> <button type="danger" @click="handleDhfwbDel(item, index2)" class="ant-btn" style="margin:8px 0">删除</button>
</a-col> </a-col>
</a-row> </a-row>
</a-col> </a-col>
@ -108,7 +110,7 @@
</a-col> </a-col>
<a-col v-for="(item2, index2) in item.list" :key="index2" style="text-align: right"> <a-col v-for="(item2, index2) in item.list" :key="index2" style="text-align: right">
<a-textarea placeholder="请输入内容" v-model:value="item2.title" :disabled="disabled" /> <a-textarea placeholder="请输入内容" v-model:value="item2.title" :disabled="disabled" />
<a-button type="danger" @click="handleDhwbAreaDel(item, index2)" class="place-dele">删除</a-button> <button type="danger" @click="handleDhwbAreaDel(item, index2)" class="ant-btn">删除</button>
</a-col> </a-col>
</a-row> </a-row>
</a-col> </a-col>
@ -119,7 +121,7 @@
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false"> <a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-button type="danger" @click="handleZzbgDel(item.list, record.sort)">删除</a-button> <button type="danger" @click="handleZzbgDel(item.list, record.sort)" class="ant-btn" >删除</button>
</template> </template>
<template v-else> <template v-else>
<a-input placeholder="请输入内容" v-model:value="record[column.key]" style="width: 100%"></a-input> <a-input placeholder="请输入内容" v-model:value="record[column.key]" style="width: 100%"></a-input>
@ -133,7 +135,7 @@
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false"> <a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-button type="danger" @click="handleZzbgDel(item.list, record.sort)">删除</a-button> <button type="danger" @click="handleZzbgDel(item.list, record.sort)" class="ant-btn">删除</button>
</template> </template>
<template v-else> <template v-else>
<a-input placeholder="请输入内容" v-model:value="record[column.key]" @blur="handleTwoGlxm(item)" style="width: 100%"></a-input> <a-input placeholder="请输入内容" v-model:value="record[column.key]" @blur="handleTwoGlxm(item)" style="width: 100%"></a-input>
@ -524,13 +526,11 @@ export default defineComponent({
</script> </script>
<style scoped lang="less" > <style scoped lang="less" >
.title { .title {
width: 80%;
font-size: 16px;
font-weight: bold;
padding-left: 10px;
position: relative; position: relative;
color: #333333; height: 40px;
line-height: 40px; line-height: 40px;
background-color: rgb(246, 246, 246);
padding:0 20px;
} }
.tishi { .tishi {
width: 100%; width: 100%;
@ -547,8 +547,8 @@ export default defineComponent({
} }
.increase { .increase {
position: absolute; position: absolute;
right: 6px; right: 4px;
top: -51px; top: -37px;
} }
.place-dele { .place-dele {
margin: 10px 0; margin: 10px 0;

View File

@ -1,5 +1,5 @@
<template> <template>
<BasicModal v-bind="$attrs" @register="registerModal" :title="title" :width="800" @ok="handleSubmit"> <BasicModal v-bind="$attrs" @register="registerModal" :title="title" :width="1100" @ok="handleSubmit">
<zy-jxdg-banben-form ref="formComponent" :formDisabled="formDisabled" :formBpm="false" @success="submitSuccess"></zy-jxdg-banben-form> <zy-jxdg-banben-form ref="formComponent" :formDisabled="formDisabled" :formBpm="false" @success="submitSuccess"></zy-jxdg-banben-form>
</BasicModal> </BasicModal>
</template> </template>

View File

@ -1,6 +1,6 @@
<template> <template>
<a-spin :spinning="loading" > <a-spin :spinning="loading" >
<a-form v-bind="formItemLayout" style="background:#fafafa; border-radius: 10px; padding-top:20px; margin-bottom:10px;" > <a-form v-bind="formItemLayout" style=" padding-top:20px;" >
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="版本" v-bind="validateInfos.title"> <a-form-item label="版本" v-bind="validateInfos.title">
@ -21,7 +21,7 @@
</a-form> </a-form>
<a-row> <a-row>
<a-col :span="24" style="text-align:left;"> <a-col :span="23" style="text-align:left; margin:0 auto;">
<a-button type="primary" @click="handleOneType" preIcon="ant-design:plus-outlined">新增项目</a-button> <a-button type="primary" @click="handleOneType" preIcon="ant-design:plus-outlined">新增项目</a-button>
<div style="background:#fff4e6; border:1px solid #ffe8ca; border-radius: 8px; padding:10px; margin:10px 0;"> <div style="background:#fff4e6; border:1px solid #ffe8ca; border-radius: 8px; padding:10px; margin:10px 0;">
<div style="font-weight: bold;">说明</div> <div style="font-weight: bold;">说明</div>
@ -30,7 +30,7 @@
<div class="explain-word">3.被关联项目禁用问题目前只支持文本及表格进行关联富文本表单多行文本不支持被关联</div> <div class="explain-word">3.被关联项目禁用问题目前只支持文本及表格进行关联富文本表单多行文本不支持被关联</div>
</div> </div>
</a-col> </a-col>
<a-col :span="24" v-for="(item,index) in zyJxdgMainTable.dataSource" :key="index" style="border:1px solid #f5f5f5;padding:10px;margin:5px 0; background:#fbfbfb;border-radius:5px;"> <a-col :span="23" v-for="(item,index) in zyJxdgMainTable.dataSource" :key="index" style="margin:8px auto;border:1px solid #f5f5f5;padding:10px;background:#fbfbfb;border-radius:5px;">
<a-row style="margin:10px;"> <a-row style="margin:10px;">
<a-col :span="6" style="padding-right:10px;"> <a-col :span="6" style="padding-right:10px;">
<a-input v-model:value="item.title" placeholder="请输入标题" :disabled="disabled" class="input-title"/> <a-input v-model:value="item.title" placeholder="请输入标题" :disabled="disabled" class="input-title"/>

View File

@ -1,5 +1,5 @@
<template> <template>
<BasicModal v-bind="$attrs" @register="registerModal" :title="title" :width="800" @ok="handleSubmit"> <BasicModal v-bind="$attrs" @register="registerModal" :title="title" :width="1100" @ok="handleSubmit">
<zy-jxdg-banben-form ref="formComponent" :formDisabled="formDisabled" :formBpm="false" @success="submitSuccess"></zy-jxdg-banben-form> <zy-jxdg-banben-form ref="formComponent" :formDisabled="formDisabled" :formBpm="false" @success="submitSuccess"></zy-jxdg-banben-form>
</BasicModal> </BasicModal>
</template> </template>