company only

This commit is contained in:
caoqianming 2020-06-05 10:44:52 +08:00
parent ffbaaf6549
commit 6a1fa23e1b
4 changed files with 8 additions and 7 deletions

View File

@ -3,4 +3,4 @@ ENV = 'production'
# base api # base api
# VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = 'https://apitest.ctcshe.com' VUE_APP_BASE_API = 'https://apitest.ahctc.cn'

View File

@ -57,8 +57,8 @@ App({
globalData: { globalData: {
userInfo: {}, userInfo: {},
userinfo: {}, // 服务器传回的消费者信息 userinfo: {}, // 服务器传回的消费者信息
host: 'https://apitest.ctcshe.com', host: 'https://apitest.ahctc.cn',
mediahost: 'https://apitest.ctcshe.com', mediahost: 'https://apitest.ahctc.cn',
//host: 'http://127.0.0.1:8000', //host: 'http://127.0.0.1:8000',
//mediahost: 'http://127.0.0.1:8000', //mediahost: 'http://127.0.0.1:8000',
token : '', token : '',

View File

@ -11,6 +11,8 @@
"newFeature": true, "newFeature": true,
"coverView": true, "coverView": true,
"autoAudits": false, "autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"checkInvalidKey": true, "checkInvalidKey": true,
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
@ -19,9 +21,8 @@
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"showShadowRootInWxmlPanel": true, "useCompilerModule": true,
"scopeDataCheck": false, "userConfirmedUseCompilerModuleSwitch": false
"useCompilerModule": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.10.3", "libVersion": "2.10.3",

View File

@ -9,7 +9,7 @@ class Company(CommonModel):
''' '''
客户企业 客户企业
''' '''
name = models.CharField(max_length=60, verbose_name='名称') name = models.CharField(max_length=60, verbose_name='名称', unique=True)
pid = models.ForeignKey('self', null=True, blank=True, on_delete=models.SET_NULL, verbose_name='') pid = models.ForeignKey('self', null=True, blank=True, on_delete=models.SET_NULL, verbose_name='')
class Meta: class Meta: