Commit bf783f6a authored by zL's avatar zL

更改名称

parent 72e2aa5b
NODE_ENV = 'development' NODE_ENV = 'development'
VUE_APP_CURRENTMODE = 'refactoring_test' VUE_APP_CURRENTMODE = 'sy_test'
VUE_APP_VERSION = '0' VUE_APP_VERSION = '0'
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev:refactoring": "vue-cli-service serve --mode refactoring_test" "dev:sy": "vue-cli-service serve --mode sy_test"
}, },
"dependencies": { "dependencies": {
"@types/js-md5": "^0.4.2", "@types/js-md5": "^0.4.2",
...@@ -40,4 +40,4 @@ ...@@ -40,4 +40,4 @@
"last 2 versions", "last 2 versions",
"not dead" "not dead"
] ]
} }
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="./refactoring/favicon.ico"> <link rel="icon" href="./sy/favicon.ico">
<title>商品溯源</title> <title>商品溯源</title>
<link rel="stylesheet" href="//at.alicdn.com/t/font_1321935_v0o359opzio.css"> <link rel="stylesheet" href="//at.alicdn.com/t/font_1321935_v0o359opzio.css">
<script src="https://cdn.bootcss.com/tinymce/4.7.4/tinymce.min.js"></script> <script src="https://cdn.bootcss.com/tinymce/4.7.4/tinymce.min.js"></script>
......
...@@ -18,11 +18,11 @@ export default class CommonDialog extends Vue { ...@@ -18,11 +18,11 @@ export default class CommonDialog extends Vue {
* name * name
*/ */
public ClickingBackground() { public ClickingBackground() {
// console.log("关闭当前弹窗");
this.$emit("ClickingBackground"); this.$emit("ClickingBackground");
} }
public closePopup() { public closePopup() {
// console.log("关闭当前弹窗");
this.$emit("closePopup"); this.$emit("closePopup");
} }
} }
......
...@@ -37,7 +37,7 @@ export default class AddRootDialog extends Vue { ...@@ -37,7 +37,7 @@ export default class AddRootDialog extends Vue {
public bindValue: string = ""; public bindValue: string = "";
public isErrorShowing: boolean = false; public isErrorShowing: boolean = false;
public emitConfirm() { public emitConfirm() {
// console.log(1);
if (this.bindValue.length === 0) { if (this.bindValue.length === 0) {
this.isErrorShowing = true; this.isErrorShowing = true;
return; return;
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
watch: { watch: {
selectedEditItem: { selectedEditItem: {
handler(newName, oldName) { handler(newName, oldName) {
// console.log(newName, oldName);
if (newName.title) this.editTitle = newName.title; if (newName.title) this.editTitle = newName.title;
if (newName.label) this.editTitle = newName.label; if (newName.label) this.editTitle = newName.label;
}, },
......
...@@ -45,18 +45,17 @@ export default { ...@@ -45,18 +45,17 @@ export default {
// 数据回显 // 数据回显
if (this.property.value.length > 0) { if (this.property.value.length > 0) {
this.pdfSHOW = true; this.pdfSHOW = true;
// console.log(this.property);
let hashes = []; let hashes = [];
for (let index = 0; index < this.property.value.length; index++) { for (let index = 0; index < this.property.value.length; index++) {
const element = this.property.value[index]; const element = this.property.value[index];
hashes.push(element.value); hashes.push(element.value);
// this.getVideos();
// console.log(hashes);
} }
if (hashes.length === this.property.value.length) { if (hashes.length === this.property.value.length) {
this.getPDF(hashes); this.getPDF(hashes);
} }
// this.getPDF(this.property.value);
} }
}, },
watch: { watch: {
......
const configModules = { const configModules = {
// 重构--test // 重构--test
"refactoring_test": { "sy_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/', CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
/** /**
...@@ -8,9 +8,9 @@ const configModules = { ...@@ -8,9 +8,9 @@ const configModules = {
*/ */
INDEX: { INDEX: {
// page 的入口 // page 的入口
entry: './src/entry/refactoring/main.ts', entry: './src/entry/sy/main.ts',
// 模板来源 // 模板来源
template: './public/refactoring/index.html', template: './public/sy/index.html',
// 在 dist/index.html 的输出 // 在 dist/index.html 的输出
filename: 'index.html' filename: 'index.html'
} }
......
...@@ -77,26 +77,6 @@ let router = new Router({ // todo 移除旧页面 ...@@ -77,26 +77,6 @@ let router = new Router({ // todo 移除旧页面
} }
] ]
} }
// {
// path: '/main',
// component: () => import(/* webpackChunkName: "main" */ './views/Main.vue'),
// children: [
// // {
// // path: '/templateManage',
// // name: 'templateManage',
// // component: () => import(/* webpackChunkName: "templateManage" */ '../refactoring/views/template/Index.vue'),
// // children: [
// // // {
// // // path: '/viewTemplate',
// // // name: 'viewTemplate',
// // // component: () => import(/* webpackChunkName: "viewTemplate" */ '../../views/template/ViewTemplate/Index.vue'),
// // // },
// // ],
// // },
// ],
// },
// path:'*',redirect:'/login'
], ],
}); });
......
...@@ -95,7 +95,6 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr ...@@ -95,7 +95,6 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
}; };
} else if (property.type === PropertyType.Input) { } else if (property.type === PropertyType.Input) {
// 保留key,保留data // 保留key,保留data
console.log(property.data);
return { return {
data: { data: {
format: property.data ? property.data.format : 'string', format: property.data ? property.data.format : 'string',
......
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import { Message } from 'element-ui'; import { Message } from 'element-ui';
let router: any = null; let router: any = null;
router = require('@/entry/refactoring/router'); router = require('@/entry/sy/router');
import { getLoginCode } from './storage'; import { getLoginCode } from './storage';
export interface ResBase { export interface ResBase {
code: number; code: number;
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<img :src="item.image_url" v-if="isActive && item.image_url" /> <img :src="item.image_url" v-if="isActive && item.image_url" />
<img <img
v-if="!isActive" v-if="!isActive"
src="../../entry/refactoring/images/TemplateManage/self-tmpl-bg.png" src="../../entry/sy/images/TemplateManage/self-tmpl-bg.png"
class="img_my" class="img_my"
/> />
<span :class="{ my: !isActive }">{{ item.name }}</span> <span :class="{ my: !isActive }">{{ item.name }}</span>
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
@click="isShowToChainDialog = false" @click="isShowToChainDialog = false"
></i> ></i>
<img <img
src="../../entry/refactoring/images/newProductList/chain_notice.png" src="../../entry/sy/images/newProductList/chain_notice.png"
/> />
<div class="part-bottom"> <div class="part-bottom">
<h3>上链提示</h3> <h3>上链提示</h3>
...@@ -567,9 +567,6 @@ export default class editTemplate extends Vue { ...@@ -567,9 +567,6 @@ export default class editTemplate extends Vue {
await this.fileHandler(); await this.fileHandler();
var newDetail = new Array(); var newDetail = new Array();
newDetail = formatApiJson(this.rootUnitList); newDetail = formatApiJson(this.rootUnitList);
console.log(newDetail);
return;
// 更新ext数据 // 更新ext数据
for (let index = 0; index < newDetail.length; index++) { for (let index = 0; index < newDetail.length; index++) {
const element = newDetail[index]; const element = newDetail[index];
......
...@@ -121,7 +121,6 @@ export default { ...@@ -121,7 +121,6 @@ export default {
async getOrder() { async getOrder() {
const res = await orderType(this.orderId); const res = await orderType(this.orderId);
if (res) { if (res) {
console.log(res);
if (res.data.status === 2) { if (res.data.status === 2) {
clearInterval(this.intervalHandle); clearInterval(this.intervalHandle);
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment