|
@@ -41,11 +41,7 @@
|
|
|
<div class="search-group">
|
|
|
<i-col span="8">
|
|
|
<div style="display: inline-block">
|
|
|
- <i-input
|
|
|
- v-model="q.name"
|
|
|
- @on-enter="query"
|
|
|
- placeholder="场景名称"
|
|
|
- />
|
|
|
+ <i-input v-model="q.name" @on-enter="query" placeholder="场景名称" />
|
|
|
</div>
|
|
|
<!-- <div style="display: inline-block;">
|
|
|
<i-input v-model="q.brandName" @on-enter="query" placeholder="VR场景名称"/>
|
|
@@ -69,13 +65,8 @@
|
|
|
#if($shiro.hasPermission("brand:list"))
|
|
|
<!-- <i-button v-if="localStorage.getItem('userExpTime') > Date.now()" type="info" @click="open">绑定员工</i-button> -->
|
|
|
|
|
|
- <i-button type="info" @click="syncScene">同步场景</i-button>
|
|
|
- <i-button
|
|
|
- v-if="localStorage.getItem('userExpTime') > Date.now() || localStorage.getItem('userExpTime') == 'null'"
|
|
|
- type="info"
|
|
|
- @click="showYoN"
|
|
|
- >修改</i-button
|
|
|
- >
|
|
|
+ <!-- <i-button type="info" @click="syncScene">同步场景</i-button> -->
|
|
|
+ <i-button v-if="localStorage.getItem('userExpTime') > Date.now() || localStorage.getItem('userExpTime') == 'null'" type="info" @click="showYoN">修改</i-button>
|
|
|
#end
|
|
|
</div>
|
|
|
</Row>
|
|
@@ -85,12 +76,7 @@
|
|
|
|
|
|
<Card v-show="showInApp">
|
|
|
<p slot="title">{{title}}</p>
|
|
|
- <i-form
|
|
|
- :model="appShow"
|
|
|
- ref="formValidate1"
|
|
|
- :rules="ruleValidate1"
|
|
|
- :label-width="120"
|
|
|
- >
|
|
|
+ <i-form :model="appShow" ref="formValidate1" :rules="ruleValidate1" :label-width="120">
|
|
|
<div>
|
|
|
<Form-item label="场景名称:" prop="name">
|
|
|
<!-- <div>{{appShow.name}}</div> -->
|
|
@@ -100,25 +86,11 @@
|
|
|
<Form-item label="封面" prop="appListPicUrl">
|
|
|
<div class="demo-upload-list">
|
|
|
<template>
|
|
|
- <img
|
|
|
- v-if="!appShow.appListPicUrl"
|
|
|
- style="width: 167px"
|
|
|
- src="../statics/img/pic_bg@2x.png"
|
|
|
- />
|
|
|
- <img
|
|
|
- v-else
|
|
|
- style="width: 167px"
|
|
|
- :src="appShow.appListPicUrl"
|
|
|
- />
|
|
|
+ <img v-if="!appShow.appListPicUrl" style="width: 167px" src="../statics/img/pic_bg@2x.png" />
|
|
|
+ <img v-else style="width: 167px" :src="appShow.appListPicUrl" />
|
|
|
<div class="demo-upload-list-cover">
|
|
|
- <i
|
|
|
- class="ivu-icon ivu-icon-eye"
|
|
|
- @click="eyeImage(appShow.appListPicUrl)"
|
|
|
- ></i>
|
|
|
- <i
|
|
|
- class="ivu-icon ivu-icon-trash-a"
|
|
|
- @click="appShow.appListPicUrl=''"
|
|
|
- ></i>
|
|
|
+ <i class="ivu-icon ivu-icon-eye" @click="eyeImage(appShow.appListPicUrl)"></i>
|
|
|
+ <i class="ivu-icon ivu-icon-trash-a" @click="appShow.appListPicUrl=''"></i>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -132,9 +104,7 @@
|
|
|
:show-upload-list="false"
|
|
|
:on-exceeded-size="handleMaxSize"
|
|
|
>
|
|
|
- <i-button type="warning" icon="ios-cloud-upload-outline"
|
|
|
- >上传图片</i-button
|
|
|
- >
|
|
|
+ <i-button type="warning" icon="ios-cloud-upload-outline">上传图片</i-button>
|
|
|
</Upload>
|
|
|
</div>
|
|
|
<p>1、支持png、jpg和gif图片格式;</p>
|
|
@@ -153,12 +123,8 @@
|
|
|
</Radio-group>
|
|
|
</Form-item>
|
|
|
<Form-item>
|
|
|
- <i-button type="primary" @click="handleSubmit1('formValidate1')"
|
|
|
- >提交</i-button
|
|
|
- >
|
|
|
- <i-button type="warning" @click="reload" style="margin-left: 8px"
|
|
|
- >返回</i-button
|
|
|
- >
|
|
|
+ <i-button type="primary" @click="handleSubmit1('formValidate1')">提交</i-button>
|
|
|
+ <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
|
|
|
</Form-item>
|
|
|
</div>
|
|
|
</i-form>
|
|
@@ -172,12 +138,7 @@
|
|
|
|
|
|
<Card v-show="roleBangding">
|
|
|
<p slot="title">{{title}}</p>
|
|
|
- <i-form
|
|
|
- ref="formValidate"
|
|
|
- :model="user"
|
|
|
- :rules="ruleValidate"
|
|
|
- :label-width="80"
|
|
|
- >
|
|
|
+ <i-form ref="formValidate" :model="user" :rules="ruleValidate" :label-width="80">
|
|
|
<div style="width: 100%">
|
|
|
<Form-item label="用户名" prop="username">
|
|
|
<div class="c-winput">
|
|
@@ -186,14 +147,7 @@
|
|
|
</Form-item>
|
|
|
<Form-item label="所属公司" prop="deptName">
|
|
|
<div class="c-winput" @click="deptTree">
|
|
|
- <i-input
|
|
|
- type="text"
|
|
|
- v-model="user.deptName"
|
|
|
- icon="eye"
|
|
|
- readonly="readonly"
|
|
|
- readonly="readonly"
|
|
|
- placeholder="所属公司"
|
|
|
- />
|
|
|
+ <i-input type="text" v-model="user.deptName" icon="eye" readonly="readonly" readonly="readonly" placeholder="所属公司" />
|
|
|
</div>
|
|
|
</Form-item>
|
|
|
<Form-item label="邮箱" prop="email">
|
|
@@ -212,20 +166,13 @@
|
|
|
<i-button @click="getBrandList">添加VR场景</i-button>
|
|
|
|
|
|
<div v-if="user.brandList">
|
|
|
- <span
|
|
|
- style="margin-right: 20px"
|
|
|
- v-for="(item,i) in user.brandList"
|
|
|
- :key="i"
|
|
|
- >{{item.brandName||item.name}}</span
|
|
|
- >
|
|
|
+ <span style="margin-right: 20px" v-for="(item,i) in user.brandList" :key="i">{{item.brandName||item.name}}</span>
|
|
|
</div>
|
|
|
</Form-item>
|
|
|
|
|
|
<Form-item label="角色" prop="roleIdList">
|
|
|
<Checkbox-group v-model="user.roleIdList">
|
|
|
- <Checkbox :label="role.roleId" v-for="role in roleList"
|
|
|
- >{{role.roleName}}</Checkbox
|
|
|
- >
|
|
|
+ <Checkbox :label="role.roleId" v-for="role in roleList">{{role.roleName}}</Checkbox>
|
|
|
</Checkbox-group>
|
|
|
</Form-item>
|
|
|
|
|
@@ -240,29 +187,15 @@
|
|
|
</Radio-group>
|
|
|
</Form-item>
|
|
|
<Form-item>
|
|
|
- <i-button type="primary" @click="handleSubmit('formValidate')"
|
|
|
- >提交</i-button
|
|
|
- >
|
|
|
- <i-button type="warning" @click="reload" style="margin-left: 8px"
|
|
|
- >返回</i-button
|
|
|
- >
|
|
|
- <i-button
|
|
|
- type="ghost"
|
|
|
- @click="handleReset('formValidate')"
|
|
|
- style="margin-left: 8px"
|
|
|
- >重置
|
|
|
- </i-button>
|
|
|
+ <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
|
|
|
+ <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
|
|
|
+ <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置 </i-button>
|
|
|
</Form-item>
|
|
|
</div>
|
|
|
</i-form>
|
|
|
</Card>
|
|
|
|
|
|
- <Modal
|
|
|
- v-model="modal1"
|
|
|
- title="添加VR场景关联"
|
|
|
- @on-ok="ok"
|
|
|
- @on-cancel="cancel"
|
|
|
- >
|
|
|
+ <Modal v-model="modal1" title="添加VR场景关联" @on-ok="ok" @on-cancel="cancel">
|
|
|
<!--
|
|
|
<CheckboxGroup v-model="social" @on-change="checkAllGroupChange">
|
|
|
<Checkbox :label="brand.name" v-for="(brand,idx) in brandsList" :key='idx'>
|
|
@@ -270,29 +203,13 @@
|
|
|
</Checkbox>
|
|
|
</CheckboxGroup> -->
|
|
|
|
|
|
- <div
|
|
|
- class="checkbox-item"
|
|
|
- @click="clickCheck(brand,idx)"
|
|
|
- v-for="(brand,idx) in brandsList"
|
|
|
- :key="idx"
|
|
|
- >
|
|
|
+ <div class="checkbox-item" @click="clickCheck(brand,idx)" v-for="(brand,idx) in brandsList" :key="idx">
|
|
|
<span class="checkbox-kuang"></span>
|
|
|
- <img
|
|
|
- v-if="brand.checked"
|
|
|
- src="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/fdsq-click.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <img v-if="brand.checked" src="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/fdsq-click.png" alt="" />
|
|
|
<span>{{brand.name}}</span>
|
|
|
</div>
|
|
|
|
|
|
- <Page
|
|
|
- style="margin-top: 20px"
|
|
|
- :total="brandTotal"
|
|
|
- @on-change="pageChange"
|
|
|
- :page-size="brandPerPage"
|
|
|
- :current="brandPage"
|
|
|
- size="small"
|
|
|
- />
|
|
|
+ <Page style="margin-top: 20px" :total="brandTotal" @on-change="pageChange" :page-size="brandPerPage" :current="brandPage" size="small" />
|
|
|
</Modal>
|
|
|
</div>
|
|
|
<!-- 选择公司 -->
|