fengdong777 2 years ago
parent
commit
51d1e89cc6
  1. 40
      supervise-crm-ui/src/views/project/projectAdd.vue
  2. 2
      supervise-crm-ui/src/views/project/projectInfo.vue
  3. 4
      warehousing-system/project_web_ui/src/main.js
  4. 6
      warehousing-system/project_web_ui/src/views/component/pictureList/pictureList.vue

40
supervise-crm-ui/src/views/project/projectAdd.vue

@ -225,9 +225,16 @@
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item">
<div class="Images" @click="addImg()"> <div class="Image" v-for="(item,i) in temps" :key="i" v-show="item.name">
<img v-if="item.picUrl" :src="item.picUrl" alt="">
<img v-else src="../../assets/images/notAvailable.jpg" alt="" />
<p><u class="Atext">{{ item.name }}</u></p>
</div>
<div class="Images">
<a href="http://jianguan.yyundong.com/warehouse/#/initial_value/storehouse" target="_blank">
<img src="../../assets//images//addImg.png" alt=""> <img src="../../assets//images//addImg.png" alt="">
<p> </p> <p> </p>
</a>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -280,6 +287,7 @@
bManagerList: [], bManagerList: [],
enterpriseAllList: [], enterpriseAllList: [],
enterpriseList: [], enterpriseList: [],
temps: [],
} }
}, },
created() { created() {
@ -505,7 +513,7 @@
}, },
showEdit(row) { showEdit(row) {
this.title= "【修改】项目信息", this.title= "【修改】项目信息",
req.fetchBySid(row.sid) req.fetchBySid(row.sid)
.then(resp => { .then(resp => {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data
@ -515,6 +523,12 @@
.catch(e => { .catch(e => {
this.formobj = row this.formobj = row
}) })
req.getStorehouseBySid(row.sid).then((res) => {
if (res.success) {
this.temps=res.data
}
})
}, },
} }
@ -555,6 +569,7 @@
width: 150px; width: 150px;
height: 100px; height: 100px;
margin: 10px 10px 30px 10px; margin: 10px 10px 30px 10px;
float: left;
} }
.Images img{ .Images img{
width: 100px; width: 100px;
@ -571,4 +586,25 @@
.Images:hover p{ .Images:hover p{
color: #b8b8b8b0; color: #b8b8b8b0;
} }
.Image{
width: 150px;
height: 100px;
float: left;
margin: 10px 20px 40px 10px;
}
.Image img{
width: 100%;
height: 100%;
}
.Image p{
color: #000;
text-align: center;
margin-top: -15px;
}
.Image p .Atext{
text-decoration: none;
}
</style> </style>

2
supervise-crm-ui/src/views/project/projectInfo.vue

@ -190,7 +190,7 @@
<el-col :span="20"> <el-col :span="20">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item">
<div class="Images" v-for="(item,i) in temps" :key="i" v-show="item.name"> <div class="Images" v-for="(item,i) in temps" :key="i" v-show="item.name">
<a :href="'http://jianguan.yyundong.com/warehouse/#/pictureList/pictureList?id='+item.sid" target="_blank"> <a :href="'http://jianguan.yyundong.com/warehouse/#/pictureList/pictureList?id='+item.shSid" target="_blank">
<img v-if="item.picUrl" :src="item.picUrl" alt=""> <img v-if="item.picUrl" :src="item.picUrl" alt="">
<img v-else src="../../assets/images/notAvailable.jpg" alt="" /> <img v-else src="../../assets/images/notAvailable.jpg" alt="" />
<p><u class="Atext">{{ item.name }}</u></p> <p><u class="Atext">{{ item.name }}</u></p>

4
warehousing-system/project_web_ui/src/main.js

@ -24,8 +24,8 @@ Vue.use(ElementUI)
import axios from 'axios' import axios from 'axios'
/* 设定axios的请求根目录 */ /* 设定axios的请求根目录 */
axios.defaults.baseURL = 'http://192.168.1.193:9050/' // axios.defaults.baseURL = 'http://192.168.1.193:9050/'
// axios.defaults.baseURL = 'http://jianguan.yyundong.com/warehouseapi/' axios.defaults.baseURL = 'http://jianguan.yyundong.com/warehouseapi/'
// import '@/permission' //权限控制 // import '@/permission' //权限控制
Vue.prototype.$http = axios Vue.prototype.$http = axios
Vue.prototype.$userInfo = null // 用户信息 Vue.prototype.$userInfo = null // 用户信息

6
warehousing-system/project_web_ui/src/views/component/pictureList/pictureList.vue

@ -103,6 +103,7 @@ export default {
if(str.charAt(str.length - 1)!="t"){ if(str.charAt(str.length - 1)!="t"){
var id= window.location.href.split("?")[1].split("=")[1]; var id= window.location.href.split("?")[1].split("=")[1];
this.sid=id this.sid=id
console.log(this.sid)
} }
// if(window.location.href){ // if(window.location.href){
@ -125,8 +126,11 @@ export default {
} }
}, },
async LookStorehousedialog(sid) { async LookStorehousedialog(sid) {
this.sid=sid if(sid!=undefined){
this.sid=sid
}
const _this = this; const _this = this;
console.log(this.sid)
const { data: result } = await this.$http.get( const { data: result } = await this.$http.get(
`/v1/shstorehouse/fetchDetailsBySid/${this.sid}` `/v1/shstorehouse/fetchDetailsBySid/${this.sid}`
); );

Loading…
Cancel
Save