前端项目

develop
mengqiang 4 years ago
parent 93edf7d3f7
commit 15d3dd67af
  1. 2
      sso-auth-center-vue/.env.development
  2. 2
      sso-auth-center-vue/.env.production
  3. 2
      sso-auth-center-vue/.env.staging
  4. 28
      sso-auth-center-vue/README.md
  5. 7
      sso-auth-center-vue/src/views/sso/dept/index.vue
  6. 9
      sso-auth-center-vue/src/views/sso/platform/platformDetail.vue
  7. 2
      sso-auth-center-vue/src/views/sso/platform/platformMgmt.vue

@ -2,5 +2,5 @@
ENV = 'development'
# base api
# VUE_APP_BASE_API = '/dev-api'
# VUE_APP_BASE_API = '/api'
VUE_APP_BASE_API = 'http://localhost:9901/api'

@ -2,5 +2,5 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = '/api'

@ -4,5 +4,5 @@ NODE_ENV = production
ENV = 'staging'
# base api
VUE_APP_BASE_API = '/stage-api'
VUE_APP_BASE_API = '/api'

@ -0,0 +1,28 @@
# 小强认证中心前端项目
```bash
# 进入项目目录
cd sso-auth-center-vue
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
# 启动服务
npm run dev
```
浏览器访问 http://localhost:端口
## 发布
```bash
# 构建测试环境
npm run build-test
# 构建生产环境
npm run build
```

@ -16,7 +16,8 @@
/>
</el-form-item>
<el-form-item label="状态" prop="status">
<el-select v-model="queryParams.status" placeholder="状态" @keyup.enter.native="handleQuery" @change="handleQuery"
<el-select v-model="queryParams.status" placeholder="状态" @keyup.enter.native="handleQuery"
@change="handleQuery"
size="small" style="width: 90px">
<el-option :key="-1" label="全部" :value="-1"/>
<el-option :key="0" label="正常" :value="0"/>
@ -56,7 +57,8 @@
<span v-if="scope.row.status === 1"><el-tag type="danger" size="mini">停用</el-tag></span>
</template>
</el-table-column>
<el-table-column prop="sortNum" label="显示顺序" align="center" min-width="100" show-overflow-tooltip></el-table-column>
<el-table-column prop="sortNum" label="显示顺序" align="center" min-width="100"
show-overflow-tooltip></el-table-column>
<el-table-column prop="createTime" min-width="165" label="创建时间" align="center"/>
<el-table-column prop="updateTime" min-width="165" label="修改时间" align="center"/>
<el-table-column fixed="right" label="操作" align="center" width="200">
@ -79,6 +81,7 @@
>新增
</el-button>
<el-button
v-if="scope.row.children.length<=0"
size="mini"
type="text"
icon="el-icon-delete"

@ -26,10 +26,13 @@
</el-card>
</el-col>
<el-col :md="3" :lg="3" v-if="hasUpdatePermission">
<sysIcon :sysId="detailData.sysId" :imgUrl="detailData.sysIcon"/>
<sysIcon v-if="detailData.sysIcon !=='' && detailData.sysIcon !==undefined" :sysId="detailData.sysId" :imgUrl="detailData.sysIcon"/>
<sysIcon v-else :sysId="detailData.sysId" :imgUrl="detailData.sysDefaultIcon"/>
</el-col>
<el-col :md="3" :lg="3" v-if="!hasUpdatePermission">
<img :src="detailData.sysIcon" style="width: 260px; height: 160px"/>
<img v-if="detailData.sysIcon !=='' && detailData.sysIcon !==undefined" :src="detailData.sysIcon"
style="width: 260px; height: 160px"/>
<img v-else :src="detailData.sysDefaultIcon" style="width: 260px; height: 160px"/>
</el-col>
</el-row>
<el-row :gutter="10">
@ -305,7 +308,7 @@ export default {
}
//
if (null == this.detailData.sysIcon || '' === this.detailData.sysIcon) {
this.detailData.sysIcon = require('@/assets/image/default-system.jpg')
this.detailData.sysDefaultIcon = require('@/assets/image/default-system.jpg')
}
}
)

@ -198,7 +198,7 @@ export default {
submitForm() {
this.$refs['addForm'].validate(valid => {
if (valid) {
this.addForm.sysIcon='';
this.$confirm(
'是否确认新增,请注意!新增后系统编码将不可修改?',
'确认警告',

Loading…
Cancel
Save