Commit 890c7a70 by 周海峰

no message

parent b5ffdbbe
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</q-td> </q-td>
<q-td slot="body-cell-id" slot-scope="props" :props="props" style="width:100px"> <q-td slot="body-cell-id" slot-scope="props" :props="props" style="width:100px">
<q-btn small round push glossy dense icon="edit" color="primary" @click="editMenu(props.value)"></q-btn> <q-btn small round push glossy dense icon="edit" color="primary" @click="editMenu(props.value)"></q-btn>
<q-btn small round push glossy dense icon="delete" color="red" @click="delMenu(props.value)"></q-btn> <q-btn small round push glossy dense icon="delete" color="red" :disabled="props.row.status=='1'" @click="delMenu(props.value)"></q-btn>
<!-- <q-btn small round push glossy dense icon="arrow_upward" color="orange" @click="moveUp(props.value)" v-if="props.row.sortOrder > 1"></q-btn> --> <!-- <q-btn small round push glossy dense icon="arrow_upward" color="orange" @click="moveUp(props.value)" v-if="props.row.sortOrder > 1"></q-btn> -->
<!-- <q-btn small round push glossy dense icon="arrow_downward" color="orange" @click="moveDown(props.value)"></q-btn> --> <!-- <q-btn small round push glossy dense icon="arrow_downward" color="orange" @click="moveDown(props.value)"></q-btn> -->
</q-td> </q-td>
......
...@@ -172,6 +172,25 @@ export default { ...@@ -172,6 +172,25 @@ export default {
this.visible = false; this.visible = false;
}, },
async onSave() { async onSave() {
// 表单验证
if (!this.localTemp.title || this.localTemp.title.trim() === '') {
this.$q.notify({
type: "negative",
message: "名称不能为空",
position: "bottom-right"
});
return;
}
if (!this.localTemp.appid || this.localTemp.appid.trim() === '') {
this.$q.notify({
type: "negative",
message: "应用唯一标识不能为空",
position: "bottom-right"
});
return;
}
try { try {
await saveapp(JSON.parse(JSON.stringify(this.localTemp))); await saveapp(JSON.parse(JSON.stringify(this.localTemp)));
this.$q.notify({ this.$q.notify({
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<template slot="top-selection" slot-scope="props"> <template slot="top-selection" slot-scope="props">
<q-btn color="negative" flat round delete icon="delete" @click="delRoles" /> <q-btn color="negative" flat round delete icon="delete" @click="delRoles" />
</template> </template>
<q-td slot="body-cell-href" slot-scope="props" :props="props"> <q-td slot="body-cell-href" slot-scope="props" :props="props" style="max-width: 300px; word-break: break-all;">
<span>电脑入口:{{ props.row.href ? props.row.href: '未维护'}}</span><br/> <span>电脑入口:{{ props.row.href ? props.row.href: '未维护'}}</span><br/>
<span>企微入口:{{ props.row.wechatUrl ? props.row.wechatUrl: '未维护' }}</span> <span>企微入口:{{ props.row.wechatUrl ? props.row.wechatUrl: '未维护' }}</span>
</q-td> </q-td>
...@@ -118,6 +118,14 @@ ...@@ -118,6 +118,14 @@
}, },
columns: [ columns: [
{ {
name: "appid",
required: true,
label: '唯一标识',
align: "left",
field: "appid",
sortable: false
},
{
name: "title", name: "title",
required: true, required: true,
label: '名称', label: '名称',
...@@ -284,5 +292,13 @@ ...@@ -284,5 +292,13 @@
</script> </script>
<style scoped> <style scoped>
.q-table tbody td[style*="max-width: 300px"] {
word-break: break-word;
white-space: normal;
}
.q-table tbody td[style*="max-width: 300px"] span {
display: inline-block;
max-width: 100%;
word-wrap: break-word;
}
</style> </style>
\ No newline at end of file
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
{{ props.row.href }} {{ props.row.href }}
</div> </div>
<div v-if="props.row.wechatUrl"> <div v-if="props.row.wechatUrl">
<q-icon name="chat" size="16px" /> <q-icon name="smartphone" size="16px" />
{{ props.row.wechatUrl }} {{ props.row.wechatUrl }}
</div> </div>
<div v-if="!props.row.href && !props.row.wechatUrl"> <div v-if="!props.row.href && !props.row.wechatUrl">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论