icon size 16px

This commit is contained in:
yuebenshan committed 2023-02-15 16:34:32 +08:00
1 parent 62ceb85019
commit 14dbde48ab
5 files changed
+37 -36

No files matched your search

+2 -2
View File
@@ -49,11 +49,11 @@
<template v-slot:item.action="{ item }">
<span role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('startCreateWorkflow', item)">
<v-icon size="14" class="success--text">mdi-note-edit-outline</v-icon>申请
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>申请
</span>
<!-- <span role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('jumpUpdateWorkflow', item)">
<v-icon size="14" class="success--text">mdi-note-edit-outline</v-icon>编辑
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>编辑
</span> -->
</template>
<!--表格底部右侧功能按钮-->
+1 -1
View File
@@ -56,7 +56,7 @@
<!--表格行操作按钮-->
<template v-slot:item.action="{ item }">
<span role="button" class="success--text jh-font-size-3 pr-2" @click="doUiAction('startUpdateItem', item)">
<v-icon size="14" class="success--text">mdi-text-box-outline</v-icon>
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
查看
</span>
</template>
+2 -2
View File
@@ -76,12 +76,12 @@
<template v-slot:item.action="{ item }">
<span v-if="workflowType === 'todo'" role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('startUpdateItem', item)">
<v-icon size="14" class="success--text">mdi-note-edit-outline</v-icon>
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>
审核
</span>
<span v-else role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('startUpdateItem', item)">
<v-icon size="14" class="success--text">mdi-text-box-outline</v-icon>
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
查看
</span>
</template>
+28 -27
View File
@@ -21,7 +21,8 @@
<!--pc端的搜索条件表单 >>>>>>>> -->
<v-col cols="12" xs="12" sm="12" md="8" xl="9" class="d-flex align-center">
<v-row class="jh-backend-form-container justify-end ma-0 py-4 pt-xs-0 ">
<v-btn small @click="doUiAction(dialogSaveInfoAction)" color="success" class="">
<v-btn
small @click="doUiAction(dialogSaveInfoAction)" color="success" class="">
保存
</v-btn>
</v-row>
@@ -58,7 +59,7 @@
v-if="!loading" ref="processFlow" :data="editItem.workflowConfig" :user="constantObj.userList"
:group="constantObj.groupList"
:mode="editItem.mode">
</process-flow>`
</process-flow>
</div>
<!-- 页面loading 效果 -->
@@ -99,15 +100,15 @@
{% include 'component/flow/editNode.html' %}
<script type="module">
new Vue({
new Vue({
el: '#app',
template: '#app-template',
vueComponent: 'page',
vuetify: new Vuetify(),
data: () => ({
breadcrumbs: [
{text: '首页', disabled: true,},
{text: '申请模板', disabled: true,}
{ text: '首页', disabled: true, },
{ text: '申请模板', disabled: true, }
],
validationRules: {
requireRules: [
@@ -119,8 +120,8 @@ new Vue({
groupList: [],
workflowFormList: [],
modeList: [
{text: '串行', value: 'serial'},
{text: '并行', value: 'parallel'},
{ text: '串行', value: 'serial' },
{ text: '并行', value: 'parallel' },
]
},
editItem: {},
@@ -144,7 +145,7 @@ new Vue({
const searchParams = new URLSearchParams(location.search.substring(1));
const id = searchParams.get('id');
if (id) {
this.editItem = {id};
this.editItem = { id };
await this.syncEditItem()
} else {
this.clearItemData();
@@ -168,7 +169,7 @@ new Vue({
await this.syncEditItem()
break;
default:
console.error("[doUiAction] uiActionId not find", {uiActionId});
console.error("[doUiAction] uiActionId not find", { uiActionId });
break;
}
},
@@ -201,7 +202,7 @@ new Vue({
* 获取user数据
*/
async getUserList() {
const {rows} = (await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -212,14 +213,14 @@ new Vue({
}
})).data.appData.resultData;
this.constantObj.userList = rows.map(e => {
return {text: e.username, value: e.userId, userId: e.userId}
return { text: e.username, value: e.userId, userId: e.userId }
})
},
/**
* 获取group数据
*/
async getGroupList() {
const {rows} = (await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -230,18 +231,18 @@ new Vue({
}
})).data.appData.resultData;
this.constantObj.groupList = rows.map(e => {
return {text: e.groupName, value: e.groupId}
return { text: e.groupName, value: e.groupId }
});
},
async clearItemData() {
this.dialogSaveInfoAction = 'createItem';
this.editItem = {workflowForm: [], workflowConfig: {lineList: [], nodeList: []}, mode: 'serial'};
this.editItem = { workflowForm: [], workflowConfig: { lineList: [], nodeList: [] }, mode: 'serial' };
},
// ---------- 新建流程 createItem >>>>>>>>>> --------
async confirmCreateItemDialog() {
if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) {
if (await window.confirmDialog({ title: "新增", content: "确定新增吗?" }) === false) {
throw new Error("[confirmCreateFormDialog] 否");
}
},
@@ -249,7 +250,7 @@ new Vue({
delete this.editItem.id;
const item = this.buildEditItem();
await window.vtoast.loading("新增数据");
const {rows} = (await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -265,12 +266,12 @@ new Vue({
async syncEditItem() {
this.loading = true;
this.dialogSaveInfoAction = 'updateItem';
const {rows} = (await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
actionId: 'selectItemList',
where: {id: this.editItem.id},
where: { id: this.editItem.id },
}
}
})).data.appData.resultData;
@@ -288,7 +289,7 @@ new Vue({
}, 500)
},
buildEditItem() {
const {id, workflowId, workflowName, workflowRemark, workflowCategory, mode, workflowForm} = this.editItem;
const { id, workflowId, workflowName, workflowRemark, workflowCategory, mode, workflowForm } = this.editItem;
const workflowConfig = this.$refs.processFlow.getData();
workflowConfig.mode = mode
// TODO: 清除不存在的用户
@@ -316,12 +317,12 @@ new Vue({
// ---------- 修改流程 updateItem >>>>>>>>>> --------
async confirmUpdateItemDialog() {
if (await window.confirmDialog({title: "修改", content: "确定修改吗?"}) === false) {
if (await window.confirmDialog({ title: "修改", content: "确定修改吗?" }) === false) {
throw new Error("[confirmUpdateItemDialog] 否");
}
},
async doUpdateItem() {
const {id, ...item} = this.buildEditItem();
const { id, ...item } = this.buildEditItem();
await window.vtoast.loading("修改数据");
await window.jianghuAxios({
data: {
@@ -329,7 +330,7 @@ new Vue({
pageId: 'workflowManagement',
actionId: 'updateItem',
actionData: item,
where: {id: id}
where: { id: id }
}
}
})
@@ -337,19 +338,19 @@ new Vue({
},
// ---------- <<<<<<<<<< 修改流程 updateItem --------
}
})
})
</script>
<style>
.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr > td:not(.v-data-table__mobile-row) {
.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr>td:not(.v-data-table__mobile-row) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 500px;
}
}
.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr {
.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr {
cursor: pointer;
}
}
</style>
{% endblock %}
+4 -4
View File
@@ -47,11 +47,11 @@
<template v-slot:item.action="{ item }">
<span role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('startCreateWorkflow', item)">
<v-icon size="14" class="success--text">mdi-note-edit-outline</v-icon>申请
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>申请
</span>
<span role="button" class="success--text jh-font-size-3 pr-2"
@click="doUiAction('jumpUpdateWorkflow', item)">
<v-icon size="14" class="success--text">mdi-note-edit-outline</v-icon>编辑
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>编辑
</span>
</template>
<!--表格底部右侧功能按钮-->
@@ -305,8 +305,8 @@ new Vue({
workflowPersonItem.assignValue = workflowPersonItem.assignValue.filter(userId => {
return this.userList.some(user => user.userId === userId);
});
if(!workflowPersonItem.origin) workflowPersonItem['origin'] = {};
if(!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
if (!workflowPersonItem.origin) workflowPersonItem['origin'] = {};
if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue;
if (workflowPersonItem.assignValue.length === 0) {
window.vtoast.fail({message: `${workflowPersonItem.label}必填!`});