会话存档配置
This commit is contained in:
@@ -36,13 +36,14 @@
|
|||||||
active-color="#5088FF" inactive-color="#D0D4DC"></el-switch>
|
active-color="#5088FF" inactive-color="#D0D4DC"></el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="options" align="center" label="操作" width="400">
|
<el-table-column slot="options" align="center" label="操作" width="500">
|
||||||
<el-row type="flex" justify="center" align="middle" slot-scope="{row}">
|
<el-row type="flex" justify="center" align="middle" slot-scope="{row}">
|
||||||
<el-button type="text" @click="detail(row)">详情</el-button>
|
<el-button type="text" @click="detail(row)">详情</el-button>
|
||||||
<el-button type="text" @click="del(row)">删除</el-button>
|
<el-button type="text" @click="del(row)">删除</el-button>
|
||||||
<el-button type="text" @click="handleSystemInfo(row.id)">系统信息</el-button>
|
<el-button type="text" @click="handleSystemInfo(row.id)">系统信息</el-button>
|
||||||
<el-button type="text" @click="handlePush(row.id)">推送随手拍样式</el-button>
|
<el-button type="text" @click="handlePush(row.id)">推送随手拍样式</el-button>
|
||||||
<el-button type="text" @click="handleTheme(row.id)">主题样式</el-button>
|
<el-button type="text" @click="handleTheme(row.id)">主题样式</el-button>
|
||||||
|
<el-button type="text" @click="handleSession(row)">会话存档</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
@@ -194,6 +195,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
|
<ai-dialog title="会话存档设置" :visible.sync="sessionDialog" width="500px" @onConfirm="submitSessionInfo">
|
||||||
|
<el-radio-group v-model="sessionInfo.status">
|
||||||
|
<el-radio :label="1">内部</el-radio>
|
||||||
|
<el-radio :label="2">外部</el-radio>
|
||||||
|
<el-radio :label="0">全部</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</ai-dialog>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -274,7 +282,9 @@ export default {
|
|||||||
name: ""
|
name: ""
|
||||||
},
|
},
|
||||||
sysInfo: {},
|
sysInfo: {},
|
||||||
sysInfoDialog: false
|
sysInfoDialog: false,
|
||||||
|
sessionDialog: false,
|
||||||
|
sessionInfo: {status: 0, corpId: ''}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -446,6 +456,20 @@ export default {
|
|||||||
},
|
},
|
||||||
handleTheme(id) {
|
handleTheme(id) {
|
||||||
this.$router.push({hash: "#theme", query: {id}})
|
this.$router.push({hash: "#theme", query: {id}})
|
||||||
|
},
|
||||||
|
handleSession(row) {
|
||||||
|
this.sessionInfo.corpId = row.corpId
|
||||||
|
this.sessionInfo.status = row.saveConfig || 0
|
||||||
|
this.sessionDialog = true
|
||||||
|
},
|
||||||
|
submitSessionInfo() {
|
||||||
|
this.instance.post(`/app/appsessionarchiveconfig/updateSessionArchiveConfig?corpId=${this.sessionInfo.corpId}&status=${this.sessionInfo.status}`).then(res => {
|
||||||
|
if (res?.code == 0) {
|
||||||
|
this.getTableData();
|
||||||
|
this.$message.success("提交成功!")
|
||||||
|
this.sessionDialog = false
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user