feat:ofm 增加论文申密

This commit is contained in:
TianyangZhang 2025-10-30 15:39:27 +08:00
parent 33040f0ccc
commit 6a9cc84577
10 changed files with 612 additions and 32 deletions

View File

@ -291,26 +291,26 @@ export default {
patentinfo: { patentinfo: {
list: { list: {
url: `${config.API_URL}/ofm/patentinfo/`, url: `${config.API_URL}/ofm/patentinfo/`,
name: "宣传报道列表", name: "专利列表",
req: async function(data){ req: async function(data){
return await http.get(this.url, data); return await http.get(this.url, data);
} }
}, },
item: { item: {
name: "宣传报道详情", name: "专利详情",
req: async function(id){ req: async function(id){
return await http.get( `${config.API_URL}/ofm/patentinfo/${id}/`); return await http.get( `${config.API_URL}/ofm/patentinfo/${id}/`);
} }
}, },
create: { create: {
url: `${config.API_URL}/ofm/patentinfo/`, url: `${config.API_URL}/ofm/patentinfo/`,
name: "创建宣传报道", name: "专利创建",
req: async function(data){ req: async function(data){
return await http.post(this.url, data); return await http.post(this.url, data);
} }
}, },
update: { update: {
name: "删除宣传报道", name: "专利更新",
req: async function(id, data){ req: async function(id, data){
return await http.put( return await http.put(
`${config.API_URL}/ofm/patentinfo/${id}/`, `${config.API_URL}/ofm/patentinfo/${id}/`,
@ -319,10 +319,47 @@ export default {
} }
}, },
delete: { delete: {
name: "删除宣传报道", name: "专利删除",
req: async function(id){ req: async function(id){
return await http.delete(`${config.API_URL}/ofm/patentinfo/${id}/`); return await http.delete(`${config.API_URL}/ofm/patentinfo/${id}/`);
} }
} }
}, },
papersecret: {
list: {
url: `${config.API_URL}/ofm/paperse/`,
name: "论文列表",
req: async function(data){
return await http.get(this.url, data);
}
},
item: {
name: "论文详情",
req: async function(id){
return await http.get( `${config.API_URL}/ofm/paperse/${id}/`);
}
},
create: {
url: `${config.API_URL}/ofm/paperse/`,
name: "论文创建",
req: async function(data){
return await http.post(this.url, data);
}
},
update: {
name: "论文更新",
req: async function(id, data){
return await http.put(
`${config.API_URL}/ofm/paperse/${id}/`,
data
);
}
},
delete: {
name: "删除论文",
req: async function(id){
return await http.delete(`${config.API_URL}/ofm/paperse/${id}/`);
}
}
},
} }

View File

@ -306,8 +306,8 @@
that.header2 = ['辅料','干混生料'];// that.header2 = ['辅料','干混生料'];//
}else if(that.deptName=='烧成车间'){ }else if(that.deptName=='烧成车间'){
that.header2Obj=[{name:'出窑熟料',lengths:4},{name:'熟料',lengths:4}]; that.header2Obj=[{name:'氧化钙',lengths:4},{name:'熟料',lengths:4}];
that.header2 = ['出窑熟料','熟料'];// that.header2 = ['氧化钙','熟料'];//
}else{ }else{
that.header2Obj=[{name:'出磨水泥',lengths:3}]; that.header2Obj=[{name:'出磨水泥',lengths:3}];
that.header2 = ['出磨水泥'];// that.header2 = ['出磨水泥'];//

View File

@ -154,14 +154,13 @@ export default {
getFileList() { getFileList() {
return this.$API.ofm.filerecord.list.req(this.query).then((res) => { return this.$API.ofm.filerecord.list.req(this.query).then((res) => {
this.fileList = res.results; this.fileList = res.results;
console.log('----111---',this.fileList);
}); });
}, },
getTid (){ getTid (){
var that = this; var that = this;
if (that.t_id) { if (that.t_id) {
that.$API.ofm.borrow.item.req(that.t_id).then(res=>{ that.$API.ofm.borrow.item.req(that.t_id).then(res=>{
that.form = res; that.addForm = res;
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit"; that.localMode = "edit";
}else{ }else{

328
src/views/ofm/paperse.vue Normal file
View File

@ -0,0 +1,328 @@
<template>
<el-container>
<el-header>
<div class="left-panel-group">
<el-button
type="primary"
icon="el-icon-plus"
@click="handleAdd"
v-auth="'PaperSe.create'"
>新增</el-button>
</div>
<div class="right-panel">
<el-input
v-model="query.paper_name"
placeholder="发表论文名称"
clearable
@keyup.enter="handleQuery"
></el-input>
<el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
></el-button>
</div>
</el-header>
<el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id">
<el-table-column label="#" type="index"></el-table-column>
<el-table-column
label="申请部门"
prop="belong_dept_name"
min-width="60"
></el-table-column>
<el-table-column
label="拟发表论文名称"
prop="paper_name"
min-width="60"
></el-table-column>
<el-table-column
label="拟投期刊名称"
prop="publication_name"
min-width="60"
></el-table-column>
<el-table-column
label="作者"
prop="author"
min-width="120"
></el-table-column>
<el-table-column
label="拟发表文章类型"
prop="paper_type"
min-width="60"
></el-table-column>
<el-table-column label="是否为中文核心" prop="is_chinese_core" mim-width="60">
<template #default="scope">
<span :style="{color: scope.row.is_chinese_core ? '#67C23A' : '#F56C6C'}">
{{ scope.row.is_chinese_core ? '是' : '否'}}
</span>
</template>
</el-table-column>
<el-table-column label="是否被SCI/EI收录" prop="is_sci" mim-width="60">
<template #default="scope">
<span :style="{color: scope.row.is_sci ? '#67C23A' : '#F56C6C'}">
{{ scope.row.is_sci ? '是' : '否'}}
</span>
</template>
</el-table-column>
<el-table-column label="技术状态" prop="tech_status" min-width="200">
<template #default="{row}">
<div v-if="row.tech_status && row.tech_status.length">
<div v-for="(item, index) in row.tech_status" :key="index">
<strong>{{item.name}}</strong>
<span>{{ item.status }}</span>
<br />
<el-link v-if="item.file"
type="primary"
:href="item.file"
target="_blank"
style="font-size: 12px;"
>文件下载</el-link>
</div>
</div>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="技术文件" prop="tech_file" min-width="120">
<template #default="{row}">
<div v-if="row.tech_file && row.tech_file.length">
<div v-for="(item, index) in row.tech_file" :key="index">
<strong>{{item.name}}</strong>
<span>{{ item.pages }}</span>
</div>
</div>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="所在节点" min-width="60">
<template #default="scope">
{{scope.row.ticket_?.state_?.name}}
</template>
</el-table-column>
<el-table-column label="进行状态" min-width="60">
<template #default="scope">
{{statusOptions[scope.row.ticket_?.state_?.type]}}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="120">
<template #default="scope">
<el-button
link
size="small"
type="primary"
@click="paperseEdit(scope.row)"
v-auth="'PaperSe.update'"
>详情
</el-button>
<el-popconfirm
title="确定删除吗?"
@confirm="papersetDel(scope.row)"
>
<template #reference>
<el-button
link
size="small"
type="danger"
v-auth="'PaperSe.delete'"
>删除</el-button
>
</template>
</el-popconfirm>
</template>
</el-table-column>
</scTable>
</el-main>
</el-container>
<el-drawer
:title="drawerTitle[mode]"
v-model="limitedVisible"
:destroy-on-close="true"
direction="rtl"
size="70%"
>
<div style="display: flex; height: calc(100% - 60px);">
<div style="flex: 1; padding-right: 20px; overflow-y: auto;">
<PaperForm
:mode="mode"
v-model="addForm"
:transitions="transitions"
@success="()=>{handleQuery(); limitedVisible = false}"
@closed="limitedVisible = false"
/>
</div>
</div>
</el-drawer>
</template>
<script>
import PaperForm from "./paperse_form.vue";
export default {
components: { PaperForm},
name: "index",
data() {
return {
workflowName:"",
workFlowId:'',
apiObj: this.$API.ofm.papersecret.list,
selection: [],
checkList: [],
fileList: [],
transitions:[],
timeRange: [],
lending_type: "",
query: {},
editId: null,
isSaving: false,
limitedVisible: false,
mode: "add",
drawerTitle: {
add: "新增论文申密",
edit: "审批流",
view: "查看论文申密",
},
statusOptions:{
0: "审批中",
1: "初始中",
2: "已完成",
},
currentRow: null,
//
addForm: {
paper_name: "",
publication_name:"",
author: "",
paper_type: "",
is_chinese_core: false,
is_sci: false,
tech_status: [],
tech_file: [],
ticket_:null
},
};
},
mounted(){
let that = this;
that.getInit();
},
methods: {
//
//
getInit() {
let that = this;
if(this.addForm.ticket_!==null){
this.$API.wf.ticket_.ticketTransitions.req(this.addForm.ticket_).then((res) => {
that.transitions = res;
})
}else{
that.$API.wf.workflow.initkey.req("paperse").then((res) => {
that.initForm = res;
that.transitions = res.transitions;
});
}
},
handleAdd() {
this.mode = "add";
this.addForm = this.getDefaultForm();
this.lending_type = "";
this.limitedVisible = true;
},
handleCancel() {
this.limitedVisible = false; //
this.lending_type = ""; // lending_type
this.getDefaultForm()//
},
getDefaultForm(){
return {
paper_name: "",
publication_name:"",
author: "",
paper_type: "",
is_chinese_core: false,
is_sci: false,
tech_status: [{ name: "是否进行过科技成果鉴定", status: "", fileList: [] },
{ name: "是否发表过文章", status: "", fileList: [] },
{ name: "是否参与过展会展出", status: "", fileList: [] },
{ name: "是否应用于生产/销售", status: "", fileList: [] },
{ name: "是否参与过技术交流", status: "", fileList: [] }],
tech_file: [ { name: "论文内容", status: "", pages: "" },
{ name: "图或者照片", pages: "" }],
ticket_:null
}
},
//
paperseEdit(row) {
this.mode = "view";
this.editId = row.id;
this.limitedVisible = true;
this.addForm = Object.assign({}, row);
},
async papersetDel(row) {
var id = row.id;
var res = await this.$API.ofm.papersecret.delete.req(id);
if (res.err_msg) {
this.$message.error(res.err_msg);
} else {
this.$refs.table.refresh();
this.$message.success("删除成功");
}
},
//
handleQuery() {
this.$refs.table.queryData(this.query);
},
},
};
</script>
<style scoped>
.treeMain {
height: 280px;
overflow: auto;
border: 1px solid #dcdfe6;
margin-bottom: 10px;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
background-color: #fefefe;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
background-color: #f5f5f5;
}
.node rect {
stroke: #606266;
fill: #fff;
}
.edgePath path {
stroke: #606266;
fill: #333;
stroke-width: 1.5px;
}
g.conditions > rect {
fill: #00ffd0;
stroke: #000;
}
.el-icon-close {
cursor: pointer;
}
.left-panel-group {
display: flex;
align-items: center;
gap: 6px; /* 按钮之间的间隙,可以调小点 */
margin-left: 0; /* 靠左 */
}
</style>

View File

@ -0,0 +1,204 @@
<template>
<el-container>
<el-main>
<el-form :model="localForm" label-width="150px" label-position="left" :rules="rules">
<el-form-item label="拟发表论文名称" prop="paper_name">
<el-input v-model="localForm.paper_name" clearable :disabled="localMode ==='view'"></el-input>
</el-form-item>
<el-form-item label="拟投期刊名称" prop="publication_name">
<el-input v-model="localForm.publication_name" clearable :disabled="localMode ==='view'"></el-input>
</el-form-item>
<el-form-item label="作者" prop="author" >
<el-input v-model="localForm.author" clearable ></el-input>
</el-form-item>
<el-form-item label="拟发表文章类型" prop="paper_type">
<el-select v-model="localForm.paper_type" placeholder="请选择拟发表文章类型" :disabled="localMode ==='view'">
<el-option label="研究论文" value="研究论文"></el-option>
<el-option label="综述" value="综述"></el-option>
</el-select>
</el-form-item>
<el-form-item label="是否为中文核心" prop="is_chinese_core">
<el-radio-group v-model="localForm.is_chinese_core" :disabled="localMode ==='view'">
<el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否被SCI/EI收录" prop="is_sci">
<el-radio-group v-model="localForm.is_sci" :disabled="localMode ==='view'">
<el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="技术状态" prop="tech_status">
<el-row>
<el-col :span="12" v-for="(item, index) in localForm.tech_status || []" :key="index">
<div class="class-row">
<span>{{ item.name }}</span>
<el-radio-group v-model="item.status" @change="handleStatusChange(item)" style="margin-left: 20px;" :disabled="localMode ==='view'">
<el-radio label="是"></el-radio>
<el-radio label="否"></el-radio>
</el-radio-group>
</div>
<div v-if="item.status === '是'" class="upload-section">
<sc-upload-file
multiple
:limit="3"
:accept="['.xlsx', '.xls','.pdf','.docx', '.doc', '.jpg', '.png', '.jpeg']"
@success = "(res)=>fileUPSuccess(res, item)"
:disabled="localMode ==='view'"
>
<el-button type="primary" size="small" icon="el-icon-upload"> </el-button>
</sc-upload-file>
</div>
</el-col>
</el-row>
</el-form-item>
<el-form-item label="技术文件" prop="tech_file">
<div class="file-item" v-for="(item, index) in localForm.tech_file || []" :key="index">
<el-checkbox class="file-checkbox" v-model="item.checked" @change="handleCheckChange(item)" :disabled="localMode ==='view'">
{{ item.name }}
</el-checkbox>
<el-input
class="page-input"
v-model="item.pages"
placeholder="页/张数"
:disabled="!item.checked || localMode ==='view'"
type="number"
min="0">
<template v-slot:append>/</template>
</el-input>
</div>
</el-form-item>
</el-form>
<el-footer v-show="localMode!=='show'">
<ticketd_b
:workflow_key="'paperse'"
:title="ticketTitle"
:t_id="localForm.id"
:ticket_="localForm.ticket_"
:ticket_data="ticket_data"
:submit_b_func="submit_b_func"
ref="ticketd_b"
@success="$emit('success')"
@colsed="$emit('closed')"
/>
</el-footer>
</el-main>
<el-aside v-if="localForm.ticket_">
<ticketd
:ticket_="localForm.ticket_"
:ticket_data="ticket_data"
@success="$emit('success')"
style="margin-top: 20px;"
/>
</el-aside>
</el-container>
</template>
<script>
import ticketd_b from "@/views/wf/ticketd_b.vue";
import ticketd from '@/views/wf/ticketd.vue'
export default {
props: {
mode: { type: String, default: "view" }, // add / edit / view
modelValue: { type: Object, default: () => ({}) },
t_id: {
type: String,
default: null
},
},
components: {ticketd, ticketd_b},
emits: ["update:modelValue", "submit", "cancel"],
data() {
return {
ticket_data: {},
ticketTitle: "论文申密申请",
localMode : this.mode,
rules: {
filename: [{ required: true, message: "请输入文件名称", trigger: "blur" }],
},
localForm: {
ticket_: { state_: { type: '' } },
...(this.modelValue || {}) }
};
},
mounted() {
console.log('mode', this.localMode)
},
watch: {
localForm: {
handler(val) {
Object.assign(this.ticket_data, {
author: val.author,
// ...
});
},
deep: true,
}
},
methods: {
async submit_b_func() {
let that = this;
if(that.localForm?.id){
that.localMode = "edit";
}
if(that.localMode == "add") {
let res = await that.$API.ofm.papersecret.create.req(that.localForm);
that.localForm.id = res.id;
} else if (that.localMode == "edit") {
await that.$API.ofm.papersecret.update.req(that.localForm.id, that.localForm);
}
},
getTid (){
var that = this;
if (that.t_id) {
that.$API.ofm.papersecret.item.req(that.t_id).then(res=>{
that.localForm = res;
if(res.ticket_?.state_?.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit";
}else{
that.localMode = "show";
}
})
}
},
fileUPSuccess(res, item) {
if(!item.fileList) {
item.fileList = []
}
item.fileList.push(res.path)
item.file = res.path
},
handleCheckChange(item) {
//
if (!item.checked) {
item.pages = '';
}
},
//
handleStatusChange(item) {
if (item.status === "否") {
item.file = "";
item.fileList = [];
}
},
},
};
</script>
<style lang="scss" scoped>
.status-item {
margin-bottom: 15px;
}
.status-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.upload-section {
margin-left: 10px;
border-left: 2px solid #eee;
padding-left: 10px;
}
</style>

View File

@ -39,7 +39,7 @@
<el-table-column <el-table-column
label="发明人(设计人)" label="发明人(设计人)"
prop="author" prop="author"
min-width="60" min-width="120"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="拟申请专利类型" label="拟申请专利类型"
@ -49,7 +49,7 @@
{{patentType[scope.row.type]}} {{patentType[scope.row.type]}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否提前公开" prop="is_public" mim-width="100"> <el-table-column label="是否提前公开" prop="is_public" mim-width="60">
<template #default="scope"> <template #default="scope">
<span :style="{color: scope.row.is_public ? '#67C23A' : '#F56C6C'}"> <span :style="{color: scope.row.is_public ? '#67C23A' : '#F56C6C'}">
{{ scope.row.is_public ? '是' : '否'}} {{ scope.row.is_public ? '是' : '否'}}
@ -108,12 +108,7 @@
{{statusOptions[scope.row.ticket_.state_.type]}} {{statusOptions[scope.row.ticket_.state_.type]}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" fixed="right" align="center" width="120">
label="备注"
prop="reason"
min-width="60"
></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="250">
<template #default="scope"> <template #default="scope">
<el-button <el-button
link link
@ -207,6 +202,7 @@ export default {
currentRow: null, currentRow: null,
// //
addForm: { addForm: {
author: "",
name: "", name: "",
type: "", type: "",
is_public: false, is_public: false,
@ -253,6 +249,7 @@ export default {
getDefaultForm(){ getDefaultForm(){
return { return {
name: "", name: "",
author: "",
type: "", type: "",
is_public: false, is_public: false,
area: null, area: null,

View File

@ -5,8 +5,10 @@
<el-form-item label="拟申请专利名称" prop="name"> <el-form-item label="拟申请专利名称" prop="name">
<el-input v-model="localForm.name" clearable :disabled="localMode ==='view'"></el-input> <el-input v-model="localForm.name" clearable :disabled="localMode ==='view'"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="发明人(设计人)" prop="author"> <el-form-item label="发明人(设计人)"
<el-input v-model="localForm.author" clearable :disabled="localMode ==='view'"></el-input> prop="author"
>
<el-input v-model="localForm.author" clearable ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="专利类型" prop="type"> <el-form-item label="专利类型" prop="type">
<el-select v-model="localForm.type" placeholder="请选择专利类型" :disabled="localMode ==='view'"> <el-select v-model="localForm.type" placeholder="请选择专利类型" :disabled="localMode ==='view'">
@ -129,17 +131,30 @@ export default {
...(this.modelValue || {}) } ...(this.modelValue || {}) }
}; };
}, },
// mounted() {
mounted() { // let that = this;
console.log('mode', this.localMode) // console.log('666666',that.ticket_data)
}, // },
watch: {
localForm: {
handler(val) {
Object.assign(this.ticket_data, {
author: val.author,
// ...
});
},
deep: true,
}
},
methods: { methods: {
async submit_b_func() { async submit_b_func() {
let that = this; let that = this;
this.ticketTitle = `${this.localForm.filename}-专利审批` if(that.localForm?.id){
that.localMode = "edit";
}
console.log('that.localForm',that.localMode, that.localForm)
if(that.localMode == "add") { if(that.localMode == "add") {
let res = await that.$API.ofm.patentinfo.create.req(that.localForm); let res = await that.$API.ofm.patentinfo.create.req(that.localForm);
that.localForm.id = res.id; that.localForm.id = res.id;
} else if (that.localMode == "edit") { } else if (that.localMode == "edit") {
await that.$API.ofm.patentinfo.update.req(that.localForm.id, that.localForm); await that.$API.ofm.patentinfo.update.req(that.localForm.id, that.localForm);
@ -149,7 +164,7 @@ export default {
var that = this; var that = this;
if (that.t_id) { if (that.t_id) {
that.$API.ofm.patentinfo.item.req(that.t_id).then(res=>{ that.$API.ofm.patentinfo.item.req(that.t_id).then(res=>{
that.form = res; that.localForm = res;
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit"; that.localMode = "edit";
}else{ }else{

View File

@ -214,7 +214,7 @@ export default {
var that = this; var that = this;
if (that.t_id) { if (that.t_id) {
that.$API.ofm.publicity.item.req(that.t_id).then(res=>{ that.$API.ofm.publicity.item.req(that.t_id).then(res=>{
that.form = res; that.addForm = res;
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit"; that.localMode = "edit";
}else{ }else{

View File

@ -141,7 +141,7 @@ export default {
}; };
}, },
mounted() { mounted() {
console.log('------------------',this.t_id) // console.log('--------this.t_id----------',this.t_id)
this.getTid(); this.getTid();
this.initTimeRange(); this.initTimeRange();
if (this.localForm.ticket_?.state_.type===1){ if (this.localForm.ticket_?.state_.type===1){
@ -189,11 +189,11 @@ export default {
}, },
getTid (){ getTid (){
var that = this; var that = this;
console.log('----------that--------',that.t_id) // console.log('----------that--------',that.t_id)
if (that.t_id) { if (that.t_id) {
that.$API.ofm.lendingseal.item.req(that.t_id).then(res=>{ that.$API.ofm.lendingseal.item.req(that.t_id).then(res=>{
that.localForm = res; that.localForm = res;
console.log('----------ticket_--------',that.localForm.ticket_) // console.log('----------ticket_--------',that.localForm.ticket_)
that.ticketview = true; that.ticketview = true;
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit"; that.localMode = "edit";

View File

@ -178,7 +178,7 @@ export default {
var that = this; var that = this;
if (that.t_id) { if (that.t_id) {
that.$API.ofm.vehicle.item.req(that.t_id).then(res=>{ that.$API.ofm.vehicle.item.req(that.t_id).then(res=>{
that.form = res; that.addForm = res;
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
that.localMode = "edit"; that.localMode = "edit";
}else{ }else{