Merge pull request 'master-模板替换' (#15) from master-模板替换 into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/15
This commit is contained in:
commit
4751d4f043
@ -377,7 +377,7 @@ export default {
|
|||||||
for (var i = 0; i < fileNodes.length; i++) {
|
for (var i = 0; i < fileNodes.length; i++) {
|
||||||
if (fileNodes[i].className.indexOf("el-table__cell") != -1) {
|
if (fileNodes[i].className.indexOf("el-table__cell") != -1) {
|
||||||
fileNodes[i].classList.remove("seled");
|
fileNodes[i].classList.remove("seled");
|
||||||
// console.log("===selList.length==>",selList.length);
|
// console.log("===selList.length==>",selList.length);
|
||||||
selList.push(fileNodes[i]);
|
selList.push(fileNodes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -554,7 +554,7 @@ export default {
|
|||||||
if (selDiv) {
|
if (selDiv) {
|
||||||
xdTableObj.getElementsByClassName("el-table__body-wrapper")[0].removeChild(selDiv);
|
xdTableObj.getElementsByClassName("el-table__body-wrapper")[0].removeChild(selDiv);
|
||||||
}
|
}
|
||||||
selList = null, _x = null, _y = null, selDiv = null, startX = null, startY = null, evt = null;
|
selList = [], _x = null, _y = null, selDiv = null, startX = null, startY = null, evt = null;
|
||||||
vnode.context.mouseflag = false;
|
vnode.context.mouseflag = false;
|
||||||
vnode.context.handleBatchSelect();
|
vnode.context.handleBatchSelect();
|
||||||
// cancelContextMenu();
|
// cancelContextMenu();
|
||||||
|
|||||||
@ -158,6 +158,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
size="mini"
|
size="mini"
|
||||||
|
:disabled="batchAdd"
|
||||||
@click="handleBatchAdd"
|
@click="handleBatchAdd"
|
||||||
>批量新增</el-button>
|
>批量新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -400,6 +401,8 @@ export default {
|
|||||||
tmpDataList: [],
|
tmpDataList: [],
|
||||||
selectionList:[],
|
selectionList:[],
|
||||||
selectionIndexList: [],
|
selectionIndexList: [],
|
||||||
|
//非批量新增禁用
|
||||||
|
batchAdd:true,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -479,6 +482,7 @@ export default {
|
|||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
|
this.batchAdd = true;
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
@ -494,7 +498,7 @@ export default {
|
|||||||
let [lastObj]=selection.slice(-1);
|
let [lastObj]=selection.slice(-1);
|
||||||
this.currentQuote=lastObj;
|
this.currentQuote=lastObj;
|
||||||
this.single = selection.length!==1
|
this.single = selection.length!==1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
handleSelectionSiteChange(selection) {
|
handleSelectionSiteChange(selection) {
|
||||||
this.ids = selection.map(item => item.baseSiteId)
|
this.ids = selection.map(item => item.baseSiteId)
|
||||||
@ -531,7 +535,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
if( row.quoteId || this.ids.length>1){
|
//ids去掉空元素
|
||||||
|
if( row.quoteId || this.ids.filter(Boolean).length>1){
|
||||||
this.resetRefreshId="vipquote-"+this.getUUID();
|
this.resetRefreshId="vipquote-"+this.getUUID();
|
||||||
this.currentId = row.quoteId || this.ids;
|
this.currentId = row.quoteId || this.ids;
|
||||||
this.openForm = true;
|
this.openForm = true;
|
||||||
@ -702,6 +707,7 @@ export default {
|
|||||||
loadingInstance.close()
|
loadingInstance.close()
|
||||||
},
|
},
|
||||||
batchImpDataForm() {
|
batchImpDataForm() {
|
||||||
|
this.batchAdd = false;
|
||||||
// 判断是否有数据
|
// 判断是否有数据
|
||||||
if(this.tmpDataList.length==0){
|
if(this.tmpDataList.length==0){
|
||||||
this.$modal.msgError('表格中没有数据');
|
this.$modal.msgError('表格中没有数据');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user