2022-11-14 赵玉瑞 小修改

zhc4dev
赵玉瑞 2 years ago
parent 9cb3f88e41
commit e90909f844
  1. 78
      ant-design-vue-jeecg/src/views/process/ZyClothsMcList.vue
  2. 14
      ant-design-vue-jeecg/src/views/process/ZyClothsMccList.vue
  3. 14
      ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue
  4. 2
      ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue

@ -9,29 +9,30 @@
@cancel="handleCancel" @cancel="handleCancel"
> >
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <!-- <div class="table-page-search-wrapper">-->
<a-form layout="inline" @keyup.enter.native="searchQuery"> <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<a-row :gutter="24"> <!-- <a-row :gutter="24">-->
</a-row> <!-- </a-row>-->
</a-form> <!-- </a-form>-->
</div> <!-- </div>-->
<!-- 查询区域-END --> <!-- 查询区域-END -->
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd1(zyCMId)" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd1(zyCMId)" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('制衣模块和模块部件中间表')">导出</a-button> <!-- <a-button type="primary" icon="download" @click="handleExportXls('制衣模块和模块部件中间表')">导出</a-button>-->
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<a-button type="primary" icon="import">导入</a-button> <!-- <a-button type="primary" icon="import">导入</a-button>-->
</a-upload> <!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- &lt;!&ndash; 高级查询区域 &ndash;&gt;-->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
<a-menu slot="overlay"> <!-- <a-menu slot="overlay">-->
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
</a-menu> <!-- </a-menu>-->
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> <!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
</a-dropdown> <!-- <a-button key="1" style="margin-left: 8px" @click="batchDel"> 批量删除 <a-icon type="delete"/></a-button>-->
<!-- </a-dropdown>-->
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
@ -49,32 +50,31 @@
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="ipagination"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap" class="j-table-force-nowrap"
:loading="loading" :loading="loading"
@change="handleTableChange"> @change="handleTableChange">
<template slot="htmlSlot" slot-scope="text"> <!-- <template slot="htmlSlot" slot-scope="text">-->
<div v-html="text"></div> <!-- <div v-html="text"></div>-->
</template> <!-- </template>-->
<template slot="imgSlot" slot-scope="text"> <!-- <template slot="imgSlot" slot-scope="text">-->
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> <!-- <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>-->
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> <!-- <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>-->
</template> <!-- </template>-->
<template slot="fileSlot" slot-scope="text"> <!-- <template slot="fileSlot" slot-scope="text">-->
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> <!-- <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>-->
<a-button <!-- <a-button-->
v-else <!-- v-else-->
:ghost="true" <!-- :ghost="true"-->
type="primary" <!-- type="primary"-->
icon="download" <!-- icon="download"-->
size="small" <!-- size="small"-->
@click="downloadFile(text)"> <!-- @click="downloadFile(text)">-->
下载 <!-- 下载-->
</a-button> <!-- </a-button>-->
</template> <!-- </template>-->
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>

@ -26,12 +26,12 @@
<!-- </a-upload>--> <!-- </a-upload>-->
<!-- &lt;!&ndash; 高级查询区域 &ndash;&gt;--> <!-- &lt;!&ndash; 高级查询区域 &ndash;&gt;-->
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>--> <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
<a-menu slot="overlay"> <!-- <a-menu slot="overlay">-->
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
</a-menu> <!-- </a-menu>-->
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> <!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
</a-dropdown> <!-- </a-dropdown>-->
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
@ -49,7 +49,7 @@
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap" class="j-table-force-nowrap"

@ -1,12 +1,12 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <!-- <div class="table-page-search-wrapper">-->
<a-form layout="inline" @keyup.enter.native="searchQuery"> <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<a-row :gutter="24"> <!-- <a-row :gutter="24">-->
</a-row> <!-- </a-row>-->
</a-form> <!-- </a-form>-->
</div> <!-- </div>-->
<!-- 查询区域-END --> <!-- 查询区域-END -->
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
@ -77,7 +77,7 @@
</template> </template>
<span slot="action2" slot-scope="text, record"> <span slot="action2" slot-scope="text, record">
<a @click="viewVid(record)">管理</a> <a @click="viewVid(record)">查看</a>
</span> </span>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>

@ -77,7 +77,7 @@
</template> </template>
<span slot="action2" slot-scope="text, record"> <span slot="action2" slot-scope="text, record">
<a @click="viewVid(record)">管理</a> <a @click="viewVid(record)">查看</a>
</span> </span>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">

Loading…
Cancel
Save