|
|
|
@ -162,13 +162,18 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button type="primary" @click="addFastModal()">新增</el-button> |
|
|
|
<el-button type="primary" @click="goUp()">上移</el-button> |
|
|
|
<el-button type="primary" @click="goDown()">下移</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="300" |
|
|
|
:data="detailList" |
|
|
|
border |
|
|
|
@row-click="itemClickRow" |
|
|
|
v-loading="dataListLoading" |
|
|
|
ref="detailTable" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnDetailList" :key="index" |
|
|
|
@ -379,7 +384,9 @@ |
|
|
|
getItemLists, |
|
|
|
deleteModalDetail, // 项目单删 |
|
|
|
getSiteAndBuByUserName, |
|
|
|
getRoleByUserName |
|
|
|
getRoleByUserName, |
|
|
|
goUpItemEam, |
|
|
|
goDownItemEam, |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
@ -806,6 +813,9 @@ |
|
|
|
itemDesc: '', |
|
|
|
itemType: 'B', |
|
|
|
valueTypeDb: '', |
|
|
|
}, |
|
|
|
currentRow:{ |
|
|
|
|
|
|
|
}, |
|
|
|
//---------快速添加---------- |
|
|
|
fastAddFlag: false, |
|
|
|
@ -1257,6 +1267,10 @@ |
|
|
|
this.$refs.itemTable1.toggleRowSelection(row) |
|
|
|
}, |
|
|
|
|
|
|
|
itemClickRow(row){ |
|
|
|
this.currentRow= JSON.parse(JSON.stringify(row)) |
|
|
|
}, |
|
|
|
|
|
|
|
// 已有项目 |
|
|
|
itemClickRow2 (row) { |
|
|
|
this.$refs.itemTable2.toggleRowSelection(row) |
|
|
|
@ -1341,6 +1355,42 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
goUp() { |
|
|
|
goUpItemEam(this.currentRow).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
searchModalDetails(this.detailData).then(({data}) => { |
|
|
|
this.detailList = data.rows |
|
|
|
for (let i = 0; i <this.detailList.length ; i++) { |
|
|
|
if(this.detailList[i].itemNo===this.currentRow.itemNo){ |
|
|
|
this.$refs.detailTable.setCurrentRow(this.detailList[i]); |
|
|
|
this.currentRow=JSON.parse(JSON.stringify(this.detailList[i])) |
|
|
|
this.$message.success('操作成功') |
|
|
|
} |
|
|
|
} |
|
|
|
//this.objectSearch() |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
goDown() { |
|
|
|
goDownItemEam(this.currentRow).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
searchModalDetails(this.detailData).then(({data}) => { |
|
|
|
this.detailList = data.rows |
|
|
|
for (let i = 0; i <this.detailList.length ; i++) { |
|
|
|
if(this.detailList[i].itemNo===this.currentRow.itemNo){ |
|
|
|
this.$refs.detailTable.setCurrentRow(this.detailList[i]); |
|
|
|
this.currentRow=JSON.parse(JSON.stringify(this.detailList[i])) |
|
|
|
this.$message.success('操作成功') |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 动态列开始 获取 用户保存的 格式列 |
|
|
|
async getTableUserColumn (tableId, columnId) { |
|
|
|
let queryTableUser = { |
|
|
|
|