| | |
| | | item.name |
| | | }} |
| | | </el-button> |
| | | <span v-if="tableHeadFindData.length > 0"> |
| | | <el-select v-model="keyWordFind" slot="prepend" placeholder="请选择" size="small"> |
| | | <el-option v-for="item in tableHeadFindData" :label="item.label" :value="item.prop"></el-option> |
| | | </el-select> |
| | | <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询" |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px" |
| | | @keyup.enter.native="tableFindInp" v-if="tableHeadFindData.length > 0"></el-input> |
| | | <span style="margin-left: 10px" v-if="tableHeadFindData.length > 0"> |
| | | @keyup.enter.native="tableFindInp"></el-input> |
| | | </span> |
| | | <span v-if="tableHeadFindData.length > 0" style="margin-left: 10px"> |
| | | <p style="font-size: 13px;display: inline-block;"> 状态:</p> |
| | | <el-select v-model="statusSelect" slot="prepend" placeholder="请选择" size="small" @change="cellSelectHandler"> |
| | | <el-select slot="prepend" v-model="statusSelect" placeholder="请选择" size="small" |
| | | @change="cellSelectHandler"> |
| | | <el-option label="全部" value="all"></el-option> |
| | | <el-option label="已发布" value="Released"></el-option> |
| | | <el-option label="编辑中" value="Editing"></el-option> |
| | |
| | | @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick" |
| | | @select-all="handleSelectionAll" @selection-change="handleSelectionChange" |
| | | @sort-change="sortChange"> |
| | | <el-table-column fixed type="selection" width="55" v-if="tableData.length != 0"></el-table-column> |
| | | <el-table-column fixed label="序号" type="index" width="55" v-if="tableData.length != 0"> |
| | | <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column> |
| | | <el-table-column v-if="tableData.length != 0" fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in this.tableHeadFindData" :key="item.id" :formatter="item.formatter" |
| | | :label="item.label" |
| | |
| | | :type="edit" |
| | | :visible.sync="DataVisible"></FormTemplateDialog> |
| | | <!-- 发布--> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow" @onLoad="onLoad"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow" |
| | | @onLoad="onLoad"></set-personnel> |
| | | <!-- 停用--> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleDeactivate" @onLoad="onLoad"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleDeactivate" |
| | | @onLoad="onLoad"></set-personnel> |
| | | <!-- 启用--> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleEnable" @onLoad="onLoad"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleEnable" |
| | | @onLoad="onLoad"></set-personnel> |
| | | <!-- 回收--> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleRecovery" @onLoad="onLoad"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleRecovery" |
| | | @onLoad="onLoad"></set-personnel> |
| | | <!-- 高级查询--> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | <!-- 导出--> |
| | | <MasterTransfer :codeClassifyOid="codeClassifyOid" :limit="page.pageSize" :templateOid="templateOid" :selectRow="selectRow" |
| | | :tableData="tableData" :tableHeadData="tableHeadFindData" |
| | | <MasterTransfer :codeClassifyOid="codeClassifyOid" :limit="page.pageSize" :selectRow="selectRow" |
| | | :tableData="tableData" |
| | | :tableHeadData="tableHeadFindData" :templateOid="templateOid" |
| | | :visible.sync="dialogPush"></MasterTransfer> |
| | | <!-- 相似项--> |
| | | <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" |
| | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible" :resetTable="CrudRend"> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :resetTable="CrudRend" |
| | | :visible.sync="batchImportData.visible"> |
| | | </BatchImport> |
| | | </div> |
| | | <div class="bottom"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | // 状态搜索 |
| | | statusSelect:"all", |
| | | // 关键字查询 |
| | | keyWordFind:"", |
| | | searchResults: [], |
| | | //首页右侧搜索 |
| | | WupinFindValue: "", |
| | |
| | | }, |
| | | tableDataArray: { |
| | | handler(newval, oldval) { |
| | | this.keyWordFind=''; |
| | | this.WupinFindValue='' |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout() |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const list=[]; |
| | | this.selectRow.forEach((item)=>{list.push(item.oid)}) |
| | | this.selectRow.forEach((item) => { |
| | | list.push(item.oid) |
| | | }) |
| | | deleteCode({codeClassifyOid:this.codeClassifyOid,oidList:list}).then(res=>{ |
| | | console.log(res) |
| | | if(res.data.code === 200){ |
| | |
| | | this.$message.warning('输入值不能为空') |
| | | return; |
| | | } |
| | | this.tableData = this.searchResults.filter(item => { |
| | | if (typeof item.name === 'string') { |
| | | return item.name.includes(this.WupinFindValue); |
| | | } else { |
| | | return false; // item.name不是字符串类型,返回false |
| | | } |
| | | }); |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | [ 'conditionMap[' + this.keyWordFind + ']']: '*' + this.WupinFindValue + '*' |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.tableData = res.data.data |
| | | }) |
| | | } |
| | | |
| | | } |