|
|
@@ -35,6 +35,15 @@
|
|
|
{{ scope.row.customName }}<span v-if="scope.row.seatSn!=0">({{ scope.row.seatSn }})</span>
|
|
|
</template>
|
|
|
|
|
|
+ <template #slot-more-do-btn>
|
|
|
+ <el-dropdown size="medium" split-button type="primary" @click="modifyClassFn" @command="doMore">
|
|
|
+ 上齐
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="developing">开发中</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </template>
|
|
|
+
|
|
|
</x-crud>
|
|
|
|
|
|
<book-record ref="bookRecord" :currentData="bookRecordData" />
|
|
|
@@ -85,10 +94,35 @@ export default {
|
|
|
bookRoadRecordData:{},
|
|
|
bookOnRecordData:{},
|
|
|
bookRecordData:{},
|
|
|
- bookItemGhsData:{}
|
|
|
+ bookItemGhsData:{},
|
|
|
+ selectedIds:[]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ modifyClassFn(){
|
|
|
+ let that = this
|
|
|
+ if (this.$util.isEmpty(this.selectedIds)) {
|
|
|
+ this.$message.error('请选花材')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(this.selectedClassId == 0){
|
|
|
+ this.$message.error('请选修改后的分类')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$confirm('确认修改?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
+ this.$service.ptCp.batchModifyClass({ids:JSON.stringify(this.selectedIds),classId:this.selectedClassId}).then((res) => {
|
|
|
+ that.$message.success('操作成功')
|
|
|
+ that.selectedClassId = 0
|
|
|
+ that.selectedClassName = ''
|
|
|
+ that.app.refresh({ classStyle:that.classStyle,classId:that.currentCpClassId })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ doMore(cmd){
|
|
|
+ if(cmd == 'developing'){
|
|
|
+ this.$message.error('开发中')
|
|
|
+ }
|
|
|
+ },
|
|
|
goItemGh(info){
|
|
|
this.bookItemGhsData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId}
|
|
|
setTimeout(() => {
|
|
|
@@ -136,7 +170,7 @@ export default {
|
|
|
{
|
|
|
type: 'selection',
|
|
|
align: 'center',
|
|
|
- width: '50'
|
|
|
+ width: '40'
|
|
|
},
|
|
|
{
|
|
|
prop: 'name',
|
|
|
@@ -181,6 +215,11 @@ export default {
|
|
|
width: 160
|
|
|
}
|
|
|
],
|
|
|
+ on: {
|
|
|
+ 'selection-change': selection => {
|
|
|
+ this.selectedIds = selection.map(e => e.id)
|
|
|
+ }
|
|
|
+ },
|
|
|
op: {
|
|
|
visible: true,
|
|
|
props: {
|
|
|
@@ -204,7 +243,7 @@ export default {
|
|
|
['slot-tabs'],
|
|
|
['slot-search-option'],
|
|
|
['data-table'],
|
|
|
- ['flex1']
|
|
|
+ ['slot-more-do-btn','flex1']
|
|
|
])
|
|
|
.on('refresh', async (params, { next }) => {
|
|
|
let res = await next(params)
|