dev_review
yujialong 1 year ago
parent 905701ae7b
commit 7c47acc9d2
  1. 5
      package-lock.json
  2. 1
      package.json
  3. 3
      src/setting.js
  4. 13
      src/utils/editor.js
  5. 1
      src/views/parnerOperation/learnMg.vue
  6. 428
      src/views/serve/Configure.vue
  7. 10
      src/views/serve/projectAdd.vue
  8. 4
      src/views/shop/addProduct/index.vue

5
package-lock.json generated

@ -12176,6 +12176,11 @@
"resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
}, },
"tinymce-plugin": {
"version": "0.0.3-beta.22",
"resolved": "https://registry.npmjs.org/tinymce-plugin/-/tinymce-plugin-0.0.3-beta.22.tgz",
"integrity": "sha512-TplhnAlYguOROSQ86x7COOFCI5uZT3l2QxTL0Euq+Mar4SI5VlVzUHi3Ix7lrvrXGGOHtt3SYS533R7ujYaVOg=="
},
"to-arraybuffer": { "to-arraybuffer": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",

@ -24,6 +24,7 @@
"px2rem-loader": "^0.1.9", "px2rem-loader": "^0.1.9",
"qs": "^6.11.2", "qs": "^6.11.2",
"sortablejs": "^1.14.0", "sortablejs": "^1.14.0",
"tinymce-plugin": "0.0.3-beta.22",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-codemirror": "^4.0.6", "vue-codemirror": "^4.0.6",
"vue-cropper": "^0.5.8", "vue-cropper": "^0.5.8",

@ -6,9 +6,11 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
const isPro = url.includes('huorantech.cn') //正式服 const isPro = url.includes('huorantech.cn') //正式服
let jumpPath = `${location.origin}/judgmentPoint` let jumpPath = `${location.origin}/judgmentPoint`
let sandPath = `${location.origin}/sandbox` // 沙盘地址
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统 jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统
sandPath = `http://${location.hostname}:9520`
host = 'http://121.37.12.51/' host = 'http://121.37.12.51/'
// host = 'https://huorantech.cn/' // host = 'https://huorantech.cn/'
// host = 'http://192.168.31.217:9000/'// 榕 // host = 'http://192.168.31.217:9000/'// 榕
@ -25,6 +27,7 @@ const Setting = {
platformId: 3, // 平台标识,1职站,2数据平台,3中台,4合伙人 platformId: 3, // 平台标识,1职站,2数据平台,3中台,4合伙人
platformSource: 0, // 平台来源(0中台,1职站) platformSource: 0, // 平台来源(0中台,1职站)
jumpPath, // 判分点系统跳转路径前缀 jumpPath, // 判分点系统跳转路径前缀
sandPath, // 沙盘地址
apiBaseURL: host, // 请求路径前缀 apiBaseURL: host, // 请求路径前缀
uploadURL: isDev ? 'http://121.37.12.51/' : location.origin + '/', // 阿里云oss域名 uploadURL: isDev ? 'http://121.37.12.51/' : location.origin + '/', // 阿里云oss域名
// 平台列表 // 平台列表

@ -200,19 +200,6 @@ export default {
{ title: 'None', value: '' }, { title: 'None', value: '' },
{ title: 'Some class', value: 'class-name' } { title: 'Some class', value: 'class-name' }
], ],
//importcss_append: true,
//自定义文件选择器的回调内容
file_picker_callback: function (callback, value, meta) {
if (meta.filetype === 'file') {
callback('https://www.baidu.com/img/bd_logo1.png', { text: 'My text' });
}
if (meta.filetype === 'image') {
callback('https://www.baidu.com/img/bd_logo1.png', { alt: 'My alt text' });
}
if (meta.filetype === 'media') {
callback('movie.mp4', { source2: 'alt.ogg', poster: 'https://www.baidu.com/img/bd_logo1.png' });
}
},
//为内容模板插件提供预置模板 //为内容模板插件提供预置模板
templates: [ templates: [
{ title: '中文文章模板1', description: '图片文字流', content: ` { title: '中文文章模板1', description: '图片文字流', content: `

@ -294,6 +294,7 @@ import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import { mapState } from 'vuex' import { mapState } from 'vuex'
import Editor from '@tinymce/tinymce-vue' import Editor from '@tinymce/tinymce-vue'
// import t from "tinymce-plugin/plugins/tpImportword/plugin.js";
import editorConfig from '@/utils/editor' import editorConfig from '@/utils/editor'
import Cropper from '@/components/img-upload/Cropper' import Cropper from '@/components/img-upload/Cropper'
import Axios from 'axios' import Axios from 'axios'

@ -1,206 +1,254 @@
<template> <template>
<div> <div>
<el-card shadow="hover" class="mgb20"> <el-card shadow="hover"
class="mgb20">
<div>
<div class="flex-center mgb20">
<p class="hr_tag"></p>
<span>筛选</span>
</div>
<div>
<el-form label-width="80px">
<div> <div>
<div class="flex-center mgb20"> <el-col :span="4">
<p class="hr_tag"></p> <el-form-item label="系统归属">
<span>筛选</span> <el-select v-model="systemAttribution"
</div> clearable
<div> placeholder="请选择系统归属"
<el-form label-width="80px"> @change="initData">
<div> <el-option v-for="(item,index) in systemBelongList"
<el-col :span="4"> :key="index"
<el-form-item label="系统归属"> :label="item.label"
<el-select v-model="systemAttribution" clearable placeholder="请选择系统归属" :value="item.value"></el-option>
@change="initData"> </el-select>
<el-option v-for="(item,index) in systemBelongList" :key="index" </el-form-item>
:label="item.label" :value="item.value"></el-option> </el-col>
</el-select> <el-col :span="4">
</el-form-item> <el-form-item label="系统类型">
</el-col> <el-select v-model="systemType"
<el-col :span="4"> clearable
<el-form-item label="系统类型"> placeholder="请选择系统类型"
<el-select v-model="systemType" clearable placeholder="请选择系统类型" @change="initData">
@change="initData"> <el-option v-for="(item,index) in systemTypeList"
<el-option v-for="(item,index) in systemTypeList" :key="index" :key="index"
:label="item.label" :value="item.value"></el-option> :label="item.label"
</el-select> :value="item.value"></el-option>
</el-form-item> </el-select>
</el-col> </el-form-item>
</div> </el-col>
<el-col :span="6">
<el-form-item>
<el-input placeholder="请输入系统名称" prefix-icon="el-icon-search"
v-model.trim="systemSearch" clearable></el-input>
</el-form-item>
</el-col>
</el-form>
</div>
</div> </div>
</el-card> <el-col :span="6">
<el-form-item>
<el-input placeholder="请输入系统名称"
prefix-icon="el-icon-search"
v-model.trim="systemSearch"
clearable></el-input>
</el-form-item>
</el-col>
</el-form>
</div>
</div>
</el-card>
<el-card shadow="hover" class="card"> <el-card shadow="hover"
<div class="flex-center mgb20"> class="card">
<p class="hr_tag"></p> <div class="flex-center mgb20">
<span>服务列表</span> <p class="hr_tag"></p>
</div> <span>服务列表</span>
<el-table :data="systemData" class="table" stripe header-align="center"> </div>
<!-- <el-table-column type="selection" width="55" align="center"></el-table-column> --> <el-table :data="systemData"
<el-table-column type="index" width="100" label="序号" align="center"> class="table"
</el-table-column> stripe
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> header-align="center">
<el-table-column prop="type" label="系统类型" align="center"> <!-- <el-table-column type="selection" width="55" align="center"></el-table-column> -->
<template slot-scope="scope"> <el-table-column type="index"
{{ systemTypeKeys[scope.row.type] }} width="100"
</template> label="序号"
</el-table-column> align="center">
<el-table-column prop="supplierName" label="供应商" align="center"></el-table-column> </el-table-column>
<el-table-column prop="belong" label="系统归属" align="center"> <el-table-column prop="systemName"
<template slot-scope="scope"> label="系统名称"
{{ systemBelongKeys[scope.row.belong] }} align="center"></el-table-column>
</template> <el-table-column prop="type"
</el-table-column> label="系统类型"
<el-table-column prop="state" label="系统状态" align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ systemStatusKeys[scope.row.state] }} {{ systemTypeKeys[scope.row.type] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="payamount" label="系统后台" align="center"> <el-table-column prop="supplierName"
<template slot-scope="scope"> label="供应商"
<el-button type="text" @click="toBackstage(scope.row)" v-if="scope.row.systemId !== '11'" v-auth="'/configure:系统后台进入'">进入</el-button> align="center"></el-table-column>
</template> <el-table-column prop="belong"
</el-table-column> label="系统归属"
<el-table-column prop="payamount" label="项目系统" align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="getIntoProject(scope.row)" v-auth="'/configure:项目系统进入'">进入</el-button> {{ systemBelongKeys[scope.row.belong] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="payamount" label="判分系统" align="center"> <el-table-column prop="state"
<template slot-scope="scope"> label="系统状态"
<el-button type="text" @click="getIntoJudgement(scope.row)" v-auth="'/configure:判分系统进入'">进入</el-button> align="center">
</template> <template slot-scope="scope">
</el-table-column> {{ systemStatusKeys[scope.row.state] }}
</el-table> </template>
<div class="pagination"> </el-table-column>
<el-pagination background @current-change="handleCurrentChange" <el-table-column prop="payamount"
layout="total, prev, pager, next" :total="totals"> label="系统后台"
</el-pagination> align="center">
</div> <template slot-scope="scope">
</el-card> <el-button type="text"
</div> @click="toBackstage(scope.row)"
v-if="scope.row.systemId !== '11'"
v-auth="'/configure:系统后台进入'">进入</el-button>
</template>
</el-table-column>
<el-table-column prop="payamount"
label="项目系统"
align="center">
<template slot-scope="scope">
<el-button type="text"
@click="getIntoProject(scope.row)"
v-auth="'/configure:项目系统进入'">进入</el-button>
</template>
</el-table-column>
<el-table-column prop="payamount"
label="判分系统"
align="center">
<template slot-scope="scope">
<el-button type="text"
@click="getIntoJudgement(scope.row)"
v-auth="'/configure:判分系统进入'">进入</el-button>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background
@current-change="handleCurrentChange"
layout="total, prev, pager, next"
:total="totals">
</el-pagination>
</div>
</el-card>
</div>
</template> </template>
<script> <script>
import Setting from "@/setting"; import Setting from "@/setting";
import Cookie from 'js-cookie'
export default { export default {
data() { data () {
return { return {
userId: this.$store.state.userLoginId, userId: this.$store.state.userLoginId,
token: btoa(sessionStorage.getItem('token')), token: btoa(sessionStorage.getItem('token')),
systemAttribution: "", systemAttribution: "",
systemType: "", systemType: "",
systemSearch: "", systemSearch: "",
searchTimer: null, searchTimer: null,
systemData: [], systemData: [],
totals: 0, totals: 0,
systemBelongList: [ systemBelongList: [
{ {
label: "外部产品", label: "外部产品",
value: 1 value: 1
},
{
label: "内部系统",
value: 0
}
],
systemBelongKeys: {
1: '外部产品',
0: '内部系统'
},
systemTypeList: [
{
label: "编程类",
value: 0
},
{
label: "流程类",
value: 1
}
],
systemTypeKeys: {
0: '编程类',
1: '流程类'
},
systemStatusKeys: {
0: '运行中',
1: '默认'
},
pageNo: +this.$route.query.page || 1,
pageSize: 10
};
},
watch: {
systemSearch: function(val) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.initData();
}, 500);
}
},
mounted() {
this.getData();
},
methods: {
initData() {
this.pageNum = 1;
this.getData();
},
getData() {
const sid = this.$store.state.dataPer.find(e => e.permissionName === '服务配置')
let data = {
belong: this.systemAttribution,
type: this.systemType,
systemName: this.systemSearch,
pageNum: this.pageNo,
pageSize: this.pageSize,
supplierId: sid ? sid.supplierId : ''
};
this.$post(this.api.queryServiceConfig, data).then(res => {
this.systemData = res.serviceList.records;
this.totals = res.serviceList.total;
}).catch(res => {
});
},
handleCurrentChange(val) {
this.pageNo = val;
this.$router.push(`configure?page=${val}`)
this.getData();
},
edit(row) {
this.$store.commit("configData", { config_id: row.systemId });
this.$router.push("/addconfigure");
},
//
toBackstage(row) {
this.$router.push(`/backstage?systemId=${row.systemId}&show=1&name=${row.systemName}`)
}, },
getIntoProject(row) { {
this.$router.push(`/projectList?systemId=${row.systemId}&show=1&name=${row.systemName}`) label: "内部系统",
}, value: 0
getIntoJudgement(row) { }
// console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`); ],
location.href = `${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`; systemBelongKeys: {
1: '外部产品',
0: '内部系统'
},
systemTypeList: [
{
label: "编程类",
value: 0
}, },
setCookie(name, value) { {
if (value) { label: "流程类",
var days = 1;// value: 1
var exp = new Date();
exp.setTime(exp.getTime() + days * 24 * 60 * 60 * 1000);
//Cookie,toGMTString
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString + ";path=/;";
}
} }
],
systemTypeKeys: {
0: '编程类',
1: '流程类'
},
systemStatusKeys: {
0: '运行中',
1: '默认'
},
pageNo: +this.$route.query.page || 1,
pageSize: 10
};
},
watch: {
systemSearch: function (val) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.initData();
}, 500);
}
},
mounted () {
this.getData();
},
methods: {
initData () {
this.pageNum = 1;
this.getData();
},
getData () {
const sid = this.$store.state.dataPer.find(e => e.permissionName === '服务配置')
let data = {
belong: this.systemAttribution,
type: this.systemType,
systemName: this.systemSearch,
pageNum: this.pageNo,
pageSize: this.pageSize,
supplierId: sid ? sid.supplierId : ''
};
this.$post(this.api.queryServiceConfig, data).then(res => {
this.systemData = res.serviceList.records;
this.totals = res.serviceList.total;
}).catch(res => {
});
},
handleCurrentChange (val) {
this.pageNo = val;
this.$router.push(`configure?page=${val}`)
this.getData();
},
edit (row) {
this.$store.commit("configData", { config_id: row.systemId });
this.$router.push("/addconfigure");
},
//
toBackstage (row) {
if (row.systemId == 19) {
location.href = `${Setting.sandPath}/#/config?token=${sessionStorage.getItem('token')}&referrer=${encodeURIComponent(location.href)}`
} else {
this.$router.push(`/backstage?systemId=${row.systemId}&show=1&name=${row.systemName}`)
}
},
getIntoProject (row) {
this.$router.push(`/projectList?systemId=${row.systemId}&show=1&name=${row.systemName}`)
},
getIntoJudgement (row) {
// console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`);
location.href = `${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`;
},
setCookie (name, value) {
if (value) {
var days = 1;//
var exp = new Date();
exp.setTime(exp.getTime() + days * 24 * 60 * 60 * 1000);
//Cookie,toGMTString
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString + ";path=/;";
}
} }
}
}; };
</script> </script>

@ -666,6 +666,10 @@ export default {
this.dialogVisible = true; this.dialogVisible = true;
this.handleQueryJudgment(); this.handleQueryJudgment();
}, },
// id
isLc (systemId) {
return systemId == 11 || systemId == 12 || systemId == 19
},
handleQueryJudgment () { // handleQueryJudgment () { //
let { systemId } = this.projectManage; let { systemId } = this.projectManage;
this.$nextTick(() => { this.$nextTick(() => {
@ -680,7 +684,7 @@ export default {
}; };
if (systemId == 2 || systemId == 3) { if (systemId == 2 || systemId == 3) {
console.log("系统id:", systemId); console.log("系统id:", systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc(systemId)) {
// () // ()
this.rowKey = "lcId"; this.rowKey = "lcId";
this.getProcessClassData(params); this.getProcessClassData(params);
@ -823,7 +827,7 @@ export default {
console.log(systemId); console.log(systemId);
} else if (systemId == 3) { } else if (systemId == 3) {
console.log(systemId); console.log(systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc(systemId)) {
// //
href = `${jumpPath}/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else { } else {
@ -836,7 +840,7 @@ export default {
console.log(systemId); console.log(systemId);
} else if (systemId == 3) { } else if (systemId == 3) {
console.log(systemId); console.log(systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc(systemId)) {
// //
href = `${jumpPath}/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else { } else {

@ -924,7 +924,7 @@ export default {
if (e.typeIds && e.typeIds.length) e.typeIds = e.typeIds[0] if (e.typeIds && e.typeIds.length) e.typeIds = e.typeIds[0]
e.mall.interfaceDiagrams = e.mall.interfaceDiagram ? e.mall.interfaceDiagram.split(',') : [] e.mall.interfaceDiagrams = e.mall.interfaceDiagram ? e.mall.interfaceDiagram.split(',') : []
e.mallAnnex.forEach(e => e.name = e.fileName) e.mallAnnex.forEach(e => e.name = e.fileName)
if (e.systemId && e.systemId.split(',').filter(e => e != 12 && e != 13).length) this.isPython = true // python if (e.systemId && e.systemId.split(',').filter(e => e != 11 && e != 12 && e != 19).length) this.isPython = true // python
if (!e.mall.themeId) e.mall.themeId = '' if (!e.mall.themeId) e.mall.themeId = ''
if (e.mall.appletIcon) this.appletList = [ if (e.mall.appletIcon) this.appletList = [
{ {
@ -1075,7 +1075,7 @@ export default {
if (data.marketPrice) mall.marketUnitPrice = data.marketPrice if (data.marketPrice) mall.marketUnitPrice = data.marketPrice
// python // python
const systemIds = data.systemIds.split(',') const systemIds = data.systemIds.split(',')
this.isPython = systemIds.filter(e => e != 12 && e != 13).length this.isPython = systemIds.filter(e => e != 11 && e != 12 && e != 19).length
this.calcAllSettlement() this.calcAllSettlement()
}).catch(err => { }) }).catch(err => { })
} else { } else {

Loading…
Cancel
Save