|
@@ -49,15 +49,27 @@
|
|
|
</el-image>
|
|
|
<div
|
|
|
class="abos"
|
|
|
+ ><i class="el-icon-refresh-left"
|
|
|
@click="
|
|
|
imgChange(
|
|
|
scope.row.userStudyRecordPhotoList[inds],
|
|
|
'photo',
|
|
|
- its.photo
|
|
|
+ its.photo,270
|
|
|
)
|
|
|
- "
|
|
|
- >
|
|
|
+ " style="font-size: 26px;
|
|
|
+ color: #04ff04;
|
|
|
+ font-weight: 600;"></i>
|
|
|
{{ $methodsTools.onlyForma(its.createTime) }}
|
|
|
+ <i class="el-icon-refresh-right"
|
|
|
+ @click="
|
|
|
+ imgChange(
|
|
|
+ scope.row.userStudyRecordPhotoList[inds],
|
|
|
+ 'photo',
|
|
|
+ its.photo,90
|
|
|
+ )
|
|
|
+ " style="font-size: 26px;
|
|
|
+ color: #04ff04;
|
|
|
+ font-weight: 600;"></i>
|
|
|
</div>
|
|
|
</li>
|
|
|
</template>
|
|
@@ -428,18 +440,45 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
- imgChange(list, name, url) {
|
|
|
- return;
|
|
|
- this.$api
|
|
|
- .imgChange({
|
|
|
- imageUrl: url,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$set(list, name, url + `?v=${Math.random()}`);
|
|
|
- this.$message.success("操作成功");
|
|
|
- }
|
|
|
- });
|
|
|
+ imgChange(list, name, url,ps) {
|
|
|
+ var index = url.indexOf('?');
|
|
|
+ if (index > -1) {
|
|
|
+ url= url.substring(0, index);
|
|
|
+ }
|
|
|
+ if (ps >= 0) {
|
|
|
+ this.$api
|
|
|
+ .imgChange({
|
|
|
+ imageUrl: url,
|
|
|
+ degree: Number(ps),
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$set(list, name, url + `?v=${Math.random()}`);
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error("请输入数字");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ imgChange_old(list, name, url) {
|
|
|
+ // return //正式环境 return
|
|
|
+ const ps = prompt();
|
|
|
+ if (Number(ps) >= 0) {
|
|
|
+ this.$api
|
|
|
+ .imgChange({
|
|
|
+ imageUrl: url,
|
|
|
+ degree: Number(ps),
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$set(list, name, url + `?v=${Math.random()}`);
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error("请输入数字");
|
|
|
+ }
|
|
|
},
|
|
|
submit(text) {
|
|
|
this.formData.auditReason = text;
|