no message

This commit is contained in:
小陌 2023-08-31 16:52:44 +08:00
parent e6411da5c9
commit a4493420db
2 changed files with 16 additions and 4 deletions

View File

@ -67,8 +67,17 @@
methods: {
handleClick(row, item){
console.log(item)
//
if (item.open && item.open.name && row[item.open.name]?.trim()) {
window.open(row[item.open.name], "_blank");
return ;
}
//
if (item.update && (item.update.url || item.update.name)) {
else if (item.update && (item.update.url || item.update.name)) {
this.$emit('xtableupdate', row, {
name:item.update.name || item.name,
remoteurl: item.update.url || 'table/getUpdate?name='+item.update.name
@ -77,7 +86,7 @@
}
//
if (item.table && (item.table.url || item.table.name)) {
else if (item.table && (item.table.url || item.table.name)) {
this.$emit('xtableupdate', row, {
name:item.table.name || item.name,
remoteurl: item.table.url || 'table/get?name='+item.table.name

View File

@ -100,6 +100,7 @@
stat:[],
chartoption: {},
tablename: this.$route.meta.tablename,
tableurl: this.$route.meta.tableurl,
groupFilterText:'',
tabskey:'',
tabsdefaultvalue:''
@ -109,9 +110,11 @@
if (this.name) {
this.tablename = this.name || this.$route.meta.tablename;
}
//
if(this.tablename) {
this.$api.system.table.get(this.tablename, { cache: this.$route.meta.tablecache || 0 }).then((res) => {
if(this.tablename || this.tableurl) {
var awaitvar = this.tableurl ? this.$http.get(this.tableurl, {}, {cache:true}) : this.$api.system.table.get(this.tablename, { cache: this.$route.meta.tablecache || 0 });
awaitvar.then((res) => {
if (res.code == 200) {
Object.assign(this.$data, res.data);
if (res.data.tabsdefaultvalue && res.data.tabskey) {