|
|
@@ -101,11 +101,11 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="audit" label="发布状态" width="100">
|
|
|
<template #default="scope">
|
|
|
- <div style="text-align: center;display: flex;" v-if="scope.row.publish=='1'">
|
|
|
- <el-tag class="ml-2" type="success">已发布</el-tag>
|
|
|
+ <div style="text-align: center;display: flex;color:#67C23A" v-if="scope.row.publish=='1'">
|
|
|
+ 已发布
|
|
|
</div>
|
|
|
- <div style="text-align: center;display: flex;" v-if="scope.row.publish=='0'||scope.row.publish==null">
|
|
|
- <el-tag class="ml-2" type="danger">未发布</el-tag>
|
|
|
+ <div style="text-align: center;display: flex;color:#F56C6C" v-if="scope.row.publish=='0'||scope.row.publish==null">
|
|
|
+ 未发布
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -193,7 +193,20 @@
|
|
|
<el-input v-model="auditRemark" style="width: 100%;" type="textarea"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
+ <div style="display: flex;font-size: 13px;align-items: center;line-height: 1.5;margin-left: 1%;margin-top: 5%;">
|
|
|
+ <div style="">
|
|
|
+ 当前审核人:
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ {{userName}}
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 5%;">
|
|
|
+ 当前日期:
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ {{date}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
<el-button size="mini" @click="dialogVisibleTest = false">取消</el-button>
|
|
|
@@ -205,7 +218,7 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog @close="clearFromLev" title="" v-model="dialogVisibleLevel" width="50%" destroy-on-close :key="tableKey">
|
|
|
<el-table
|
|
|
- style="margin-top: 1%;width: 98%;"
|
|
|
+ style="margin-top: 1%;width: 98%;min-height: 400px;"
|
|
|
:data="tableDataLog"
|
|
|
:cell-style="{ textAlign: 'center',padding:'2px 0' }"
|
|
|
:header-cell-style="{ textAlign: 'center'}"
|
|
|
@@ -219,11 +232,11 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="audit" label="发布状态" width="100">
|
|
|
<template #default="scope">
|
|
|
- <div style="text-align: center;display: flex;" v-if="scope.row.publish=='1'">
|
|
|
- <el-tag class="ml-2" type="success">已发布</el-tag>
|
|
|
+ <div style="text-align: center;display: flex;color:#67C23A" v-if="scope.row.publish=='1'">
|
|
|
+ 已发布
|
|
|
</div>
|
|
|
- <div style="text-align: center;display: flex;" v-if="scope.row.publish=='0'||scope.row.publish==null">
|
|
|
- <el-tag class="ml-2" type="danger">未发布</el-tag>
|
|
|
+ <div style="text-align: center;display: flex;color:#F56C6C" v-if="scope.row.publish=='0'||scope.row.publish==null">
|
|
|
+ 未发布
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -242,8 +255,9 @@ import {getCatalog} from "@/api/service/catalog";
|
|
|
import { Plus,Search,Filter,Promotion,Check } from '@element-plus/icons-vue'
|
|
|
import { reactive } from 'vue'
|
|
|
import { changeSerShenhe } from "@/api/register/regCom";
|
|
|
-import { modelTreeSelect,getSerDe,addService,shenheLog,addServiceParam,delService,addTree,deTree,getServiceInfo,testService,serFabu } from "@/api/service/info";
|
|
|
+import { modelTreeSelect,getSerDe,addService,shenheLog,addServiceParam,delService,addTree,deTree,getServiceInfo,testService,publishModel } from "@/api/service/info";
|
|
|
import { ref, onMounted, onUnmounted, nextTick,onBeforeMount } from 'vue';
|
|
|
+import { getUserProfile } from "@/api/system/user";
|
|
|
import JsonViewer from 'vue-json-viewer'
|
|
|
import 'vue-json-viewer/style.css'
|
|
|
import JsonEditorVue from 'json-editor-vue3'
|
|
|
@@ -260,7 +274,9 @@ const detail = ref({
|
|
|
rqtype:'',
|
|
|
rptype:''
|
|
|
})
|
|
|
-const publish = ref()
|
|
|
+const userName = ref('')
|
|
|
+const date = ref('')
|
|
|
+const publish = ref('1')
|
|
|
const auditRemark = ref()
|
|
|
const show1Lev = ref(true)
|
|
|
const inputNode =ref('')
|
|
|
@@ -467,7 +483,7 @@ function showLog(row){
|
|
|
}
|
|
|
function saveShenhe(){
|
|
|
parShenhe.value.publish = publish.value
|
|
|
- publish(parShenhe).then(res=>{
|
|
|
+ publishModel(parShenhe).then(res=>{
|
|
|
if(res.code===200){
|
|
|
proxy.$modal.msgSuccess("已发布!");
|
|
|
var par1 = {
|
|
|
@@ -774,6 +790,9 @@ function renameTreeProperties(tree) {
|
|
|
return newTree;
|
|
|
}
|
|
|
function fetchData() {
|
|
|
+ getUserProfile().then(response => {
|
|
|
+ userName.value = response.data.userName
|
|
|
+ });
|
|
|
getCatalog().then((r) => {
|
|
|
parOptions.value = r.data
|
|
|
cascaderOptions.value = renameTreeProperties(buildTree(r.data))
|
|
|
@@ -820,9 +839,20 @@ function addCanAdd(){
|
|
|
function delCanAdd(index){
|
|
|
tableDataCanAdd.value.splice(index, 1)
|
|
|
}
|
|
|
+function getDate(){
|
|
|
+ const today = new Date();
|
|
|
+ const year = today.getFullYear();
|
|
|
+ // 月份加1并补零
|
|
|
+ const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
|
+ // 日期补零
|
|
|
+ const day = String(today.getDate()).padStart(2, '0');
|
|
|
+
|
|
|
+ date.value = `${year}-${month}-${day}`;
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
fetchData()
|
|
|
getTreeLeft()
|
|
|
+ getDate()
|
|
|
});
|
|
|
|
|
|
</script>
|