Commit a25d997e authored by derong.zhang's avatar derong.zhang

去代理,修改样式

parent c9f8a04d
...@@ -39,5 +39,6 @@ module.exports = { ...@@ -39,5 +39,6 @@ module.exports = {
"no-useless-escape": 0, "no-useless-escape": 0,
// allow debugger during development // allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"vue/no-parsing-error": [2, { "x-invalid-end-tag": false }]
} }
} }
...@@ -11,11 +11,11 @@ module.exports = { ...@@ -11,11 +11,11 @@ module.exports = {
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/gateway': { // '/gateway': {
target: 'https://s-engine-ai3.liangkebang.net', // target: 'https://s-engine-ai3.liangkebang.net',
changeOrigin: true, // changeOrigin: true,
pathRewrite: {'^/gateway' : ''} // pathRewrite: {'^/gateway' : ''}
} // }
}, },
// Various Dev Server settings // Various Dev Server settings
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>strategy-ui</title> <title>strategy-ui</title>
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.7.13/dingtalk.open.js"></script>
<script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-pc-api/2.3.1/index.js"></script>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
import axios from '../services/http.service' import axios from '../services/http.service'
// import sapi from '../config/index'
export function getSoulSoother () { export function getSoulSoother () {
return axios.get(`/gateway/api/sysStrategy/getTodaySoul`, {headers: { return axios.get(`/gateway/api/sysStrategy/getTodaySoul`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
...@@ -90,3 +91,9 @@ export function getconfiglist () { ...@@ -90,3 +91,9 @@ export function getconfiglist () {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 发送钉钉消息
export function sendding (data) {
return axios.post(`/gateway/api/dingNotice/send`, data, {headers: {
'Content-Type': 'application/json'
}})
}
<template> <template>
<div class="layout"> <div class="layout">
<Layout class="layout_content"> <Layout class="layout_content">
<Sider breakpoint="md" collapsible :collapsed-width="78" v-model="isCollapsed"> <Sider breakpoint="md" ref="side1" hide-trigger collapsible :collapsed-width="78" v-model="isCollapsed">
<div class="title"> <div class="title">
战略引擎 战略引擎
</div> </div>
...@@ -15,8 +15,13 @@ ...@@ -15,8 +15,13 @@
</Sider> </Sider>
<Layout> <Layout>
<Header class="layout-header-bar"> <Header class="layout-header-bar">
<span class="signout" @click="logOut">退出</span> <Header :style="{padding: 0}" class="layout-header-bar">
<span class="message">{{me}}</span> <Icon @click.native="collapsedSider" :class="rotateIcon" :style="{margin: '0 0px'}" type="md-menu" size="24"></Icon>
<span class="signout" @click="logOut">退出</span>
<span class="message">{{me}}</span>
</Header>
<!-- <span class="signout" @click="logOut">退出</span>
<span class="message">{{me}}</span> -->
</Header> </Header>
<Content :style="{margin: '5px', background: '#fff', minHeight: '220px'}"> <Content :style="{margin: '5px', background: '#fff', minHeight: '220px'}">
<router-view></router-view> <router-view></router-view>
...@@ -35,6 +40,12 @@ export default { ...@@ -35,6 +40,12 @@ export default {
} }
}, },
computed: { computed: {
rotateIcon () {
return [
'menu-icon',
this.isCollapsed ? 'rotate-icon' : ''
];
},
menuitemClasses: function () { menuitemClasses: function () {
return [ return [
'menu-item', 'menu-item',
...@@ -55,8 +66,11 @@ export default { ...@@ -55,8 +66,11 @@ export default {
}, },
getmass () { getmass () {
getmassage().then(data => { getmassage().then(data => {
this.me = data.data.userCode this.me = data.data.body.userName
}) })
},
collapsedSider () {
this.$refs.side1.toggleCollapse();
} }
}, },
mounted () { mounted () {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<img src="../../static/dingding.png" alt="钉钉" @click="ding(item)" style="margin-left:20px"> <img src="../../static/dingding.png" alt="钉钉" @click="ding(item)" style="margin-left:20px">
</p> </p>
<p v-show="item.showselect"> <p v-show="item.showselect">
<Select v-model="item.dingNamearr" size="small" clearable style="width:100%" multiple filterable :remote-method="remoteMethod" remote> <Select v-model="item.dingNamearr" size="small" label-in-value @on-change="selectName" clearable style="width:100%" multiple filterable :remote-method="remoteMethod" remote>
<Option v-for="(item, index) in getNamearr" :value="item.userId" :key="index">{{item.name}}</Option> <Option v-for="(item, index) in getNamearr" :value="item.userId" :key="index">{{item.name}}</Option>
</Select> </Select>
</p> </p>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="confirediv" v-show="item.showselect"> <div class="confirediv" v-show="item.showselect">
<p style="margin-top:22px"> <p style="margin-top:22px">
<Button type="primary" size='small'>取消</Button> <Button type="primary" size='small'>取消</Button>
<Button type="primary" size='small'>确认</Button> <Button type="primary" size='small' @click="confireding(item)">确认</Button>
</p> </p>
</div> </div>
</div> </div>
...@@ -65,8 +65,7 @@ ...@@ -65,8 +65,7 @@
</div> </div>
</template> </template>
<script> <script>
// import dd from 'dingtalk-jsapi' import {getdetailList, edutListitem, delateListitem, getname, sendding} from '../api/strategymange.serve'
import {getdetailList, edutListitem, delateListitem, getname} from '../api/strategymange.serve'
export default { export default {
data () { data () {
return { return {
...@@ -78,7 +77,12 @@ export default { ...@@ -78,7 +77,12 @@ export default {
delateUid: '', delateUid: '',
delatelefthostmodal: false, delatelefthostmodal: false,
dingNamearr: [], dingNamearr: [],
getNamearr: [] getNamearr: [],
confiredingarr: [],
resultdingArr: [],
resultdingcontentarr: [],
busUid: '',
content: ''
} }
}, },
methods: { methods: {
...@@ -130,21 +134,30 @@ export default { ...@@ -130,21 +134,30 @@ export default {
}) })
}) })
}, },
// getnamelist () { selectName (item) {
// dd.biz.ding.post({ this.resultdingArr = item
// users: ['100', '101'], // 用户列表,userid },
// corpId: 'dingcdf747c33620747835c2f4657eb6378f', // 加密的企业id confireding (item) {
// type: 2, // 钉类型 1:image 2:link this.busUid = item.uid
// alertType: 2, this.content = item.content
// alertDate: {'format': 'yyyy-MM-dd HH:mm', 'value': '2015-05-09 08:00'}, this.resultdingArr.map(item => {
// attachment: { this.resultdingcontentarr.push({
// images: [''] // 只取第一个image busUid: this.busUid,
// }, // 附件信息 name: item.label,
// text: '', // 消息体 userId: item.value,
// onSuccess: function () {}, text: this.content
// onFail: function () {} })
// }) })
// }, sendding(this.resultdingcontentarr).then(data => {
if (data.data.success === true) {
this.$Message.success('发送消息成功')
this.getlist()
} else {
this.$Message.error(data.data.body.message)
this.getlist()
}
})
},
async remoteMethod (query) { async remoteMethod (query) {
if (query !== '') { if (query !== '') {
setTimeout(async () => { setTimeout(async () => {
...@@ -195,6 +208,7 @@ export default { ...@@ -195,6 +208,7 @@ export default {
width: 100%; width: 100%;
background: url('../../static/logo.jpg') repeat; background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%; background-size: 100% 100%;
font-family:"Microsoft Yahei"
} }
.detailstrategy_title{ .detailstrategy_title{
height: 40px; height: 40px;
...@@ -216,51 +230,41 @@ export default { ...@@ -216,51 +230,41 @@ export default {
width: 100%; width: 100%;
float: left; float: left;
overflow-y: auto; overflow-y: auto;
/* border: 1px solid black */ }
}
.detailstrategy_content_warp{ .detailstrategy_content_warp{
width: 85%; width: 85%;
margin: 0 11%; margin: 0 11%;
min-height: 80px; min-height: 80px;
/* border: 1px solid yellow */
} }
.content_warpleft{ .content_warpleft{
min-height: 80px; min-height: 80px;
width: 80%; width: 80%;
float: left; float: left;
/* border: 1px solid black; */
margin-top:5px; margin-top:5px;
} }
.content_warpright{ .content_warpright{
height: 80px; height: 80px;
width: 20%; width: 20%;
float: left; float: left;
/* border: #848484 1px solid; */
margin-top:5px; margin-top:5px;
} }
.content_warp_remarks{ .content_warp_remarks{
min-height:60px; min-height:20px;
width: 100%; width: 100%;
height: 40px;
float: left; float: left;
line-height: 20px;
padding: 10px 0;
color: #848484; color: #848484;
/* border: 1px solid yellow */ padding: 5px 0
} }
.content_warp_put{ .content_warp_put{
min-height:60px; min-height:60px;
width: 100%; width: 100%;
float: left; float: left;
/* border: 1px solid yellow */
} }
.warp_put_value{ .warp_put_value{
min-height: 60px; min-height: 60px;
width: 100%; width: 100%;
float: left; float: left;
background: white; background: white;
/* margin-top:15px; */
/* border: 1px solid red */
} }
.warp_put_img{ .warp_put_img{
width: 100%; width: 100%;
...@@ -270,18 +274,18 @@ export default { ...@@ -270,18 +274,18 @@ export default {
.imgdiv{ .imgdiv{
height: 100%; height: 100%;
width: 50%; width: 50%;
/* border: 1px solid yellow; */
float: left; float: left;
cursor: pointer;
} }
.imglist { .imglist {
width: 100%; width: 100%;
height: 20px; height: 20px;
display: flex display: flex;
cursor: pointer;
} }
.confirediv{ .confirediv{
height: 100%; height: 100%;
width: 50%; width: 50%;
/* border: 1PX solid red; */
float: left; float: left;
text-align: center text-align: center
} }
...@@ -327,7 +331,8 @@ export default { ...@@ -327,7 +331,8 @@ export default {
align-items:Center; align-items:Center;
padding: 5px 5px; padding: 5px 5px;
border: 1px solid #a2825f; border: 1px solid #a2825f;
border-radius: 2px border-radius: 2px;
cursor: pointer;
} }
.spansend{ .spansend{
display: inline-block; display: inline-block;
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
<img src="../../static/dingding.png" alt="钉钉" @click="ding(item)" style="margin-left:20px"> <img src="../../static/dingding.png" alt="钉钉" @click="ding(item)" style="margin-left:20px">
</p> </p>
<p v-show="item.showselect"> <p v-show="item.showselect">
<Select v-model="item.dingNamearr" size="small" clearable style="width:100%" multiple filterable :remote-method="remoteMethod" remote> <Select v-model="item.dingNamearr" size="small" label-in-value @on-change="selectName" clearable style="width:100%" multiple filterable :remote-method="remoteMethod" remote>
<Option v-for="(item, index) in getNamearr" :value="item.userId" :key="index">{{item.name}}</Option> <Option v-for="(ele, index) in getNamearr" :value="ele.userId" :key="index">{{ele.name}}</Option>
</Select> </Select>
</p> </p>
</div> </div>
...@@ -64,11 +64,8 @@ ...@@ -64,11 +64,8 @@
</Modal> </Modal>
</div> </div>
</template> </template>
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.7.13/dingtalk.open.js"></script>
<script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-pc-api/2.3.1/index.js"></script>
<script> <script>
import {getsourcelist, editsourceitem, delatesourceitem, getname, getconfiglist} from '../api/strategymange.serve' import {getsourcelist, editsourceitem, delatesourceitem, getname, getconfiglist, sendding} from '../api/strategymange.serve'
import * as dd from 'dingtalk-jsapi'
export default { export default {
data () { data () {
return { return {
...@@ -81,12 +78,16 @@ export default { ...@@ -81,12 +78,16 @@ export default {
delateuid: '', delateuid: '',
getNamearr: [], getNamearr: [],
confiredingarr: [], confiredingarr: [],
agentId: '', //微应用ID resultdingArr: [],
timeStamp: '', //生成签名的时间戳 resultdingcontentarr: [],
corpId: '', //企业ID busUid: '',
content: '',
agentId: '', // 微应用ID
timeStamp: '', // 生成签名的时间戳
corpId: '', // 企业ID
nonceStr: '', // 生成签名的随机串 nonceStr: '', // 生成签名的随机串
signature: '', // 签名 signature: '', // 签名
dingcode: '', dingcode: ''
} }
}, },
methods: { methods: {
...@@ -160,12 +161,29 @@ export default { ...@@ -160,12 +161,29 @@ export default {
item.showselect = true item.showselect = true
this.contentarr = [...this.contentarr] this.contentarr = [...this.contentarr]
}, },
selectName (item) {
this.resultdingArr = item
},
confireding (item) { confireding (item) {
console.log(111) this.busUid = item.uid
console.log(dd) this.content = item.content
this.confiredingarr = item.dingNamearr this.resultdingArr.map(item => {
// console.log(dd) this.resultdingcontentarr.push({
busUid: this.busUid,
name: item.label,
userId: item.value,
text: this.content
})
})
sendding(this.resultdingcontentarr).then(data => {
if (data.data.success === true) {
this.$Message.success('发送消息成功')
this.getlist()
} else {
this.$Message.error(data.data.body.message)
this.getlist()
}
})
}, },
confiredelatehostListleft () { confiredelatehostListleft () {
delatesourceitem(this.delateuid).then(data => { delatesourceitem(this.delateuid).then(data => {
...@@ -185,110 +203,14 @@ export default { ...@@ -185,110 +203,14 @@ export default {
getconfiglist().then(data => { getconfiglist().then(data => {
this.agentId = data.data.body.agentId this.agentId = data.data.body.agentId
this.corpId = data.data.body.corpId this.corpId = data.data.body.corpId
this.timeStamp = toString(data.data.body.timeStamp) this.timeStamp = toString(data.data.body.timeStamp)
this.nonceStr = data.data.body.nonceStr this.nonceStr = data.data.body.nonceStr
this.signature = data.data.body.signature this.signature = data.data.body.signature
console.log(this.timeStamp, 8888, typeof(this.timeStamp), 999)
}) })
} }
}, },
async mounted () { async mounted () {
await this.getdingTokenconfig () await this.getdingTokenconfig()
// if(DingTalkPC.ua.isDesktop&&DingTalkPC.ua.isInDingTalk){//PC端钉钉执行此方法
// dd.runtime.permission.requestAuthCode({
// corpId: this.corpId, // 企业id
// onSuccess: function (info) {
// this.dingcode = info.code // 通过该免登授权码可以获取用户身份
// }});
// dd.biz.ding.create({
// users : this.confiredingarr,//用户列表,userid
// corpId: this.corpId, //企业id
// type: 2, //钉类型 1:image 2:link
// alertType: 2,
// alertDate: {"format":"yyyy-MM-dd HH:mm","value":"2015-05-09 08:00"},
// attachment: {
// title: '', //附件的标题
// url: '', //附件点击后跳转url
// image: '', //附件显示时的图片 【可选】
// text: '', //附件显示时的消息体 【可选】
// showInApp: false, // 跳转url在PC客户端上的打开方式,true:从PC容器内打开,false:跳转到浏览器打开 【可选】
// },
// text: '', //消息体
// onSuccess : function() {
// console.log('成功回调')
// },
// onFail : function() {
// console.log('失败回调3333')
// }
// })
// }
// console.log(dd)
dd.config({
agentId: this.agentId, // 必填,微应用ID
corpId: this.corpId, // 必填,企业ID
timeStamp: this.timeStamp, // 必填,生成签名的时间戳
nonceStr: this.nonceStr, // 必填,生成签名的随机串
signature: this.signature , // 必填,签名
type: 0 / 1, // 选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
jsApiList: [
'runtime.info',
'biz.contact.choose',
'device.notification.confirm',
'device.notification.alert',
'device.notification.prompt',
'biz.ding.post',
'biz.util.openLink'
], // 必填,需要使用的jsapi列表,注意:不要带dd。
onSuccess : function () {
alert('成功回调')
},
onFail : function () {
alert('失败回调111')
}
})
dd.ready(function () {
alert(222)
dd.runtime.info({
onSuccess: function(info) {
logger.i('runtime info: ' + JSON.stringify(info));
},
onFail: function(err) {
logger.e('fail: ' + JSON.stringify(err));
}
});
dd.runtime.permission.requestAuthCode({
corpId: this.corpId, // 企业id
onSuccess: function (info) {
this.dingcode = info.code // 通过该免登授权码可以获取用户身份
console.log(code, 4444)
}});
dd.biz.ding.create({
users : this.confiredingarr,//用户列表,userid
corpId: this.corpId, //企业id
type: 2, //钉类型 1:image 2:link
alertType: 2,
alertDate: {"format":"yyyy-MM-dd HH:mm","value":"2015-05-09 08:00"},
attachment: {
title: '', //附件的标题
url: '', //附件点击后跳转url
image: '', //附件显示时的图片 【可选】
text: '', //附件显示时的消息体 【可选】
showInApp: false, // 跳转url在PC客户端上的打开方式,true:从PC容器内打开,false:跳转到浏览器打开 【可选】
},
text: '', //消息体
onSuccess : function() {
console.log('成功回调')
},
onFail : function() {
console.log('失败回调3333')
}
})
console.log(this.dingcode, 8888888888)
})
dd.error((error) => {
alert('error');
alert(`dd error: ${JSON.stringify(error)}`);
});
this.getlist() this.getlist()
} }
} }
...@@ -299,6 +221,7 @@ export default { ...@@ -299,6 +221,7 @@ export default {
width: 100%; width: 100%;
background: url('../../static/logo.jpg') repeat; background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%; background-size: 100% 100%;
font-family:"Microsoft Yahei"
} }
.sourcematerial_title{ .sourcematerial_title{
height: 40px; height: 40px;
...@@ -340,12 +263,9 @@ export default { ...@@ -340,12 +263,9 @@ export default {
margin-right: 1% margin-right: 1%
} }
.content_warp_remarks{ .content_warp_remarks{
min-height:40px; min-height:25px;
width: 100%; width: 100%;
height: 40px;
float: left; float: left;
line-height: 20px;
padding: 10px 0;
color: #848484; color: #848484;
} }
.listorvaluespan { .listorvaluespan {
...@@ -371,11 +291,13 @@ export default { ...@@ -371,11 +291,13 @@ export default {
height: 100%; height: 100%;
width: 52%; width: 52%;
float: left; float: left;
cursor: pointer;
} }
.imglist { .imglist {
width: 100%; width: 100%;
height: 20px; height: 20px;
display: flex; display: flex;
cursor: pointer;
} }
.confirediv{ .confirediv{
height: 100%; height: 100%;
...@@ -399,7 +321,8 @@ export default { ...@@ -399,7 +321,8 @@ export default {
align-items:Center; align-items:Center;
padding: 5px 5px; padding: 5px 5px;
border: 1px solid #a2825f; border: 1px solid #a2825f;
border-radius: 2px border-radius: 2px;
cursor: pointer;
} }
.classtitle_add{ .classtitle_add{
height: 40px; height: 40px;
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
<div class="leftdiv_title_icon"> <div class="leftdiv_title_icon">
<div v-show="element.showtitlechlid"> <div v-show="element.showtitlechlid">
<p> <p>
<img src="../../static/bianji.png" title="编辑" @click="editchliidput(index, index1, element)"> <img src="../../static/bianji.png" title="编辑" @click="editchliidput(element)">
</p> </p>
<p> <p>
<img src="../../static/shanchu.png" title="删除" @click="delatechlidListleft(index, index1, element)"> <img src="../../static/shanchu.png" title="删除" @click="delatechlidListleft(element)">
</p> </p>
</div> </div>
</div> </div>
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<Input v-model="element.title" style="width:99%" type="textarea" v-show="element.elementeditsta" @on-blur="saveeditchildput(element)"/> <Input v-model="element.title" style="width:99%" type="textarea" v-show="element.elementeditsta" @on-blur="saveeditchildput(element)"/>
<span v-show="element.elementeditput" class="valuespan" @click="toscordpage(element.title,element)" :class="{'colorlistvaluespan':element.showtitlechlid}">{{element.title}}</span> <span v-show="element.elementeditput" class="valuespan" @click="toscordpage(element.title,element)" :class="{'colorlistvaluespan':element.showtitlechlid}">{{element.title}}</span>
</div> </div>
<!-- <div class="leftdiv_title_div"></div> -->
</div> </div>
</div> </div>
</transition-group> </transition-group>
...@@ -53,20 +54,22 @@ ...@@ -53,20 +54,22 @@
</div> </div>
</div> </div>
<div class="center"> <div class="center">
<div class="hosttitle" @mousemove="onmouseoverinput()" @mouseleave="movleave()"> <div class="center_content">
<div class="hosttileinput"> <div class="hosttitle" @mousemove="onmouseoverinput()" @mouseleave="movleave()">
<Input v-model="hosttitlespantitle" v-show="showinput" :readonly='hostreadonly' type="textarea" style="width: 100%;height:100%" @on-blur='blur' /> <div class="hosttileinput">
<span v-show="hosttitlespantitlevalue" class="hosttitlespan">{{hosttitlespantitle}}</span> <Input v-model="hosttitlespantitle" v-show="showinput" :readonly='hostreadonly' type="textarea" style="width: 100%;height:100%" @on-blur='blur' />
</div> <span v-show="hosttitlespantitlevalue" class="hosttitlespan">{{hosttitlespantitle}}</span>
<div class="hosttitleedit" v-show="showedit"> </div>
<img src="../../static/bianji.png" alt="" class='img' @click="settitle" title="编辑"> <div class="hosttitleedit" v-show="showedit">
<img src="../../static/bianji.png" alt="" class='img' @click="settitle" title="编辑">
</div>
</div> </div>
</div> <div class="hosttime">
<div class="hosttime">
<p>最后更新时间: {{updatetime}}</p> <p>最后更新时间: {{updatetime}}</p>
</div> </div>
<div class="sourcematerialdiv" @click="gotosourcematerialdivpage"> <div class="sourcematerialdiv" @click="gotosourcematerialdivpage">
相关素材 相关素材
</div>
</div> </div>
</div> </div>
<div class="right"> <div class="right">
...@@ -95,10 +98,10 @@ ...@@ -95,10 +98,10 @@
<div class="leftdiv_title_icon"> <div class="leftdiv_title_icon">
<div v-show="element.showtitlechlid"> <div v-show="element.showtitlechlid">
<p> <p>
<img src="../../static/bianji.png" title="编辑" @click="editchliidput(index3, index4, element)"> <img src="../../static/bianji.png" title="编辑" @click="editchliidput(element)">
</p> </p>
<p> <p>
<img src="../../static/shanchu.png" title="删除" @click="delatechlidListright(index3, index4, element)"> <img src="../../static/shanchu.png" title="删除" @click="delatechlidListright(element)">
</p> </p>
</div> </div>
</div> </div>
...@@ -147,7 +150,6 @@ ...@@ -147,7 +150,6 @@
</div> </div>
</template> </template>
<script> <script>
// import Vue from 'vue'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
import {getSoulSoother, getlist, addtitlelist, delatetitlelist, savechildput, delatechildputchlid, savehostTitle, sortstrategy} from '../api/strategymange.serve' import {getSoulSoother, getlist, addtitlelist, delatetitlelist, savechildput, delatechildputchlid, savehostTitle, sortstrategy} from '../api/strategymange.serve'
export default { export default {
...@@ -236,7 +238,6 @@ export default { ...@@ -236,7 +238,6 @@ export default {
this.$Message.error(data.data.body.message) this.$Message.error(data.data.body.message)
this.getList() this.getList()
} }
console.log(data)
}) })
}, },
onmouseoverinput () { onmouseoverinput () {
...@@ -288,7 +289,6 @@ export default { ...@@ -288,7 +289,6 @@ export default {
orderNo: ind orderNo: ind
} }
addtitlelist(params).then(data => { addtitlelist(params).then(data => {
// console.log(data, 99)
if (data.data.success === true) { if (data.data.success === true) {
this.objectivesUid = data.data.body.uid this.objectivesUid = data.data.body.uid
this.$Message.success('保存成功') this.$Message.success('保存成功')
...@@ -347,7 +347,7 @@ export default { ...@@ -347,7 +347,7 @@ export default {
}) })
} }
}, },
editchliidput (index, index1, item) { editchliidput (item) {
// 1 // 1
// Vue.set(this.leftarr[index]['keyResultsVOList'], index1, { ...item, elementeditput: false }) // Vue.set(this.leftarr[index]['keyResultsVOList'], index1, { ...item, elementeditput: false })
// 2 // 2
...@@ -364,11 +364,11 @@ export default { ...@@ -364,11 +364,11 @@ export default {
item.showtitlechlid = !item.showtitlechlid item.showtitlechlid = !item.showtitlechlid
this.leftarr = [...this.leftarr] this.leftarr = [...this.leftarr]
}, },
delatechlidListleft (index, index1, element) { delatechlidListleft (element) {
this.delateleftchildmodal = true this.delateleftchildmodal = true
this.elementuid = element.uid this.elementuid = element.uid
}, },
delatechlidListright (index, index1, element) { delatechlidListright (element) {
this.delateleftchildmodal = true this.delateleftchildmodal = true
this.elementuid = element.uid this.elementuid = element.uid
}, },
...@@ -559,8 +559,9 @@ export default { ...@@ -559,8 +559,9 @@ export default {
} }
}, },
mounted () { mounted () {
// this.getSoul() this.getSoul()
this.getList() this.getList()
setInterval(this.getSoul, 86400000)
}, },
created () { created () {
} }
...@@ -572,18 +573,20 @@ export default { ...@@ -572,18 +573,20 @@ export default {
width: 100%; width: 100%;
background: url('../../static/logo.jpg') repeat; background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%; background-size: 100% 100%;
font-family:"Microsoft Yahei"
} }
.heart{ .heart{
height: 60px; height: 80px;
width: 100%; width: 100%;
line-height: 60px; line-height: 80px;
text-align: center; text-align: center;
position: relative; position: relative;
top:0 top:0
} }
.strategymange-content{ .strategymange-content{
width: 100%; width: 100%;
height: 90% height: 90%;
float: left;
} }
.left{ .left{
width: 35%; width: 35%;
...@@ -597,14 +600,17 @@ export default { ...@@ -597,14 +600,17 @@ export default {
} }
.leftdiv_title{ .leftdiv_title{
width: 100%; width: 100%;
min-height: 60px;
float: left;
border: 1px solid rgba(255,255,255,0); border: 1px solid rgba(255,255,255,0);
} }
.leftdiv_title_icon{ .leftdiv_title_icon{
height: 100%; height: 100%;
width: 20px; width: 5%;
border: 1px solid rgba(255,255,255,0); border: 1px solid rgba(255,255,255,0);
float: left; float: left;
margin: 0 10px; margin: 0 10px;
cursor: pointer;
} }
.leftdiv_title_icon img{ .leftdiv_title_icon img{
height: 15px; height: 15px;
...@@ -612,13 +618,12 @@ export default { ...@@ -612,13 +618,12 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
.leftdiv_title_title{ .leftdiv_title_title{
height: 100%; min-height: 50px;
width: 80%; width: 80%;
float: left; float: left;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
margin-bottom: 20px; background: white;
background: white
} }
.center{ .center{
width: 30%; width: 30%;
...@@ -626,6 +631,11 @@ export default { ...@@ -626,6 +631,11 @@ export default {
float: left; float: left;
display: flex; display: flex;
} }
.center_content{
min-height: 140px;
margin: auto;
width: 100%;
}
.right{ .right{
width:35%; width:35%;
height: 100%; height: 100%;
...@@ -636,7 +646,6 @@ export default { ...@@ -636,7 +646,6 @@ export default {
width: 90%; width: 90%;
min-height:60px; min-height:60px;
margin:auto; margin:auto;
/* border: #666 1px solid */
} }
.img{ .img{
height:20px; height:20px;
...@@ -659,17 +668,16 @@ export default { ...@@ -659,17 +668,16 @@ export default {
min-height: 60px; min-height: 60px;
width: 10%; width: 10%;
float: left; float: left;
cursor: pointer;
} }
.hosttime{ .hosttime{
height: 25px; height: 25px;
width: 20%; width: 90%;
text-align: center; text-align: center;
line-height: 25px; line-height: 25px;
position: fixed;
bottom: 32%;
left: 46%;
font-size: 16px; font-size: 16px;
color: #848484 color: #848484;
margin: 20px 0
} }
.hosttitlespan{ .hosttitlespan{
height: 100%; height: 100%;
...@@ -683,7 +691,8 @@ export default { ...@@ -683,7 +691,8 @@ export default {
align-items:Center; align-items:Center;
padding: 5px 5px; padding: 5px 5px;
color: #a2825f; color: #a2825f;
font-weight: 900 font-weight: 900;
cursor: pointer;
} }
.valuespan{ .valuespan{
height: 100%; height: 100%;
...@@ -697,7 +706,10 @@ export default { ...@@ -697,7 +706,10 @@ export default {
align-items:Center; align-items:Center;
padding: 5px 5px; padding: 5px 5px;
border: 1px solid #a2825f; border: 1px solid #a2825f;
border-radius: 2px border-radius: 2px;
cursor: pointer;
font-family:"Microsoft Yahei";
overflow-y: auto
} }
.colorlistvaluespan{ .colorlistvaluespan{
height: 100%; height: 100%;
...@@ -711,7 +723,8 @@ export default { ...@@ -711,7 +723,8 @@ export default {
padding: 5px 5px; padding: 5px 5px;
border-radius: 2px; border-radius: 2px;
background: #e8e8e8; background: #e8e8e8;
border: 1px solid rgba(255,255,255,0) border: 1px solid rgba(255,255,255,0);
overflow-y: auto
} }
.divwarp{ .divwarp{
min-height: 50px; min-height: 50px;
...@@ -731,6 +744,7 @@ export default { ...@@ -731,6 +744,7 @@ export default {
width:20%; width:20%;
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer;
} }
.classtitle_title{ .classtitle_title{
width: 60%; width: 60%;
...@@ -743,7 +757,9 @@ export default { ...@@ -743,7 +757,9 @@ export default {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: inline-block; display: inline-block;
font-size: 18px font-size: 18px;
cursor: pointer;
font-family:"Microsoft Yahei"
} }
.classtitle_icon img{ .classtitle_icon img{
height: 15px; height: 15px;
...@@ -761,16 +777,18 @@ export default { ...@@ -761,16 +777,18 @@ export default {
width: 15px width: 15px
} }
.sourcematerialdiv{ .sourcematerialdiv{
height: 25px; height: 35px;
width: 100px; width: 120px;
text-align: center; text-align: center;
line-height: 25px; line-height: 35px;
border: 1px solid #a2825f; border: 1px solid #a2825f;
position: fixed; position: fixed;
bottom: 60px; bottom: 60px;
left: 53%; left: 51%;
border-radius: 5px; border-radius: 5px;
color: #a2825f color: #a2825f;
font-size: 20px;
cursor: pointer;
} }
.textalign{ .textalign{
text-align: center text-align: center
...@@ -832,19 +850,16 @@ export default { ...@@ -832,19 +850,16 @@ export default {
vertical-align: middle; vertical-align: middle;
resize: none; resize: none;
background:rgba(255,255,255,0); background:rgba(255,255,255,0);
/* border-bottom: 1px solid #666 */
} }
.aaa{ .aaa{
/* background: white; */
width: 100%; width: 100%;
margin-top:20px;
min-height: 50px; min-height: 50px;
border: 1px solid rgba(255,255,255,0); border: 1px solid rgba(255,255,255,0);
} }
.divhome{ .divhome{
min-height: 60px; min-height: 60px;
width: 100%; width: 100%;
height: 100%; overflow: hidden;
border: 1px solid rgba(255,255,255,0); border: 1px solid rgba(255,255,255,0);
} }
</style> </style>
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