|
@@ -6,7 +6,7 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="工单id">
|
|
|
- <a-input placeholder="请输入工单id" v-model="queryParam.woId"></a-input>
|
|
|
+ <a-input placeholder="请输入工单id" values="123" v-model="queryParam.woId"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
@@ -14,7 +14,7 @@
|
|
|
<j-multi-select-tag placeholder="请选择试验类型" dictCode="shiiyan_type" v-model="queryParam.shiyanType"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <template v-if="toggleSearchStatus">
|
|
|
+ <template v-if="toggleSearchStatus">
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="试验开始时间">
|
|
|
<a-input placeholder="请输入试验开始时间" v-model="queryParam.shiyanKaishitime"></a-input>
|
|
@@ -35,7 +35,7 @@
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
- <a-button type="primary" @click="searchQuery" icon="sengch" style="margin-left: 8px">生成</a-button>
|
|
|
+ <a-button type="primary" @click="create" icon="sengch" style="margin-left: 8px">生成</a-button>
|
|
|
<a @click="handleToggleSearch" style="margin-left: 8px">
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
|
@@ -48,14 +48,14 @@
|
|
|
<!-- 查询区域-END -->
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
- <div class="table-operator">
|
|
|
+ <!-- <div class="table-operator">
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</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-button type="primary" icon="import">导入</a-button>
|
|
|
- </a-upload>
|
|
|
+ </a-upload> -->
|
|
|
<!-- 高级查询区域 -->
|
|
|
- <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-menu slot="overlay">
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
@@ -106,11 +106,11 @@
|
|
|
</template>
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a @click="handleEdit(record)">上传图片并确认</a>
|
|
|
+ <a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
<a-dropdown>
|
|
|
- <!-- <a class="ant-dropdown-link">确定 <a-icon type="down" /></a> -->
|
|
|
+ <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
|
<a-menu slot="overlay">
|
|
|
<a-menu-item>
|
|
|
<a @click="handleDetail(record)">详情</a>
|
|
@@ -132,13 +132,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
- import '@/assets/less/TableExpand.less'
|
|
|
+ import { httpAction, getAction } from '@/api/manage'
|
|
|
+ import '@assets/less/TableExpand.less'
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmGongdanShujuModal from './modules/ItdmGongdanShujuModal'
|
|
|
- import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
-
|
|
|
+ import {filterMultiDictText} from '@comp/dict/JDictSelectUtil'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'ItdmGongdanShujuList',
|
|
|
mixins:[JeecgListMixin, mixinDevice],
|
|
@@ -147,6 +147,13 @@
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ // queryParam:{
|
|
|
+ // woId:"1660195756643786754",
|
|
|
+ // shiyanType:"0,1",
|
|
|
+ // shiyanKaishitime:"00:00",
|
|
|
+ // shiyanJieshutime:"23:59",
|
|
|
+ // pinci:"90"
|
|
|
+ // },
|
|
|
description: '工单数据管理页面',
|
|
|
// 表头
|
|
|
columns: [
|
|
@@ -222,11 +229,12 @@
|
|
|
],
|
|
|
url: {
|
|
|
list: "/itdmgomgongdanshuju/ItdmGongdanshuju/list",
|
|
|
- delete: "/itdmgongdanshuju/itdmGongdanShuju/delete",
|
|
|
- deleteBatch: "/itdmgongdanshuju/itdmGongdanShuju/deleteBatch",
|
|
|
+ delete: "/itdmgomgongdanshuju/ItdmGongdanShuju/delete",
|
|
|
+ deleteBatch: "/itdmgomgongdanshuju/ItdmGongdanshuju/deleteBatch",
|
|
|
exportXlsUrl: "/itdmgongdanshuju/itdmGongdanShuju/exportXls",
|
|
|
importExcelUrl: "itdmgongdanshuju/itdmGongdanShuju/importExcel",
|
|
|
-
|
|
|
+ add: "/itdmgomgongdanshuju/ItdmGongdanshuju/add",
|
|
|
+
|
|
|
},
|
|
|
dictOptions:{},
|
|
|
superFieldList:[],
|
|
@@ -256,6 +264,18 @@
|
|
|
fieldList.push({type:'Text',value:'extraPic',text:'试验图片',dictCode:''})
|
|
|
fieldList.push({type:'string',value:'remark',text:'备注',dictCode:''})
|
|
|
this.superFieldList = fieldList
|
|
|
+ },
|
|
|
+ create(){
|
|
|
+ httpAction("/itdmgomgongdanshuju/ItdmGongdanshuju/create",this.queryParam,"post").then((res)=>{
|
|
|
+ if(res.success){
|
|
|
+ that.$message.success(res.message);
|
|
|
+ that.$emit('ok');
|
|
|
+ }else{
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ this.searchReset();
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|