Merge remote-tracking branch 'origin/master'

master
赵玉瑞 2 years ago
commit 654e8a910f
  1. 11
      ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue
  2. 9
      ant-design-vue-jeecg/src/views/tablex/TablexList.vue
  3. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java

@ -123,6 +123,8 @@
data () { data () {
return { return {
description: '字段管理管理页面', description: '字段管理管理页面',
loadRouteType:false,
tableId:'',
// //
columns: [ columns: [
{ {
@ -244,6 +246,7 @@
}, },
created() { created() {
this.getSuperFieldList(); this.getSuperFieldList();
this.loadParameter();
}, },
computed: { computed: {
importExcelUrl: function(){ importExcelUrl: function(){
@ -253,6 +256,14 @@
methods: { methods: {
initDictConfig(){ initDictConfig(){
}, },
//
loadParameter() {
if (this.loadRouteType == false) {
this.tableId = this.$route.query.id;
console.log(this.tableId)
this.loadRouteType = true;
}
},
getSuperFieldList(){ getSuperFieldList(){
let fieldList=[]; let fieldList=[];
fieldList.push({type:'string',value:'tableId',text:'对应实体id',dictCode:'tablex,table_name,id'}) fieldList.push({type:'string',value:'tableId',text:'对应实体id',dictCode:'tablex,table_name,id'})

@ -89,6 +89,9 @@
</template> </template>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="tablemanage(record.id)">实体管理</a>
<a-divider type="vertical" />
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" /> <a-divider type="vertical" />
@ -229,6 +232,12 @@
}, },
}, },
methods: { methods: {
tablemanage(id) {
this.$router.push({
path: '/fieldx/FieldxList',
query: {id: id}
})
},
initDictConfig(){ initDictConfig(){
}, },
getSuperFieldList(){ getSuperFieldList(){

@ -131,8 +131,8 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> {
@ApiOperation(value="字段管理-通过id删除", notes="字段管理-通过id删除") @ApiOperation(value="字段管理-通过id删除", notes="字段管理-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
fieldxService.removeById(id);
Fieldx fieldx = fieldxService.getById(id); Fieldx fieldx = fieldxService.getById(id);
fieldxService.removeById(id);
tablexService.updateSql(fieldx.getTableId(),createSql(fieldx.getTableId())); tablexService.updateSql(fieldx.getTableId(),createSql(fieldx.getTableId()));
return Result.OK("删除成功!"); return Result.OK("删除成功!");
} }

Loading…
Cancel
Save