Commit 890c7a70 by 周海峰

no message

parent b5ffdbbe
......@@ -42,7 +42,7 @@
</q-td>
<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="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_downward" color="orange" @click="moveDown(props.value)"></q-btn> -->
</q-td>
......
......@@ -172,6 +172,25 @@ export default {
this.visible = false;
},
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 {
await saveapp(JSON.parse(JSON.stringify(this.localTemp)));
this.$q.notify({
......
......@@ -32,7 +32,7 @@
<template slot="top-selection" slot-scope="props">
<q-btn color="negative" flat round delete icon="delete" @click="delRoles" />
</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.wechatUrl ? props.row.wechatUrl: '未维护' }}</span>
</q-td>
......@@ -118,6 +118,14 @@
},
columns: [
{
name: "appid",
required: true,
label: '唯一标识',
align: "left",
field: "appid",
sortable: false
},
{
name: "title",
required: true,
label: '名称',
......@@ -284,5 +292,13 @@
</script>
<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>
\ No newline at end of file
......@@ -115,7 +115,7 @@
{{ props.row.href }}
</div>
<div v-if="props.row.wechatUrl">
<q-icon name="chat" size="16px" />
<q-icon name="smartphone" size="16px" />
{{ props.row.wechatUrl }}
</div>
<div v-if="!props.row.href && !props.row.wechatUrl">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论