feat: adjust id format
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
<div ref="refContainer">
|
||||
<el-table :data="tableData" stripe empty-text="发信任务为空" :row-style="rowStyle()">
|
||||
<el-table-column label="ID" prop="id" width="320px" />
|
||||
<el-table-column label="ID" prop="id" />
|
||||
<el-table-column label="任务名" prop="name" />
|
||||
<el-table-column label="创建时间" prop="created_on" />
|
||||
<el-table-column fixed="right" label="操作" width="190px">
|
||||
|
||||
@@ -96,11 +96,11 @@
|
||||
import { defineComponent, onMounted, watch, reactive, toRefs } from 'vue';
|
||||
import { _ } from 'lodash';
|
||||
import { QuestionFilled } from '@element-plus/icons-vue'
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { usePageState } from '@/store/page_sate.js';
|
||||
import { request } from '@/api/api'
|
||||
import { CONSTANT } from '@/constant'
|
||||
import { CommonUtils } from "@/util/commonUtils.js";
|
||||
import { generateBizUniqueID } from "@/util/uuid.js";
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
@@ -122,7 +122,7 @@ export default defineComponent({
|
||||
currInsInputContentType: 'text',
|
||||
currTaskInput: {
|
||||
taskName: '',
|
||||
taskId: uuidv4(),
|
||||
taskId: generateBizUniqueID('T'),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -149,7 +149,7 @@ export default defineComponent({
|
||||
state.isShowAddBox = false;
|
||||
state.currTaskInput = {
|
||||
taskName: '',
|
||||
taskId: uuidv4(),
|
||||
taskId: generateBizUniqueID('T'),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ export default defineComponent({
|
||||
// 点击暂存实例
|
||||
const clickStore = () => {
|
||||
let insData = {
|
||||
id: uuidv4(),
|
||||
id: generateBizUniqueID('I'),
|
||||
task_id: state.currTaskInput.taskId,
|
||||
way_id: state.currWayTmp.id,
|
||||
way_type: state.currWayTmp.type,
|
||||
|
||||
@@ -102,13 +102,13 @@
|
||||
import { defineComponent, onMounted, watch, reactive, toRefs } from 'vue';
|
||||
import { _ } from 'lodash';
|
||||
import { QuestionFilled } from '@element-plus/icons-vue'
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { usePageState } from '@/store/page_sate.js';
|
||||
import { request } from '@/api/api'
|
||||
import tableDeleteButton from '@/views/common/tableDeleteButton.vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { CONSTANT } from '@/constant'
|
||||
import { CommonUtils } from "@/util/commonUtils.js";
|
||||
import { generateBizUniqueID } from "@/util/uuid.js";
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
@@ -203,7 +203,7 @@ export default defineComponent({
|
||||
|
||||
const getFinalData = () => {
|
||||
let postData = {
|
||||
id: uuidv4(),
|
||||
id: generateBizUniqueID('I'),
|
||||
enable: 1,
|
||||
task_id: state.currTaskInput.taskId,
|
||||
way_id: state.currWayTmp.id,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<hr />
|
||||
<div ref="refContainer">
|
||||
<el-table :data="tableData" stripe empty-text="发信渠道为空" :row-style="rowStyle()">
|
||||
<el-table-column label="ID" width="320px">
|
||||
<el-table-column label="ID" >
|
||||
<template #default="scope">
|
||||
{{ scope.row.id }}
|
||||
<el-icon>
|
||||
@@ -116,7 +116,7 @@ export default {
|
||||
await queryListData(pageNum, state.pageSize);
|
||||
|
||||
}
|
||||
|
||||
|
||||
const rowStyle = () => {
|
||||
return {
|
||||
'font-size': '13px',
|
||||
|
||||
@@ -62,7 +62,8 @@ export default defineComponent({
|
||||
if (newValue[props.componentName].rowData) {
|
||||
const row = pageState.ShowDialogData[props.componentName].rowData;
|
||||
let nowData = [];
|
||||
_.cloneDeep(CONSTANT.WAYS_DATA).forEach(element => {
|
||||
let copyData = _.cloneDeep(CONSTANT.WAYS_DATA);
|
||||
copyData.forEach(element => {
|
||||
if (element.type == row.type) {
|
||||
// 填充输入框的值
|
||||
state.editData = row;
|
||||
|
||||
Reference in New Issue
Block a user